/* ValGolf — feuille de style unique du site.
   Charte : #00401A vert foncé, #03C03C vert fairway, #DDD06A jaune, #FEFEFA blanc.
   Titres : Bricolage Grotesque. Texte : Inter. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --vert: #00401a;
  --fairway: #03c03c;
  --jaune: #ddd06a;
  --blanc: #fefefa;
  --texte-2: rgb(0 64 26 / 0.78);
  --filet: rgb(0 64 26 / 0.14);
  --filet-clair: rgb(254 254 250 / 0.2);
  --titre: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gouttiere: 20px;
  --largeur: 1200px;
  --entete: 64px;
  --band: 12px;
  --rail: 40px;
}
@media (min-width: 400px) {
  :root {
    --gouttiere: 24px;
  }
}
@media (min-width: 960px) {
  :root {
    --gouttiere: 48px;
    --entete: 76px;
    --band: 44px;
    --rail: 0px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--blanc);
  color: var(--vert);
  font: 400 18px/1.6 var(--texte);
  font-optical-sizing: auto;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
p {
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.08;
}
:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
  border-radius: 6px;
}
.sombre :focus-visible,
.site-header.sur-sombre :focus-visible {
  outline-color: var(--jaune);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.evitement {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--jaune);
  color: var(--vert);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.evitement:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  font: 800 26px/1 var(--titre);
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.01em;
  color: var(--vert);
  text-decoration: none;
}
.logo .golf {
  color: var(--fairway);
}
.logo svg {
  width: 0.62em;
  height: 1.05em;
  margin-left: 2px;
  transform: translateY(-0.04em);
}
.logo .hampe {
  stroke: var(--vert);
}
.sombre .logo,
.site-footer .logo,
.sur-sombre .logo {
  color: var(--blanc);
}
.sombre .logo .hampe,
.site-footer .logo .hampe,
.sur-sombre .logo .hampe {
  stroke: var(--blanc);
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font: 600 17px/1.2 var(--texte);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-jaune {
  background: var(--jaune);
  color: var(--vert);
  box-shadow: inset 0 0 0 1px rgb(0 64 26 / 0.16);
}
.btn-jaune:hover {
  background: #e4d97c;
}
.btn-ligne {
  background: transparent;
  color: var(--vert);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.sombre .btn-ligne {
  color: var(--blanc);
}

/* ---- En-tête ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--entete);
  display: flex;
  align-items: center;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .btn {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
}
.site-header.est-defile {
  background: rgb(254 254 250 / 0.94);
  box-shadow: 0 1px 0 var(--filet);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}
.site-header.est-defile.sur-sombre {
  background: rgb(0 64 26 / 0.92);
  box-shadow: 0 1px 0 var(--filet-clair);
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--vert);
  color: var(--blanc);
  padding: calc(var(--entete) + 28px) 0 56px;
}
.hero-fond,
.hero-fond picture,
.hero-fond img,
.hero-fond video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-fond img,
.hero-fond video {
  object-fit: cover;
}
.hero-fond video {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-fond video.lecture {
  opacity: 1;
}
.hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 64 26 / 0.84) 0%, rgb(0 64 26 / 0.74) 40%, rgb(0 64 26 / 0.9) 100%);
}
@media (min-width: 960px) {
  .hero {
    padding: calc(var(--entete) + 48px) 0 88px;
  }
  .hero-voile {
    background: linear-gradient(90deg, rgb(0 64 26 / 0.9) 0%, rgb(0 64 26 / 0.76) 52%, rgb(0 64 26 / 0.62) 100%);
  }
}
.hero-grille {
  position: relative;
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .hero-grille {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 72px;
    align-items: center;
  }
}
.titre-hero {
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  text-transform: uppercase;
  font-size: clamp(46px, 12.5vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-sous {
  font-size: 18px;
  max-width: 34em;
  margin-bottom: 20px;
  color: rgb(254 254 250 / 0.94);
}
@media (min-width: 960px) {
  .hero-sous {
    font-size: 20px;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 15px/1 var(--texte);
  box-shadow: inset 0 0 0 1px rgb(254 254 250 / 0.42);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jaune);
}
.note {
  margin: 14px 0 0;
  font-size: 16px;
  color: rgb(254 254 250 / 0.9);
}
.note strong {
  color: var(--blanc);
}
.hero-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

/* ---- Cadres de formulaire Systeme.io (on ne stylise jamais le cadre lui-même) ---- */
.form-box {
  width: 100%;
  max-width: 480px;
  background: var(--blanc);
  color: var(--vert);
  border-radius: 18px;
  padding: 8px 0;
}
.form-box.form-livre {
  min-height: 263px; /* hauteur du cadre Systeme.io (238 px) + 25 px (marges et ligne) : rien ne bouge au chargement */
}
.form-box.form-candidature {
  min-height: 505px; /* hauteur du cadre Systeme.io (480 px) + 25 px */
}

