/* ==========================================================================
   COMPOSANTS — boutons, chiffres, piliers, équipe, terrains, tarifs,
                actualités, contact
   ========================================================================== */

/* --- Boutons -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;          /* jamais compressé : le libellé resterait rogné */
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow {
  display: inline-block;
  transition: transform .45s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ball);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--ball) 80%, transparent);
}
.btn--primary::before { background: var(--ink); }
.btn--primary:hover { color: var(--ball); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost {
  border: 1px solid color-mix(in oklab, currentColor 35%, transparent);
  color: inherit;
}
/* Le remplissage ne peut pas être « currentColor » : le survol change
   justement la couleur du texte, le fond et le texte deviendraient
   identiques (bouton noir sur noir). On fixe donc les deux couleurs, à
   partir de jetons qui ne s'inversent jamais d'un thème à l'autre.       */
.btn--ghost::before { background: var(--ghost-fond, var(--ink)); }
.btn--ghost:hover {
  border-color: transparent;
  color: var(--ghost-texte, var(--cream));
}
.btn--ghost:hover::before { transform: translateY(0); }

/* Sur fond sombre, le remplissage est clair et le texte sombre */
.hero .btn--ghost,
.section--dark .btn--ghost,
.plan-featured .btn--ghost,
.cta-band .btn--ghost,
.map .btn--ghost {
  --ghost-fond: var(--cream);
  --ghost-texte: var(--ink);
}

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--ball); }
.btn--dark:hover { color: var(--ink); }
.btn--dark:hover::before { transform: translateY(0); }

.btn--sm { padding: .6rem 1.1rem; font-size: .82rem; }

/* Lien souligné animé */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  padding-bottom: 2px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* --- Intro / chiffres ----------------------------------------------------- */
.intro {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; } }
.intro-big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.intro-big em {
  font-style: italic;
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: .25rem;
  transition: background .5s var(--ease);
}
.stat > :not(.stat-court) { position: relative; }

/* Plaque translucide : le texte reste lisible par-dessus les lignes du court */
.stat-plaque {
  display: grid;
  gap: .25rem;
  justify-self: start;
  max-width: 100%;
  padding: .7rem .85rem .75rem;
  margin: -.35rem -.4rem;
  border-radius: 14px;
  /* Volontairement translucide, et SANS flou d'arrière-plan : un flou
     effacerait les lignes du terrain (1,5 px de trait), ce qui donnait
     l'impression d'une plaque opaque. Le voile clair suffit à la lisibilité,
     d'autant que les lignes sont plus claires que la surface.              */
  background: color-mix(in oklab, var(--bg) 44%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px -12px rgba(0, 0, 0, .3);
}

/* --- Les tuiles dessinent deux terrains vus du dessus ---------------------
   Chaque paire de tuiles = un terrain, le séparateur central = le filet.  */
.stat--terre { background: color-mix(in oklab, var(--court-terre) 70%, var(--bg)); }
.stat--green { background: color-mix(in oklab, var(--court-green) 60%, var(--bg)); }
.stat--terre:hover { background: color-mix(in oklab, var(--court-terre) 78%, var(--bg)); }
.stat--green:hover { background: color-mix(in oklab, var(--court-green) 68%, var(--bg)); }

/* le texte reste lisible sur les deux surfaces */
.stat--terre .stat-detail,
.stat--green .stat-detail { color: color-mix(in oklab, var(--txt) 74%, transparent); }

.stat-court {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--court-lignes);
  opacity: .82;
  pointer-events: none;
}
.stat-court svg { width: 100%; height: 100%; display: block; }
.stat-court svg * { vector-effect: non-scaling-stroke; }
/* la moitié droite est le miroir de la gauche : le filet se retrouve
   contre le séparateur des deux tuiles */
.stat--droite .stat-court { transform: scaleX(-1); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-weight: 600; font-size: .95rem; }
.stat-detail { font-size: .82rem; color: var(--txt-faint); }

/* --- Piliers : séquence collante (scroll animé) --------------------------- */
.stack {
  position: relative;
  height: 240vh;                 /* mobile : moins de défilement vertical */
}
@media (min-width: 1024px) { .stack { height: 340vh; } }
.stack-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);   /* le titre ne passe plus sous l'en-tête */
}
.stack-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 940px) { .stack-grid { grid-template-columns: .9fr 1.1fr; } }

