/* VAOgolf — direction A (plein écran parcours, défilé d'écrans).
   Deux tons : par défaut « chaleureux » ; <body class="ton-premium"> bascule en premium. */

:root {
  /* Charte VAOgolf (1.3 Identité graphique) */
  --lime: #d6fb71;
  --vert: #31623f;
  --vert-pale: #e5ede7;
  --lime-pale: #effdc6;
  --gris: #f1f1f1;
  --noir: #000000;
  --vert-nuit: #1b3a24;  /* assombrissement du vert de la charte, pour les fonds */

  --pin: var(--vert);
  --foret: var(--vert);
  --encre: var(--noir);
  --encre-douce: #333333;   /* noir atténué pour le texte secondaire */
  --trait: #d9d9d9;         /* gris de la charte, assombri pour rester visible */
  --erreur: #a3261b;

  --ff-titre: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --etirement: 100%;
  --graisse-titre: 900;
  --ff-texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fond-section: #fff;
  --fond-section-2: var(--vert-pale);
  --fond-fort: var(--vert-nuit);
  --fond-pied: var(--vert-nuit);
  --texte-fort: #fff;
  --accent: var(--lime);
  --accent-texte: var(--noir);
  --rayon: 16px;
  --rayon-bouton: 999px;
  --voile-heros: linear-gradient(to top, rgba(27,58,36,.92) 0%, rgba(27,58,36,.55) 40%, rgba(27,58,36,.12) 75%, rgba(27,58,36,.05) 100%);
  --marge: clamp(16px, 5vw, 64px);
  --largeur: 1200px;
}

.ton-premium {
  --graisse-titre: 300;
  --fond-section-2: var(--gris);
  --fond-fort: var(--vert-nuit);
  --rayon: 4px;
  --rayon-bouton: 4px;
  --voile-heros: linear-gradient(to top, rgba(27,58,36,.92) 0%, rgba(27,58,36,.5) 45%, rgba(27,58,36,.1) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond-section); color: var(--encre);
  font-family: var(--ff-texte); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--foret); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--foret); outline-offset: 3px; }
