/* ============================================================================
   site.css — Le Capital Client / Sillage (v2)
   Charte : encre marine · cuivre · ivoire — Cormorant Garamond + Jost.

   CONTRAINTES MACHINE (documentées _ETAT.md 2026-07-05, MacBook 2015 GPU faible) :
   INTERDITS ABSOLUS → background-attachment:fixed, mix-blend-mode, backdrop-filter,
   filter animé, boucle rAF continue. Ils ont fait ramer le build précédent.
   ============================================================================ */

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

/* overflow-x DOIT être ici, PAS sur body : posé sur body, celui-ci devient son
   propre conteneur de défilement et les événements `scroll` n'arrivent plus sur
   window — le fil se fige et plus rien ne se réveille. Bug rencontré le 31/07. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  position: relative;   /* ancre la couche du fil sur toute la hauteur du document */
  background: var(--bg-courant);
  color: var(--texte-courant);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-cine) var(--ease-in-out-cine),
              color var(--dur-cine) var(--ease-in-out-cine);
}

/* ---------------------------------------------------------------- TYPO ---- */

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .38em;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.8rem); max-width: 20ch; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 64ch; }

.eyebrow, .surtitre {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--accent-clair);
  margin: 0 0 .9em;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); opacity: .84; }
.grand-texte { font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.5; max-width: 30ch; }
strong { font-weight: 600; }

/* Une phrase qui porte, détachée du flux : on ralentit la lecture. */
.declaration {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  line-height: 1.35;
  max-width: 34ch;
  margin: 1.9rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
}
.question-ancree {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(176, 112, 58, .3);
  border-radius: 4px;
  max-width: 52ch;
}

/* ------------------------------------------------------------ LAYOUT ---- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 48px);
  position: relative;
  z-index: 1;               /* le contenu passe DEVANT le fil */
}
.wrap--etroit { max-width: 780px; }

/* Le blanc se tient, il ne flotte pas. 108 px de padding de chaque côté
   donnaient 216 px de vide entre deux sections : le contenu s'y perdait au lieu
   d'y respirer. On resserre, et la hiérarchie typographique fait le travail. */
section { position: relative; padding: clamp(52px, 7vh, 88px) 0; }
.section-serre { padding: clamp(34px, 4.5vh, 56px) 0; }

/* Plein écran réservé au HERO. Le CTA final, lui, ne doit pas être noyé : il
   était rempli à 43 %, donc à moitié vide au moment de demander l'action. */
.scene--plein {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
#contact { min-height: 0; padding: clamp(72px, 10vh, 120px) 0; }

/* ------------------------------------------------- LE FIL DE SILLAGE ---- */
/* Couche de fond unique. Sa HAUTEUR est posée en JS = hauteur réelle du
   document. Surtout pas height:100% : ça vaudrait 100% du bloc conteneur
   (un viewport) et écraserait tout le tracé dans un seul écran.            */

#fil-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
#fil-svg { display: block; width: 100%; height: 100%; }

/* Le tracé parcouru : DISCRET. C'est un fond, pas un dessin.
   Valeurs reprises du prototype du 2026-07-05, qui avaient été validées. */
#fil-path {
  fill: none;
  stroke: #a9662a;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .26;
}

/* La comète : seule la portion juste derrière la pointe est vive. Trois traits
   empilés du plus large/pâle au plus fin/vif = la lueur, sans filter ni blur. */
#fil-comete path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
#fil-comete .c1 { stroke: var(--accent);       stroke-width: 5;   opacity: .13; }
#fil-comete .c2 { stroke: var(--accent-clair); stroke-width: 2.6; opacity: .32; }
#fil-comete .c3 { stroke: var(--fil-vif);      stroke-width: 1.4; opacity: .88; }

#fil-pointe circle { fill: var(--fil-vif); }
#fil-pointe .halo { fill: var(--accent-clair); opacity: .2; }

/* ------------------------------------------- DORMANT → ÉVEILLÉ (règle) ---- */
/* Tout [data-sillage-wake] naît dormant. Le passage de la pointe pose
   .is-awake. Irréversible : on ne rendort pas un capital.                    */

[data-sillage-wake] {
  transition: color var(--dur-slow) var(--ease-out-expo),
              border-color var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

/* ------------------------------------------------- AVANT / APRÈS ---- */

.bascule-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 2rem; }
.colonne { padding: 30px; border-radius: 5px; }
.colonne h3 {
  font-family: "Jost", sans-serif;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.4em;
}
.colonne ul { list-style: none; padding: 0; margin: 0; }
.colonne li {
  padding: .95rem 0;
  border-top: 1px solid currentColor;
  font-size: .99rem;
  line-height: 1.55;
}
.colonne li:first-of-type { border-top: 0; }
.colonne li span {
  display: block;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; opacity: .5; margin-bottom: .3em;
}
.colonne--avant { border: 1px solid rgba(120, 132, 150, .3); opacity: .62; }
.colonne--avant li { border-color: rgba(120, 132, 150, .22); }
.colonne--apres { border: 1px solid rgba(176, 112, 58, .45); }
.colonne--apres li { border-color: rgba(176, 112, 58, .2); }
.colonne--apres h3 { color: var(--accent-clair); }