.stack-head { display: grid; gap: 1.1rem; align-content: center; }
.stack-head h2 { font-size: var(--fs-h2); }
.stack-steps { display: flex; gap: .5rem; margin-top: .75rem; }
.stack-step {
  flex: 1;
  max-width: 70px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.stack-step i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s linear;
}

.stack-cards {
  position: relative;
  display: grid;            /* toutes les tuiles dans la même cellule */
  padding-top: 52px;        /* place pour les tuiles du dessous qui dépassent */
}

/* Les tuiles se posent les unes sur les autres : la 2e arrive par la gauche,
   la 3e par la droite. Celles du dessous restent visibles en surépaisseur.  */
.stack-card {
  grid-area: 1 / 1;         /* superposition sans position absolue */
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3.6vw, 2.4rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform .9s var(--ease), opacity .55s var(--ease);
}
.stack-card[data-arrivee="bas"]    { transform: translate3d(0, 48px, 0) scale(.95); }
.stack-card[data-arrivee="gauche"] { transform: translate3d(-62%, 14px, 0) rotate(-7deg); }
.stack-card[data-arrivee="droite"] { transform: translate3d(62%, 14px, 0) rotate(7deg); }

.stack-card.is-posee {
  opacity: 1;
  pointer-events: auto;
  /* les tuiles du dessous remontent, rétrécissent et s'assombrissent */
  transform:
    translate3d(0, calc(var(--p, 0) * -22px), 0)
    scale(calc(1 - var(--p, 0) * 0.052))
    rotate(0deg);
  filter: brightness(calc(1 - var(--p, 0) * 0.16));
}

.stack-card-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.stack-card-num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mint);
}
.stack-card-tag {
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-faint);
  white-space: nowrap;
}

/* La notion clé : illustration + grand chiffre */
.stack-card-cle {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 1.4rem);
  padding: clamp(.85rem, 2vw, 1.1rem) clamp(1rem, 2.2vw, 1.3rem);
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--ball) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--ball) 24%, transparent);
}
.stack-card-illu {
  flex: none;
  width: clamp(88px, 11vw, 118px);
  color: var(--txt);
}
.stack-card-illu svg { width: 100%; height: auto; display: block; }
.stack-card-cle-txt { display: grid; gap: .2rem; min-width: 0; }
.stack-card-chiffre {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ball);
  font-variant-numeric: tabular-nums;
}
.stack-card-chiffre em {
  font-style: normal;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--txt);
  opacity: .9;
}
/* Mobile : tout doit tenir dans une hauteur d'écran, sans débordement */
@media (max-width: 767px) {
  .stack { height: 240svh; }        /* même unité que la boîte collante */
  .stack-sticky { padding-top: calc(var(--header-h) + .5rem); padding-bottom: .75rem; }
  .stack-grid { gap: 1.35rem; }
  .stack-head { gap: .7rem; }
  .stack-head .lead { font-size: .95rem; }
  .stack-cards { padding-top: 44px; }
  .stack-card { padding: 1.15rem 1.15rem 1.4rem; gap: .8rem; }
  .stack-card-cle { gap: .85rem; padding: .7rem .85rem; }
  .stack-card-illu { width: 68px; }
  .stack-card-chiffre { font-size: 1.7rem; }
  .stack-card h3 { font-size: 1.28rem; }
  .stack-card p { font-size: .92rem; line-height: 1.5; }
}
.stack-card-legende {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--txt-faint);
}

.stack-card h3 { font-size: var(--fs-h3); }
.stack-card p { color: var(--txt-soft); max-width: 46ch; }

/* --- Cartes génériques ---------------------------------------------------- */
.card-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* --- Équipe --------------------------------------------------------------- */
.member {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.member img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.55) contrast(1.03);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
}
.member:hover img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }
.member::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,12,.92) 6%, rgba(8,14,12,.35) 45%, transparent 72%);
  transition: opacity .6s;
}
.member-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--cream);
  display: grid;
  gap: .25rem;
}
.member-role {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ball);
}
.member-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.member-detail {
  font-size: .84rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 72%, transparent);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease), opacity .4s, margin-top .5s var(--ease);
}
.member:hover .member-detail,
.member:focus-within .member-detail { max-height: 6em; opacity: 1; margin-top: .3rem; }

/* --- Terrains ------------------------------------------------------------- */
.courts { display: block; }

.court-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}
.court-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.3s var(--ease);
}
.court-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1.1s var(--ease);
}
.court-featured:hover .court-media img,
.court-card:hover .court-media img { transform: scale(1.09); }
.court-featured:hover .court-media::after,
.court-card:hover .court-media::after { transform: translateX(100%); }