/* ---- Vidéos verticales (motion design, vidéo du livre) ---- */
.video-carte {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.video-cadre {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--vert);
  box-shadow: 0 0 0 1px var(--filet-clair);
}
.video-cadre video,
.video-cadre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.btn-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(0 64 26 / 0.86);
  color: var(--blanc);
  font: 600 15px/1 var(--texte);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--filet-clair);
}
.btn-video svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-video .ico-lecture,
.btn-video[data-etat="pause"] .ico-pause {
  display: none;
}
.btn-video[data-etat="pause"] .ico-lecture {
  display: block;
}
.btn-son[data-etat="son"] {
  background: var(--jaune);
  color: var(--vert);
}

/* ---- Sections ---- */
.section {
  position: relative;
  padding: 72px 0;
}
@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}
.avec-rail .wrap {
  padding-left: calc(var(--gouttiere) + var(--rail));
}
.titre-section {
  font-variation-settings: "wdth" 92;
  font-size: clamp(30px, 6.4vw, 48px);
  margin-bottom: 32px;
  text-wrap: balance;
}
.sombre {
  background: var(--vert);
  color: var(--blanc);
}

/* Objections : toujours ouvertes, une phrase chacune. */
.questions {
  display: grid;
  gap: 28px;
  margin: 0;
}
@media (min-width: 960px) {
  .questions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}
.questions div {
  border-top: 2px solid var(--vert);
  padding-top: 18px;
}
.questions dt {
  font: 700 22px/1.25 var(--titre);
  font-variation-settings: "wdth" 95;
  margin-bottom: 8px;
}
.questions dd {
  margin: 0;
}

/* Pour qui / pas pour qui */
.pour-qui {
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .pour-qui {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
  }
}
.pour-qui h3 {
  font-size: 24px;
  font-variation-settings: "wdth" 95;
  margin-bottom: 14px;
}
.pour-qui ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pour-qui li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--filet);
}
.pour-qui li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fairway);
}
.pour-qui .non li::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--vert);
}

/* Témoignages : citations composées, sans cartes ni étoiles. */
.citations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
@media (min-width: 720px) {
  .citations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}
@media (min-width: 1100px) {
  .citations.trois-colonnes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.citations li {
  border-top: 1px solid var(--filet);
  padding: 22px 0 24px;
}
.citations blockquote {
  margin: 0 0 10px;
  font: 500 21px/1.38 var(--titre);
  font-variation-settings: "wdth" 96;
}
.citations cite {
  font: 600 15px/1 var(--texte);
  font-style: normal;
  color: var(--texte-2);
}

/* Valentin */
.valentin {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 720px) {
  .valentin {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
  }
}
.valentin img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid var(--fairway);
  object-fit: cover;
}
@media (min-width: 720px) {
  .valentin img {
    width: 200px;
    height: 200px;
  }
}
.valentin p {
  font-size: 20px;
  max-width: 36em;
}
.valentin .signature {
  font-size: 15px;
  color: var(--texte-2);
  margin: 0;
}

/* Appel final */
.final {
  text-align: center;
  padding-top: 40px;
}
.final .green {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  position: relative;
}
@media (min-width: 960px) {
  .final .green {
    width: 160px;
    height: 160px;
  }
}
.final .titre-section {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}
.final .form-box {
  margin: 0 auto;
  text-align: left;
}

