/* ============================================================
   Hommages vidéo — V3
   Nuit profonde, dégradé discret, une seule couleur : le bleu brume.
   Jost (fine) pour tout, de 200 à 400. Rien qui crie.
   ============================================================ */

@font-face { font-family: "Jost"; src: url("fonts/Jost-normal.woff2") format("woff2"); font-weight: 200 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-italic.woff2") format("woff2"); font-weight: 200 300; font-style: italic; font-display: swap; }

:root {
  /* Palette V4 : ivoire, bleu, gris argent (validée par Ugo le 11/10/2026) */
  --nuit: #101B2B;           /* bleu nuit : ouverture, bloc vidéo, encart final, pied de page */
  --noir: var(--nuit);
  --fond: #F6F3ED;           /* ivoire */
  --fond-rgb: 246, 243, 237;
  --fond-2: #EFEBE3;
  --surface: rgba(255, 255, 255, .62);
  --surface-2: #FFFFFF;
  --champ: #FFFFFF;
  --bord: rgba(20, 35, 58, .10);
  --bord-2: rgba(20, 35, 58, .18);
  --bord-3: rgba(20, 35, 58, .32);
  --argent: #B4BAC2;         /* gris argent : filets, puces */
  /* Textes */
  --texte: #14233A;          /* bleu nuit : 14,5:1 sur ivoire */
  --texte-2: #485366;        /* 7,4:1 */
  --texte-3: #6A7280;        /* 4,7:1 : petits libellés */
  /* Accent */
  --accent-rgb: 60, 90, 128;
  --brume: #3C5A80;          /* bleu : 6,6:1 sur ivoire */
  --brume-clair: #2A4365;    /* survol */
  --brume-voile: rgba(60, 90, 128, .10);

  --police: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: .78rem; --t-sm: .92rem; --t-base: 1.0625rem; --t-md: 1.3rem; --t-lg: 1.65rem;
  --t-xl: 2.1rem; --t-2xl: clamp(2rem, 4vw, 2.9rem); --t-3xl: clamp(2.6rem, 6vw, 4.6rem);

  --e-1: .25rem; --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-5: 1.25rem; --e-6: 1.5rem;
  --e-8: 2rem; --e-10: 2.5rem; --e-12: 3rem; --e-16: 4rem; --e-24: 6rem; --e-32: 8rem;
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
  --conteneur: 1200px;
  --mesure: 60ch;
  --courbe: cubic-bezier(.4, 0, .2, 1);
  --duree: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--fond); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--texte); font: 300 var(--t-base)/1.7 var(--police); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 200; line-height: 1.08; letter-spacing: -.012em; margin: 0; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-md); font-weight: 300; line-height: 1.25; }
p { margin: 0 0 var(--e-4); max-width: var(--mesure); }
em, .accent { font-style: normal; color: var(--brume); }
strong, b { font-weight: 400; }
:focus-visible { outline: 1.5px solid var(--brume); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; top: var(--e-4); left: var(--e-4); width: auto; height: auto; clip: auto; z-index: 100; background: var(--texte); color: var(--fond); padding: var(--e-2) var(--e-4); border-radius: var(--r-s); }

/* Fond en dégradé, fixe et léger (un seul calque, pas de background-attachment) */
.fond-degrade { position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(65% 55% at 10% 15%, rgba(var(--accent-rgb), .09), transparent 70%),
  radial-gradient(60% 50% at 92% 70%, rgba(var(--accent-rgb), .07), transparent 70%),
  radial-gradient(45% 40% at 50% 112%, rgba(180, 186, 194, .18), transparent 70%),
  var(--fond); }
