/* ==========================================================================
   Syndicat des Pistes SID – Montreux
   Feuille de style principale (mobile first)
   ========================================================================== */

:root {
  --night: #0b2340;
  --night-2: #12355c;
  --ink: #16202b;
  --muted: #5a6877;
  --line: #dfe6ee;
  --snow: #f5f8fb;
  --white: #ffffff;
  --red: #e2001a;
  --red-dark: #b80015;
  --sun: #f39a3d;
  --sky: #2f80c7;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(11, 35, 64, .25);
  --shadow-lg: 0 24px 60px -20px rgba(11, 35, 64, .35);

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 9vw, 6.5rem);

  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: .18em; }
a:hover { color: var(--night); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--night); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--night); color: var(--white); padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(226, 0, 26, .7); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--night); }
.btn--light:hover { color: var(--night); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: var(--white); }
.btn--outline { border-color: var(--night); color: var(--night); }
.btn--outline:hover { background: var(--night); color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 35, 64, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--night); }
.brand img { width: 112px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: .98rem; }
.brand__sub { font-size: .78rem; color: var(--muted); }
@media (max-width: 420px) { .brand__text { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--night); cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  position: fixed; inset: 4.5rem 0 auto 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: .75rem var(--gutter) 1.5rem;
  transform: translateY(-120%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  max-height: calc(100dvh - 4.5rem); overflow-y: auto;
}
.main-nav.is-open { transform: translateY(0); visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .9rem .25rem; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .btn { display: flex; margin-top: 1rem; width: 100%; border-bottom: 0; color: var(--white); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; transform: none; visibility: visible; box-shadow: none; border: 0;
    padding: 0; background: transparent; max-height: none; overflow: visible;
  }
  .main-nav ul { display: flex; align-items: center; gap: .3rem; }
  .main-nav a { border: 0; padding: .55rem .8rem; font-size: .97rem; border-radius: 999px; }
  .main-nav a:hover { background: var(--snow); color: var(--night); }
  .main-nav .btn { margin: 0 0 0 .6rem; width: auto; padding: .7em 1.15em; }
  .main-nav .btn:hover { background: var(--red-dark); color: var(--white); }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  color: var(--white);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media img { object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 35, 64, .55) 0%, rgba(11, 35, 64, 0) 30%),
    linear-gradient(0deg, rgba(8, 24, 44, .92) 0%, rgba(8, 24, 44, .55) 45%, rgba(8, 24, 44, 0) 75%);
}
.hero__content { padding-block: clamp(5rem, 14vh, 9rem) clamp(2.5rem, 7vh, 4.5rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; backdrop-filter: blur(6px);
}
.hero__eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(243, 154, 61, .3); }
.hero h1 { color: var(--white); max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 44ch; color: rgba(255, 255, 255, .92); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__credit { position: absolute; right: .8rem; bottom: .6rem; font-size: .72rem; color: rgba(255, 255, 255, .7); }

/* Héros de page intérieure */
.page-hero { min-height: clamp(340px, 52vh, 520px); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Chiffres clés ---------- */
.facts { background: var(--night); color: var(--white); }
.facts__list {
  list-style: none; margin: 0; padding: 1.6rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
}
@media (min-width: 820px) { .facts__list { grid-template-columns: repeat(4, 1fr); padding: 2rem 0; } }
.facts__list li { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 3px solid var(--red); }
.facts__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.1; }
.facts__label { font-size: .9rem; color: rgba(255, 255, 255, .75); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--snow { background: var(--snow); }
.section--night { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: rgba(255, 255, 255, .9); }
.section--night h2, .section--night h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.section--night .eyebrow { color: var(--sun); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); }
.section--night .lead { color: rgba(255, 255, 255, .8); }

/* ---------- Infos en direct ---------- */
.live-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .live-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .live-grid { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card__icon {
  width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center;
  background: var(--snow); color: var(--night); margin-bottom: .6rem;
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card__more { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: .35rem; }
.card__more svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
a.card:hover .card__more svg { transform: translateX(4px); }

.card--webcam { padding: 0; overflow: hidden; background: var(--night); color: var(--white); border: 0; }
@media (min-width: 1000px) { .card--webcam { grid-row: span 2; } }
.card--webcam .webcam__img { position: relative; aspect-ratio: 4 / 3; background: var(--night-2); overflow: hidden; }
.card--webcam .webcam__img img { width: 100%; height: 100%; object-fit: cover; }
.webcam__badge {
  position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(8, 24, 44, .75); color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.webcam__badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #ff3b4e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.webcam__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card--webcam h3 { color: var(--white); }
.card--webcam p { color: rgba(255, 255, 255, .75); }
.card--webcam .card__more { color: var(--sun); }

.webcam-links { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.webcam-links a {
  display: inline-block; padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: var(--white); text-decoration: none; border: 1px solid rgba(255, 255, 255, .2);
}
.webcam-links a:hover { background: var(--white); color: var(--night); }

/* ---------- Domaine / installations ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

.lifts { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 700px) { .lifts { grid-template-columns: repeat(3, 1fr); } }
.lift { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.lift__tag {
  align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; background: #fde7ea; color: var(--red-dark); margin-bottom: .9rem;
}
.lift__tag--blue { background: #e3eefa; color: var(--night-2); }
.lift__tag--green { background: #e2f4e8; color: #1f6b3a; }
.lift h3 { margin-bottom: .4rem; }
.lift p { color: var(--muted); font-size: .98rem; }
.lift dl { margin: auto 0 0; padding-top: .8rem; border-top: 1px dashed var(--line); display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .92rem; }
.lift dt { color: var(--muted); }
.lift dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Accès : ligne de train ---------- */
.line { list-style: none; margin: 0; padding: 0; position: relative; }
.line::before {
  content: ""; position: absolute; left: 1.05rem; top: 1rem; bottom: 1rem; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--sky), var(--red));
}
.line li { position: relative; padding: 0 0 1.5rem 3.3rem; }
.line li:last-child { padding-bottom: 0; }
.line li::before {
  content: ""; position: absolute; left: .55rem; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--white); border: 4px solid var(--night);
}
.line li.is-ski::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgba(226, 0, 26, .18); }
.line strong { display: block; font-size: 1.08rem; color: var(--night); }
.line span { color: var(--muted); font-size: .95rem; }
.section--night .line li::before { background: var(--night); border-color: var(--white); }
.section--night .line li.is-ski::before { border-color: var(--red); background: var(--red); }
.section--night .line strong { color: var(--white); }
.section--night .line span { color: rgba(255, 255, 255, .72); }

.info-box {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-top: 1.4rem;
}
.info-box h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.info-box ul { margin: 0; padding-left: 1.1em; }
.info-box li + li { margin-top: .35rem; }
.section--snow .info-box, .section:not(.section--night) .info-box { background: var(--snow); border-color: var(--line); }

/* ---------- Magic Pass ---------- */
.magic {
  position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 140% at 100% 0%, #213f80 0%, var(--night) 55%, #071629 100%);
  color: rgba(255, 255, 255, .88); padding: clamp(2rem, 6vw, 4rem);
  display: grid; gap: 2.2rem; align-items: center;
}
@media (min-width: 900px) { .magic { grid-template-columns: 1.15fr .85fr; } }
.magic h2 { color: var(--white); }
.magic__logo { width: clamp(150px, 22vw, 210px); margin-bottom: 1.4rem; }
.magic__card { transform: rotate(-4deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); max-width: 420px; margin-inline: auto; }
.magic ul { padding-left: 0; list-style: none; margin: 0 0 1.8rem; }
.magic li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.magic li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2340' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.magic .note { font-size: .9rem; color: rgba(255, 255, 255, .7); border-left: 3px solid var(--sun); padding-left: .9rem; }
.magic__stars { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 72%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 62%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 88%, #fff 50%, transparent 51%);
}
.magic > *:not(.magic__stars) { position: relative; min-width: 0; }
.magic__card { width: 100%; }

/* ---------- SID ---------- */
.about-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--snow); border-radius: var(--radius-lg); padding: 1.5rem; }
.section--snow .stat { background: var(--white); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--red); margin-bottom: .5rem; }
.stat span { color: var(--muted); font-size: .98rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; } }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--night); }
.gallery__item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__item button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.gallery__item picture { width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem; font-size: .85rem; color: var(--white);
  background: linear-gradient(0deg, rgba(8, 24, 44, .85), rgba(8, 24, 44, 0)); pointer-events: none;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 14, 26, .92); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; margin-inline: auto; }
