/* Socle commun : remise à zéro + composants fonctionnels (tiroir, recherche,
   commande, textes légaux, formulaires). Aucune direction artistique ici : tout
   passe par les variables ci-dessous, que chaque boutique redéfinit dans styles.css. */
:root {
  --fond: #ffffff; --fond-2: #f5f5f3; --texte: #1a1a1a; --texte-doux: #666666;
  --accent: #222222; --accent-texte: #ffffff; --bord: #e4e4e0; --rayon: 4px;
  --police-titre: Georgia, serif; --police-texte: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.sans-defilement { overflow: hidden; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--fond); padding: 10px 14px; }
.evitement:focus { left: 8px; top: 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.a-completer { background: #fff3a3; color: #5c4a00; padding: 0 4px; font-style: normal; border-radius: 2px; }
.anim [data-apparait] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim [data-apparait].vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; } }

/* Tiroir panier */
.voile { position: fixed; inset: 0; background: rgba(20, 20, 20, .4); opacity: 0; transition: opacity .25s; z-index: 60; }
.voile.ouvert { opacity: 1; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--fond); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s ease; }
.tiroir.ouvert { transform: none; }
.tiroir-entete { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bord); }
.tiroir-entete h2 { margin: 0; font-size: 1.15rem; }
.tiroir-fermer { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 4px 8px; }
.tiroir-liste { flex: 1; overflow-y: auto; padding: 8px 20px; }
.tiroir-pied { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bord); }
.tiroir-ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 6px; }
.tiroir-note { font-size: .85rem; color: var(--texte-doux); margin-bottom: 12px; }
.tiroir-commander, .bouton, .achat-bouton, .formulaire button[type="submit"], .formulaire [data-confirmer], [data-payer], .barre-achat button {
  display: block; width: 100%; text-align: center; text-decoration: none; background: var(--accent); color: var(--accent-texte);
  border: 0; border-radius: var(--rayon); padding: 15px 18px; font-weight: 600; min-height: 48px;
}
.bouton { display: inline-block; width: auto; }
.tiroir-voir { display: block; text-align: center; padding: 10px; font-size: .9rem; }
.ligne-panier { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bord); }
.ligne-panier img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--rayon); }
.ligne-corps { flex: 1; min-width: 0; }
.ligne-nom { display: block; text-decoration: none; font-weight: 600; }
.ligne-option { display: block; font-size: .85rem; color: var(--texte-doux); }
.ligne-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--bord); border-radius: var(--rayon); }
.quantite button { background: none; border: 0; width: 36px; height: 36px; font-size: 1.1rem; }
.quantite span { min-width: 24px; text-align: center; }
.ligne-retirer { background: none; border: 0; padding: 6px 0 0; font-size: .8rem; color: var(--texte-doux); text-decoration: underline; }
.panier-vide { text-align: center; padding: 40px 10px; }
div.page-panier, .ck, .merci { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.panier-total { max-width: 420px; margin: 20px 0 0 auto; }
.merci { max-width: 640px; text-align: center; padding-top: 64px; }

/* Barre d'achat collée */
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--bord); transform: translateY(110%); transition: transform .2s; }
.barre-achat.visible { transform: none; }
.barre-achat-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; }
.barre-achat-texte span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat button { width: auto; padding: 12px 22px; min-height: 44px; }
@media (max-width: 899px) { .barre-achat { display: flex; } .page-produit { padding-bottom: 84px; } }

/* Bloc d'achat */
.achat-option { border: 0; padding: 0; margin: 0 0 14px; }
.achat-option legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.achat-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.achat-choix input { position: absolute; opacity: 0; width: 0; height: 0; }
.achat-choix span { display: block; min-width: 48px; min-height: 44px; padding: 10px 12px; text-align: center; border: 1px solid var(--bord); border-radius: var(--rayon); cursor: pointer; }
.achat-choix input:checked + span { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.achat-choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.achat-erreur { color: #a4262c; font-size: .9rem; margin: 0 0 10px; }
.fiche-infos { margin: 0; }
.fiche-infos > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.fiche-infos dt { color: var(--texte-doux); }
.fiche-infos dd { margin: 0; text-align: right; }
.bloc-conformite { font-size: .85rem; color: var(--texte-doux); }
.bloc-conformite p { margin-bottom: .5em; }
.avertissements { border: 1px solid #c98a00; background: #fff8e6; color: #5a4300; padding: 10px 12px; border-radius: var(--rayon); font-size: .9rem; margin: 12px 0; }
.avertissements p { margin: 0; font-weight: 600; }
.avertissements p + p { margin-top: 6px; }

/* Bas de pied de page */
.pied-legal { font-size: .82rem; }
.pied-legal p { margin: 0 0 8px; }
.grille-vide { padding: 28px 0; }
.logos-paiement { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.logos-paiement svg { width: 42px; height: 26px; }
.lien-retractation { font-weight: 600; text-decoration: underline; }

/* Recherche */
.recherche { position: fixed; inset: 0; z-index: 80; background: var(--fond); padding: 16px; overflow-y: auto; }
.recherche-barre { display: flex; gap: 8px; max-width: 720px; margin: 0 auto 16px; align-items: center; }
.recherche-barre input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 1.05rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); }
.recherche-barre button { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 4px 8px; }
.recherche-resultats { max-width: 720px; margin: 0 auto; }
.recherche-resultat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); text-decoration: none; }
.recherche-resultat img { width: 60px; height: 80px; object-fit: cover; border-radius: var(--rayon); }
.recherche-resultat span { flex: 1; min-width: 0; }