.court-body { display: grid; gap: .85rem; align-content: center; }
.court-body h3 { font-size: var(--fs-h3); }
.court-surface {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}
.section--dark .court-surface { color: var(--ball); }
.court-body p { color: var(--txt-soft); max-width: 48ch; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.badge {
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 500;
  color: var(--txt-soft);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  transition: border-color .4s, color .4s, transform .4s var(--ease);
}
/* au survol, le vert foncé garde un contraste suffisant pour ce petit texte
   (le vert clair tombait à 2,6:1) */
.badge:hover { border-color: var(--mint); color: var(--green); transform: translateY(-2px); }
.section--dark .badge:hover { color: var(--mint); }

/* Terrain mis en avant */
.court-featured {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 880px) { .court-featured { grid-template-columns: 1.15fr .85fr; } }
.court-featured .court-media { aspect-ratio: 16 / 10; }
.court-featured .court-body { gap: 1.05rem; }
.court-featured h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

/* Les autres terrains */
.courts-list {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.court-card { display: grid; gap: 1rem; align-content: start; }
.court-card .court-media { aspect-ratio: 16 / 11; }
.court-card .court-body { align-content: start; gap: .7rem; }
.court-card h3 { font-size: 1.3rem; }
.court-card p { font-size: .95rem; }

/* --- Tarifs --------------------------------------------------------------- */
.plans { display: block; }

/* Coche des listes (suit la couleur du theme) */
.tick {
  flex: none;
  width: 17px; height: 17px;
  margin-top: .2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--mint) 16%, transparent);
  color: var(--mint);
}
.tick svg {
  width: 11px; height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-list { display: grid; gap: .6rem; position: relative; }
.plan-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--txt-soft);
  line-height: 1.5;
}

/* Formule mise en avant */
.plan-featured {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 880px) {
  .plan-featured { grid-template-columns: .82fr 1.18fr; align-items: center; }
}
.plan-featured::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 190%;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 18% 78%, color-mix(in oklab, var(--green) 75%, transparent), transparent 70%),
    radial-gradient(38% 46% at 88% 22%, color-mix(in oklab, var(--clay) 48%, transparent), transparent 70%);
  animation: heroDrift 22s var(--ease-in-out) infinite alternate;
}
.plan-featured-main { display: grid; gap: .55rem; align-content: center; justify-items: start; }
.plan-featured .plan-name { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.plan-featured .plan-cible { color: color-mix(in oklab, var(--cream) 62%, transparent); }
.plan-featured .plan-price { font-size: clamp(2.8rem, 6vw, 4.2rem); color: var(--ball); }
.plan-featured .plan-price small { color: color-mix(in oklab, var(--cream) 60%, transparent); }
.plan-featured .plan-list li { color: color-mix(in oklab, var(--cream) 84%, transparent); }
.plan-featured .tick { background: color-mix(in oklab, var(--ball) 22%, transparent); color: var(--ball); }
.plan-featured .btn { margin-top: .9rem; }
.plan-list--wide { gap: .7rem; }
@media (min-width: 620px) { .plan-list--wide { grid-template-columns: 1fr 1fr; gap: .7rem 1.75rem; } }

.plan-flag {
  position: absolute;
  top: clamp(1rem, 3vw, 1.6rem);
  right: clamp(1rem, 3vw, 1.6rem);
  z-index: 2;
  padding: .32rem .75rem;
  border-radius: 999px;
  background: var(--ball);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Les autres formules */
.plans-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.plan {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s;
  overflow: hidden;
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--mint) 40%, var(--line));
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  position: relative;
}
.plan-cible { font-size: .84rem; color: var(--txt-faint); position: relative; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  position: relative;
}
.plan-price small {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--txt-faint);
}
.plan .btn { margin-top: .4rem; justify-content: center; position: relative; }
/* Cartes de hauteurs différentes : le bouton reste aligné en bas */
.plans-list .plan { display: flex; flex-direction: column; }
.plans-list .plan > .btn { margin-top: auto; }
.plans-list .plan > .plan-list { margin-bottom: .4rem; }

.options {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.option {
  display: grid;
  gap: .3rem 2rem;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), background .5s;
}
.option:hover { padding-left: .75rem; }
.option-name { font-weight: 600; font-size: 1.05rem; font-family: var(--font-display); letter-spacing: -.02em; }
.option-price { font-weight: 600; color: var(--clay); white-space: nowrap; }
.section--dark .option-price { color: var(--ball); }
.option-detail { grid-column: 1 / -1; font-size: .9rem; color: var(--txt-faint); max-width: 62ch; }
.tarifs-note {
  margin-top: 1.5rem;
  font-size: .86rem;
  color: var(--txt-faint);
  max-width: 60ch;
}

