/* La Belle Fleur : « fleur par fleur ».
   Page sombre unique (anthracite du logo), un seul accent : le vert pistache des feuilles d'arum.
   Formes : boutons en pilule, encarts et formulaire à 16 px, champs à 10 px. */

@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/BodoniModa.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/BodoniModa-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --nuit: #161915;
  --nuit-2: #1f231d;
  --texte: #eef0e6;
  --doux: rgba(238, 240, 230, 0.76);
  --discret: rgba(238, 240, 230, 0.58);
  --trait: rgba(238, 240, 230, 0.16);
  --pistache: #bdd383;
  --pistache-vif: #cfe19a;
  --sur-pistache: #161915;
  --titre: "Bodoni Moda", "Didot", Georgia, serif;
  --corps: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font: 400 17px/1.6 var(--corps);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
:focus-visible { outline: 2px solid var(--pistache); outline-offset: 3px; border-radius: 4px; }

.evitement { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--pistache); color: var(--sur-pistache); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }

/* ---------- La scène : photos fixes ---------- */
#scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--nuit); }
.plan { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.plan:first-child { opacity: 1; visibility: visible; }
.plan .cadre { position: absolute; inset: 0; transform-origin: var(--o, 50% 50%); backface-visibility: hidden; }
/* Deux couches : la photo nette, et par-dessus une petite copie déjà floue.
   La mise au point = la copie floue s'efface (opacité, calculée par la carte graphique). */
.plan img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.plan .flou { opacity: 0; }
/* Voiles : assombrissent le côté du texte pour qu'il reste lisible */
.plan::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.plan--gauche::after { background: linear-gradient(90deg, rgba(22,25,21,.93) 0, rgba(22,25,21,.86) min(calc(var(--marge) + 560px), 70%), rgba(22,25,21,.4) min(calc(var(--marge) + 800px), 88%), rgba(22,25,21,0) min(calc(var(--marge) + 1100px), 100%)), linear-gradient(180deg, rgba(22,25,21,.7) 0, rgba(22,25,21,0) 150px); }
.plan--droite::after { background: linear-gradient(270deg, rgba(22,25,21,.93) 0, rgba(22,25,21,.86) min(calc(var(--marge) + 560px), 70%), rgba(22,25,21,.4) min(calc(var(--marge) + 800px), 88%), rgba(22,25,21,0) min(calc(var(--marge) + 1100px), 100%)), linear-gradient(180deg, rgba(22,25,21,.7) 0, rgba(22,25,21,0) 150px); }
.plan--sobre .net { filter: saturate(.85); }
.plan--fin::after { background: rgba(22,25,21,.8); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 72px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--marge);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.entete.est-colle { background: rgba(22,25,21,.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--trait); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.marque span { font: 500 21px/1 var(--titre); letter-spacing: .01em; }
.menu { display: flex; gap: 26px; }
.menu a { font-size: 15px; text-decoration: none; color: var(--texte); opacity: .88; padding: 6px 0; position: relative; transition: opacity .2s ease; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pistache); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu a[aria-current="true"] { opacity: 1; }
.menu a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { opacity: 1; } }
.entete-tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(189,211,131,.5); color: var(--pistache-vif);
  text-decoration: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .entete-tel:hover { background: var(--pistache); color: var(--sur-pistache); } }
.entete-tel:active { transform: scale(.97); }

/* ---------- Chapitres ---------- */
main { position: relative; z-index: 1; }
.chapitre { position: relative; min-height: 215vh; padding: 0 var(--marge); }
.chapitre--ouverture { min-height: 185vh; }
.texte {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px;
  padding: 96px 0 56px;
}
.chapitre--droite .texte { margin-left: auto; }
.chapitre--ouverture .texte { max-width: 700px; }

h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.2; }
.texte p { color: var(--doux); margin: 22px 0 0; max-width: 46ch; }
.texte .chapo { font-size: 19px; line-height: 1.55; color: var(--texte); opacity: .86; max-width: 40ch; }
.petit { font-size: 15px; }
.seul-mobile { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--pistache); color: var(--sur-pistache);
  font: 600 16px/1 var(--corps); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .bouton:hover { background: var(--pistache-vif); } }
.bouton:active { transform: scale(.97); }
.bouton--clair { background: rgba(22,25,21,.55); color: var(--texte); box-shadow: inset 0 0 0 1px rgba(238,240,230,.32); }
@media (hover: hover) and (pointer: fine) { .bouton--clair:hover { background: rgba(48,54,46,.75); } }

.lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--pistache-vif); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(189,211,131,.45); text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .lien:hover { text-decoration-color: currentColor; } }

.avis { margin: 30px 0 0; padding-left: 18px; border-left: 1px solid var(--pistache); }
.avis blockquote, .temoignages blockquote { margin: 0; font: italic 400 19px/1.45 var(--titre); color: var(--texte); }
.avis figcaption, .temoignages figcaption { margin-top: 10px; font-size: 14px; color: var(--discret); }

.encart { margin: 30px 0 0; max-width: 340px; }
.encart img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.encart--carre img { aspect-ratio: 4 / 3; }
.encart figcaption { margin-top: 10px; font-size: 14px; color: var(--discret); }

.familles { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.familles li { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--texte); background: rgba(238,240,230,.07); box-shadow: inset 0 0 0 1px var(--trait); }