/* ---- Pied de page ---- */
.site-footer {
  background: var(--vert);
  color: var(--blanc);
  padding: 56px 0 64px;
  border-top: 1px solid var(--filet-clair);
  font-size: 16px;
}
.site-footer .wrap {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}
.site-footer .devise {
  margin: 12px 0 0;
  color: rgb(254 254 250 / 0.85);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.site-footer li a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.site-footer .copyright {
  margin: 0;
  font-size: 14px;
  color: rgb(254 254 250 / 0.75);
}
.lien-bouton {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}

/* ---- Le chemin et la balle (page d'accueil) ---- */
.parcours {
  position: relative;
}
.parcours > svg.chemin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.parcours .section > .wrap,
.parcours .hero-grille {
  position: relative;
  z-index: 2;
}
.pp {
  position: absolute;
  width: 2px;
  height: 2px;
  pointer-events: none;
}
.pp-g {
  left: clamp(14px, calc((100% - var(--largeur)) / 4), 120px);
}
.pp-d {
  right: clamp(14px, calc((100% - var(--largeur)) / 4), 120px);
}
.chemin .guide {
  fill: none;
  stroke: var(--fairway);
  stroke-opacity: 0.55;
  stroke-linecap: round;
}
.chemin .fairway {
  fill: none;
  stroke: var(--fairway);
  stroke-linecap: round;
}
.chemin .pointilles {
  fill: none;
  stroke: var(--blanc);
  stroke-linecap: round;
}
.chemin .depart {
  fill: var(--jaune);
}
.chemin .balle {
  fill: #fefefa;
  stroke: rgb(0 64 26 / 0.35);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.45s;
}
.chemin .balle.dans-le-trou {
  transform: scale(0.35);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .chemin .balle {
    transition: none;
  }
}

/* ---- Pages de texte (mentions légales, confidentialité) ---- */
.page-texte {
  padding: calc(var(--entete) + 48px) 0 88px;
}
.page-texte .wrap {
  max-width: calc(760px + 2 * var(--gouttiere));
}
.page-texte h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-variation-settings: "wdth" 90;
  margin-bottom: 12px;
}
.page-texte h2 {
  font-size: 24px;
  font-variation-settings: "wdth" 95;
  margin: 36px 0 10px;
}
.page-texte .maj {
  color: var(--texte-2);
  font-size: 15px;
  margin-bottom: 32px;
}
.a-completer {
  background: #fff1c2;
  color: #5a4300;
  border: 1.5px dashed #a87b00;
  border-radius: 4px;
  padding: 0 6px;
  font-weight: 700;
}

/* ---- 404 ---- */
.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--entete) + 40px) var(--gouttiere) 64px;
}
.page-404 .titre-hero {
  margin-bottom: 14px;
}
.page-404 .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---- Merci (après l'inscription au livre) ---- */
.page-merci > div {
  max-width: 560px;
}
.page-merci .suite {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--filet);
}
.page-merci .suite h2 {
  font-size: 24px;
  font-variation-settings: "wdth" 95;
  margin-bottom: 8px;
}
.page-merci .suite .btn {
  margin-top: 16px;
}

/* ---- Bandeau cookies (seulement si la mesure d'audience est activée) ---- */
.cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--blanc);
  color: var(--vert);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 0 1px var(--filet), 0 12px 32px rgb(0 20 8 / 0.18);
  font-size: 16px;
}
.cookies p {
  margin: 0 0 14px;
}
.cookies .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cookies .btn {
  min-height: 48px;
}

/* Points de passage du chemin, selon l'écran. */
.pp-depart {
  left: clamp(14px, calc((100% - var(--largeur)) / 4), 120px);
  bottom: 30px;
}
@media (min-width: 960px) {
  .pp-depart {
    bottom: 52px;
  }
}
.pp-gd {
  left: clamp(14px, calc((100% - var(--largeur)) / 4), 120px);
}
@media (min-width: 960px) {
  .pp-gd {
    left: auto;
    right: clamp(14px, calc((100% - var(--largeur)) / 4), 120px);
  }
}
.pp-entree {
  top: 80px;
}
.pp-sortie {
  bottom: 80px;
}
.pp-trou {
  left: 50%;
  top: 60%;
}
.final {
  padding-top: 48px;
}
@media (min-width: 960px) {
  .final {
    padding-top: 104px;
  }
}