/* Textes légaux */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 16px 72px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal a { text-decoration: underline; }
.legal-intro { font-size: 1.1rem; color: var(--texte-doux); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bord); }
.legal .tableau { overflow-x: auto; }
.legal-mise-a-jour { font-size: .85rem; color: var(--texte-doux); margin-top: 2.5em; }
.encadre { border: 1px solid var(--bord); background: var(--fond-2); padding: 16px 18px; border-radius: var(--rayon); margin: 1em 0; font-size: .95rem; }
.faq details { border-bottom: 1px solid var(--bord); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details div { padding-top: 10px; }

/* Formulaires */
.formulaire label, .ck-form label { display: block; margin-bottom: 14px; font-size: .92rem; font-weight: 600; }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select,
.ck-form input:not([type="checkbox"]), .ck-form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font-weight: 400; font-size: 16px; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon);
}
.bouton-secondaire { width: auto !important; margin-top: 8px; background: none !important; color: var(--texte) !important; border: 1px solid var(--bord) !important; }
.form-message { font-size: .92rem; margin: 10px 0 0; min-height: 1.2em; }
.form-message.ok { color: #1c6b3c; }
.form-message.erreur { color: #a4262c; }
.contact-grille { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grille { grid-template-columns: 1fr 1.3fr; } }
.newsletter-note { font-size: .78rem; margin: 8px 0 0; color: var(--texte-doux); }

/* Commande */
.ck h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.ck h2 { font-size: 1.1rem; }
.ck-grille { display: grid; gap: 28px; grid-template-columns: 1fr; }
.ck-resume { order: -1; background: var(--fond-2); padding: 16px; border-radius: var(--rayon); align-self: start; }
@media (min-width: 900px) { .ck-grille { grid-template-columns: 1.3fr 1fr; } .ck-resume { order: 0; position: sticky; top: 20px; } }
.ck-form section { margin-bottom: 26px; }
.ck-duo { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.ck-ligne { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.ck-ligne img { width: 56px; height: 74px; object-fit: cover; border-radius: var(--rayon); }
.ck-ligne div { flex: 1; min-width: 0; }
.ck-ligne span, .ck-ligne small { display: block; }
.ck-ligne small { color: var(--texte-doux); }
.ck-totaux { border-top: 1px solid var(--bord); margin-top: 8px; padding-top: 10px; }
.ck-totaux > div { display: flex; justify-content: space-between; padding: 3px 0; }
.ck-total { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.ck-securite, .ck-note { font-size: .85rem; color: var(--texte-doux); margin: 10px 0; }
.ck-indisponible { padding: 14px; background: var(--fond-2); border-radius: var(--rayon); }
.ck-form .ck-cgv { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.ck-cgv input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
[data-payer]:disabled { opacity: .72; cursor: not-allowed; }

/* Consentement */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 480px; margin: 0 auto; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); font-size: .9rem; }
.consent p { margin-bottom: 10px; }
.consent div { display: flex; gap: 8px; }
.consent button { flex: 1; padding: 10px; border: 1px solid var(--texte); background: var(--fond); border-radius: var(--rayon); }

@font-face{font-family:"Abril Fatface";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/abril-fatface-400.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/lato-400.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/lato-700.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/lato-400i.woff2) format("woff2")}

/* Quinze Amour : le court et le tableau de score.
   Trois règles tenues partout :
   1. les lignes blanches du court structurent la page, sur terre, gazon ou dur ;
   2. tout ce qui compte (prix, panier, score) passe par une case vert club ;
   3. carré, jamais d'arrondi, sauf la balle. */

:root {
  --fond: #fbfaf3; --fond-2: #f3f0e3; --texte: #1b1b18; --texte-doux: #5b5a50;
  --accent: #b4552a; --accent-texte: #ffffff; --bord: #d9d5c6; --rayon: 0px;
  --police-titre: "Abril Fatface", Georgia, "Times New Roman", serif;
  --police-texte: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --terre: #eed2bb; --terre-pale: #f5e4d5; --terre-fonce: #8f3f1b;
  --gazon: #dfe9d4; --gazon-fonce: #d3e1c6; --dur: #e5e7da;
  --vert: #1f4a39; --craie: #ffffff; --trait: 3px;
}

body { font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3, h4 { font-weight: 400; color: var(--vert); }
a { text-underline-offset: 3px; }
::selection { background: var(--gazon); color: var(--vert); }
:focus-visible { outline: 3px solid var(--terre-fonce); outline-offset: 2px; }
.a-completer { border-radius: 0; }

/* ------------------------------------------------------------- les surfaces */
.surface-terre {
  background-color: var(--terre-pale);
  background-image:
    radial-gradient(rgba(180, 85, 42, .20) .6px, transparent .95px),
    radial-gradient(rgba(180, 85, 42, .15) .8px, transparent 1.2px),
    radial-gradient(rgba(143, 63, 27, .12) 1px, transparent 1.5px);
  background-size: 7px 11px, 13px 9px, 23px 19px;
  background-position: 0 0, 5px 3px, 11px 7px;
}
.surface-gazon, .filet-section {
  background-color: var(--gazon);
  background-image: linear-gradient(90deg, rgba(31, 74, 57, .06) 50%, transparent 50%);
  background-size: 168px 100%;
}
.surface-dur {
  background-color: var(--dur);
  background-image: radial-gradient(rgba(31, 74, 57, .17) .55px, transparent .85px);
  background-size: 4px 4px;
}

/* ------------------------------------------------------------- les boutons */
.bouton, .achat-bouton, .tiroir-commander, [data-payer], .formulaire button[type="submit"], .formulaire [data-confirmer], .barre-achat button, .newsletter button {
  font-family: var(--police-texte); font-weight: 700; font-size: 1rem; letter-spacing: .03em;
  background: var(--accent); color: var(--accent-texte); border: 0; border-radius: 0;
  text-decoration: none; transition: background-color .15s;
}
.bouton:hover, .achat-bouton:hover, .tiroir-commander:hover, .formulaire button[type="submit"]:hover, .barre-achat button:hover, .newsletter button:hover { background: var(--terre-fonce); }
.bouton { display: inline-block; min-height: 52px; padding: 15px 26px; text-align: center; }
.bouton-ligne { background: transparent; color: var(--vert); box-shadow: inset 0 0 0 2px var(--vert); }
.bouton-ligne:hover { background: var(--vert); color: #fff; }
.bouton-secondaire { border: 2px solid var(--vert) !important; color: var(--vert) !important; font-weight: 700; min-height: 48px; padding: 12px 18px; }

/* ------------------------------------------------- le tableau de score (entête) */
.marquoir {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: stretch; min-height: 56px;
  background: var(--fond); border-bottom: 2px solid var(--vert); color: var(--vert);
}
.tableau-logo { order: 1; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; text-decoration: none; color: var(--vert); }
.logo-score { height: 23px; width: auto; flex: none; }
.tableau-nom { font-family: var(--police-titre); font-size: 1.16rem; line-height: 1; white-space: nowrap; }
.tableau-rubriques { display: none; }
.tableau-vide { order: 2; flex: 1; }
.tableau-case {
  order: 3; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; padding: 0 10px;
  background: none; border: 0; border-left: 2px solid var(--vert); color: var(--vert);
}
.tableau-menu { order: 4; }
.tableau-case-mot { display: none; }
.tableau-panier {
  order: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 2px 8px;
  background: var(--vert); color: #fff; border: 0; line-height: 1;
}
.tableau-panier-mot { font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.tableau-score { font-family: var(--police-titre); font-size: 1.5rem; line-height: 1; min-width: 1.6em; text-align: center; }
.tableau-score.point, .score-case.point { animation: point .5s ease; }
@keyframes point { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.tableau-retour { order: 3; display: flex; align-items: center; padding: 0 14px; border-left: 2px solid var(--vert); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--vert); }

.rubriques { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--fond); border-bottom: 2px solid var(--vert); }
.rubriques a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-left: 2px solid var(--vert);
  color: var(--vert); text-decoration: none; font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
}
.rubriques a:first-child { border-left: 0; }
.rubriques a[aria-current], .tableau-rubriques a[aria-current] { background: var(--gazon); box-shadow: inset 0 -3px 0 var(--accent); }

/* ------------------------------------------------------------- le menu mobile */
.voile { background: rgba(27, 27, 24, .38); }
.menu {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 65; width: min(370px, 90%); display: flex; flex-direction: column; overflow-y: auto;
  background-color: var(--terre-pale); border-right: 2px solid var(--vert);
  transform: translateX(-102%); transition: transform .26s ease; padding-bottom: 24px;
}
.menu.ouvert { transform: none; }
.menu-tete { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px 0 18px; border-bottom: var(--trait) solid var(--craie); color: var(--vert); }
.menu-logo .logo-score { height: 26px; }
.menu-fermer { width: 48px; height: 48px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--vert); }
.menu-grand { padding: 14px 0 12px; }
.menu-grand a { display: block; padding: 3px 18px; font-family: var(--police-titre); font-size: 3.1rem; line-height: 1.12; color: var(--vert); text-decoration: none; }
.menu-rayons { padding: 12px 0 6px; }
.menu-rayons a { display: flex; align-items: center; min-height: 46px; padding: 0 18px; font-weight: 700; text-decoration: none; }
.menu-petit { margin-top: auto; padding: 12px 0 0; border-top: var(--trait) solid var(--craie); }
.menu-petit a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--texte-doux); text-decoration: none; }

/* ------------------------------------------------------------- le filet */
.filet {
  height: 18px; position: relative;
  background:
    linear-gradient(var(--craie), var(--craie)) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(27, 27, 24, .5) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(27, 27, 24, .5) 0 1px, transparent 1px 6px);
}

