/* ============================================================
   Bo·Jour — feuille de style commune aux pages de présentation
   ============================================================ */

:root {
  --encre:     #360102;
  --vermillon: #E14328;
  --olive:     #7C7C46;
  --brume:     #B7C4C2;
  --blanc:     #FFFFFF;
  --creme:     #FBF9F7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Josefin Sans', 'Century Gothic', sans-serif;
  background: var(--blanc);
  color: var(--encre);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ─────────────────────────────
   HEADER
───────────────────────────── */
header.site-header {
  background: var(--blanc);
  border-bottom: 1.5px solid var(--encre);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
}
.logo-left   { height: 38px; width: auto; }
.logo-center { height: 46px; width: auto; justify-self: center; }
.logo-right  { height: 22px; width: auto; justify-self: end; }

nav.site-nav {
  border-top: 1px solid rgba(54,1,2,0.12);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 0 1.5rem;
}
nav.site-nav a {
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--encre);
  opacity: 0.55;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  white-space: nowrap;
}
nav.site-nav a:hover { opacity: 1; }
nav.site-nav a.active { opacity: 1; border-bottom-color: var(--vermillon); }
nav.site-nav a.nav-cta {
  opacity: 1;
  border: 1.5px solid var(--encre);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
}
nav.site-nav a.nav-cta:hover { background: var(--encre); color: var(--blanc); }