/* ------------------------------------------------------- MÉTHODE ---- */

.jalon {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(176, 112, 58, .16);
  opacity: .34;
}
.jalon:first-child { border-top: 0; }
.jalon.is-awake { opacity: 1; }

.jalon__lettre {
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: #8894a6;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
.jalon.is-awake .jalon__lettre { color: var(--accent); transform: scale(1.06); }
.jalon h3 { margin-bottom: .2em; }
.jalon p { margin: 0; font-size: .97rem; opacity: .82; }

/* Le halo qui éclate quand le fil arrive SUR la lettre.
   Animation ONE-SHOT : elle se joue et s'arrête, rien ne tourne en boucle. */
.jalon__lettre::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 162, 107, .5), rgba(217, 162, 107, 0) 70%);
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}
.jalon.is-awake .jalon__lettre::after {
  animation: halo-eveil var(--dur-cine) var(--ease-out-expo) forwards;
}
@keyframes halo-eveil {
  0%   { opacity: 0; transform: scale(.6); }
  35%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* --------------------------------------------------- AUTRES BLOCS ---- */

.rien-a-faire ul { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.rien-a-faire li {
  font-size: 1.15rem;
  padding: .7rem 0 .7rem 2rem;
  position: relative;
}
.rien-a-faire li::before {
  content: "";
  position: absolute; left: 0; top: 1.35rem;
  width: 14px; height: 1px;
  background: var(--accent);
}

.triptyque { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.carte { border-top: 2px solid var(--accent); padding-top: 1.3rem; }
.carte h3 { font-family: "Jost", sans-serif; font-size: 1.02rem; font-weight: 600; }
.carte p { font-size: .97rem; opacity: .84; }
.carte__note { font-size: .88rem !important; opacity: .62 !important; font-style: italic; }

.fondateur { display: grid; grid-template-columns: 170px 1fr; gap: 36px; align-items: start; }
.fondateur__photo {
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  text-align: center; padding: 12px;
  font-size: .74rem; font-style: italic; opacity: .5;
}

.offre-carte {
  border: 1px solid rgba(176, 112, 58, .4);
  border-radius: 6px;
  padding: clamp(26px, 3.4vw, 38px);
  margin-top: 1.9rem;
}
.offre-liste { list-style: none; padding: 0; margin: 0 0 2rem; }
.offre-liste li {
  padding: .85rem 0 .85rem 1.9rem;
  border-bottom: 1px solid rgba(176, 112, 58, .14);
  position: relative;
  font-size: 1rem;
}
.offre-liste li:last-child { border-bottom: 0; }
.offre-liste li::before {
  content: "";
  position: absolute; left: 0; top: 1.5rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.offre-prix { padding-top: 1.4rem; border-top: 1px solid rgba(176, 112, 58, .3); }
.prix { font-family: "Cormorant Garamond", Georgia, serif; font-size: 3rem; line-height: 1; margin: 0 0 .4em; }
.prix-note { font-size: .93rem; opacity: .74; }

.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 1.9rem; }
.garantie { border-top: 1px solid rgba(176, 112, 58, .3); padding-top: 1.1rem; }
.garantie h3 { font-family: "Jost", sans-serif; font-size: 1rem; font-weight: 600; }
.garantie p { font-size: .95rem; margin: 0; opacity: .8; }

/* ------------------------------------------------------------- FAQ ---- */

.faq { margin-top: 1.9rem; }
.faq details {
  border-top: 1px solid rgba(176, 112, 58, .22);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1rem 0 0; font-size: .99rem; opacity: .84; }

/* --------------------------------------------------------------- CTA ---- */

.cta-bloc { margin: 2rem 0 0; max-width: none; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fdfbf7;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-weight: 600; font-size: 1.02rem;
  padding: 17px 38px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out-expo),
              transform var(--dur-fast) var(--ease-out-expo);
}
.btn:hover { background: var(--accent-profond); border-color: var(--accent-profond); }
.btn:focus-visible { outline: 2px solid var(--accent-clair); outline-offset: 3px; }
.btn--ligne { background: transparent; color: inherit; }
.btn--ligne:hover { background: var(--accent); color: #fdfbf7; }
.btn--large { padding: 21px 48px; font-size: 1.1rem; }
.cta-note { font-size: .87rem; opacity: .58; margin-top: 1.1rem; }

/* ------------------------------------------------ BASCULE DE LUMIÈRE ---- */
/* UNE seule transition dans toute la page, et elle veut dire quelque chose :
   sombre tant qu'on parle du capital qui dort, clair à partir du moment où
   la méthode le réveille. Le fil allume la page elle-même.                  */

body.lumiere {
  --bg-courant: var(--bg-acte-III);
  --texte-courant: var(--ink);
  --fil-vif: var(--accent-profond);
}
body.lumiere .eyebrow,
body.lumiere .surtitre { color: var(--accent-profond); }
body.lumiere .colonne--avant { border-color: rgba(27, 42, 65, .2); }
body.lumiere .jalon__lettre { color: #9aa4b2; }

/* ------------------------------------------------------------ FOOTER ---- */

footer {
  position: relative; z-index: 1;
  padding: clamp(56px, 8vh, 90px) 0 40px;
  border-top: 1px solid rgba(27, 42, 65, .14);
  font-size: .93rem;
}
.footer-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 2.6rem;
}
.footer-marque .sign {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: .04em;
  margin: 0;
}
.footer-baseline { font-style: italic; color: var(--accent-profond); margin: .2em 0 1em; }
.footer-mini { font-size: .85rem; opacity: .6; margin: 1em 0 0; }
.footer-col h3 {
  font-family: "Jost", sans-serif;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: .55;
  margin-bottom: 1.1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .3rem 0; }
.footer-col a, .footer-bas a { color: inherit; text-decoration: none; opacity: .82; }
.footer-col a:hover { opacity: 1; color: var(--accent-profond); text-decoration: underline; }
.footer-bas {
  border-top: 1px solid rgba(27, 42, 65, .12);
  padding-top: 1.6rem;
  font-size: .84rem;
  opacity: .58;
}
.footer-mentions { font-style: italic; margin: .5em 0 0; }

/* -------------------------------------------------------- RESPONSIVE ---- */

/* Cibles tactiles : 44 px minimum partout où l'on tape (WCAG). Les liens de
   footer et les questions de FAQ tombaient à 22 et 35 px. */
.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-col a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

@media (max-width: 940px) {
  /* L'avant/après empile AVANT d'être serré : deux colonnes de 320 px de texte
     long, c'est illisible. Mieux vaut lire l'un puis l'autre. */
  .bascule-grille { grid-template-columns: 1fr; }
  .colonne--avant { opacity: .75; }
}
@media (max-width: 860px) {
  .footer-grille { grid-template-columns: 1fr 1fr; gap: 32px; }
  .triptyque, .garanties { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  h2 { max-width: none; }
  .fondateur { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .jalon { grid-template-columns: 2.8rem 1fr; gap: 1rem; }
  .jalon__lettre { width: 2.8rem; height: 2.8rem; font-size: 1.4rem; }
  .colonne { padding: 22px; }
  .prix { font-size: 2.4rem; }
  .question-ancree { padding: 1.1rem 1.2rem; }
  .faq summary { font-size: 1.15rem; }
  .declaration { border-left: 0; border-top: 2px solid var(--accent); padding: 1.2rem 0 0; }
  section { padding: clamp(60px, 9vh, 100px) 0; }
  .scene--plein { min-height: auto; padding-top: 100px; padding-bottom: 100px; }
  .footer-grille { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .jalon.is-awake .jalon__lettre::after { animation: none; }
}

/* ------------------------------------------------- FORMULAIRE (v3) ------- */
/* La section contact vit après la bascule de lumière : fond clair, encre.    */

.form-releve { margin-top: 2.2rem; }
.form-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ--plein { grid-column: 1 / -1; }
.champ label {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .78;
}
.champ .req { color: var(--accent-profond, #a9662a); }
.champ input,
.champ select,
.champ textarea {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: inherit;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(27, 42, 65, .28);
  border-radius: 4px;
  padding: 13px 14px;
  width: 100%;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.champ [aria-invalid="true"] { border-color: #a23b2e; }
.champ-err { font-size: .82rem; color: #a23b2e; margin: 0; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .96rem; margin-top: .4rem; min-height: 1.3em; }
.form-status.ok { color: #3f6b4a; }
.form-status.err { color: #a23b2e; }

/* Portrait réel du fondateur (remplace le rond en pointillés « photo à venir »). */
.fondateur__photo--img {
  padding: 0;
  overflow: hidden;
  opacity: 1;
  font-style: normal;
  border-width: 2px;
}
.fondateur__photo--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

@media (max-width: 720px) {
  .form-grille { grid-template-columns: 1fr; }
}

/* Sans JS, pas de fil : rien ne doit rester dormant. */
html.no-js .jalon { opacity: 1; }
html.no-js .jalon__lettre { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .jalon { opacity: 1; }
}