/* Sélecteur Séquestre / hors commune ---------------------------------------
   Chaque prix existe en deux exemplaires ; la classe .zone-hors posée sur la
   section choisit lequel est visible.                                      */
.prix-hors { display: none; }
.zone-hors .prix-seq { display: none; }
.zone-hors .prix-hors { display: inline-block; }
.prix-seq, .zone-hors .prix-hors { animation: prixIn .45s var(--ease-out); }
.prix-seq { display: inline-block; }
@keyframes prixIn {
  from { opacity: 0; transform: translateY(.18em); }
}

.zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}
.zone-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.zone-switch button {
  padding: .62rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--txt-soft);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.zone-switch button:hover { color: var(--txt); }
.zone-switch button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.zone-switch button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.zone-hint { font-size: .86rem; color: var(--txt-faint); }

/* École de tennis : tableau âge × séances dans la carte mise en avant ----- */
.plan-text {
  position: relative;
  max-width: 42ch;
  margin-bottom: .4rem;
  font-size: .95rem;
  line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 72%, transparent);
}
.ecole { position: relative; }
.ecole-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.ecole-table thead th {
  padding: 0 .5rem .8rem;
  text-align: right;
  vertical-align: bottom;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--cream) 78%, transparent);
}
.ecole-table thead th small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: color-mix(in oklab, var(--cream) 55%, transparent);
}
.ecole-table thead th:first-child { text-align: left; padding-left: 0; }
.ecole-table tbody tr { border-top: 1px solid color-mix(in oklab, var(--cream) 13%, transparent); }
.ecole-table tbody th,
.ecole-table td { padding: .95rem .5rem; vertical-align: top; }
.ecole-table tbody th { padding-left: 0; text-align: left; font-weight: 400; }
.ecole-table td {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ball);
}
.ecole-age {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--cream);
}
.ecole-detail {
  display: block;
  margin-top: .15rem;
  font-size: .8rem;
  color: color-mix(in oklab, var(--cream) 58%, transparent);
}
.ecole-lien {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ball);
}
.ecole-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.ecole-lien .ico-ext { width: 10px; height: 10px; }

/* --- Actualités ----------------------------------------------------------- */
.news-featured {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
@media (min-width: 880px) { .news-featured { grid-template-columns: 1.1fr .9fr; } }
.news-featured .news-media { aspect-ratio: 16 / 10; }
.news-featured .news-title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }

.news-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 16 / 11;
}
.news-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}
.news-card:hover .news-media img,
.news-featured:hover .news-media img { transform: scale(1.08); }

.news-date {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
  line-height: 1;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.news-date b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.news-date span {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 2px;
}

.news-body { display: grid; gap: .75rem; align-content: center; }
.news-cat {
  display: inline-flex;
  align-self: start;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--mint) 14%, transparent);
  color: var(--green);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section--dark .news-cat { background: color-mix(in oklab, var(--ball) 16%, transparent); color: var(--ball); }
.news-flag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .4rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ball);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.news-flag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ball);
  animation: ping 2.4s var(--ease-out) infinite;
}
.news-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.14;
  transition: color .4s;
}
.news-card:hover .news-title, .news-featured:hover .news-title { color: var(--green); }
.news-excerpt { color: var(--txt-soft); font-size: .95rem; }
.news-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--green);
  margin-top: .25rem;
}
.section--dark .news-more, .section--dark .news-card:hover .news-title { color: var(--ball); }
.news-more .arrow { transition: transform .45s var(--ease); }
.news-card:hover .news-more .arrow,
.news-featured:hover .news-more .arrow { transform: translateX(5px); }

.news-list {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.news-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform .6s var(--ease);
}
.news-card:hover { transform: translateY(-5px); }