/* ------------------------------------------------- le premier écran : le court */
.service { background-color: var(--terre); overflow: hidden; }
.court {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "fond fond" "score carre" "filet filet" "action action" "promesses promesses";
  padding: 10px 26px 0;
}
.court::before, .court::after { content: ""; position: absolute; pointer-events: none; }
.court::before { inset: 10px 8px 0; border: solid var(--craie); border-width: var(--trait) var(--trait) 0; }
.court::after { inset: 10px 26px 0; border: solid var(--craie); border-width: 0 var(--trait); }
.court > * { position: relative; z-index: 1; }
.court-fond { grid-area: fond; padding: 22px 10px 16px 13px; border-bottom: var(--trait) solid var(--craie); }
.court-fond h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 10.2vw, 2.6rem); line-height: 1.06; color: var(--texte); }
.court-sous { margin: 0; font-size: 1rem; line-height: 1.4; }
.court-score {
  grid-area: score; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding-left: 2px; border-right: var(--trait) solid var(--craie); font-family: var(--police-titre); color: var(--vert); font-size: 1.5rem; line-height: 1;
}
.court-score i { display: block; width: 14px; height: 0; border-top: 3px dotted var(--vert); }
.court-carre { grid-area: carre; display: block; text-decoration: none; color: var(--texte); }
.court-carre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.court-etiquette {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: baseline; gap: 10px; padding: 7px 11px;
  background: var(--fond); font-size: .98rem;
}
.court-etiquette em { font-family: var(--police-titre); font-size: 1.04rem; }
.court-filet { grid-area: filet; margin: 0 -26px; z-index: 2; }
.court-action { grid-area: action; padding: 14px 3px 8px; }
.court-action .bouton { display: block; }
.court-promesses { grid-area: promesses; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 2px 8px 16px; font-size: .92rem; font-weight: 700; color: var(--vert); }
.court-promesse-large { display: none; }

/* ------------------------------------------------------------- en-têtes de section */
.section-tete { padding: 42px 16px 20px; }
.section-tete h2 { margin: 0 0 4px; font-size: clamp(2.7rem, 12vw, 4.8rem); line-height: 1.02; }
.section-tete p { margin: 0; max-width: 34em; color: var(--texte-doux); }

/* ------------------------------------------------------------- les cartes produit */
.grille, .surface-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
.carte { position: relative; padding: 0 8px; min-width: 0; }
.carte-lien { display: block; text-decoration: none; color: inherit; }
.carte-photo { position: relative; display: block; }
/* la ligne de court passe derrière la photo, d'une carte à l'autre */
.carte-photo::before { content: ""; position: absolute; z-index: 0; left: -100vw; right: -100vw; top: 66%; height: calc(var(--trait) + 1px); background: var(--craie); }
.carte-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s ease; }
.carte-lien:hover .carte-photo img { transform: translateY(-5px); }
.carte-nom, .carte-prix, .carte-ajout { position: relative; z-index: 1; }
.carte-nom { margin: 10px 0 1px; font-size: 1.16rem; line-height: 1.2; font-style: italic; font-synthesis: style; color: var(--texte); }
.carte-prix { margin: 0; font-weight: 700; font-size: 1rem; }
.carte-ajout {
  display: inline-block; min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--terre-fonce); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------- 2. votre surface */
.surfaces-section { background: var(--fond); }
.surfaces { display: grid; gap: var(--trait); background: var(--craie); border-block: var(--trait) solid var(--craie); }
.surface { position: relative; display: flex; flex-direction: column; padding: 24px 8px 20px; overflow: hidden; }
.surface-tete { position: relative; z-index: 1; padding: 0 8px 16px; }
.surface-tete h3 { margin: 0 0 4px; font-size: 3.2rem; line-height: 1.02; }
.surface-terre .surface-tete h3 { color: var(--terre-fonce); }
.surface-dur .surface-tete h3 { color: var(--texte); }
.surface-tete p { margin: 0; max-width: 30em; }
.surface-cartes .carte:nth-child(n + 3) { display: none; }
.surface-lien { position: relative; z-index: 1; display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin: 8px 8px 0; font-weight: 700; color: var(--vert); }