.fond-degrade::after { content: ""; position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

.conteneur { width: min(100% - 2 * var(--e-6), var(--conteneur)); margin-inline: auto; }
.surtitre { font: 400 var(--t-xs)/1 var(--police); letter-spacing: .22em; text-transform: uppercase; color: var(--texte-3); margin: 0 0 var(--e-5); display: inline-flex; align-items: center; gap: var(--e-3); }
.surtitre::before { content: ""; width: 18px; height: 1px; background: var(--brume); }
.centre .surtitre::before, .ouverture .surtitre::before { display: none; }
.chapo { font-size: var(--t-md); color: var(--texte-2); line-height: 1.6; font-weight: 300; }
.note { font-size: var(--t-sm); color: var(--texte-3); margin-top: var(--e-6); }

/* Bandeau maquette */
.bandeau-maquette { display: none; background: var(--brume-voile); color: var(--brume-clair); font-size: var(--t-xs); letter-spacing: .04em; text-align: center; padding: var(--e-2) var(--e-4); }
.est-maquette .bandeau-maquette { display: block; }

/* En-tête : verre sombre */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(var(--fond-rgb), .82); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); border-bottom: 1px solid var(--bord); transition: background-color var(--duree) var(--courbe), border-color var(--duree) var(--courbe); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: var(--e-6); min-height: 72px; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.logo img { height: 52px; width: auto; display: block; transition: opacity var(--duree) var(--courbe); }
.logo:hover img { opacity: .85; }
.logo-pied img { height: 80px; }
@media (max-width: 760px) { .logo img { height: 44px; } }
.logo b { font: 300 1.3rem/1.1 var(--police); letter-spacing: .02em; }
.logo small { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--texte-3); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: var(--e-8); }
.menu a:not(.btn) { text-decoration: none; font-size: var(--t-sm); color: var(--texte-2); padding: var(--e-2) 0; border-bottom: 1px solid transparent; transition: color var(--duree) var(--courbe), border-color var(--duree) var(--courbe); }
.menu a:not(.btn):hover { color: var(--texte); border-color: var(--brume); }
.menu a:not(.btn)[aria-current="page"] { color: var(--texte); border-color: var(--texte-3); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--bord-2); border-radius: var(--r-s); background: transparent; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1px; background: var(--texte); position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.entete.sur-ouverture { margin-bottom: -73px; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.entete.sur-ouverture.plein { background: rgba(var(--fond-rgb), .86); border-bottom-color: var(--bord); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: 48px; padding: 0 var(--e-6); border-radius: 999px; font: 400 var(--t-sm)/1 var(--police); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color var(--duree) var(--courbe), color var(--duree) var(--courbe), border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.btn:active { transform: translateY(1px); }
.btn-principal { background: var(--texte); color: var(--fond); }
.btn-principal:hover { background: var(--brume-clair); }
.btn-discret { border-color: var(--bord-3); color: var(--texte); background: transparent; }
.btn-discret:hover { border-color: var(--brume); background: var(--brume-voile); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.fleche { display: inline-block; transition: transform var(--duree) var(--courbe); }
.btn:hover .fleche { transform: translateX(3px); }
.lien { color: var(--brume); text-decoration: none; font-size: var(--t-sm); font-weight: 400; display: inline-flex; gap: var(--e-2); align-items: center; }
.lien:hover { color: var(--brume-clair); }
.actions { display: flex; flex-wrap: wrap; gap: var(--e-3); margin-top: var(--e-8); }

/* Sections */
.section { padding-block: var(--e-24); position: relative; }
.section-serree { padding-block: var(--e-16); }
.tete-section { max-width: 720px; margin-bottom: var(--e-12); }
.tete-section h2 { margin-bottom: var(--e-4); }
.centre { text-align: center; margin-inline: auto; }
.centre p { margin-inline: auto; }
.nuit, .papier { background: transparent; } /* compatibilité avec les anciennes pages : tout est sombre */

/* ================= OUVERTURE (les mains) ================= */
.ouverture { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--noir); display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.ouverture::after { content: ""; position: absolute; inset: auto 0 0; height: 22vh; background: linear-gradient(to bottom, transparent, var(--fond)); z-index: 1; pointer-events: none; }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--noir); isolation: isolate; overflow: hidden; }
.main { position: absolute; left: 50%; top: 71%; width: max(92vw, 132vh); max-width: none; height: auto; }
.main-vivant { transform: translate(calc(-50% - 6vw), -50%); }
.main-absent-cadre { position: absolute; inset: 0; mix-blend-mode: screen; animation: presence 7s ease-in-out infinite alternate; }
.main-absent { transform: translate(calc(-50% + 6vw), -50%); }
@keyframes presence { from { opacity: .72; } to { opacity: 1; } }
.lueur { position: absolute; left: 50%; top: 68%; width: 80vw; height: 80vw; min-width: 640px; min-height: 640px; border-radius: 50%; transform: translate(-50%, -50%) scale(.9); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22) 0%, rgba(var(--accent-rgb), .09) 22%, rgba(var(--accent-rgb), .025) 50%, rgba(var(--accent-rgb), 0) 75%); mix-blend-mode: screen; }
.grain { position: absolute; inset: -50%; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.ouverture-texte { position: relative; z-index: 2; text-align: center; padding: calc(72px + 8vh) var(--e-6) 0; max-width: 820px; }
.ouverture-texte h1 { font-weight: 200; margin-bottom: var(--e-6); letter-spacing: -.02em; }
.ouverture-texte .chapo { margin-inline: auto; max-width: 44ch; }
.ouverture-texte .actions { justify-content: center; }
.defiler { position: absolute; z-index: 2; bottom: var(--e-8); left: 50%; transform: translateX(-50%); width: 44px; height: 56px; display: grid; place-items: center; }
.defiler span { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--brume)); animation: defile 2.4s var(--courbe) infinite; transform-origin: top; }
@keyframes defile { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Ouverture des pages intérieures */
.hero { padding-block: var(--e-16) var(--e-12); }
.hero .conteneur { display: grid; gap: var(--e-12); align-items: end; }
.hero h1 { margin-bottom: var(--e-6); }

/* ================= BENTO ================= */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(170px, auto); gap: var(--e-4); }
.carte, .tuile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); padding: var(--e-8); display: flex; flex-direction: column; gap: var(--e-3); text-decoration: none; transition: border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe); }
a.tuile:hover, a.carte:hover { border-color: var(--bord-2); background: var(--surface-2); }
a.tuile:hover .fleche { transform: translateX(3px); }
.tuile .etiquette, .carte .etiquette { font: 400 var(--t-xs)/1.5 var(--police); letter-spacing: .2em; text-transform: uppercase; color: var(--texte-3); }
.tuile h3 { font-size: var(--t-lg); font-weight: 200; }
.tuile p { color: var(--texte-2); font-size: var(--t-sm); margin: 0; }
.tuile .bas { margin-top: auto; }
.t-8 { grid-column: span 8; } .t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-12 { grid-column: span 12; }
.h-2 { grid-row: span 2; }
.chiffre { font: 200 clamp(3.5rem, 7vw, 5.5rem)/.9 var(--police); letter-spacing: -.03em; color: var(--texte); }
.chiffre small { font-size: .35em; color: var(--brume); letter-spacing: 0; margin-left: .15em; }
.icone { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bord-2); display: grid; place-items: center; color: var(--brume); flex: none; }
.icone svg { width: 20px; height: 20px; }