/* --- Article en surimpression --------------------------------------------- */
.reader {
  position: fixed;
  inset: 0;
  z-index: 140;
  visibility: hidden;
  pointer-events: none;
}
.reader.is-open { visibility: visible; pointer-events: auto; }
.reader-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.reader.is-open .reader-backdrop { opacity: 1; }
.reader-panel {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 94svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(6%);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .4s;
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.45);
}
.reader.is-open .reader-panel { transform: none; opacity: 1; }
@media (min-width: 1024px) {
  .reader .reader-close { top: calc(3svh + 14px); right: max(14px, calc(50vw - 480px + 14px)); }
  .reader-panel {
    inset: 3svh 0 auto 0;
    max-width: 960px;
    margin-inline: auto;
    max-height: 94svh;
    border-radius: var(--r-xl);
  }
}
.reader-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.1rem;
  transition: transform .4s var(--ease), background .3s;
}
.reader-close:hover { transform: rotate(90deg); background: var(--clay); }
.reader-hero {
  position: relative;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ink-2);
}
.reader-hero img { width: 100%; height: 100%; object-fit: cover; }
.reader-body {
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 5rem) clamp(3rem, 8vw, 5rem);
  max-width: 78ch;
  margin-inline: auto;
}
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: var(--txt-faint);
}
.reader-body h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 1.5rem;
}
.article { font-size: 1.03rem; line-height: 1.75; }
.article p { margin-bottom: 1.15em; color: var(--txt-soft); }
.article strong { color: var(--txt); font-weight: 600; }
.article h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 2em 0 .7em;
  letter-spacing: -.03em;
}
.article ul { display: grid; gap: .5rem; margin: 0 0 1.4em; }
.article li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--txt-soft);
}
.article li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.article blockquote {
  margin: 1.75em 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--ball);
  background: color-mix(in oklab, var(--mint) 7%, transparent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -.02em;
}
.article blockquote p { color: var(--txt); margin: 0; }
.article hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.05fr .95fr; } }

.contact-block { display: grid; gap: 1.75rem; align-content: start; }
.contact-item { display: grid; gap: .3rem; }
.contact-item h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-faint);
  font-weight: 600;
}
.contact-item a, .contact-item p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -.03em;
  line-height: 1.25;
}

.hours { border-top: 1px solid var(--line); }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.hours li span:first-child { color: var(--txt-soft); }
.hours li span:last-child { font-weight: 600; }

.map {
  position: relative;
  display: block;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 380px;
  background: var(--ink-2);
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Bandeau posé sur la carte : nom, adresse et bouton d'itinéraire */
.map-bar {
  position: absolute;
  inset: auto .7rem 1.7rem .7rem;   /* laisse visible l'attribution Google */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding: .75rem .9rem;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: var(--cream);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
}
.map-bar-txt { display: grid; gap: .1rem; min-width: 0; }
.map-bar-txt strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.map-bar-txt span {
  font-size: .8rem;
  line-height: 1.4;
  color: color-mix(in oklab, var(--cream) 66%, transparent);
}
.map-cta { flex: none; }
.map-cta svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 460px) {
  .map { min-height: 340px; }
  .map-bar { flex-direction: column; align-items: stretch; }
  .map-cta { justify-content: center; }
}

/* --- Bandeau d'appel ------------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 7vw, 5rem);
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 160%;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 80%, color-mix(in oklab, var(--green) 75%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 25%, color-mix(in oklab, var(--clay) 50%, transparent), transparent 70%);
  animation: heroDrift 20s var(--ease-in-out) infinite alternate;
}
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); max-width: 18ch; }
.cta-band p { color: color-mix(in oklab, var(--cream) 72%, transparent); max-width: 50ch; }

/* --------------------------------------------------------------------------
   RAILS HORIZONTAUX (mobile / tablette)
   Les longues listes (équipe, tarifs, actualités) défilent latéralement
   au lieu d'allonger la page. Au-delà de 1024px, on retrouve la grille.
   -------------------------------------------------------------------------- */
.rail-bar { display: none; }

@media (max-width: 1023px) {

  [data-rail] {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(.85rem, 3vw, 1.25rem);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scroll-behavior: smooth;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block: .35rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  [data-rail]::-webkit-scrollbar { display: none; }

  [data-rail] > * {
    flex: 0 0 var(--rail-w, min(76%, 300px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* largeurs adaptées à chaque contenu */
  #teamGrid  { --rail-w: min(62%, 230px); }
  .plans-list  { --rail-w: min(84%, 320px); }
  .courts-list { --rail-w: min(82%, 320px); }
  .news-list { --rail-w: min(80%, 320px); }

  /* --- barre de progression + accroche ---------------------------------- */
  .rail-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .35rem;
  }
  .rail-hint {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--txt-faint);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .rail-hint b {
    display: inline-block;
    font-size: .9rem;
    animation: railNudge 2.2s var(--ease-in-out) infinite;
  }
  .rail-bar.is-touched .rail-hint { opacity: 0; transform: translateX(-8px); }

  .rail-track {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
  }
  .rail-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mint), var(--ball));
    transition: transform .18s linear;
    will-change: transform;
  }
  .section--dark .rail-track { background: color-mix(in oklab, var(--cream) 16%, transparent); }
}