/* ------------------------------------------------------------- 3. le filet */
.filet-section { padding-bottom: 44px; overflow: hidden; }
.section-tete-filet p { color: var(--vert); }
.filet-cotes { display: grid; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); padding: 0 6px; }
.filet-ligne { position: relative; border-left: 4px dotted var(--vert); margin-left: -2px; }
.filet-ligne::before, .filet-ligne::after { content: ""; position: absolute; left: -8px; width: 12px; height: 12px; background: var(--vert); border-radius: 50%; }
.filet-ligne::before { top: -6px; }
.filet-ligne::after { bottom: -6px; }
.filet-cote { min-width: 0; overflow: hidden; }
.filet-cote:last-child { padding-top: 58px; }
.filet-titre { margin: 0 0 12px; padding: 0 10px; font-size: 2.3rem; line-height: 1; }
.filet-cote:first-child .filet-titre { text-align: right; }
.filet-titre a { text-decoration: none; color: inherit; }
.filet-cartes { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
.filet-cartes .carte:nth-child(n + 4) { display: none; }
.filet-cote .carte { padding: 0 10px; }

/* ------------------------------------------------------------- 4. le club-house */
.clubhouse { display: grid; background: var(--fond); }
.clubhouse-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.clubhouse-texte { padding: 32px 16px 36px; }
.clubhouse-texte h2 { margin: 0 0 6px; font-size: clamp(2.7rem, 12vw, 4.8rem); line-height: 1.02; }
.clubhouse-chapo { margin: 0 0 16px; color: var(--texte-doux); }
.ardoise { margin-bottom: 22px; border-top: 2px solid var(--vert); }
.ardoise a { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; border-bottom: 1px solid var(--bord); text-decoration: none; }
.ardoise img { flex: none; width: 48px; height: 64px; object-fit: cover; }
.ardoise-nom { min-width: 0; font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.14rem; line-height: 1.2; }
.ardoise-points { flex: 1; min-width: 10px; border-bottom: 2px dotted #a9a795; transform: translateY(5px); }
.ardoise-prix { flex: none; font-weight: 700; white-space: nowrap; }
.ardoise a:hover .ardoise-nom { color: var(--terre-fonce); }

/* ------------------------------------------------------------- 5. le règlement intérieur */
.reglement { padding: 0 16px 52px; background: var(--fond); }
.reglement-affiche { max-width: 880px; margin: 0 auto; padding: 26px 20px 22px; border: 2px solid var(--vert); outline: 2px solid var(--vert); outline-offset: 4px; }
.reglement-sur { margin: 0 0 2px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terre-fonce); }
.reglement-affiche h2 { margin: 0 0 16px; font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.04; }
.reglement-affiche ol { margin: 0; padding: 0; list-style: none; counter-reset: art; }
.reglement-affiche li { position: relative; counter-increment: art; padding: 12px 0 12px 68px; border-top: 1px solid var(--bord); }
.reglement-affiche li::before { content: "Art. " counter(art); position: absolute; left: 0; top: 13px; font-family: var(--police-titre); color: var(--terre-fonce); white-space: nowrap; }
.reglement-affiche strong { color: var(--vert); }
.reglement-signe { margin: 10px 0 0; text-align: right; font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.2rem; color: var(--vert); }

/* ------------------------------------------------------------- le pied de page */
.pied { background: var(--fond); }
.pied-court, .pied-fond { background-color: var(--terre); }
.pied-court { position: relative; padding: 36px 34px 30px; }
.pied-court::before, .pied-court::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; }
.pied-court::before { left: 8px; right: 8px; border: solid var(--craie); border-width: 0 var(--trait); }
.pied-court::after { left: 26px; right: 26px; border: solid var(--craie); border-width: 0 var(--trait); }
.pied-court > * { position: relative; z-index: 1; }
.pied-jeu { margin: 0 0 26px; font-family: var(--police-titre); font-size: clamp(3.3rem, 15.5vw, 10rem); line-height: .96; color: var(--vert); }
.pied-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
/* la boutique occupe sa colonne : secrétariat et règlement s'empilent en face */
.pied-colonnes > div:first-child { grid-row: span 2; }
.pied-convocation { grid-column: 1 / -1; }
.pied-colonnes h2 { margin: 0 0 4px; font-size: 1.5rem; }
.pied-colonnes a { display: inline-block; padding: 10px 0; text-decoration: none; }
.pied-colonnes a:hover { text-decoration: underline; }
.pied-convocation p { margin: 0 0 10px; }
.pied-fond { position: relative; height: 34px; border-top: 7px solid var(--craie); }
/* la marque centrale de la ligne de fond */
.pied-fond span { position: absolute; left: 50%; top: -25px; width: var(--trait); height: 18px; margin-left: -1px; background: var(--craie); }
.pied-hors { padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); }
.pied-logo { display: inline-block; padding: 4px 0 12px; color: var(--vert); }
.pied-logo .logo-score { height: 30px; }
.pied-legal { color: var(--texte-doux); font-size: .86rem; }
.pied-legal a { color: var(--vert); }
.pied-legal-coord a, .pied-legal-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-legal p { margin-block: 4px; }
.logos-paiement svg { width: 44px; height: 28px; }
.lien-retractation { color: var(--terre-fonce) !important; }
.pied-leger { border-top: 2px solid var(--vert); padding: 18px 16px 28px; }
.pied-leger-liens { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 10px; font-size: .9rem; }
.pied-leger-liens a { display: inline-block; padding: 8px 0; color: var(--vert); }

/* newsletter */
.newsletter { display: grid; gap: 8px; }
.newsletter input[type="email"] { width: 100%; min-height: 48px; padding: 11px 12px; font-size: 16px; background: var(--fond); border: 2px solid var(--vert); border-radius: 0; }
.newsletter button { min-height: 48px; padding: 12px 16px; cursor: pointer; }
.newsletter .form-message { margin: 0; min-height: 0; }
.newsletter-note { color: var(--texte); font-size: .82rem; }
.pied-colonnes .newsletter-note a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: underline; }

