/* leanacheron.fr : styles propres à chaque page */

/* ---------- Intro (accueil, première visite) ---------- */
.intro { display: none; }
.intro-run .intro {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 400;
  padding: clamp(20px, 4vw, 48px);
  background: var(--espresso); color: var(--cream);
  transition: transform 1s var(--ease), border-radius 1s var(--ease);
}
.intro-run { overflow: hidden; }
.intro-out .intro { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; }
.intro-top { display: flex; justify-content: space-between; font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .14em; color: var(--coral); }
.intro-name {
  font-family: var(--title); font-weight: 700; text-transform: uppercase; line-height: .9;
  font-size: clamp(52px, 13vw, 210px); letter-spacing: -.02em; color: var(--cream);
}
.intro-name .row { display: block; overflow: hidden; }
.intro-name .row span { display: inline-block; transform: translateY(110%); animation: introLetter .9s var(--ease) forwards; animation-delay: calc(var(--i) * .045s + .1s); }
.intro-name .row:nth-child(2) span { color: var(--coral); }
@keyframes introLetter { to { transform: none; } }
.intro-bottom { display: flex; justify-content: flex-end; align-items: flex-end; gap: 20px; }
.intro-count { font-family: var(--title); font-weight: 700; font-size: clamp(40px, 7vw, 96px); line-height: .8; color: var(--coral); }
.intro-count small { font-size: .4em; }

/* ---------- Accueil : héros ---------- */
.hero { padding-top: clamp(120px, 15vw, 170px); padding-bottom: clamp(40px, 6vw, 80px); min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }
.hero-roles { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; letter-spacing: 0; color: var(--espresso); margin-bottom: 22px; }
.rotate { position: relative; display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.rotate span { white-space: nowrap; color: var(--terra); }
html:not(.js) .rotate span + span { display: none; }
.js .rotate span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(60%); transition: transform .5s var(--ease), opacity .35s ease; }
.js .rotate span:first-child { position: relative; }
.js .rotate span.is-on { opacity: 1; transform: none; }
.js .rotate span.is-off { opacity: 0; transform: translateY(-60%); }
.hero .lead { margin-bottom: 34px; }

.hero-photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.hero-photo .photo { --ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); }
.sticker {
  position: absolute; left: -36px; bottom: 36px; width: 130px; height: 130px;
  display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--espresso);
  box-shadow: 0 16px 30px -16px rgba(67, 40, 28, .6);
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker text { font-family: var(--title); font-weight: 700; font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase; fill: var(--espresso); }
.sticker b { font-family: var(--title); font-size: 26px; }
@media (max-width: 600px) { .sticker { width: 104px; height: 104px; left: -8px; bottom: 20px; } }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; color: var(--terra);
}
.scroll-hint i { position: relative; width: 22px; height: 36px; border: 2px solid var(--terra); border-radius: 12px; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--coral); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Accueil : à propos ---------- */
.about-text { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; color: var(--espresso); font-weight: 500; max-width: 30ch; margin-bottom: 1em; }
.about-text em { font-style: normal; color: var(--terra); }

/* ---------- Accueil : casquettes ---------- */
.caps { display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.cap {
  --bg: var(--cream); --fg: var(--espresso); --accent: var(--terra);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--fg); border-radius: var(--radius);
  padding: 28px; text-decoration: none; min-height: 300px;
}
.cap:nth-child(2) { --bg: var(--terra); --fg: var(--cream); --accent: var(--espresso); }
.cap:nth-child(3) { --bg: var(--coral); --fg: var(--espresso); --accent: var(--cream); }
.cap:nth-child(4) { --bg: var(--bark); --fg: var(--cream); --accent: var(--coral); box-shadow: inset 0 0 0 1.5px rgba(251, 242, 192, .2); }
.cap-num { font-family: var(--title); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--accent); }
.cap h3 { color: var(--fg); font-size: clamp(26px, 2.6vw, 40px); margin-top: auto; }
.cap-body { margin-top: 14px; }
.cap-body p { font-size: 16px; line-height: 1.55; max-width: 34ch; }
.cap-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em;
}
.cap-go i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--bg); font-style: normal; transition: transform .5s var(--ease); }
.cap:hover .cap-go i, .cap:focus-visible .cap-go i { transform: translateX(5px); }
.cap-photo { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .25; transition: transform .8s var(--ease), opacity .5s; }
.cap:hover .cap-photo { transform: scale(1.2) rotate(30deg); opacity: .5; }