.lightbox p { color: rgba(255, 255, 255, .85); text-align: center; margin: .8rem 0 0; font-size: .95rem; }
.lightbox__close {
  position: absolute; top: -1rem; right: -1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0;
  background: var(--white); color: var(--night); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .lightbox__close { top: .5rem; right: .5rem; } }

/* ---------- Film / teaser ---------- */
.teaser {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: var(--white);
  text-decoration: none; min-height: 320px; isolation: isolate;
}
.teaser picture { position: static; }
.teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 24, 44, .9) 0%, rgba(8, 24, 44, .25) 65%); }
.teaser:hover img { transform: scale(1.04); }
.teaser__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.4rem, 4vw, 2.2rem); }
.teaser h3 { color: var(--white); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.teaser p { color: rgba(255, 255, 255, .85); max-width: 46ch; }
.teaser:hover { color: var(--white); }
.teaser__play {
  position: absolute; top: 34%; left: 50%; translate: -50% -50%; width: 4.6rem; height: 4.6rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--red); box-shadow: var(--shadow-lg);
  transition: scale .25s ease;
}
.teaser:hover .teaser__play { scale: 1.08; }
.teaser__play svg { width: 1.8rem; height: 1.8rem; margin-left: .25rem; }
.teasers { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .teasers { grid-template-columns: 1fr 1fr; } .teaser { min-height: 400px; } }

