/* Fraunces variable : UN seul fichier, tout l'axe de graisse (l'ancien couple 400/600 servait
   deux fois le même octet, et le 600 — h1, h2, boutons — n'était jamais préchargé). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fraunces-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fraunces-italic-400.woff2') format('woff2'); }

/* « Une Nuit, Trois Lumières » v2 — une encre de nuit pour toute la maison, l'occasion vit dans
   l'accent. Défauts = mariage (les guides et les pages légales sont tous du monde mariage).
   --accent ne sert PLUS à écrire du petit texte : filets, chiffres, lettrines, italiques de titre.
   C'est cette contrainte-là qui écrasait tout accent chaud vers le brun. */
:root {
  --nuit: #15161d; --encre: #1b2440; --texte-doux: #4d5776;
  --papier: #f8f5f0; --creme: #f0ece4;
  --accent: #cf5520; --accent-doux: #ffbd93;
  --action: #b94f24; --action-doux: #b24d25; --filet: #b3261e; --lavis: #dde4f3;
  --ligne: color-mix(in srgb, var(--encre) 15%, var(--papier));
  --bord-champ: color-mix(in srgb, var(--encre) 55%, var(--papier));
  --cadre: 74rem; --mesure: 34rem; --large: 52rem; --marge: clamp(1.4rem, 5vw, 5.5rem);
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1); --serif: 'Fraunces', Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); background: var(--papier); color: var(--encre); line-height: 1.65; font-size: 1.06rem; }

/* Grille éditoriale : UN axe gauche pour toute la page, héro compris, et trois mesures.
   Avant : héro collé à gauche, tout le reste centré dans 680 px — 377 px de saut à 1440 px. */
.etroit, .contenu, .hero-contenu { width: 100%; max-width: var(--cadre); margin-inline: auto; padding-inline: var(--marge); }
.etroit > h2, .etroit > p, .contenu > h2, .contenu > p, .etroit > article, .contenu > article { max-width: var(--mesure); }
.etapes, .exigences, .difference, .escalier, .exergues, .plaques, .grille-avis, .feuille, article table { max-width: var(--large); }

header.site { background: var(--nuit); }
header.site.sur-photo { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: linear-gradient(rgba(21,22,29,0.55), transparent); }
.ligne-haut { display: flex; justify-content: space-between; align-items: baseline; width: 100%; max-width: var(--cadre); margin-inline: auto; padding: 1.2rem var(--marge); }
header.site .contenu { display: flex; justify-content: space-between; align-items: baseline; padding-block: 1.2rem; }
/* L'atelier n'avait aucun <h1> : ses quatre écrans sont des <h2> et un seul est visible
   à la fois. Le titre de page devient le h1 unique, sans changer son apparence. */
.titre-atelier { font-size: inherit; font-weight: inherit; line-height: 1; }
.marque { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--creme); }
.marque em { color: var(--accent-doux); font-style: italic; }
.lien-atelier { font-size: 0.85rem; color: rgba(243,234,217,0.72); text-decoration: none; }
.lien-atelier:hover { color: var(--creme); }
.scrolled { background: var(--nuit) !important; }
.scrolled .marque, .scrolled .lien-atelier { color: var(--creme); }

.hero { min-height: 100vh; min-height: 100svh; display: grid; align-content: end; color: var(--creme); position: relative; background: var(--nuit); }
.hero-contenu { padding-block: 6rem 12vh; }
/* T-0007 : sur téléphone, le haut de l'ébauche affleure sous le hero — signal de
   continuité qui invite au scroll au lieu du rebond. */