@keyframes railNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-rail] { scroll-behavior: auto; }
  .rail-hint b { animation: none; }
}

/* L'article en une reste compact sur mobile ------------------------------- */
@media (max-width: 1023px) {
  .news-featured .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Cartes d'actualité alignées dans le rail -------------------------------- */
@media (max-width: 1023px) {
  .news-list .news-card { grid-template-rows: auto 1fr; height: 100%; }
  .news-list .news-body { height: 100%; }
  .news-list .news-more { margin-top: auto; padding-top: .35rem; }
}

/* Prix plancher : « À partir de », collé au-dessus du prix ----------------- */
.plan-price-from {
  position: relative;
  display: block;
  margin-bottom: -.5rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-faint);
}
.plan-featured .plan-price-from { color: color-mix(in oklab, var(--cream) 62%, transparent); }

/* Sous le prix : licence en sus, second tarif (hors commune) -------------- */
.plan-price-note {
  position: relative;
  display: block;
  margin-top: -.35rem;
  font-size: .82rem;
  color: var(--txt-faint);
  line-height: 1.4;
}
.plan-price-note b { font-weight: 600; color: var(--txt-soft); }
.plan-featured .plan-price-note { color: color-mix(in oklab, var(--cream) 58%, transparent); }
.plan-featured .plan-price-note b { color: color-mix(in oklab, var(--cream) 88%, transparent); }


/* --------------------------------------------------------------------------
   PARTENAIRES — grille de logos, juste avant le pied de page (hors menu)
   -------------------------------------------------------------------------- */
.partners-grid {
  --cols: 2;
  --gap: clamp(.75rem, 1.6vw, 1.1rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    /* une ligne incomplète reste centrée */
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px)  { .partners-grid { --cols: 4; } }
@media (min-width: 1024px) { .partners-grid { --cols: 5; } }

/* Les logos sont livrés au même format (800×400, fond blanc, logo déjà
   centré et équilibré) : la vignette n'a qu'à les afficher pleine largeur. */
.partner {
  flex: none;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner img {
  display: block;
  width: 100%;
  height: auto;
}


/* --------------------------------------------------------------------------
   CARTE — écran d'accord avant chargement de Google Maps
   -------------------------------------------------------------------------- */
.map-consent {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  padding-bottom: clamp(7rem, 17vh, 9.5rem);
  text-align: center;
  color: var(--cream);
  background: linear-gradient(135deg, var(--ink-2), var(--green-dk));
  isolation: isolate;
}
.map-consent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in oklab, #fff 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, #fff 8%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.map-consent strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -.03em;
}
.map-consent p {
  margin: 0;
  max-width: 42ch;
  color: color-mix(in oklab, var(--cream) 78%, transparent);
}
.map-consent .map-note {
  font-size: .82rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 58%, transparent);
  margin-top: .2rem;
}
.map-consent .btn { margin-top: .55rem; }
.map-note-lien {
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: color-mix(in oklab, var(--cream) 62%, transparent);
}
.map-note-lien:hover { color: var(--ball); }

/* --------------------------------------------------------------------------
   PAGES LÉGALES — mentions légales, confidentialité
   -------------------------------------------------------------------------- */
.legal {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem)) clamp(3rem, 8vh, 6rem);
}
.legal-head {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.legal-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
.legal .article {
  max-width: 74ch;
}
.legal .article h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -.035em;
  margin: 2.4em 0 .8em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.legal .article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Fiches d'identité (éditeur, hébergeur…) */
.fiche {
  display: grid;
  gap: 0;
  margin: 0 0 1.6em;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 55%, transparent);
}
.fiche-ligne {
  display: grid;
  gap: .1rem .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.fiche-ligne:last-child { border-bottom: 0; }
@media (min-width: 620px) {
  .fiche-ligne { grid-template-columns: 15rem 1fr; align-items: baseline; gap: 1.5rem; }
}
.fiche dt {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--txt-faint);
}
.fiche dd { margin: 0; color: var(--txt); }

.legal-maj {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--txt-faint);
}
.legal-retour { margin-top: clamp(2rem, 5vw, 3rem); }

/* Liens légaux du pied de page */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.footer-legal a { transition: color .3s; }
.footer-legal a:hover { color: var(--ball); }
.footer-legal a[aria-current="page"] { color: var(--ball); }