/* ---------- Liens utiles ---------- */
.links-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .links-grid { grid-template-columns: 1fr 1fr; } }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600;
}
.link-list a small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.link-list a svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.link-list a:hover { color: var(--red); }
.link-list a:hover svg { transform: translate(3px, -3px); color: var(--red); }

/* ---------- CTA contact ---------- */
.cta {
  display: grid; gap: 1.5rem; align-items: center; padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg); background: var(--snow); border: 1px solid var(--line);
}
@media (min-width: 800px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Histoire : frise ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #2a3642; }
.prose blockquote {
  margin: 1.8rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--red); background: var(--snow);
  border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--night);
}

.timeline { list-style: none; margin: 2rem 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(4.1rem + .8rem - 1px); top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.1rem 1fr; gap: 1.6rem; position: relative; padding-bottom: 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: calc(4.1rem + .8rem - 7px); top: .45rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red);
}
.timeline time { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 1.15rem; text-align: right; padding-right: .6rem; }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.timeline p { margin: 0; color: var(--muted); }

.toc {
  background: var(--snow); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 2.5rem; border: 1px solid var(--line);
}
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .8rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: .35rem; break-inside: avoid; }
.toc a { color: var(--night); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

.sport-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .sport-grid { grid-template-columns: 1fr 1fr; } }
.sport { background: var(--snow); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.sport h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.sport p { margin: 0; font-size: .98rem; color: var(--muted); }

.figure-wide { margin: 2.2rem 0; }
.figure-wide img { border-radius: var(--radius-lg); width: 100%; }
.figure-wide figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-card { background: var(--night); color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.contact-card h2 { color: var(--white); font-size: 1.5rem; }
.contact-card address { font-style: normal; line-height: 1.8; }
.contact-card a { color: var(--white); }
.contact-card .contact-item { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-card .contact-item svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--sun); margin-top: .25rem; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--night); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .85rem 1rem; border: 1.5px solid #c9d4df; border-radius: 12px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 128, 199, .18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--red); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; margin-bottom: 1.2rem; }
.alert--ok { background: #e2f4e8; color: #1f6b3a; border: 1px solid #b7e2c4; }
.alert--err { background: #fde7ea; color: var(--red-dark); border: 1px solid #f6b9c1; }
.alert[hidden] { display: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: #071629; color: rgba(255, 255, 255, .72); padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem; font-size: .96rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; line-height: 1.75; }
.site-footer h2 { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-mp img { width: 150px; }
.footer-mp p { margin-top: .8rem; font-size: .88rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; }
.social svg { width: 1.2rem; height: 1.2rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom li { margin: 0; }

/* ---------- Divers ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.breadcrumb { font-size: .88rem; margin-bottom: 1rem; color: rgba(255, 255, 255, .8); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; opacity: .7; }
.breadcrumb a { color: rgba(255, 255, 255, .9); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .hero__actions, .nav-toggle { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
  .hero h1 { color: var(--ink); }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Ajustements ---------- */
.contact-card .info-box { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
@media (min-width: 640px) and (max-width: 999px) {
  .card--webcam { grid-column: 1 / -1; }
  .card--webcam .webcam__img { aspect-ratio: 16 / 9; }
}
