/* Coach Jake — pages merci · design premium sombre. Trois couleurs : crème, vert, or (et leurs transparences). */

/* Polices hébergées localement (replis de Garet et Aisling, licence OFL) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-600-latin.woff2') format('woff2');
}

:root {
  --creme: #f4edd3;
  --vert: #122620;
  --or: #d8c88d;

  --texte: var(--creme);
  --texte-doux: rgba(244, 237, 211, .74);
  --texte-pale: rgba(244, 237, 211, .54);
  --filet: rgba(216, 200, 141, .18);
  --filet-fort: rgba(216, 200, 141, .36);
  --carte: rgba(244, 237, 211, .035);
  --carte-hover: rgba(244, 237, 211, .06);
  --ombre: rgba(18, 38, 32, .9);

  --sans: 'Garet', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: 'Aisling', 'Cormorant Garamond', Georgia, serif;
  --large: 1100px;
  --etroit: 820px;
  --rayon: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--vert); }
body {
  margin: 0;
  background: var(--vert);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Lueurs d'arrière-plan */
.fond { position: absolute; inset: 0 0 auto 0; height: 1600px; pointer-events: none; z-index: 0; overflow: hidden; }
.fond::before, .fond::after { content: ''; position: absolute; border-radius: 50%; }
.fond::before {
  width: 1100px; height: 760px; left: 50%; top: -340px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(216, 200, 141, .22), rgba(216, 200, 141, 0));
}
.fond::after {
  width: 800px; height: 800px; right: -420px; top: 560px;
  background: radial-gradient(closest-side, rgba(216, 200, 141, .09), rgba(216, 200, 141, 0));
}
/* Fine trame en haut de page */
body::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1000px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 237, 211, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 211, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
}

main, .barre, .pied { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 16px; }

/* Mot en italique emphatique (Aisling → Cormorant), en or */
em.accent {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--or);
  padding: 0 .08em 0 .02em;
}

/* Étiquette « —— IMPORTANT —— » */
.label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 18px;
  color: var(--or);
  font-size: .66rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
}
.label::before, .label::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.label.gauche { justify-content: flex-start; }
.label.gauche::after { display: none; }

/* ---------- Barre du haut ---------- */
.barre { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.barre .logo { width: 88px; }
.barre-statut { color: var(--texte-doux); font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Héros ---------- */
.hero { padding: 48px 16px 0; text-align: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8.4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero h1 em.accent { display: inline-block; font-size: 1.13em; line-height: 1.04; margin-top: 4px; }
.hero-statut { margin: 22px 0 0; color: var(--texte); font-size: 1rem; font-weight: 500; }
.hero-quand { margin: 22px 0 0; color: var(--texte-doux); font-size: .95rem; }
.hero-sous { margin: 10px 0 0; color: var(--texte-doux); font-size: .95rem; }

.etapes {
  display: grid; grid-template-columns: 1fr; margin: 36px auto 0; max-width: 1000px; padding: 0; list-style: none;
  border-top: 1px solid var(--filet); text-align: left;
}
.etape { padding: 18px 4px; border-bottom: 1px solid var(--filet); display: flex; flex-direction: column; gap: 6px; }
.etape-num { flex: 0 0 auto; color: var(--or); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.etape-texte { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.etape-note { display: block; margin-top: 4px; color: var(--texte-pale); font-size: .85rem; line-height: 1.5; }
@media (min-width: 760px) {
  .etapes.deux { grid-template-columns: 1fr 1fr; }
  .etapes.deux .etape + .etape { border-left: 1px solid var(--filet); padding-left: 26px; }
  .etape { border-bottom: 0; padding: 22px 4px; flex-direction: row; align-items: baseline; gap: 16px; }
  .etapes.une { max-width: 560px; }
  .etapes.une .etape { justify-content: center; }
}

/* ---------- Vidéo principale (cadre lumineux) ---------- */
.video-zone { padding-top: 26px; }
.cadre {
  position: relative; max-width: 1000px; margin: 0 auto;
  padding: 7px; border-radius: calc(var(--rayon) + 6px);
  background: linear-gradient(160deg, rgba(216, 200, 141, .42), rgba(216, 200, 141, .07) 45%, rgba(216, 200, 141, .26));
  box-shadow: 0 40px 90px -30px var(--ombre), 0 0 140px -30px rgba(216, 200, 141, .38);
}

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--vert); border-radius: var(--rayon); overflow: hidden; }
.video iframe, .video-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { padding: 0; margin: 0; cursor: pointer; background: var(--vert); display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; opacity: .9; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 38, 32, 0) 45%, rgba(18, 38, 32, .6)); }
.video-facade:hover img { transform: scale(1.025); opacity: 1; }
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 10px rgba(216, 200, 141, .18), 0 14px 40px var(--ombre);
  transition: transform .25s ease;
}
.video-play::after {
  content: ''; position: absolute; left: 30px; top: 24px;
  border-style: solid; border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent var(--vert);
}
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.07); }
.petite .video-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; box-shadow: 0 0 0 7px rgba(216, 200, 141, .16), 0 10px 30px var(--ombre); }
.petite .video-play::after { left: 22px; top: 17px; border-width: 10px 0 10px 15px; }