/* Tuile vidéo */
.tuile-film { padding: 0; min-height: 420px; background: var(--noir); justify-content: flex-end; }
.tuile-film img { position: absolute; left: 50%; top: 58%; width: 125%; max-width: none; height: auto; aspect-ratio: 3 / 2; transform: translate(-50%, -50%); opacity: .85; transition: transform 900ms var(--courbe), opacity 900ms var(--courbe); }
.tuile-film:hover img { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
.tuile-film .contenu { position: relative; z-index: 1; padding: var(--e-8); background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); display: flex; align-items: end; justify-content: space-between; gap: var(--e-6); }
.lecture { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(236, 238, 241, .45); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 1; transition: border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.lecture::after { content: ""; width: 14px; height: 18px; background: var(--texte); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 4px; }
.tuile-film:hover .lecture { border-color: var(--brume); transform: translate(-50%, -50%) scale(1.05); }

/* Tuile dépôt de photos */
.zone-mini { flex: 1; min-height: 150px; border: 1px dashed rgba(var(--accent-rgb), .4); border-radius: var(--r-m); display: grid; place-items: center; text-align: center; color: var(--texte-2); font-size: var(--t-sm); background: rgba(var(--accent-rgb), .03); transition: border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe); }
a.tuile:hover .zone-mini { border-color: var(--brume); background: var(--brume-voile); }
.zone-mini svg { width: 28px; height: 28px; margin: 0 auto var(--e-2); color: var(--brume); }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-4); counter-reset: e; }
.etapes li { counter-increment: e; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); padding: var(--e-8); }
.etapes li::before { content: counter(e, decimal-leading-zero); display: block; font: 200 var(--t-xl)/1 var(--police); color: var(--brume); margin-bottom: var(--e-6); }
.etapes h3 { margin-bottom: var(--e-2); }
.etapes p { color: var(--texte-2); font-size: var(--t-sm); margin: 0; }
.delai { margin-top: var(--e-4); padding: var(--e-6) var(--e-8); border: 1px solid var(--bord); border-radius: var(--r-l); display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-8); align-items: baseline; background: var(--surface); }
.delai b { font: 200 var(--t-xl)/1 var(--police); }
.delai span { color: var(--texte-2); }