/* ------------------------------------------------------------- boutique et collections */
.vitrine { position: relative; overflow: hidden; padding-bottom: 54px; }
.vitrine-tete { padding: 20px 16px 12px; }
.vitrine-tete h1 { margin: 0 0 4px; font-size: clamp(2.3rem, 10.6vw, 5.4rem); line-height: 1.02; }
.vitrine-tete p { margin: 0; max-width: 38em; }
.rayons { display: flex; overflow-x: auto; border-block: var(--trait) solid var(--craie); scrollbar-width: none; }
.rayons::-webkit-scrollbar { display: none; }
.rayons a { flex: none; display: flex; align-items: center; min-height: 46px; padding: 0 15px; border-right: var(--trait) solid var(--craie); font-weight: 700; text-decoration: none; color: var(--vert); }
.rayons a[aria-current] { background: var(--vert); color: #fff; }
.reglages { padding: 12px 16px 16px; }
.reglages-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.reglages-nom { width: 92px; font-size: .9rem; font-weight: 700; color: var(--vert); }
.reglages-bouton { min-height: 44px; padding: 8px 12px; background: transparent; border: 2px solid var(--vert); color: var(--vert); font-weight: 700; font-size: .95rem; }
.reglages-bouton.actif { background: var(--vert); color: #fff; }
.reglages-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.reglages-compte { margin: 0; font-weight: 700; }
.reglages-tri { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.reglages-tri select { min-height: 44px; padding: 8px 10px; font-size: 16px; background: var(--fond); border: 2px solid var(--vert); border-radius: 0; color: var(--texte); max-width: 190px; }
.vitrine .grille { padding: 0 8px; }
.grille-vide { padding: 24px 16px 8px; }
.grille-vide p { font-family: var(--police-titre); font-size: 1.5rem; line-height: 1.25; color: var(--vert); max-width: 22em; }

/* ------------------------------------------------------------- fiche produit */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); }
.fiche-photos { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px; background: linear-gradient(var(--craie), var(--craie)) 0 68% / 100% var(--trait) no-repeat var(--terre-pale); scrollbar-width: none; }
.fiche-photos::-webkit-scrollbar { display: none; }
.fiche-photos figure { position: relative; flex: 0 0 88%; margin: 0; scroll-snap-align: center; }
.fiche-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fiche-texte { padding: 14px 16px 26px; min-width: 0; }
.fil { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 -2px; font-size: .92rem; color: var(--texte-doux); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.fil span { display: inline-flex; align-items: center; }
.fiche-texte h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 9.6vw, 3.5rem); line-height: 1.05; color: var(--texte); }
/* le score fictif : le prix prend la place des points */
.fiche-score { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; border: 2px solid var(--vert); margin-bottom: 14px; }
.fiche-score-balle { align-self: center; width: 12px; height: 12px; margin: 0 2px 0 12px; border-radius: 50%; background: var(--accent); }
.fiche-score-nom { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; font-weight: 700; color: var(--vert); line-height: 1.25; }
.fiche-score-nom small { font-size: .84rem; font-weight: 400; color: var(--texte-doux); }
.fiche-score strong { display: flex; align-items: center; padding: 8px 14px; background: var(--vert); color: #fff; font-family: var(--police-titre); font-weight: 400; font-size: 1.85rem; line-height: 1; white-space: nowrap; }
.fiche-resume { margin-bottom: 12px; font-size: 1.1rem; line-height: 1.42; }
.fiche-sol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 16px; }
.fiche-sol > span { font-weight: 700; color: var(--vert); }
.fiche-sol ul { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border: 2px solid var(--craie); outline: 1px solid var(--bord); font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--vert); }
.pastille-terre { background-color: var(--terre); color: var(--terre-fonce); }
.pastille-gazon { background-color: var(--gazon); }
.pastille-dur { background-color: var(--dur); color: var(--texte); }
.pastille-club { background-color: var(--fond-2); }
.achat-option { margin-bottom: 8px; }
.achat-option legend { font-weight: 700; color: var(--vert); }
.achat-choix { gap: 0; border-left: 2px solid var(--vert); }
.achat-choix label { flex: 0 0 auto; margin-bottom: 0; }
.achat-choix span {
  min-width: 56px; min-height: 48px; padding: 11px 10px; border: 2px solid var(--vert); border-left: 0; border-radius: 0;
  font-family: var(--police-titre); font-size: 1.12rem; line-height: 1.3; color: var(--vert);
}
.achat-choix input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.achat { position: relative; }
.fiche-guide { position: absolute; right: 0; top: -12px; display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; color: var(--vert); }
.achat-bouton { min-height: 54px; margin-top: 6px; cursor: pointer; }
.fiche-promesses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 14px 0 12px; font-size: .92rem; }
.fiche-promesses li { padding: 7px 0; border-top: 1px solid var(--bord); line-height: 1.3; }
.fiche-pli { border-top: 2px solid var(--vert); }
.fiche-pli:last-of-type { border-bottom: 2px solid var(--vert); }
.fiche-pli summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; font-family: var(--police-titre); font-size: 1.2rem; line-height: 1.2; color: var(--vert); }
.fiche-pli summary::-webkit-details-marker { display: none; }
.fiche-pli summary::after { content: "+"; font-family: var(--police-texte); font-size: 1.5rem; line-height: 1; }
.fiche-pli[open] summary::after { content: "−"; }
.fiche-pli > div { padding-bottom: 16px; }
.fiche-details { margin: 0 0 12px; }
.fiche-details li { padding: 3px 0 3px 16px; position: relative; }
.fiche-details li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--accent); }
.fiche-infos { font-size: .95rem; }
.fiche-infos > div { border-bottom-color: var(--bord); }
.bloc-conformite { font-size: .9rem; }
.avertissements { border-radius: 0; }
.set-complet { padding: 34px 8px 42px; overflow: hidden; }
.set-complet header { padding: 0 8px 18px; }
.set-complet h2 { margin: 0 0 2px; font-size: clamp(2.3rem, 10vw, 3.6rem); line-height: 1.04; }
.set-complet header p { margin: 0; }
.set-cartes { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.set-cartes::-webkit-scrollbar { display: none; }
.set-cartes .carte { scroll-snap-align: start; }
.barre-achat { border-top: 2px solid var(--vert); background: var(--fond); }
.barre-achat-texte span { font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.02rem; }
.barre-achat-texte strong { font-size: 1rem; color: var(--vert); }

/* ------------------------------------------------------------- le tableau d'affichage */
.score {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px auto minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 14px 16px 12px; background-color: var(--terre); border-bottom: var(--trait) solid var(--craie);
}
.score-nom { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vert); text-align: right; }
.score-nom-droite { text-align: left; }
.score-case { display: block; min-width: 66px; padding: 6px 10px 5px; background: var(--vert); color: #fff; font-family: var(--police-titre); font-size: 2.3rem; line-height: 1; text-align: center; }
.score-tiret { height: 0; border-top: 4px dotted var(--vert); }
.score-mot { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.05rem; line-height: 1.25; color: var(--vert); }

/* la balle qui traverse l'écran à chaque ajout */
.balle-volante { position: fixed; top: 20%; left: -44px; z-index: 95; pointer-events: none; animation: balle-traverse .85s linear forwards; }
.balle-rebond { display: block; animation: balle-rebond .85s linear forwards; }
.balle-rebond svg { animation: balle-tourne .85s linear forwards; }
@keyframes balle-traverse { to { transform: translateX(calc(100vw + 90px)); } }
@keyframes balle-rebond {
  0% { transform: translateY(40px); animation-timing-function: ease-out; }
  40% { transform: translateY(-70px); animation-timing-function: ease-in; }
  72% { transform: translateY(170px); animation-timing-function: ease-out; }
  100% { transform: translateY(60px); }
}
@keyframes balle-tourne { to { transform: rotate(540deg); } }

/* ------------------------------------------------------------- le tiroir */
.tiroir { background: var(--fond); border-left: 2px solid var(--vert); }
.tiroir-entete { padding: 8px 8px 8px 18px; background-color: var(--terre); border-bottom: 0; }
.tiroir-entete h2 { font-size: 1.5rem; }
.tiroir-fermer { width: 48px; height: 48px; color: var(--vert); padding: 0; }
.tiroir-liste { padding: 4px 16px; }
.tiroir-pied { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid var(--vert); background: var(--fond); }
.tiroir-ligne span { font-weight: 700; color: var(--vert); }
.tiroir-ligne strong { font-family: var(--police-titre); font-weight: 400; font-size: 1.5rem; color: var(--vert); }
.tiroir-note { color: var(--texte-doux); font-size: .88rem; }
.tiroir-commander { min-height: 54px; display: flex; align-items: center; justify-content: center; }
.tiroir-voir { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; color: var(--vert); font-weight: 700; }
.ligne-panier { gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bord); }
.ligne-panier img { width: 72px; height: 96px; }
.ligne-nom { font-family: var(--police-titre); font-weight: 400; font-style: italic; font-synthesis: style; font-size: 1.14rem; line-height: 1.2; }
.ligne-option { margin-top: 2px; color: var(--texte-doux); font-size: .88rem; }
.ligne-bas strong { font-weight: 700; color: var(--vert); }
.quantite { border: 2px solid var(--vert); }
.quantite button { width: 44px; height: 44px; color: var(--vert); font-weight: 700; }
.quantite span { font-weight: 700; }
.ligne-retirer { min-height: 44px; padding: 0; font-size: .86rem; }
.panier-vide { padding: 34px 10px; }
.panier-vide p { font-family: var(--police-titre); font-size: 1.4rem; line-height: 1.28; color: var(--vert); }
.panier-vide a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }

/* ------------------------------------------------------------- page panier */
body.page-panier main, body.page-commander main, body.page-merci main { position: relative; background-color: var(--terre-pale); }
body.page-panier main::before, body.page-commander main::before, body.page-merci main::before { content: ""; position: absolute; inset: 0 6px; border: solid var(--craie); border-width: 0 var(--trait); pointer-events: none; }
div.page-panier { position: relative; max-width: 860px; padding: 26px 18px 54px; }
div.page-panier h1 { margin: 0 0 14px; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.04; }
div.page-panier .score { margin-bottom: 14px; border: 0; }
.panier-lignes { background: var(--fond); padding: 4px 14px; }
.panier-total { max-width: none; margin: 14px 0 0; padding: 16px; background: var(--fond); }
div.page-panier .panier-vide { background: var(--fond); }

/* ------------------------------------------------------------- commande */
.tableau-leger { position: static; }
.ck { position: relative; padding: 24px 18px 56px; }
.ck h1 { margin: 0 0 16px; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.04; }
.ck-grille { gap: 16px; }
.ck-form { counter-reset: manche; }
.ck-form section { counter-increment: manche; margin-bottom: 14px; padding: 16px 16px 8px; background: var(--fond); }
.ck-form section h2 { margin-bottom: 12px; font-size: 1.45rem; }
.ck-form section h2::before { content: "Set " counter(manche); display: block; margin-bottom: 2px; font-family: var(--police-texte); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terre-fonce); }
.ck-valider { padding-bottom: 14px !important; }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select,
.ck-form input:not([type="checkbox"]), .ck-form select { border: 2px solid var(--vert); background: #fff; border-radius: 0; }
.formulaire label, .ck-form label { color: var(--vert); font-weight: 700; }
.ck-form .ck-cgv { color: var(--texte); }
.ck-cgv input { accent-color: var(--vert); }
[data-payer] { min-height: 54px; cursor: pointer; }
[data-payer]:disabled { background: #8f6a57; color: #fff; opacity: 1; }
.ck-resume { padding: 0 0 12px; background: var(--fond); }
.ck-resume h2 { margin: 0; padding: 12px 16px 10px; font-size: 1.5rem; background-color: var(--terre); }
.ck-resume [data-resume] { padding: 8px 16px 0; }
.ck-resume .score { border-bottom: 0; }
.ck-ligne span { font-family: var(--police-titre); font-style: italic; font-synthesis: style; line-height: 1.2; }
.ck-totaux { border-top: 2px solid var(--vert); }
.ck-total strong { font-family: var(--police-titre); font-weight: 400; font-size: 1.4rem; color: var(--vert); }
.ck-indisponible { background: var(--gazon); color: var(--vert); }
.ck-note, .ck-securite { color: var(--texte-doux); }
.merci { position: relative; padding: 52px 26px 66px; }
.merci::before { content: "Feuille de match"; display: block; margin-bottom: 10px; font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.2rem; color: var(--terre-fonce); }
.merci h1 { font-size: clamp(2.4rem, 10vw, 4rem); }

/* ------------------------------------------------------------- pages de texte */
.feuille-page { position: relative; padding: 14px 15px 44px; background-color: var(--gazon); background-image: linear-gradient(90deg, rgba(31, 74, 57, .06) 50%, transparent 50%); background-size: 168px 100%; }
.feuille-page::before { content: ""; position: absolute; inset: 0 5px; border: solid var(--craie); border-width: 0 var(--trait); pointer-events: none; }
.feuille { position: relative; max-width: 860px; margin: 0 auto; background: var(--fond); }
.feuille-tete { padding: 26px 18px 18px; border-bottom: var(--trait) solid var(--gazon); }
.feuille-tete h1 { margin: 0; font-size: clamp(2.2rem, 9.4vw, 3.8rem); line-height: 1.05; overflow-wrap: normal; hyphens: none; }
.feuille-tete .legal-intro { margin: 8px 0 0; }
.legal { max-width: none; padding: 8px 18px 44px; }
.legal h2 { position: relative; margin-top: 1.9em; font-size: 1.55rem; line-height: 1.2; }
.legal h3 { font-family: var(--police-texte); font-weight: 700; color: var(--vert); }
.legal-intro { color: var(--texte); }
.legal th { color: var(--vert); border-bottom: 2px solid var(--vert); }
.legal td { border-bottom-color: var(--bord); }
.legal th, .legal td { padding: 8px 5px; font-size: .88rem; }
.encadre { background: var(--gazon); border: 0; border-left: 4px solid var(--vert); }
@counter-style score-tennis { system: cyclic; symbols: "15" "30" "40" "Jeu"; suffix: ""; }
.faq { counter-reset: point; }
.faq details { counter-increment: point; padding: 0; border-bottom: 1px solid var(--bord); }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; list-style: none; font-weight: 700; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(point, score-tennis); flex: none; min-width: 48px; padding: 5px 4px 4px; background: var(--vert); color: #fff; font-family: var(--police-titre); font-weight: 400; font-size: 1.05rem; line-height: 1; text-align: center; }
.faq details[open] summary::before { background: var(--accent); }
.faq details div { padding: 0 0 12px 60px; }
.faq details div p { margin: 0; }
.contact-grille { padding-top: 14px; }
.contact-infos h2, .formulaire h2 { margin-top: 0; }
.formulaire [data-etape] h2 { margin-top: .4em; }
.form-message.ok { color: var(--vert); }
.form-message.erreur { color: #a4262c; }

/* ------------------------------------------------------------- recherche */
.recherche { background-color: var(--terre-pale); }
.recherche-barre input { min-height: 52px; font-size: 18px; background: var(--fond); border: 2px solid var(--vert); border-radius: 0; }
.recherche-barre input::-webkit-search-cancel-button { display: none; }
.recherche-barre input:focus-visible { outline-offset: 0; }
.recherche-barre button { width: 48px; height: 48px; padding: 0; color: var(--vert); }
.recherche-resultat { min-height: 88px; border-bottom: var(--trait) solid var(--craie); }
.recherche-resultat span { font-family: var(--police-titre); font-style: italic; font-synthesis: style; font-size: 1.14rem; }
.recherche-resultat strong { color: var(--vert); }
.recherche-vide { font-family: var(--police-titre); font-size: 1.3rem; color: var(--vert); }

/* ------------------------------------------------------------- notre histoire */
.histoire-tete { display: grid; background-color: var(--terre); border-bottom: var(--trait) solid var(--craie); }
.histoire-titre { padding: 34px 18px 22px; }
.histoire-titre h1 { margin: 0 0 8px; font-size: clamp(3rem, 14vw, 6rem); line-height: 1; }
.histoire-titre p { margin: 0; font-size: 1.15rem; max-width: 26em; }
.histoire-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.histoire-corps { max-width: 760px; margin: 0 auto; padding: 18px 16px 56px; }
.histoire-corps section { padding: 22px 0 12px; border-bottom: 2px solid var(--vert); }
.histoire-set { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terre-fonce); }
.histoire-corps h2 { margin: 0 0 8px; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.05; }
.histoire-fin { margin: 26px 0 0; }

/* ------------------------------------------------------------- 404 */
.dehors { padding: 40px 18px 66px; max-width: 760px; margin: 0 auto; }
.dehors-court { position: relative; width: min(100%, 340px); height: 170px; margin: 0 0 26px; background-color: var(--terre); box-shadow: inset 0 0 0 var(--trait) var(--craie), inset 0 0 0 18px var(--terre), inset 0 0 0 21px var(--craie); }
.dehors-court::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 4px dotted var(--vert); }
.dehors-balle { position: absolute; right: -8px; top: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--gazon); border: 3px solid var(--vert); }
.dehors h1 { margin: 0 0 8px; font-size: clamp(3rem, 14vw, 5.4rem); line-height: 1.02; }