/* Apparition douce du texte quand le chapitre arrive */
@media (prefers-reduced-motion: no-preference) {
  .js .texte > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .texte.vu > * { opacity: 1; transform: none; }
  .js .texte.vu > :nth-child(2) { transition-delay: .06s; }
  .js .texte.vu > :nth-child(3) { transition-delay: .12s; }
  .js .texte.vu > :nth-child(4) { transition-delay: .18s; }
  .js .texte.vu > :nth-child(5) { transition-delay: .24s; }
}

/* ---------- La boutique ---------- */
.chapitre--fin { min-height: 0; padding-top: 30vh; padding-bottom: 0; }
.fin { max-width: 1180px; margin: 0 auto; padding-bottom: 40px; }
.fin-tete { max-width: 640px; }
.fin-tete p { color: var(--doux); margin: 22px 0 0; max-width: 54ch; }

.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--trait); }
.info { display: flex; gap: 14px; }
.info > svg { width: 24px; height: 24px; color: var(--pistache); margin-top: 2px; }
.info h3 { font-family: var(--corps); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--discret); }
.info p { margin: 8px 0 0; color: var(--texte); line-height: 1.5; }
.info a { color: var(--pistache-vif); text-decoration: underline; text-decoration-color: rgba(189,211,131,.45); text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .info a:hover { color: var(--pistache-vif); } }
.info .lien { margin-top: 10px; font-size: 15px; }

.temoignages { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin: 72px 0 0; }
.temoignages figure { margin: 0; }
.temoignages blockquote { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }

.demande {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px;
  margin-top: 80px; padding: clamp(24px, 4vw, 48px);
  border-radius: 16px; background: rgba(22,25,21,.78);
  box-shadow: inset 0 0 0 1px var(--trait);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.demande-tete { grid-column: 1 / -1; max-width: 60ch; }
.demande-tete h3 { font-size: clamp(28px, 2.6vw, 36px); }
.demande-tete p { color: var(--doux); margin: 12px 0 8px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 14px; font-weight: 600; color: var(--texte); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(238,240,230,.28);
  background: rgba(238,240,230,.06); color: var(--texte);
  font: 400 16px/1.4 var(--corps);
  transition: border-color .2s ease, background-color .2s ease;
}
.champ select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--doux) 50%), linear-gradient(135deg, var(--doux) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ select option { background: var(--nuit-2); color: var(--texte); }
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--pistache); outline-offset: 2px; border-color: var(--pistache); background-color: rgba(238,240,230,.09); }
.champ input[aria-invalid="true"] { border-color: #f0a58f; }
.requis { font-weight: 400; color: var(--discret); }
.aide { margin: 0; font-size: 14px; color: var(--discret); }
.erreur { margin: 0; font-size: 14px; color: #f4b4a2; }
.demande-pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.confirmation { margin: 0; color: var(--pistache-vif); }

.pied { margin-top: 80px; padding: 28px 0 8px; border-top: 1px solid var(--trait); font-size: 14px; color: var(--discret); }
.pied p { margin: 0 0 6px; }

/* Repères de maquette : ce qui reste à demander à la boutique */
.trou { color: #e9c77a; font-size: 14px; }
.trou::before { content: "À vérifier · "; }

/* ---------- Écrans peu hauts ---------- */
@media (min-width: 761px) and (max-height: 820px) {
  .encart { max-width: 250px; margin-top: 22px; }
  .texte { padding: 84px 0 32px; }
  .texte p { margin-top: 16px; }
}

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .entete { height: 64px; gap: 12px; }
  .marque img { width: 38px; height: 38px; }
  .marque span { font-size: 18px; }
  .entete-tel { padding: 9px 14px; font-size: 14px; }
  .plan img { object-position: var(--pos-m, 50% 50%); }
  .plan--gauche::after, .plan--droite::after { background: linear-gradient(0deg, rgba(22,25,21,.96) 0%, rgba(22,25,21,.86) 45%, rgba(22,25,21,.35) 68%, rgba(22,25,21,0) 88%), linear-gradient(180deg, rgba(22,25,21,.6) 0, rgba(22,25,21,0) 18%); }
  .chapitre { min-height: 150vh; }
  .seul-mobile { display: inline; }
  .texte h2 br { display: none; }
  h2 { font-size: 33px; }
  .texte { margin: 0 calc(-1 * var(--marge));
    background: linear-gradient(180deg, rgba(22,25,21,0) calc(64svh - 160px), rgba(22,25,21,.9) calc(64svh - 8px), rgba(22,25,21,.9) calc(100% - 22vh), rgba(22,25,21,0) 100%); }
  .chapitre--ouverture .texte { background: linear-gradient(180deg, rgba(22,25,21,0) calc(46svh - 160px), rgba(22,25,21,.9) calc(46svh - 8px), rgba(22,25,21,.9) calc(100% - 22vh), rgba(22,25,21,0) 100%); }
  .texte { position: relative; min-height: 0; justify-content: flex-start; padding: 64svh var(--marge) 22vh; max-width: none; }
  .chapitre--ouverture .texte { padding-top: 46svh; }
  .chapitre--droite .texte { margin-left: calc(-1 * var(--marge)); }
  .encart { max-width: 260px; }
  .chapitre--fin { padding-top: 24vh; }
  .infos { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .temoignages { grid-template-columns: 1fr; gap: 32px; margin-top: 52px; }
  .demande { grid-template-columns: 1fr; margin-top: 56px; }
  .actions .bouton { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .entete-tel span { display: none; }
  .entete-tel { padding: 11px; }
  .actions .bouton { white-space: normal; }
}