/* Piliers (pages intérieures) */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e-4); }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e-4); }
.pilier { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); padding: var(--e-8); }
.pilier .num { font: 300 var(--t-sm)/1 var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--brume); display: block; margin-bottom: var(--e-5); }
.pilier h3 { margin-bottom: var(--e-3); }
.pilier p { color: var(--texte-2); font-size: var(--t-sm); margin: 0; }
.carte h3 { font-size: var(--t-lg); font-weight: 200; }
.carte p { color: var(--texte-2); }
.carte .btn { align-self: flex-start; margin-top: auto; }
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); padding: var(--e-8); }
.bloc .icone { margin-bottom: var(--e-6); }
.bloc h3 { margin-bottom: var(--e-2); }
.bloc p { color: var(--texte-2); font-size: var(--t-sm); margin: 0; }

/* Formules */
.formules { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e-4); }
.formule { position: relative; display: flex; flex-direction: column; gap: var(--e-3); padding: var(--e-10) var(--e-8) var(--e-8); border-radius: var(--r-xl); border: 1px solid var(--bord); background: var(--surface); }
.formule.prestige { border-color: rgba(var(--accent-rgb), .35); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .02) 60%), var(--surface); }
.formule .nom { font: 200 var(--t-xl)/1.1 var(--police); margin: 0; }
.formule .resume { color: var(--texte-2); }
.formule .prix { font: 200 var(--t-lg)/1 var(--police); }
.formule ul { list-style: none; padding: 0; margin: var(--e-2) 0 var(--e-8); display: grid; gap: var(--e-3); }
.formule li { padding-left: var(--e-8); position: relative; font-size: var(--t-sm); color: var(--texte-2); }
.formule li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 6px; border-left: 1px solid var(--brume); border-bottom: 1px solid var(--brume); transform: rotate(-45deg); }
.formule .btn { margin-top: auto; align-self: flex-start; }
.badge { align-self: flex-start; margin-bottom: var(--e-1); font: 400 var(--t-xs)/1 var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--brume-clair); border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; padding: var(--e-2) var(--e-3); }

/* Deux colonnes (à propos) */
.engagement { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--e-16); align-items: start; }
@media (max-width: 1024px) { .engagement { grid-template-columns: 1fr; gap: var(--e-8); } }

/* Avis */
.avis-vide { border: 1px dashed var(--bord-2); border-radius: var(--r-l); padding: var(--e-12) var(--e-8); text-align: center; color: var(--texte-2); }
.avis-vide p { margin-inline: auto; }
.citation { font: 200 var(--t-lg)/1.45 var(--police); max-width: 36ch; margin: 0 auto var(--e-4); color: var(--texte); }

/* FAQ */
.faq-2col { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--e-16); align-items: start; }
.faq details { border-top: 1px solid var(--bord); }
.faq details:last-child { border-bottom: 1px solid var(--bord); }
.faq summary { cursor: pointer; list-style: none; padding: var(--e-6) var(--e-12) var(--e-6) 0; position: relative; font: 300 var(--t-md)/1.35 var(--police); transition: color var(--duree) var(--courbe); }
.faq summary:hover { color: var(--brume-clair); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: var(--e-2); top: 50%; width: 14px; height: 1px; background: var(--brume); transition: transform var(--duree) var(--courbe); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--texte-2); padding-bottom: var(--e-6); }

/* Appel final */
.appel { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid rgba(var(--accent-rgb), .25); padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 6vw, 4rem); background: radial-gradient(80% 120% at 85% 0%, rgba(var(--accent-rgb), .22), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(120, 140, 170, .14), transparent 60%), var(--fond-2); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--e-8); align-items: end; }
.appel h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.appel .actions { margin-top: 0; justify-content: flex-end; }

/* Contact & formulaires */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--e-16); }
.contact h2 { margin-bottom: var(--e-4); }
.coord { display: grid; gap: var(--e-3); margin-top: var(--e-8); }
.coord a { text-decoration: none; font: 200 var(--t-lg)/1.2 var(--police); transition: color var(--duree) var(--courbe); }
.coord a:hover { color: var(--brume-clair); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-4); background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); padding: var(--e-8); }
.champ { display: grid; gap: var(--e-2); }
.champ.large { grid-column: 1 / -1; }
label { font-size: var(--t-sm); font-weight: 400; color: var(--texte-2); }
.facultatif { font-weight: 300; color: var(--texte-3); }
input, textarea, select { font: 300 var(--t-base)/1.4 var(--police); color: var(--texte); background: var(--champ); border: 1px solid var(--bord-2); border-radius: var(--r-s); padding: var(--e-3) var(--e-4); min-height: 48px; transition: border-color var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe); }
input::placeholder, textarea::placeholder { color: var(--texte-3); }
textarea { min-height: 130px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--bord-3); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brume); box-shadow: 0 0 0 3px var(--brume-voile); }
.consent { grid-column: 1 / -1; display: flex; gap: var(--e-3); align-items: flex-start; font-size: var(--t-sm); color: var(--texte-3); }
.consent input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brume); }
.consent a { color: var(--texte-2); }
form .btn { grid-column: 1 / -1; justify-self: start; }
.piege { display: none; }