nav.site-nav a.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0.7;
  padding: 0.3rem 0.15rem;
  margin-left: 0.4rem;
  border-bottom: 2px solid transparent;
}
nav.site-nav a.nav-cart:hover { opacity: 1; }
nav.site-nav a.nav-cart.active { opacity: 1; border-bottom-color: var(--vermillon); }
nav.site-nav a.nav-cart svg { display: block; }
.nav-cart-badge {
  position: absolute;
  top: -6px; right: -9px;
  background: var(--vermillon);
  color: var(--blanc);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-toggle { display: none; }

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* Assombri sur toute la hauteur (et pas seulement en bas) pour que le texte
     reste lisible même quand la photo de fond est claire en haut du cadre. */
  background: linear-gradient(180deg, rgba(54,1,2,0.18) 0%, rgba(54,1,2,0.72) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 3rem 2rem 3.2rem;
  max-width: 720px;
}
.hero-inner .eyebrow {
  color: var(--blanc);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.28em;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.hero-inner h1 {
  color: var(--blanc);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 400; letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 1px 14px rgba(0,0,0,0.35);
}
.hero-inner p {
  color: var(--blanc);
  font-size: 1.05rem; font-weight: 300;
  max-width: 520px; opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hero.hero-compact { min-height: 38vh; }

/* ─────────────────────────────
   SECTIONS & TYPOGRAPHY
───────────────────────────── */
section { padding: 3rem 2rem; }
section.tight { padding: 1.8rem 2rem; }
.wrap { max-width: 1120px; margin: 0 auto; }
.prose { max-width: 700px; margin: 0 auto; }
.prose.left { margin: 0; }

/* Sections texte "plaquées" au bord gauche (round 11) : même position que
   .bleed-text (clamp(1.5rem,4vw,3.5rem) depuis le bord réel de la fenêtre),
   pour des sections sans photo bleed (ex. "Les palettes", "Cacher, définir,
   révéler", "Ce qui distingue Bo·Jour"). */
.section-flush { padding-top: 3rem; padding-bottom: 3rem; padding-left: 0; padding-right: 0; }
.text-left-edge { padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) {
  .section-flush { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .text-left-edge { padding-left: 1.3rem; padding-right: 1.3rem; }
}

.kicker {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--vermillon);
  margin-bottom: 0.8rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
  color: var(--encre);
}
h3 {
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  color: var(--encre);
}
p { margin-bottom: 1.1rem; font-size: 0.98rem; color: var(--encre); }
p.lead { font-size: 1.15rem; font-weight: 400; line-height: 1.55; }
p:last-child { margin-bottom: 0; }
.muted { opacity: 0.68; font-size: 0.85rem; }

.rule { height: 1px; background: var(--encre); opacity: 0.12; margin: 0 auto; max-width: 1120px; }

/* ─────────────────────────────
   GRIDS
───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.img-frame { overflow: hidden; border-radius: 2px; background: var(--creme); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

/* ─────────────────────────────
   PHOTO EN LIMITE DE FENÊTRE (bleed)
───────────────────────────── */
/* Inspiré des templates Squarespace "Strade"/"Quinn" : le texte n'est plus
   centré dans la colonne habituelle du site (.wrap, 1120px) mais s'approche
   du bord réel de la fenêtre ; la photo associée est nettement plus grande
   et va jusqu'à l'autre bord. .bleed-reverse inverse le sens (photo à
   gauche, texte proche du bord droit). .nested sert pour deux rangées dans
   une même <section> (ex. "Comment l'accrocher") : pas de padding vertical
   propre, l'espacement vient de la section englobante. */
.section-bleed {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: 0;
}
.section-bleed.bleed-reverse {
  padding-left: 0;
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
}
.section-bleed.nested { padding-top: 0; padding-bottom: 0; }

.section-bleed .bleed-text { flex: 0 0 auto; max-width: 440px; }
.section-bleed .bleed-img { flex: 1 1 auto; overflow: hidden; background: var(--creme); aspect-ratio: 4 / 3; max-height: 760px; min-height: 340px; }
.section-bleed .bleed-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Variante plus courte pour une rangée secondaire (ex. "Effet ondulé"). */
.section-bleed .bleed-img.compact-h { height: 380px; }
.section-bleed .bleed-img.top > img { object-position: top; }

/* Paire de photos côte à côte dans la zone qui chevauche le bord (ex. "L'atelier"). */
.section-bleed .bleed-img.bleed-img-pair { display: flex; gap: 0.8rem; background: none; }
.section-bleed .bleed-img.bleed-img-pair .img-frame { flex: 1 1 0; height: 100%; overflow: hidden; }
.section-bleed .bleed-img.bleed-img-pair .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Illustration "L'inspiration" : jamais recadrée (règle posée au cinquième
   round), donc la zone s'adapte à la hauteur naturelle de l'image plutôt
   que l'inverse. */
.section-bleed .bleed-img.no-crop { height: auto; aspect-ratio: auto; align-self: center; background: none; }
.section-bleed .bleed-img.no-crop img { width: 100%; height: auto; object-fit: initial; display: block; }

/* Photo unique pleine largeur, sans recadrage (ex. illustration "Ce qui distingue Bo·Jour"). */
.full-img { width: 100%; overflow: hidden; }
.full-img img { width: 100%; height: auto; display: block; }
.full-img.contained { max-width: 760px; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .section-bleed,
  .section-bleed.bleed-reverse {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 0;
    gap: 1.6rem;
  }
  .section-bleed.nested { padding-top: 1.2rem; padding-bottom: 0; }
  .section-bleed .bleed-text { max-width: none; padding: 0 1.3rem; }
  .section-bleed .bleed-img,
  .section-bleed .bleed-img.bleed-img-pair {
    aspect-ratio: 4 / 3;
    max-height: 440px;
    min-height: 240px;
  }
  .section-bleed .bleed-img.compact-h { height: 320px; }
  .section-bleed .bleed-img.no-crop { height: auto; aspect-ratio: auto; }
}

/* Avant / Après */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.avant-apres figure { position: relative; }
.avant-apres figcaption {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: rgba(255,255,255,0.9);
  color: var(--encre); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0.35rem 0.7rem;
}

/* Palette swatch row */
.palette-row { display: flex; gap: 0.9rem; margin: 1.6rem 0 2.2rem; flex-wrap: wrap; }
.swatch { text-align: center; }
.swatch .dot {
  width: 46px; height: 46px; border-radius: 50%;
  margin: 0 auto 0.5rem; border: 1px solid rgba(54,1,2,0.15);
}
.swatch span { display: block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.dot.c-prune     { background: #360102; }
.dot.c-vermillon { background: #E14328; }
.dot.c-olive     { background: #7C7C46; }
.dot.c-brume     { background: #B7C4C2; }

/* Palette declinations grid */
.palette-card { background: var(--creme); }
.palette-card .cap { padding: 1rem 1.1rem 1.2rem; }
.palette-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.palette-card .cap .muted { font-size: 0.72rem; }

/* Feature list (icons as numbers) */
.feature-list { display: grid; gap: 1.8rem; }
.feature-list .num {
  font-size: 0.68rem; font-weight: 600; color: var(--vermillon);
  letter-spacing: 0.15em; margin-bottom: 0.4rem;
}

/* ─────────────────────────────
   BUTTONS
───────────────────────────── */
.btn {
  display: inline-block;
  border: 1.5px solid var(--encre);
  border-radius: 24px;
  padding: 0.85rem 1.8rem;
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--encre);
  transition: all 0.18s;
}
.btn:hover { background: var(--encre); color: var(--blanc); }
.btn.btn-light { border-color: var(--blanc); color: var(--blanc); }
.btn.btn-light:hover { background: var(--blanc); color: var(--encre); }
.btn.btn-fill { background: var(--encre); color: var(--blanc); }
.btn.btn-fill:hover { background: var(--vermillon); border-color: var(--vermillon); }

.cta-band {
  background: var(--encre);
  color: var(--blanc);
  text-align: center;
  padding: 4rem 2rem;
}
.cta-band h2 { color: var(--blanc); }
.cta-band p { color: var(--brume); max-width: 480px; margin: 0 auto 1.8rem; }

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer.site-footer {
  background: var(--creme);
  border-top: 1px solid rgba(54,1,2,0.12);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
footer.site-footer .foot-logo { height: 30px; margin: 0 auto 1rem; }
footer.site-footer nav { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
footer.site-footer nav a {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; text-decoration: none; opacity: 0.65;
}
footer.site-footer nav a:hover { opacity: 1; }
footer.site-footer .copy { font-size: 0.7rem; opacity: 0.45; letter-spacing: 0.04em; }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.6rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .avant-apres { grid-template-columns: 1fr; }
  section { padding: 2.2rem 1.3rem; }
  .header-top { padding: 0 1.2rem; height: 62px; }
  .logo-left { height: 30px; } .logo-center { height: 36px; } .logo-right { display:none; }
  nav.site-nav { gap: 0; overflow-x: auto; justify-content: flex-start; padding: 0 1rem; }
  nav.site-nav a { padding: 0.3rem 0.7rem; font-size: 0.62rem; }
  .hero-inner { padding: 2rem 1.3rem 2.2rem; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Paire de photos détail (ex. section "La technique") : même format,
   plus petites que la grille pleine largeur par défaut. */
.technique-photo img { aspect-ratio: 4/5; }

/* ─────────────────────────────
   COMPACT GRID (images plus petites, à côté du texte)
───────────────────────────── */
.grid-2.compact { grid-template-columns: 300px 1fr; gap: 2.6rem; }
.grid-2.compact .img-frame img { aspect-ratio: 4/5; }
.grid-2.compact-reverse { grid-template-columns: 1fr 300px; gap: 2.6rem; }
.grid-2.compact-reverse .img-frame img { aspect-ratio: 4/5; }
.grid-2.compact-sm { grid-template-columns: 220px 1fr; gap: 2.2rem; }
.grid-2.compact-sm .img-frame img { aspect-ratio: 4/5; }

/* "L'atelier" (2 photos côte à côte) : colonne plus large que le standard
   compact (300px), pour que la paire de photos reste bien visible. */
.grid-2.compact-reverse.atelier-photos { grid-template-columns: 1fr 440px; gap: 2.6rem; }

/* Entre le plein desktop et le mobile, la photo reste à côté du texte (elle ne
   doit jamais devenir un gros bloc centré) mais la colonne rétrécit
   progressivement avec la fenêtre au lieu de garder 300px/220px fixes, qui
   finissaient par écraser le texte sur une fenêtre étroite mais pas encore
   mobile. */
@media (max-width: 860px) {
  .grid-2.compact, .grid-2.compact-reverse { grid-template-columns: clamp(120px, 34vw, 300px) 1fr; gap: 1.6rem; }
  .grid-2.compact-reverse { grid-template-columns: 1fr clamp(120px, 34vw, 300px); }
  .grid-2.compact-sm { grid-template-columns: clamp(100px, 28vw, 220px) 1fr; gap: 1.4rem; }
  /* "L'atelier" a une colonne de base plus large (440px) que les autres
     compact-reverse : sans cette ligne, elle resterait fixe à 440px même sur
     petit écran (plus spécifique que la règle générique ci-dessus) et
     débordait de la page. Même règle que les autres, juste répétée pour
     l'emporter sur la règle de base ".atelier-photos". */
  .grid-2.compact-reverse.atelier-photos { grid-template-columns: 1fr clamp(120px, 34vw, 300px); gap: 1.6rem; }
}

/* En dessous de 560px, il n'y a plus la place pour deux colonnes lisibles :
   la photo repasse au-dessus/en dessous du texte, mais en restant petite et
   discrète (200px/160px) plutôt qu'en dominant l'écran d'un téléphone comme
   le faisait le plafond de 300px/220px hérité du mode 2 colonnes. */
@media (max-width: 560px) {
  .grid-2.compact, .grid-2.compact-reverse, .grid-2.compact-sm,
  .grid-2.compact-reverse.atelier-photos { grid-template-columns: 1fr; }
  .grid-2.compact > *:first-child,
  .grid-2.compact-reverse > *:last-child {
    max-width: 200px;
    margin: 0 auto;
  }
  .grid-2.compact-sm > *:first-child {
    max-width: 160px;
    margin: 0 auto;
  }
}

/* Utilisé pour l'illustration aquarelle de "L'inspiration" : l'image a son
   propre fond crème et ses propres marges peintes, donc pas de cadre/fond
   supplémentaire ici (sinon effet "image dans une image"). */
.insp-logo-frame {
  display: flex; align-items: center; justify-content: center;
}
.insp-logo-frame img { width: 100%; height: auto; border-radius: 2px; }

/* ─────────────────────────────
   PALETTE CAROUSEL (dynamique)
───────────────────────────── */
.palette-carousel-wrap { position: relative; margin: 2.2rem auto 0; max-width: 760px; }
.palette-carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0.2rem 0.8rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.palette-carousel::-webkit-scrollbar { display: none; }
.palette-carousel .pal-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
}
.palette-carousel .pal-card .pal-card-img {
  border-radius: 2px;
  overflow: hidden;
  max-width: 760px;
}
/* Format panoramique : chaque photo montre plusieurs harmonies de couleurs
   possibles au sein d'une même déclinaison (plusieurs tissus juxtaposés),
   pas une seule combinaison figée. */
.palette-carousel .pal-card img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.palette-carousel .pal-card .cap { padding: 1.3rem 0.1rem 0; max-width: 640px; }
.palette-carousel .pal-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--encre);
}
.palette-carousel .pal-card p.pal-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive);
  margin: 0 0 0.6rem;
}
.palette-carousel .pal-card p.pal-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0;
  max-width: 640px;
}
.carousel-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--encre); background: var(--blanc);
  color: var(--encre); font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s;
  z-index: 2;
}
.carousel-arrow:hover { background: var(--encre); color: var(--blanc); }
.carousel-arrow.prev { left: -19px; }
.carousel-arrow.next { right: -19px; }
@media (max-width: 860px) {
  .carousel-arrow { display: none; }
  .palette-carousel .pal-card { flex-basis: 100%; }
}

/* ─────────────────────────────
   COMMENT L'ACCROCHER — options
───────────────────────────── */
.hang-label {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