@media (min-width: 900px) {
  .caps { display: flex; height: 520px; gap: 12px; }
  .cap { flex: 1 1 0; min-width: 0; min-height: 0; }
  /* l'apparition au défilement (.reveal) écrasait la transition de largeur : les cartes sautaient d'un coup */
  .js .caps .cap { transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), flex-grow .9s var(--ease); }
  .cap.is-open { flex-grow: 3.2; }
  /* titre couché quand la carte est fermée : on le fait pivoter (animable) au lieu de changer le sens d'écriture */
  .cap h3 { white-space: nowrap; transform-origin: 0 100%; transition: transform .8s var(--ease); }
  .cap:not(.is-open) h3 { transform: translateX(1.05em) rotate(-90deg); }
  /* le texte se replie en hauteur au lieu de sortir brusquement du flux */
  .cap-body {
    width: 340px; max-height: 0; margin-top: 0; opacity: 0; transform: translateY(16px);
    transition: max-height .7s var(--ease), margin-top .7s var(--ease), opacity .25s, transform .5s var(--ease);
  }
  .cap.is-open .cap-body {
    max-height: 260px; margin-top: 14px; opacity: 1; transform: none;
    transition: max-height .7s var(--ease), margin-top .7s var(--ease), opacity .5s .3s, transform .7s var(--ease) .3s;
  }
}

/* ---------- Accueil : parcours ---------- */

/* ---------- Sports ---------- */
.sports-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 599px) {
  .sports-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sports-grid .flip-face { padding: 14px; border-radius: 18px; }
  .sports-grid .flip-icon { font-size: 26px; }
  .sports-grid .flip-front h3 { font-size: 18px; }
  .sports-grid .flip-years { font-size: 10px; padding: 4px 9px; letter-spacing: .03em; }
  .sports-grid .flip-back { gap: 8px; }
  .sports-grid .flip-back h3 { font-size: 16px; }
  .sports-grid .flip-back dl { gap: 6px; font-size: 12px; line-height: 1.4; }
  .sports-grid .flip-back dt { font-size: 10px; }
}
.flip {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1200px; text-align: left;
}
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; overflow: hidden;
}
.flip-front { background: var(--espresso); color: var(--cream); }
.flip:nth-child(3n+2) .flip-front { background: var(--terra); }
.flip:nth-child(3n+3) .flip-front { background: var(--coral); color: var(--espresso); }
.flip-front .photo { position: absolute; inset: 0; border-radius: 0; border: 0; opacity: .22; --ratio: auto; }
.flip-front .photo:has(img) { opacity: 1; }
.flip-front .photo:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(67,40,28,.85)); }
.flip-front > * { position: relative; }
.flip-icon { font-size: 42px; line-height: 1; }
.flip-front h3 { color: inherit; margin-top: auto; font-size: clamp(26px, 2.4vw, 34px); }
.flip-hint { margin-top: 10px; font-size: 13px; opacity: .85; display: inline-flex; gap: 8px; align-items: center; }
.flip-back { background: var(--cream-2); color: var(--bark); border: 1.5px solid var(--line); transform: rotateY(180deg); gap: 14px; }
.flip-back h3 { font-size: 22px; }
.flip-back dl { margin: 0; display: grid; gap: 12px; font-size: 15px; }
.flip-back dt { font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; color: var(--terra); }
.flip-back dd { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 1.5px solid var(--espresso); background: transparent; color: var(--espresso);
  border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .1em;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--espresso); color: var(--cream); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- Magasin ---------- */