/* Bandeau professionnels */
.bandeau-pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-6); padding: var(--e-10) var(--e-8); border: 1px solid var(--bord); border-radius: var(--r-l); background: var(--surface); }
.bandeau-pro h2 { font-size: var(--t-xl); }

/* ================= ENVOI DES PHOTOS ================= */
.envoi { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--e-4); align-items: start; }
.depot { display: block; position: relative; border: 1.5px dashed rgba(var(--accent-rgb), .45); border-radius: var(--r-l); padding: var(--e-16) var(--e-8); text-align: center; background: rgba(var(--accent-rgb), .03); cursor: pointer; transition: border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe); }
.depot:hover, .depot.survol { border-color: var(--brume); background: var(--brume-voile); }
.depot:focus-within { border-color: var(--brume); box-shadow: 0 0 0 3px var(--brume-voile); }
.depot input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.depot svg { width: 40px; height: 40px; margin: 0 auto var(--e-4); color: var(--brume); }
.depot strong { display: block; font-weight: 200; font: 200 var(--t-lg)/1.2 var(--police); margin-bottom: var(--e-2); }
.depot span { display: block; color: var(--texte-2); font-size: var(--t-sm); }
.liste-fichiers { list-style: none; margin: var(--e-4) 0 0; padding: 0; display: grid; gap: var(--e-2); }
.liste-fichiers li { display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--e-3); align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-m); padding: var(--e-3) var(--e-4); font-size: var(--t-sm); }
.liste-fichiers .vignette { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.liste-fichiers .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-fichiers .taille { color: var(--texte-3); }
.liste-fichiers button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bord); background: transparent; color: var(--texte-2); cursor: pointer; font: 300 1.1rem/1 var(--police); transition: border-color var(--duree) var(--courbe), color var(--duree) var(--courbe); }
.liste-fichiers button:hover { border-color: var(--brume); color: var(--texte); }
.liste-fichiers button[disabled] { opacity: .35; cursor: default; }
.liste-fichiers .barre { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: var(--bord); overflow: hidden; }
.liste-fichiers .barre i { display: block; height: 100%; width: 100%; background: var(--brume); transform: scaleX(0); transform-origin: left; }
.recap { position: sticky; top: 96px; }
.recap .total { display: flex; justify-content: space-between; color: var(--texte-2); font-size: var(--t-sm); padding: var(--e-3) 0; border-top: 1px solid var(--bord); }
.recap .total b { color: var(--texte); }
.recap form { grid-template-columns: 1fr; margin-top: var(--e-4); }
.message-etat { margin-top: var(--e-4); padding: var(--e-4); border-radius: var(--r-m); background: var(--brume-voile); color: var(--brume-clair); font-size: var(--t-sm); display: none; }
.message-etat.visible { display: block; }

/* Pied de page */
.pied { padding-block: var(--e-16) var(--e-8); font-size: var(--t-sm); color: var(--texte-2); border-top: 1px solid var(--bord); margin-top: var(--e-16); }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--e-12); padding-bottom: var(--e-12); }
.pied .titre-pied { font: 400 var(--t-xs)/1 var(--police); letter-spacing: .2em; text-transform: uppercase; color: var(--texte-3); margin: 0 0 var(--e-5); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e-2); }
.pied a { text-decoration: none; transition: color var(--duree) var(--courbe); }
.pied a:hover { color: var(--texte); }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-4); padding-top: var(--e-6); border-top: 1px solid var(--bord); color: var(--texte-3); }