.sur-fort :focus-visible { outline-color: var(--accent); }
.lien-evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-texte); padding: 8px 14px; font-weight: 600; }
.lien-evitement:focus { left: 8px; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.texte-court { max-width: 60ch; }

h1, h2, h3 {
  font-family: var(--ff-titre); font-stretch: var(--etirement); font-weight: var(--graisse-titre);
  line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance;
}
.ton-premium h1, .ton-premium h2 { letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.ton-premium h3 { font-weight: 400; }
p { margin: 0 0 1em; }
.chapo { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--encre-douce); }
.sur-fort .chapo { color: rgba(255,255,255,.82); }

/* ---------- En-tête : transparent sur le héros, puis opaque ---------- */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.entete.opaque { position: sticky; background: var(--fond-section); color: var(--encre); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { width: 128px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--rayon-bouton); color: inherit; text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { background: rgba(255,255,255,.14); }
.entete.opaque .nav a:hover { background: rgba(0,0,0,.06); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-texte); }
.menu-bouton { display: none; }
@media (max-width: 900px) {
  .menu-bouton { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); color: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: var(--rayon-bouton); padding: 8px 14px; font: 600 .95rem var(--ff-texte); cursor: pointer; }
  .entete.opaque .menu-bouton { background: none; border-color: var(--trait); }
  .menu-bouton svg { width: 18px; height: 18px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--vert-nuit); color: #fff; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; padding: 12px var(--marge) 20px; gap: 2px; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
}

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--rayon-bouton); border: 1.5px solid transparent; font: 600 1rem var(--ff-texte); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bouton-accent { background: var(--accent); color: var(--accent-texte); }
.bouton-accent:hover { background: var(--lime-pale); color: var(--accent-texte); }
.bouton-pin { background: var(--pin); color: #fff; }
.bouton-pin:hover { background: var(--vert-nuit); color: #fff; }
.bouton-contour { border-color: currentColor; color: var(--pin); background: transparent; }
.bouton-contour:hover { background: var(--vert); color: #fff; border-color: var(--vert); }
.magasins { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.magasin { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; border-radius: 12px; padding: 10px 18px 10px 14px; min-width: 190px; border: 1px solid rgba(255,255,255,.3); }
.ton-premium .magasin { border-radius: 4px; }
.magasin:hover { background: #1b1b1b; color: #fff; }
.magasin svg { width: 26px; height: 26px; flex: none; }
.magasin small { display: block; font-size: .72rem; line-height: 1.1; opacity: .85; }
.magasin strong { display: block; font-size: 1.12rem; line-height: 1.15; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sur-fort { background: var(--fond-fort); color: var(--texte-fort); }
.sur-fort a:not(.bouton):not(.magasin) { color: var(--accent); }
.fond-2 { background: var(--fond-section-2); }

/* ---------- Héros plein écran ---------- */
.heros { position: relative; min-height: max(100svh, 640px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.heros-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.heros-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.ton-chaleureux .heros .heros-photo img { object-position: 78% 30%; }
.heros-photo::after { content: ""; position: absolute; inset: 0; background: var(--voile-heros); }
.heros .conteneur { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px); }
.heros h1 { color: #fff; max-width: 12ch; }
.heros .chapo { color: rgba(255,255,255,.85); max-width: 48ch; }
.heros-telephone { width: clamp(170px, 20vw, 290px); margin-bottom: calc(-1 * var(--debord)); --debord: 150px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.apres-heros { padding-top: calc(var(--debord, 150px) + 56px); }
@media (max-width: 860px) {
  /* Sur petit écran, le texte ne recouvre plus la photo : photo en haut, texte dessous sur vert nuit */
  .heros, .bandeau { display: block; min-height: 0; background: var(--vert-nuit); }
  .heros-photo { position: relative; inset: auto; height: clamp(340px, 58svh, 560px); z-index: 0; }
  .bandeau .heros-photo { height: clamp(260px, 42svh, 420px); }
  .bandeau .conteneur { padding-top: 8px; }
  .bandeau .chapo { color: rgba(255,255,255,.85); }
  .heros-photo img { object-position: 50% 35%; }
  .ton-chaleureux .heros .heros-photo img { object-position: 50% 30%; }
  .heros-photo::after { background: linear-gradient(to top, var(--vert-nuit) 0%, rgba(27,58,36,.25) 28%, rgba(27,58,36,.08) 60%, rgba(27,58,36,.35) 100%); }
  .heros .conteneur { grid-template-columns: 1fr; justify-items: start; padding-top: 8px; }
  .heros h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .heros-telephone { --debord: 90px; width: 180px; justify-self: center; margin-top: 8px; }
  .apres-heros { padding-top: calc(90px + 40px); }
}

/* ---------- Bandeau de page intérieure ---------- */
.bandeau { position: relative; min-height: 58vh; display: grid; align-items: end; color: #fff; isolation: isolate; }
.bandeau .heros-photo img { object-position: 50% 40%; }
.bandeau .heros-photo::after { background: linear-gradient(to top, rgba(27,58,36,.95) 0%, rgba(27,58,36,.6) 45%, rgba(27,58,36,.15) 100%); }
.bandeau .conteneur { padding-top: 120px; padding-bottom: clamp(36px, 5vw, 64px); }
.bandeau h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4.6rem); max-width: 16ch; }

/* Les captures ont des coins carrés : on les arrondit comme le téléphone */
.heros-telephone, .defile-telephone img, .etape-image { border-radius: 13% / 6.2%; }

/* ---------- Pastille « trou » (clin d'œil carte de score) ---------- */
.trou { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--accent); color: var(--accent-texte); font: 700 1rem var(--ff-titre); font-stretch: var(--etirement); margin-bottom: 14px; }
.ton-premium .trou { background: transparent; border: 1px solid currentColor; color: inherit; font-weight: 500; }

/* ---------- Défilé d'écrans (téléphone collé + textes) ---------- */
.defile { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.defile-colle { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.defile-telephone { position: relative; width: min(300px, 100%); aspect-ratio: 317 / 683; }
.defile-telephone img { position: absolute; inset: 0; width: 100%; opacity: 0; transition: opacity .45s ease; filter: drop-shadow(0 20px 36px rgba(0,0,0,.35)); }
.defile-telephone img.est-actif { opacity: 1; }
.defile-etapes { list-style: none; margin: 0; padding: 0; }
.defile-etape { min-height: 72svh; display: grid; align-content: center; max-width: 46ch; }
.defile-etape h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.defile-etape p { color: var(--encre-douce); font-size: 1.15rem; }
.etape-image { display: none; }
@media (max-width: 860px) {
  .defile { grid-template-columns: 1fr; }
  .defile-colle { display: none; }
  .defile-etape { min-height: 0; padding: 40px 0; border-top: 1px solid var(--trait); max-width: none; }
  .etape-image { display: block; width: 170px; margin-bottom: 20px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.3)); }
}
/* Téléphone en paysage et petites tablettes : capture à gauche, texte à droite, plus de vide sur le côté */
@media (min-width: 600px) and (max-width: 860px) {
  .defile-etape { display: grid; grid-template-columns: 170px 1fr; gap: 4px 32px; align-items: center; align-content: center; }
  .etape-image { margin-bottom: 0; grid-row: span 3; align-self: center; }
  .defile-etape .trou { align-self: end; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .defile-telephone img { transition: none; } }

/* ---------- Mosaïque de photos ---------- */
.mosaique { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; margin-top: 40px; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); }
.mosaique > :first-child { grid-row: span 2; }
@media (max-width: 760px) { .mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; } .mosaique > :first-child { grid-column: span 2; } }

/* ---------- Duo texte + image ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.duo-image img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Mot du dirigeant ---------- */
.mot { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mot figure { margin: 0; }
.mot figure img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; }
.ton-premium .mot figure img { border-radius: var(--rayon); }
.mot figcaption { margin-top: 14px; }
.mot figcaption strong { display: block; }
.mot blockquote { margin: 0; font-size: 1.1rem; }
.mot blockquote p:first-child { font-family: var(--ff-titre); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--pin); }
@media (max-width: 760px) { .mot { grid-template-columns: 1fr; } .mot figure { max-width: 200px; } }

/* ---------- Appel au téléchargement (balle géante) ---------- */
.cta { position: relative; overflow: hidden; background: var(--vert); } /* bandeau de téléchargement : vert de la charte */
.cta::before {
  content: ""; position: absolute; right: -8vw; top: 50%; transform: translateY(-50%);
  width: clamp(260px, 36vw, 520px); aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  background-image: radial-gradient(circle, rgba(49,98,63,.35) 24%, transparent 26%); background-size: 11% 11%;
  opacity: .95;
}
.ton-premium .cta::before { background-image: none; opacity: .12; }
.cta .conteneur { position: relative; }
@media (max-width: 760px) { .cta::before { right: -40vw; opacity: .35; } }

/* ---------- Formulaire ---------- */
.contact-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) { .contact-grille { grid-template-columns: 1fr; } }
.formulaire { display: grid; gap: 18px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.champ input, .champ textarea { width: 100%; font: inherit; color: var(--encre); padding: 13px 14px; border: 1.5px solid var(--trait); border-radius: calc(var(--rayon) * .6); background: var(--gris); }
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--foret); box-shadow: 0 0 0 3px var(--lime-pale); }
.obligatoire { color: var(--erreur); }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--encre-douce); }
.case input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--foret); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-statut { padding: 14px 16px; border-radius: calc(var(--rayon) * .6); font-weight: 600; }
.message-statut.ok { background: var(--lime-pale); color: var(--noir); }
.message-statut.ko { background: #fbe4e1; color: var(--erreur); }
.message-statut ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }

/* ---------- Encart ---------- */
.encart { background: var(--lime-pale); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(24px, 4vw, 40px); }

/* ---------- Pages légales ---------- */
.legal { max-width: 72ch; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0 0 32px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.a-completer { background: var(--lime-pale); padding: 0 4px; }
.liste-liens { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--trait); }
.liste-liens li { border-bottom: 1px solid var(--trait); }
.liste-liens a { display: block; padding: 16px 4px; font-weight: 600; text-decoration: none; color: var(--encre); }
.avis { border-left: 4px solid var(--accent); background: var(--lime-pale); padding: 18px 22px; }

/* ---------- Pied ---------- */
.pied { padding: 56px 0 32px; font-size: .95rem; background: var(--fond-pied); }
.pied .conteneur { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.pied img { width: 128px; margin-bottom: 14px; }
.pied h2 { font-family: var(--ff-texte); font-stretch: 100%; font-weight: 700; font-size: 1rem; margin-bottom: 12px; letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: var(--gris); text-decoration: none; }
.pied a:hover { color: var(--accent); text-decoration: underline; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; color: var(--vert-pale); font-size: .88rem; }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: 1fr; } }

/* ---------- Finitions bandeaux intérieurs ---------- */
.bandeau .chapo { color: rgba(255,255,255,.88); }
@media (max-width: 860px) {
  .bandeau .conteneur { padding-top: 8px; padding-bottom: 36px; }
}

/* ---------- Textes légaux ---------- */
.legal h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .8em; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2em 0 .6em; }
.legal h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .retour { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--trait); }