.store-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store-cats span {
  padding: 10px 20px; border-radius: 999px; background: var(--espresso); color: var(--cream);
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em;
  transition: transform .4s var(--ease), background .3s;
}
.store-cats span:hover { transform: rotate(-4deg) scale(1.06); background: var(--coral); color: var(--espresso); }
.photo-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.photo-row .photo:first-child { grid-row: span 2; --ratio: 3 / 4.4; }
.photo-row .photo { --ratio: 4 / 3; }
.site-card {
  display: grid; gap: 28px; align-items: center; text-decoration: none;
  background: var(--coral); color: var(--espresso); border-radius: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 5vw, 64px); overflow: hidden; position: relative;
  transition: background .5s;
}
@media (min-width: 860px) { .site-card { grid-template-columns: 1fr auto; } }
.site-card h2 { color: var(--espresso); }
.site-card:hover { background: var(--terra); }
.site-card .big-arrow {
  width: clamp(96px, 12vw, 160px); height: clamp(96px, 12vw, 160px); border-radius: 50%;
  display: grid; place-items: center; background: var(--espresso); color: var(--coral); font-size: clamp(36px, 5vw, 60px);
  transition: transform .7s var(--ease);
}
.site-card:hover .big-arrow { transform: translateX(8px) scale(1.06); }

/* ---------- Agence ---------- */
.poles .card { overflow: hidden; }
.poles .card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,111,93,.35), transparent 65%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.poles .card:hover::after { opacity: 1; }
.poles ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.poles li { display: flex; gap: 10px; }
.poles li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--coral); }

.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(251, 242, 192, .08); border: 1.5px solid rgba(251, 242, 192, .16); margin-bottom: 40px; }
.tabs [role="tab"] {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; color: var(--cream);
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em;
  transition: color .4s; -webkit-tap-highlight-color: transparent;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--espresso); }
.tabs-ind { position: absolute; z-index: 0; top: 0; left: 0; height: 0; border-radius: 999px; background: var(--coral); transition: transform .6s var(--ease), width .6s var(--ease), height .6s var(--ease); }
@media (max-width: 599px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 24px; margin-bottom: 32px; }
  .tabs [role="tab"] { padding: 12px 10px; border-radius: 18px; font-size: 12px; letter-spacing: .05em; line-height: 1.25; text-align: center; }
  .tabs-ind { border-radius: 18px; }
}
.tab-panel.is-shown { animation: panelIn .8s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.client-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .client-grid { grid-template-columns: 1fr 1fr; } }
.client-grid h3 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 16px; }
.client-grid .photo { --ratio: 16 / 11; border-color: rgba(251, 242, 192, .3); background: repeating-linear-gradient(-45deg, rgba(251,242,192,.06) 0 14px, transparent 14px 28px), rgba(251,242,192,.04); }
.client-grid .photo-label { color: var(--cream); opacity: .7; }