/* Apparition au défilement (.js posé par marque.js : sans JavaScript, tout reste visible) */
.js .revele { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--courbe), transform 800ms var(--courbe); }
.js .revele.vu { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .t-8, .t-6 { grid-column: span 12; } .t-4 { grid-column: span 6; }
  .h-2 { grid-row: auto; }
  .contact, .faq-2col, .appel, .envoi { grid-template-columns: 1fr; gap: var(--e-8); }
  .appel .actions { justify-content: flex-start; }
  .etapes, .grille-3 { grid-template-columns: 1fr 1fr; }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
  .recap { position: static; }
}
@media (max-width: 980px) {
  .burger { display: grid; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--fond-2); border-bottom: 1px solid var(--bord); padding: var(--e-2) var(--e-6) var(--e-6); display: none; }
  .menu.ouvert { display: flex; }
  .menu a:not(.btn) { padding: var(--e-4) 0; border-bottom: 1px solid var(--bord); }
  .menu .btn { margin-top: var(--e-4); }
}
@media (max-width: 760px) {
  .section { padding-block: var(--e-16); }
  .t-4 { grid-column: span 12; }
  .etapes, .grille-3, .grille-2, .formules, form { grid-template-columns: 1fr; }
  .pied .colonnes { grid-template-columns: 1fr; }
  .carte, .tuile, .formule, .pilier, .etapes li, form { padding: var(--e-6); }
  .tuile-film { min-height: 320px; padding: 0; }
  .tuile-film .contenu { flex-direction: column; align-items: flex-start; gap: var(--e-3); padding: var(--e-6); }
  .tuile-film .lien { white-space: nowrap; }
  .main { width: 230vw; top: 79%; }
  .lueur { top: 78%; }
  .ouverture-texte { padding-top: calc(72px + 6vh); }
  .depot { padding: var(--e-10) var(--e-6); }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .main-absent-cadre, .defiler span { animation: none; }
  .js .revele { opacity: 1; transform: none; transition: none; }
  .tuile-film img, .lecture { transition: none; }
}

/* ============================================================
   V3.1 — MOUVEMENT ET FLUIDITÉ
   Règle : on n'anime que transform et opacity (composées par la carte graphique).
   ============================================================ */

/* Entrée de page douce */
@keyframes entree { from { opacity: 0; } to { opacity: 1; } }
body { animation: entree 500ms var(--courbe) both; }

/* Cascade : chaque élément d'une grille arrive un peu après le précédent (--i posé par site.js) */
.js .revele { transition-delay: calc(var(--i, 0) * 70ms); }

/* Titres : les mots montent un à un */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mot > span { display: inline-block; transform: translateY(105%); transition: transform 900ms cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--m, 0) * 45ms + 80ms); }
.vu .mot > span, .mots-vus .mot > span { transform: none; }

/* Lumière qui suit le pointeur sur les blocs (--mx, --my posés par site.js) */
.tuile, .formule, .etapes li, .pilier, .bloc, .bandeau-pro, form, .appel { isolation: isolate; }
.tuile::after, .formule::after, .etapes li::after, .pilier::after, .bloc::after, .appel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .13), transparent 60%);
  transition: opacity 400ms var(--courbe);
}
.etapes li, .pilier, .bloc { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .tuile:hover::after, .formule:hover::after, .etapes li:hover::after, .pilier:hover::after, .bloc:hover::after, .appel:hover::after { opacity: 1; }
  a.tuile, .formule, .etapes li, .pilier { transition: transform 500ms cubic-bezier(.2, .7, .1, 1), border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe), opacity 800ms var(--courbe); }
  a.tuile:hover, .formule:hover { transform: translateY(-4px); }
  .js .revele.vu.tuile, .js .revele.vu.formule { transition-delay: 0s; }
}

/* Les mains suivent le pointeur : géré par site.js (style écrit directement sur chaque élément) */

/* En-tête qui s'efface quand on descend et revient quand on remonte */
.entete { transition: transform 450ms cubic-bezier(.2, .7, .1, 1), background-color var(--duree) var(--courbe), border-color var(--duree) var(--courbe); }
.entete.cache { transform: translateY(-100%); }

/* Compteur */
.chiffre { font-variant-numeric: tabular-nums; }

/* FAQ : le contenu glisse à l'ouverture (animation pilotée par site.js) */
.faq details > p { transform-origin: top; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .mot > span { transform: none; transition: none; }
  .entete.cache { transform: none; }
}