/* Sur mobile, les rubriques sont déjà dans l'entête : la grille remonte d'autant. */
@media (max-width: 899px) {
  .page-boutique .reglages-groupe-rubrique { display: none; }
}

/* ------------------------------------------------------------- petits téléphones */
@media (max-width: 359px) {
  .tableau-nom { display: none; }
}
/* écran bas : le bouton reste dans le premier écran */
@media (max-width: 559px) and (max-height: 700px) {
  .court-carre img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
  .court-fond { padding-top: 14px; padding-bottom: 10px; }
  .court-sous { display: none; }
}

/* ------------------------------------------------------------- 390 → 899 : ajustements */
@media (min-width: 560px) {
  .court { grid-template-columns: 64px minmax(0, 1fr); }
  .court-carre img { aspect-ratio: 5 / 5; }
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiche-photos figure { flex-basis: 58%; }
  .surface-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .surface-cartes .carte:nth-child(n + 3) { display: block; }
  .set-cartes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}

/* ------------------------------------------------------------- 900 et plus : le court se couche */
@media (min-width: 900px) {
  :root { --trait: 4px; }
  .marquoir { min-height: 66px; }
  .tableau-logo { order: 0; padding: 0 22px 0 24px; gap: 12px; }
  .logo-score { height: 28px; }
  .tableau-nom { font-size: 1.42rem; }
  .tableau-rubriques { order: 1; display: flex; }
  .tableau-rubriques a {
    display: flex; align-items: center; padding: 0 24px; border-left: 2px solid var(--vert);
    color: var(--vert); text-decoration: none; font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .tableau-rubriques a:hover { background: var(--gazon); }
  .tableau-panier { order: 2; flex-direction: row; gap: 12px; padding: 0 20px; }
  .tableau-panier-mot { margin: 0; font-size: .86rem; }
  .tableau-score { font-size: 1.8rem; }
  .tableau-vide { order: 3; }
  .tableau-case { order: 4; padding: 0 22px; }
  .tableau-case-mot { display: inline; font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
  .tableau-menu, .rubriques { display: none; }
  .tableau-retour { order: 4; padding: 0 24px; }

  .court {
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr) 26px minmax(0, .62fr);
    grid-template-rows: minmax(0, 1fr) 96px;
    grid-template-areas: "fond carre filet promesses" "action score filet promesses";
    min-height: clamp(600px, calc(100vh - 66px), 780px); padding: 46px 0 46px 46px;
  }
  .court::before { inset: 16px 0 16px 16px; border-width: var(--trait) 0 var(--trait) var(--trait); }
  .court::after { inset: 46px 0 46px 16px; border-width: var(--trait) 0; }
  .court-fond { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 40px 16px 34px; border-bottom: 0; border-right: var(--trait) solid var(--craie); }
  /* jamais de coupure dans « Quinze amour » : deux ou trois lignes selon la largeur */
  .court-fond h1 { font-size: clamp(2.6rem, 4.6vw, 5.8rem); line-height: 1.04; margin-bottom: 12px; }
  .court-sous { font-size: 1.15rem; max-width: 28em; }
  .court-action { padding: 8px 40px 18px 34px; border-right: var(--trait) solid var(--craie); }
  .court-action .bouton { display: inline-block; min-width: 240px; }
  .court-carre { position: relative; min-height: 0; }
  .court-carre img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .court-score { flex-direction: row; gap: 16px; padding: 0; border-right: 0; border-top: var(--trait) solid var(--craie); font-size: 2.1rem; }
  .court-score i { width: 40px; }
  .court-filet {
    margin: -46px 0; height: auto; width: 26px;
    background:
      linear-gradient(var(--craie), var(--craie)) left / 6px 100% no-repeat,
      repeating-linear-gradient(90deg, rgba(27, 27, 24, .5) 0 1px, transparent 1px 6px),
      repeating-linear-gradient(0deg, rgba(27, 27, 24, .5) 0 1px, transparent 1px 6px);
  }
  .court-promesses { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 0 22px 0 30px; font-size: 1rem; }
  .court-promesses li { padding: 13px 0; border-bottom: var(--trait) solid var(--craie); }
  .court-promesses li:last-child { border-bottom: 0; }
  .court-promesse-large { display: block; }

  .section-tete { display: flex; align-items: baseline; gap: 32px; padding: 60px 40px 26px; }
  .section-tete h2 { margin: 0; flex: none; }
  .surface { padding: 34px 26px 28px; }
  .surface-tete { padding: 0 8px 22px; }
  .surface-tete h3 { font-size: 5rem; }
  .surfaces { grid-template-columns: minmax(0, 1fr); }
  .surface-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .surface-terre .surface-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filet-section { padding-bottom: 70px; }
  .filet-cotes { padding: 0 30px; }
  .filet-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .filet-cartes .carte:nth-child(n + 4) { display: block; }
  .filet-titre { font-size: 3.4rem; padding: 0 20px 6px; }
  .filet-cote .carte { padding: 0 14px; }
  .filet-cote:last-child { padding-top: 84px; }

  .clubhouse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .clubhouse-photo { position: relative; min-height: 560px; }
  .clubhouse-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .clubhouse-texte { padding: 56px 64px; }
  .ardoise img { width: 54px; height: 72px; }
  .ardoise-nom { font-size: 1.3rem; }
  .reglement { padding: 26px 40px 76px; }
  .reglement-affiche { padding: 36px 42px 28px; }
  .reglement-affiche li { padding-left: 84px; }

  .pied-court { padding: 44px 84px 40px; }
  .pied-court::before { left: 16px; right: 16px; }
  .pied-court::after { left: 52px; right: 52px; }
  /* une seule ligne : le pied ne doit pas écraser les pages courtes */
  .pied-jeu { margin-bottom: 22px; font-size: clamp(4.6rem, 8.4vw, 8.6rem); white-space: nowrap; }
  .pied-jeu br { display: none; }
  .pied-colonnes { grid-template-columns: 1fr 1fr 1.2fr 1.4fr; gap: 36px; }
  .pied-colonnes > div:first-child { grid-row: auto; }
  .pied-convocation { grid-column: auto; }
  .pied-colonnes a { padding: 5px 0; }
  .pied-hors { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; padding: 24px 84px 32px; align-items: start; }
  .pied-legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 28px; align-items: center; }
  .pied-legal-copy, .pied-legal-liens { margin: 0 !important; }
  .pied-leger { display: flex; flex-direction: column; padding: 20px 40px 30px; }

  .vitrine-tete { display: flex; align-items: baseline; gap: 32px; padding: 44px 34px 22px; }
  .vitrine-tete h1 { flex: none; margin: 0; }
  .rayons { padding: 0 18px; }
  .rayons a { padding: 0 22px; }
  .rayons a:first-child { border-left: var(--trait) solid var(--craie); }
  .reglages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 34px; padding: 18px 34px 26px; }
  .reglages-groupe { margin: 0; }
  .reglages-nom { width: auto; margin-right: 6px; }
  .reglages-bas { margin: 0 0 0 auto; gap: 26px; }
  .vitrine .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 42px; padding: 0 22px; }
  .vitrine .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vitrine .grille-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .carte { padding: 0 12px; }
  .carte-nom { font-size: 1.32rem; margin-top: 14px; }
  .grille-vide { padding: 24px 34px 8px; }

  .fiche { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; }
  .fiche-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; overflow: visible; padding: 30px 58px 34px; }
  .fiche-photos { background-position: 0 16%; }
  .fiche-photos::after { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: var(--trait); background: var(--craie); }
  .fiche-texte { position: sticky; top: 66px; padding: 26px 62px 40px 58px; }
  .fiche-texte h1 { font-size: clamp(2.8rem, 4.4vw, 4rem); }
  /* le titre à gauche, les trois pièces à droite : toute la largeur travaille */
  .set-complet { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 3fr); column-gap: 18px; align-items: start; padding: 52px 26px 60px; }
  .set-complet header { display: block; padding: 0 12px; }
  .set-complet h2 { margin-bottom: 10px; }

  .tiroir-entete { padding-left: 22px; }
  div.page-panier { padding-top: 40px; }
  .ck { padding: 34px 40px 72px; max-width: 1180px; }
  .ck-resume { top: 22px; }
  body.page-panier main::before, body.page-commander main::before, body.page-merci main::before { inset: 0 16px; }

  .feuille-page { padding: 34px 40px 66px; }
  .feuille-page::before { inset: 0 16px; }
  .feuille-tete { padding: 38px 56px 24px; }
  .legal { padding: 10px 56px 56px; }
  .legal th, .legal td { padding: 9px 10px; font-size: .95rem; }

  .histoire-tete { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
  .histoire-titre { padding: 60px 60px 56px; }
  .histoire-photo img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
  .histoire-corps { padding-top: 26px; }
  .dehors { padding: 66px 40px 96px; }
}

@media (min-width: 1100px) {
  .surfaces { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .surfaces .surface-terre { grid-row: span 2; }
  .surfaces .surface-terre .surface-cartes { margin-top: auto; }
  .surfaces .surface-gazon, .surfaces .surface-dur {
    display: grid; grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px;
  }
  .surfaces .surface-gazon .surface-tete, .surfaces .surface-dur .surface-tete { grid-column: 1; grid-row: 1; padding-right: 0; }
  .surfaces .surface-gazon .surface-cartes, .surfaces .surface-dur .surface-cartes { grid-column: 2; grid-row: 1 / span 2; overflow: hidden; padding-top: 6px; margin-top: -6px; }
  .surfaces .surface-gazon .surface-lien, .surfaces .surface-dur .surface-lien { grid-column: 1; grid-row: 2; }
  .surfaces .surface-gazon .carte-nom, .surfaces .surface-dur .carte-nom { font-size: 1.08rem; }
  .surfaces .surface-gazon .carte, .surfaces .surface-dur .carte { padding: 0 7px; }
  .surfaces .surface-tete h3 { font-size: 3.7rem; }
  .surfaces .surface-terre .surface-tete h3 { font-size: 6.6rem; }
}