/* Emplacement de vidéo à venir */
.video.vide {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse 65% 75% at 50% 45%, rgba(216, 200, 141, .14), rgba(216, 200, 141, 0)), var(--vert);
}
.video.vide img { width: 26px; opacity: .6; }
.video.vide span { color: var(--texte-pale); font-size: .6rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }

/* ---------- Panneau « Avant notre appel » ---------- */
.section { padding-top: 64px; }
.panneau {
  max-width: 1000px; margin: 0 auto;
  border: 1px solid var(--filet); border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(244, 237, 211, .05), rgba(244, 237, 211, .015));
  padding: 28px 22px 8px;
  box-shadow: 0 30px 70px -40px var(--ombre);
}
.consignes { list-style: none; margin: 4px 0 0; padding: 0; }
.consigne { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--filet); }
.consigne-num { color: var(--or); font-size: .72rem; font-weight: 600; letter-spacing: .14em; padding-top: 3px; }
.consigne p { margin: 0; color: var(--texte-doux); font-size: .98rem; line-height: 1.65; }
.consigne p em { color: var(--texte); }
@media (min-width: 760px) {
  .panneau { padding: 34px 36px 12px; }
  .consigne { grid-template-columns: 56px 1fr; }
}

/* ---------- En-têtes de section ---------- */
.tete { text-align: center; max-width: 720px; margin: 0 auto 34px; padding-top: 40px; }
.tete h2 { margin: 0; font-size: clamp(1.8rem, 6.6vw, 2.7rem); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }
.tete h2 em.accent { font-size: 1.12em; }
.tete .intro { margin: 14px auto 0; color: var(--texte-doux); font-size: 1rem; max-width: 560px; }

/* ---------- Cartes (questions et études de cas) ---------- */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cartes { grid-template-columns: 1fr 1fr; gap: 20px; } }
.carte {
  border: 1px solid var(--filet); border-radius: var(--rayon);
  background: var(--carte);
  padding: 8px 8px 0;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.carte:hover { border-color: var(--filet-fort); background: var(--carte-hover); }
.carte .video { border-radius: calc(var(--rayon) - 7px); }
.carte-pied { display: flex; gap: 14px; align-items: baseline; padding: 18px 12px 20px; }
.carte-num { flex: 0 0 auto; color: var(--or); font-size: .64rem; font-weight: 600; letter-spacing: .2em; }
.carte-titre { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.carte-sous { margin: 3px 0 0; color: var(--texte-pale); font-size: .88rem; line-height: 1.5; }
.carte-lien { display: inline-block; margin-top: 10px; color: var(--or); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
a.carte { display: block; text-decoration: none; }
a.carte:hover { transform: translateY(-2px); }
a.carte:hover .carte-lien { color: var(--creme); }

/* ---------- Fermeture ---------- */
.fermeture { padding: 100px 16px 108px; text-align: center; }
.fermeture p { margin: 0 auto; max-width: 22ch; font-size: clamp(1.45rem, 5.4vw, 2rem); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.signature { display: block; margin-top: 18px; font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 1.8rem; color: var(--or); letter-spacing: 0; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding: 40px 0 46px; }
.pied-grille { display: grid; gap: 22px; }
.pied .logo { width: 96px; }
.pied .copy { margin: 0 0 12px; color: var(--texte-doux); font-size: .8rem; }
.avert p { margin: 0 0 10px; color: var(--texte-pale); font-size: .74rem; line-height: 1.65; }
@media (min-width: 760px) {
  .pied-grille { grid-template-columns: 180px 1fr; gap: 40px; }
  .wrap { padding: 0 28px; }
  .barre { padding: 22px 32px; }
  .barre .logo { width: 100px; }
  .hero { padding-top: 64px; }
}

/* ---------- Racine (logo seul) ---------- */
.racine { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 1; }
.racine .logo { width: 240px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