/* ================= COMMANDE ================= */
.etape-titre { display: flex; align-items: center; gap: var(--e-3); font: 300 var(--t-md)/1.2 var(--police); margin: 0 0 var(--e-4); padding: 0; color: var(--texte); }
.etape-titre span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brume); color: var(--brume); display: grid; place-items: center; font-size: var(--t-sm); flex: none; }
.choix-formule { border: 0; margin: 0 0 var(--e-10); padding: 0; display: grid; gap: var(--e-3); }
.option-formule { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--e-4); align-items: center; padding: var(--e-5) var(--e-6); border: 1px solid var(--bord-2); border-radius: var(--r-m); background: var(--surface); cursor: pointer; transition: border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe); }
.option-formule:hover { border-color: rgba(var(--accent-rgb), .5); }
.option-formule:has(input:checked) { border-color: var(--brume); background: var(--brume-voile); }
.option-formule input { appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--bord-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.option-formule input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brume); transform: scale(0); transition: transform var(--duree) var(--courbe); }
.option-formule input:checked { border-color: var(--brume); }
.option-formule input:checked::after { transform: scale(1); }
.option-formule input:focus-visible { outline: 1.5px solid var(--brume); outline-offset: 3px; box-shadow: none; }
.of-corps b { display: block; font: 300 var(--t-md)/1.2 var(--police); }
.of-corps small { color: var(--texte-2); font-size: var(--t-sm); }
.of-prix { font: 200 var(--t-lg)/1 var(--police); white-space: nowrap; }
.recap .etape-titre { margin-bottom: var(--e-2); }
@media (max-width: 760px) { .option-formule { grid-template-columns: auto 1fr; } .of-prix { grid-column: 2; } }

/* Ouverture : tant que site.js n'a pas dessiné la 1re image, rien n'apparaît (évite un flash des mains) */
.js .scene .main, .js .scene .lueur, .js .ouverture-texte, .js .defiler { opacity: 0; }

/* ============================================================
   V4 — ZONES BLEU NUIT dans un site ivoire
   Les jetons sont redéfinis localement : tout ce qui est dedans passe en clair.
   ============================================================ */