/* ---------- Engagements ---------- */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 64px; --fill: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line);
}
.timeline::after { background: var(--coral); transform-origin: top; transform: scaleY(var(--fill)); }
.step { position: relative; }
.step::before {
  content: attr(data-n); position: absolute; left: -64px; top: 18px; z-index: 1;
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 3px solid var(--line); color: var(--terra);
  font-family: var(--title); font-weight: 700; font-size: 14px;
  transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease);
}
.step.is-active::before { background: var(--coral); border-color: var(--coral); color: var(--espresso); transform: scale(1.08); }
.step .card { transition: transform .6s var(--ease), background .5s, box-shadow .5s; }
.step.is-active .card { background: var(--cream); box-shadow: 0 24px 50px -32px rgba(67, 40, 28, .55); }
.quote {
  font-family: var(--title); font-weight: 700; text-transform: uppercase; color: var(--cream);
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1.05;
}
.quote em { font-style: normal; color: var(--coral); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-list span { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(251, 242, 192, .3); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.pill-list span:hover { background: var(--coral); color: var(--espresso); border-color: var(--coral); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-tiles { display: grid; gap: 14px; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: 22px; background: var(--cream-2); border: 1.5px solid var(--line);
  text-decoration: none; color: var(--espresso); cursor: pointer; text-align: left; width: 100%;
  transition: background .4s, transform .5s var(--ease), border-color .4s;
}
.tile:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); transform: translateX(6px); }
.tile small { display: block; font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; color: var(--terra); margin-bottom: 4px; }
.tile:hover small { color: var(--coral); }
.tile span.v { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; word-break: break-word; }
.tile .copy-state, .tile .go {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--coral); color: var(--espresso);
  font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .1em;
}
.tile.is-copied .copy-state { background: var(--cream); }
.form { background: var(--espresso); color: var(--cream); border-radius: clamp(28px, 3vw, 40px); padding: clamp(26px, 4vw, 48px); display: grid; gap: 22px; }
.form h2 { color: var(--cream); font-size: clamp(28px, 3vw, 40px); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form label.lbl { display: block; font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; color: var(--coral); margin-bottom: 12px; }
.form .chip { border-color: rgba(251, 242, 192, .4); color: var(--cream); position: relative; }
.form .chip:has(input:checked) { background: var(--coral); border-color: var(--coral); color: var(--espresso); }
.field { position: relative; }
.form input[type="text"], .form textarea {
  width: 100%; border: 0; border-bottom: 2px solid rgba(251, 242, 192, .3); background: transparent; color: var(--cream);
  font: inherit; font-size: 18px; padding: 10px 0; border-radius: 0; outline: none; resize: vertical;
  transition: border-color .3s;
}
.form input[type="text"]:focus, .form textarea:focus { border-color: var(--coral); }
.form ::placeholder { color: rgba(251, 242, 192, .45); }
.char-count { position: absolute; right: 0; bottom: -22px; font-size: 12px; opacity: .6; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }
.form-note { font-size: 15px; margin: 0; flex: 1 1 200px; }
.form.is-sent .form-note { color: var(--coral); font-weight: 500; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-error { display: block; min-height: 0; margin-top: 8px; font-size: 14px; color: var(--coral); }
.field-error:empty { display: none; }
.form input[aria-invalid="true"] { border-color: var(--coral); }
.contact-topic {
  font-size: 13px; letter-spacing: .14em; color: var(--terra);
  display: flex; align-items: center; gap: 10px; margin: 18px 0 2px;
}
.contact-topic:first-child { margin-top: 0; }
#contact-form { scroll-margin-top: 100px; }
.contact-hero .contact-grid { align-items: start; }
@media (min-width: 960px) { .contact-intro { position: sticky; top: 130px; } }
.contact-intro h1 { font-size: clamp(44px, 7.4vw, 120px); }
.topic-hint { margin: 14px 0 0; font-size: 15px; opacity: .85; }

/* ---------- Héros avec photo paysage ---------- */
@media (min-width: 1024px) {
  .page-hero-grid.hero-landscape { grid-template-columns: 1fr 1fr; align-items: center; }
  .page-hero-grid.hero-landscape > :last-child { max-width: none; }
}
.hero-landscape > :last-child { max-width: 640px; }

/* ---------- Diaporama ---------- */
.slider { position: relative; }
.slider-viewport {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: var(--ratio, 4 / 5); background: var(--cream-2);
  touch-action: pan-y; cursor: grab;
}
.slider-viewport:active { cursor: grabbing; }
.slider-track { display: flex; height: 100%; transition: transform .9s var(--ease); will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  transform: scale(1.08); transition: transform 6s ease-out;
}
.slide.is-active img { transform: scale(1); }
.slider-ui { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.slider-btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--espresso); background: transparent; color: var(--espresso); font-size: 18px;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.slider-btn:hover { background: var(--espresso); color: var(--cream); transform: scale(1.06); }
.slider-dots { display: flex; gap: 8px; flex: 1; }
.slider-dots button {
  position: relative; overflow: hidden; height: 6px; flex: 1; max-width: 70px; border: 0; padding: 0; cursor: pointer;
  border-radius: 6px; background: rgba(67, 40, 28, .18);
}
.slider-dots button::after {
  content: ""; position: absolute; inset: 0; background: var(--coral); border-radius: inherit;
  transform: scaleX(0); transform-origin: left;
}
.slider-dots button.is-done::after { transform: scaleX(1); }
.slider-dots button[aria-current="true"]::after { animation: sliderFill var(--delay, 5s) linear forwards; }
.slider.is-paused .slider-dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes sliderFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-count { font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--espresso); min-width: 54px; text-align: right; }
.dark .slider-btn { border-color: rgba(251, 242, 192, .5); color: var(--cream); }
.dark .slider-btn:hover { background: var(--coral); border-color: var(--coral); color: var(--espresso); }
.dark .slider-dots button { background: rgba(251, 242, 192, .2); }
.dark .slider-count { color: var(--cream); }
.dark .slider-viewport { background: rgba(251, 242, 192, .06); }
@media (prefers-reduced-motion: reduce) {
  .slider-dots button[aria-current="true"]::after { animation: none; transform: scaleX(1); }
}
.page-hero-grid > :only-child { grid-column: 1 / -1; max-width: none; }
.flip-years {
  display: inline-block; align-self: flex-start; margin-top: 10px;
  padding: 6px 14px; border-radius: 999px; background: rgba(251, 242, 192, .16);
  font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: .06em;
}
.flip:nth-child(3n+3) .flip-years { background: rgba(67, 40, 28, .14); }

/* ---------- Frise du parcours (accueil) ---------- */
.frise-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.frise-head h2 { margin-bottom: 18px; }
.frise { --dot: 46px; --gap: clamp(24px, 3vw, 44px); --dur: 1.8s; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.frise::before, .frise::after { content: ""; position: absolute; border-radius: 2px; }
.frise::before { background: var(--line); }
.frise::after { background: var(--coral); transition: transform var(--dur) linear .2s; }
.frise-step { position: relative; }
.frise-dot {
  display: grid; place-items: center; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--cream); border: 2px solid var(--espresso); color: var(--espresso);
  font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
}
.frise-step:last-child .frise-dot { background: var(--coral); border-color: var(--coral); }
.frise-step b { display: block; font-family: var(--title); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.frise-step h3 { font-size: clamp(18px, 1.7vw, 23px); margin-bottom: 8px; }
.frise-step p { margin: 0; font-size: 15px; }
.frise-step:hover .frise-dot { background: var(--espresso); border-color: var(--espresso); color: var(--cream); transform: scale(1.12); }
.js .frise-step > :not(.frise-dot) { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.35s + var(--k) * var(--dur) / 3); }
.js .frise-dot { transform: scale(.55); background: var(--cream); transition: background .4s, color .4s, border-color .4s, transform .55s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.2s + var(--k) * var(--dur) / 3); }
.js .frise.is-in .frise-step > :not(.frise-dot) { opacity: 1; transform: none; }
.js .frise.is-in .frise-dot { transform: none; }
.js .frise.is-in .frise-step:last-child .frise-dot { background: var(--coral); }
.js .frise.is-in .frise-step:hover .frise-dot { transform: scale(1.12); transition-delay: 0s; background: var(--espresso); }
/* mobile : frise verticale */
@media (max-width: 899px) {
  .frise-step { padding-left: calc(var(--dot) + 20px); min-height: var(--dot); }
  .frise-dot { position: absolute; left: 0; top: -4px; }
  .frise::before, .frise::after { display: none; }
  /* un segment par étape, du point courant au point suivant */
  .frise-step:not(:last-child)::before, .frise-step:not(:last-child)::after {
    content: ""; position: absolute; left: calc(var(--dot) / 2 - 1.5px); width: 3px;
    top: calc(var(--dot) / 2 - 4px); bottom: calc(-34px - var(--dot) / 2 + 4px); border-radius: 2px;
  }
  .frise-step:not(:last-child)::before { background: var(--line); }
  .frise-step:not(:last-child)::after { background: var(--coral); transform-origin: top; transform: scaleY(0); transition: transform calc(var(--dur) / 3) linear; transition-delay: calc(.2s + var(--k) * var(--dur) / 3); }
  .frise.is-in .frise-step::after, html:not(.js) .frise-step::after { transform: scaleY(1); }
  /* la ligne suit le défilement : chaque étape apparaît quand la ligne l'atteint */
  .js .frise.is-scroll .frise-step:not(:last-child)::after { transform: scaleY(var(--seg, 0)); transition: transform .12s linear; }
  .js .frise.is-scroll .frise-step > :not(.frise-dot), .js .frise.is-scroll .frise-dot { transition-delay: 0s; }
  .js .frise.is-scroll .frise-step:not(.is-reached) > :not(.frise-dot) { opacity: 0; transform: translateY(14px); }
  .js .frise.is-scroll .frise-step:not(.is-reached) .frise-dot { transform: scale(.55); }
  .js .frise.is-scroll .frise-step:last-child:not(.is-reached) .frise-dot { background: var(--cream); border-color: var(--espresso); }
}
/* ordinateur : frise horizontale */
@media (min-width: 900px) {
  .frise { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .frise::before, .frise::after { top: calc(var(--dot) / 2 - 1.5px); height: 3px; left: calc(var(--dot) / 2); right: calc((100% - 3 * var(--gap)) / 4 - var(--dot) / 2); }
  .frise::after { transform-origin: left; transform: scaleX(0); }
  .frise.is-in::after, html:not(.js) .frise::after { transform: scaleX(1); }
  .frise-dot { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .frise-step { opacity: 1; transform: none; transition: none; }
  .frise::after, .frise-step::after { transform: none !important; transition: none; }
  .js .frise-step > *, .js .frise-dot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .frise-step:last-child .frise-dot { background: var(--coral); }
}

/* ---------- Cartes sports : nom au recto, club et logo au verso ---------- */
.sports-grid .flip { aspect-ratio: 1 / 1; }
.sports-grid .flip-front { justify-content: flex-end; }
.sports-grid .flip-front h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); }
.sports-grid .flip-back { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.club-logo {
  width: 58%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--cream); border: 1.5px dashed rgba(192, 110, 82, .55);
}
.club-logo:has(img) { border: 0; background: #fff; border-radius: 22px; width: 82%; aspect-ratio: 4 / 3; box-shadow: 0 12px 28px -18px rgba(67, 40, 28, .5); }
.club-logo { position: relative; }
.club-logo img { position: absolute; inset: 10% 8%; width: 84%; height: 80%; object-fit: contain; }
.club-name { font-family: var(--title); font-weight: 700; text-transform: uppercase; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .03em; color: var(--espresso); line-height: 1.25; }
@media (max-width: 599px) {
  .sports-grid .flip-front h3 { font-size: 17px; }
  .sports-grid .flip-back { gap: 10px; }
  .club-name { font-size: 12px; }
  .club-logo .todo { font-size: 11px; }
}
.flip.is-static { cursor: default; }
.flip.is-static .flip-inner { transform: none !important; }
.photo-caption { margin: 12px 0 0; font-size: 14px; color: var(--terra); text-align: center; }
.inline-logo { display: inline-block; height: 1.05em; width: auto; vertical-align: -0.12em; margin-left: 2px; }
.inline-logo-tall { height: 1.25em; vertical-align: -0.3em; }
.inline-logo-box { height: 1.5em; vertical-align: -0.4em; }
.client-title { display: flex; align-items: center; gap: 14px; }
.client-title img { height: .7em; width: auto; }
.photo-credit { margin: 10px 0 0; font-size: 13px; opacity: .75; text-align: center; }