@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero-contenu { padding-block: 4.5rem 5vh; }
}
.hero h1 { color: var(--creme); font-size: clamp(2.8rem, 6.8vw, 6.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 1.5rem; max-width: 14em; animation: lever 0.9s var(--ease) both; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-doux); }
.hero .sous { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(243,234,217,0.86); max-width: 28em; margin-bottom: 2.2rem; animation: lever 0.9s 0.15s var(--ease) both; }
.zone-cta { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; animation: lever 0.9s 0.3s var(--ease) both; }
.note-hero { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(243,234,217,0.78); max-width: 30em; animation: lever 0.9s 0.4s var(--ease) both; }
@keyframes lever { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Deux familles jamais confondues : .bouton (essai) / .bouton-achat (achat) — même
   traitement plein depuis T-0010 (« le chemin de l'argent devient premium ») : 2 boutons
   d'achat sur 3 en simple contour ne convertissaient pas mieux qu'un escalier plein. */
.bouton, .bouton-achat {
  display: inline-block; text-decoration: none; padding: 1rem 2.2rem; border-radius: 99px; text-wrap: balance;
  font-size: 1rem; font-weight: 600; font-family: inherit; border: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.bouton, .bouton-achat { background: var(--action); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.bouton-achat.suspendu { background: var(--ligne); color: var(--texte-doux); box-shadow: none; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover, .bouton-achat:hover:not(.suspendu) { background: var(--action-doux); transform: translateY(-2px); }
}
.bouton:active, .bouton-achat:active { transform: translateY(0) scale(0.97); transition-duration: 150ms; }
.bouton:focus-visible, .bouton-achat:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 3px rgba(255,255,255,0.85); }
.lien-fleche { color: inherit; text-decoration: none; font-size: 1rem; opacity: 0.85; border-bottom: 1px solid transparent; }
.lien-fleche:hover { opacity: 1; border-bottom-color: currentColor; }

main section { padding: clamp(4rem, 9vw, 8rem) 0; scroll-margin-top: 4.5rem; }
main section + section:not(.manifeste):not(.bande-encre):not(.bande-photo) { border-top: 1px solid var(--ligne); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 1.3rem; text-wrap: balance; }
.section-sous { color: var(--texte-doux); margin-bottom: 2.4rem; font-size: 1.06rem; }
/* L'accent vit comme un filet, jamais comme du petit texte : c'est ce qui le libère du 4,5:1. */
.eyebrow { display: flex; align-items: center; gap: 0.75rem; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem; color: var(--accent-doux); margin-bottom: 1.2rem; }
.eyebrow::before { content: ''; flex: none; width: 1.7rem; height: 2px; background: currentColor; }
.eyebrow.sombre { color: var(--texte-doux); }
.eyebrow.sombre::before { background: var(--accent); }

.etapes { display: grid; gap: 1.8rem; margin-top: 2.4rem; }
.etape { display: flex; gap: 1.4rem; align-items: baseline; }
.etape .num { color: var(--accent); font-size: 2.4rem; font-style: italic; min-width: 2.2rem; }
.etape p { font-size: 1.06rem; max-width: 30em; }
/* « L'exigence » : liste à filet suspendu — volontairement une autre famille que .etapes numérotées. */
.exigences { margin-top: 2.4rem; }
.exigences p { padding: 1.5rem 0 1.5rem 2rem; border-top: 1px solid var(--ligne); position: relative; font-size: 1.14rem; max-width: 34em; }
.exigences p::before { content: ''; position: absolute; left: 0; top: 1.6rem; width: 0.9rem; height: 2px; background: var(--accent); }

.bande-encre { background: var(--nuit); color: var(--creme); position: relative; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bande-encre > * { position: relative; z-index: 1; }
.manifeste { padding: clamp(5rem, 11vw, 10rem) 0; }
.manifeste h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 13em; margin-bottom: 1.6rem; }
.manifeste p { max-width: 32em; font-size: 1.12rem; color: rgba(243,234,217,0.8); }
.manifeste-signature { margin-top: 2rem !important; font-style: italic; font-size: 1.45rem !important; color: var(--accent-doux) !important; }

.bande-photo { min-height: 68vh; position: relative; display: grid; align-content: end; padding: 6rem 0 !important; }
.bande-photo blockquote { color: var(--creme); font-size: clamp(1.6rem, 4vw, 2.9rem); font-style: italic; line-height: 1.22; max-width: 16em; letter-spacing: -0.02em; }

.extrait { border-left: 2px solid var(--accent); padding: 0.4rem 0 0.4rem 2rem; font-size: 1.2rem; line-height: 1.8; margin: 2.4rem 0; max-width: 38em; }
.extrait p { font-style: italic; white-space: pre-wrap; }
.extrait p::first-letter { font-size: 2.1em; line-height: 1; color: var(--accent); font-style: normal; }
.extrait footer { margin-top: 1.2rem; font-size: 0.85rem; font-style: normal; color: var(--texte-doux); }
.apres-essai { margin: 2rem 0; font-size: 1.1rem; max-width: 34em; }
.apres-essai em { color: var(--accent); font-weight: 600; }

/* Escalier : le prix grandit jusqu'à la vedette (19 €) puis plafonne à 1,8rem — le 60 € ne l'écrase plus. */
.escalier { margin-top: 2.4rem; border-top: 3px double var(--filet); }
.rang { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.9rem 0.4rem; border-bottom: 1px solid var(--ligne); }
/* Vedette : traitement de conversion venu de main (aplat sur le bouton du palier recommandé,
   l'essai gratuit n'est plus le bouton le plus fort). Son `.rang-prix { 2.2rem }` est écarté :
   la vedette est nth-child(3), il casserait l'échelle où le prix grandit avec la marche. */
/* La vedette se distingue par sa CARTE (dégradé + liseré), plus par son bouton depuis
   T-0010 : tous les .bouton-achat sont pleins désormais, l'ancien traitement dédié ici
   serait devenu un doublon silencieux du style de base. */
.rang.vedette { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%); margin-inline: -0.4rem; padding: 2.3rem 0.8rem; box-shadow: inset 0 0 0 1px var(--accent); }
.rang.vedette .rang-details { color: var(--encre); font-size: 0.92rem; }
.rang:last-child { border-bottom: none; border-top: 2px solid var(--accent); margin-top: 0.4rem; }
.rang-nom { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
/* Badge en encre et non en filet rouge : le rouge vif de « La plus choisie » tombait sur la
   landing d'éloge funèbre. Le filet reste la signature du double trait de l'escalier. */
.badge { background: var(--encre); color: var(--papier); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.24rem 0.7rem; border-radius: 99px; font-weight: 600; }
.rang-accroche { font-style: italic; color: var(--texte-doux); margin: 0.15rem 0 0.5rem; }
.rang-details { list-style: none; padding: 0; margin: 0.3rem 0 0; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--texte-doux); max-width: 34em; }
.rang-details li { padding-left: 1.1rem; position: relative; }
.rang-details li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.rang-achat { text-align: right; flex-shrink: 0; }
.rang-prix { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.rang:nth-child(3) .rang-prix { font-size: 1.8rem; }
.rang:nth-child(4) .rang-prix { font-size: 1.8rem; }
.rang.gratuit .rang-prix { font-size: 1.15rem; font-style: italic; font-weight: 400; }
/* Vérité déjà en FAQ, répétée sous chaque prix achetable : le remboursement n'est jamais
   une surprise découverte trois clics plus loin. */
.rang-remboursement { font-size: 0.78rem; color: var(--texte-doux); margin-top: 0.5rem; }

.grille-avis { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.4rem; }
.avis { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.avis .etoiles { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.avis footer { margin-top: 0.8rem; font-size: 0.85rem; color: var(--texte-doux); font-style: italic; }
details { border-bottom: 1px solid var(--ligne); padding: 1.05rem 0; max-width: var(--mesure); }
summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; }
details p { padding: 0.7rem 0 0.3rem; color: var(--texte-doux); }

.site-pied { margin-top: 5rem; padding: 4.5rem 0; }
.pied { text-align: center; }
.pied > * { max-width: none; margin-inline: auto; }
/* Crème et accent-doux ne sont lisibles QUE sur fond encre. L'atelier réutilise .pied sur
   fond ivoire — <footer class="site"> n'a pas de fond, le sélecteur est header.site — et
   ses mentions y tombaient à 1,07:1. Le clair est le défaut, l'encre est le cas scopé.
   Même correctif que main, étendu à .marque qui restait en crème sur ivoire. */
.pied .marque { font-size: 1.3rem; color: var(--encre); }
.pied .marque em { color: var(--accent); }
.pied .tagline { font-style: italic; color: var(--accent); margin: 0.5rem 0 1.6rem; font-size: 1.15rem; }
.pied .mentions, .pied .mentions a { font-size: 0.83rem; color: var(--texte-doux); }
.bande-encre .pied .marque { color: var(--creme); }
.bande-encre .pied .marque em { color: var(--accent-doux); }
.bande-encre .pied .tagline { color: var(--accent-doux); }
.bande-encre .pied .mentions, .bande-encre .pied .mentions a { color: rgba(243,234,217,0.72); }

.formulaire { display: grid; gap: 1.3rem; max-width: var(--mesure); }
.champ label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.champ .aide { font-size: 0.87rem; color: var(--texte-doux); margin-bottom: 0.4rem; }
/* Viser les types de saisie, pas « text » seul : un champ e-mail restait sinon à sa
   largeur native, minuscule à côté des autres. */
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 0.8rem 0.7rem; border: 1px solid var(--bord-champ); border-radius: 2px;
  font-family: var(--serif); font-size: 1.05rem; color: var(--encre); transition: border-color 0.2s, box-shadow 0.2s;
  background: color-mix(in srgb, var(--papier) 55%, #fff);
}
textarea { min-height: 5.6rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 22%, transparent); }
.erreur { color: var(--filet); padding: 0.8rem 0; }
.resultat { border-left: 2px solid var(--accent); padding: 0.4rem 0 0.4rem 2rem; margin-top: 1.8rem; white-space: pre-wrap; font-size: 1.08rem; line-height: 1.8; max-width: 38em; }
.actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.onglets { display: flex; gap: 0.5rem; margin: 1.8rem 0 0.4rem; flex-wrap: wrap; }
.onglet { font-family: inherit; font-size: 0.92rem; padding: 0.5rem 1.2rem; border-radius: 99px; border: 1px solid var(--bord-champ); background: transparent; cursor: pointer; color: var(--encre); }
.onglet.actif { background: var(--nuit); color: var(--creme); border-color: var(--nuit); }
.discret { font-size: 0.9rem; color: var(--texte-doux); }
.cache { display: none; }
.attente { padding: 3rem 0; color: var(--texte-doux); font-style: italic; font-size: 1.1rem; }

body > .bande-encre header.site { position: static; background: none; }
main.etroit, main.contenu { padding-top: 2.5rem; }

.cta-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne);
  background: color-mix(in srgb, var(--papier) 96%, transparent); transition: opacity 0.3s var(--ease);
}
.cta-mobile .bouton { display: block; text-align: center; }
@media (max-width: 640px) {
  /* Affichée seulement une fois le hero quitté (.visible, posé par l'observateur du
     gabarit) — sinon elle double le bouton du hero sur le même écran. */
  .cta-mobile { display: block; opacity: 0; pointer-events: none; }
  .cta-mobile.visible:not(.masque) { opacity: 1; pointer-events: auto; }
  body { padding-bottom: 4.4rem; }
  .hero-contenu { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .hero .sous { font-size: 1.02rem; }
  /* « Écrire la première ligne — ensemble » fait 35 caractères : a 1rem avec 2,2rem de
     rembourrage il demande ~370 px pour 342 px disponibles, et passait a la ligne. */
  .zone-cta .bouton { width: 100%; text-align: center; }
  .bouton, .bouton-achat { font-size: 0.95rem; padding: 0.95rem 1.2rem; }
  /* Le cadrage par occasion vise le grand ecran. En portrait, `cover` rogne 77 % de la
     largeur : un cadrage lateral sortait le sujet du champ (le portrait de la retraite
     disparaissait). Sur telephone on revient au centre. */
  .hero.avec-photo::after { background-position: center !important; }
  .rang { flex-direction: column; align-items: flex-start; gap: 1rem; }
  /* Grille plutôt que flex : prix et bouton restent sur une ligne, la ligne de
     remboursement (3e enfant, quand présente) passe seule en dessous, pleine largeur. */
  .rang-achat { text-align: left; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2rem; row-gap: 0.4rem; }
  .rang-achat .rang-remboursement { grid-column: 1 / -1; margin-top: 0; }
  .rang-prix { margin-bottom: 0; }
  .bouton-achat { min-width: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .sous, .zone-cta, .note-hero { animation: none !important; }
  html { scroll-behavior: auto; }
  .bouton:hover, .bouton-achat:hover, .bouton:active, .bouton-achat:active { transform: none !important; }
  .cta-mobile { transition: none !important; }
}

/* Récupérer une clé perdue, sans avoir à nous écrire et à attendre une réponse.
   Replié par défaut : celui qui vient de payer n'a pas à voir ce cas d'exception. */
.renvoi { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--ligne); }
.renvoi summary { cursor: pointer; font-size: 0.92rem; color: var(--texte-doux); }
.renvoi summary:hover { color: var(--encre); }
.renvoi > *:not(summary) { margin-top: 0.8rem; }
.renvoi .aide { font-size: 0.87rem; color: var(--texte-doux); max-width: 34em; }

/* CGV, confidentialité, mentions : ce sont des documents qu'on lit, pas des sections
   d'argumentaire. Les h2 de 3,3rem prévus pour une landing y écrasaient le titre. */
.texte-legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.5rem; }
.texte-legal h2 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; margin: 2.5rem 0 0.6rem; }
.texte-legal p { margin: 0.75rem 0; max-width: var(--mesure); line-height: 1.62; }
.texte-legal section { padding: 1.5rem 0 4rem; }