.ouverture, .tuile-film, .appel, .pied, .entete.sur-ouverture:not(.plein) {
  --fond: var(--nuit); --fond-rgb: 16, 27, 43; --fond-2: #172538;
  --surface: rgba(255, 255, 255, .05); --surface-2: rgba(255, 255, 255, .09);
  --bord: rgba(255, 255, 255, .10); --bord-2: rgba(255, 255, 255, .18); --bord-3: rgba(255, 255, 255, .32);
  --texte: #F1EEE8; --texte-2: #C2C9D2; --texte-3: #98A1AD;
  --accent-rgb: 159, 180, 201; --brume: #A9BFD6; --brume-clair: #D2DEEA; --brume-voile: rgba(159, 180, 201, .16);
  color: var(--texte);
}
.ouverture { background: var(--nuit); }
.ouverture::after { background: linear-gradient(to bottom, rgba(16, 27, 43, 0), #F6F3ED); }
.scene { background: var(--nuit); }
.tuile-film { background: var(--nuit); }
.tuile-film img { mix-blend-mode: screen; }
.tuile-film .contenu { background: linear-gradient(to top, rgba(16, 27, 43, .85), transparent); }
.appel { background: radial-gradient(80% 120% at 85% 0%, rgba(159, 180, 201, .26), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(120, 140, 170, .18), transparent 60%), var(--nuit); border-color: transparent; }
.pied { background: var(--nuit); border-top: 0; margin-top: var(--e-16); }
.pied .bas { border-top-color: var(--bord); }

/* Logo : bleu sur ivoire, clair sur bleu nuit */
.logo .l-clair { display: none; }
.entete.sur-ouverture:not(.plein) .logo .l-clair, .pied .logo .l-clair { display: block; }
.entete.sur-ouverture:not(.plein) .logo .l-fonce, .pied .logo .l-fonce { display: none; }

/* En-tête posé sur l'ouverture : texte clair ; le menu mobile ouvert reste ivoire */
.entete.sur-ouverture:not(.plein) { background: transparent; }
@media (max-width: 980px) {
  .entete.sur-ouverture:not(.plein) .menu { --texte: #14233A; --texte-2: #485366; --bord: rgba(20, 35, 58, .10); background: #EFEBE3; }
  .entete.sur-ouverture:not(.plein) .menu .btn-principal { background: #14233A; color: #F6F3ED; }
}

/* Boutons sur ivoire : bleu nuit plein ; sur bleu nuit : ivoire plein (via les jetons) */
.btn-principal { background: var(--texte); color: var(--fond); }
.btn-principal:hover { background: var(--brume-clair); color: var(--fond); }

/* Puces et filets en gris argent */
.surtitre::before { background: var(--argent); }
.formule li::before { border-color: var(--brume); }
.faq summary::before, .faq summary::after { background: var(--brume); }

/* ============================================================
   V4.1 — TRANSITION OUVERTURE → IVOIRE SANS COUTURE
   1) dans l'ouverture : les mains se fondent dans le bleu nuit, le grain s'efface
   2) en tête de la section suivante : bleu nuit → brume bleutée → ivoire (pas de gris au milieu),
      et le dégradé finit TRANSPARENT sur le vrai fond de page : aucune ligne possible
   ============================================================ */
.ouverture::after { height: 34vh; background: linear-gradient(to bottom, rgba(16, 27, 43, 0) 0%, rgba(16, 27, 43, .55) 45%, #101B2B 100%); }
.grain { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); }
.ouverture + .section { position: relative; padding-top: clamp(240px, 34vh, 360px) !important; }
.ouverture + .section > .conteneur { position: relative; z-index: 1; }
.ouverture + .section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(300px, 46vh, 460px); z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    #101B2B 0%,
    rgba(22, 36, 56, .97) 8%,
    rgba(38, 56, 82, .86) 20%,
    rgba(70, 92, 122, .66) 34%,
    rgba(118, 138, 164, .44) 50%,
    rgba(168, 182, 200, .24) 66%,
    rgba(212, 220, 228, .10) 82%,
    rgba(246, 243, 237, 0) 100%);
}

/* Partenaires : 4 étapes sur une ligne ; listes déroulantes du formulaire */
.etapes-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .etapes-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .etapes-4 { grid-template-columns: 1fr; } }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: var(--e-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%233C5A80' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pf-note { margin: 0 0 var(--e-2); padding: var(--e-3) var(--e-4); border-radius: var(--r-s); background: var(--brume-voile); color: var(--texte); font-size: var(--t-sm); }

/* V4.2 — les deux mains sont des images noir et blanc FONDUES sur le bleu nuit (screen) :
   le fond est exactement le même bleu partout, aucun bord ni carré de compression visible. */
.scene .main-vivant { mix-blend-mode: screen; }

/* ============================================================
   V5 — SITE EN UNE PAGE (11/10/2026) : connexion mise en avant, bloc pompes funèbres court
   ============================================================ */
.btn-connexion { gap: var(--e-2); }
.btn-connexion svg { flex: none; }
.appel-pf { align-items: center; }
.points-pf { list-style: none; padding: 0; margin: var(--e-6) 0 0; display: grid; gap: var(--e-3); color: var(--texte-2); font-size: var(--t-sm); }
.points-pf b { display: inline-block; min-width: 8.5em; font-weight: 400; color: var(--texte); }
.actions-pf { display: flex; flex-direction: column; align-items: stretch; gap: var(--e-3); }
.actions-pf .btn { justify-content: center; }
.formule .lien { margin-top: auto; padding-top: var(--e-4); }
.profil { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-6); align-items: center; }
.profil legend { float: left; margin-right: var(--e-4); font-size: var(--t-sm); color: var(--texte-2); }
.profil label { display: inline-flex; gap: var(--e-2); align-items: center; font-size: var(--t-sm); cursor: pointer; }
.profil input { min-height: 0; width: 18px; height: 18px; accent-color: var(--brume); }
@media (max-width: 860px) { .points-pf b { display: block; min-width: 0; } }

/* ============================================================
   V6 — MOBILE (11/10/2026) : « Mon espace » visible à côté du menu, cibles tactiles ≥ 44 px
   ============================================================ */
.btn-espace-mobile { display: none; }
@media (max-width: 980px) {
  .btn-espace-mobile { display: inline-flex; align-items: center; gap: var(--e-2); margin-left: auto; min-height: 44px; padding: 0 var(--e-4); border: 1px solid var(--bord-2); border-radius: 999px; color: var(--texte); text-decoration: none; font-size: var(--t-sm); white-space: nowrap; }
  .entete .conteneur { gap: var(--e-3); }
}
@media (max-width: 360px) { .btn-espace-mobile span { display: none; } .btn-espace-mobile { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 760px) {
  .coord a { display: inline-flex; align-items: center; min-height: 44px; }
  .pied li a, .pied .bas a { display: inline-block; padding: 10px 0; }
  .contact .lien, .faq-2col .lien, .note .lien { display: inline-flex; min-height: 44px; align-items: center; }
  .consent a { display: inline-block; padding: 6px 0; }
}

/* L'attribut hidden gagne toujours (sinon un display: block/grid le contredit) */
[hidden] { display: none !important; }
.note-manuel { margin: 0 0 var(--e-4); }
.texte-legal h2 { font-size: var(--t-md); margin: var(--e-12) 0 var(--e-4); }
.texte-legal p { margin: 0 0 var(--e-4); line-height: 1.7; }
