/* =========================================================
   École de ski Les Cimes — Saint-Lary-Soulan
   Site de transition. Feuille de style unique.
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

:root {
  --roche: #26313a;
  --roche-mid: #55636d;
  --roche-pale: #c8d1d6;
  --neige: #f3f6f7;
  --papier: #ffffff;
  --sapin: #16513f;
  --sapin-clair: #2c7a5f;
  --soleil: #e4a11b;

  --piste-vert: #2f9c4f;
  --piste-bleu: #2266c9;
  --piste-rouge: #cf2f2f;
  --piste-noir: #171c21;

  --serif: 'Source Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --mesure: 34rem;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --rythme: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--roche);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--sapin); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--roche); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1.1em; max-width: var(--mesure); }
ul, ol { max-width: var(--mesure); padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

.enveloppe { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gouttiere); }
.etroit { width: min(46rem, 100%); }
.saut { display: block; height: 1px; }

.evite {
  position: absolute; left: -9999px; top: 0;
  background: var(--roche); color: #fff; padding: 0.7rem 1rem; z-index: 999;
}
.evite:focus { left: 0; }

/* ---------- Bandeau d'information ---------- */
.bandeau {
  background: var(--roche);
  color: #eef2f4;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bandeau .enveloppe {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  align-items: baseline; padding-block: 0.7rem;
}
.bandeau strong { font-family: var(--sans); font-weight: 600; }
.bandeau p { margin: 0; max-width: none; }
.bandeau a { color: var(--soleil); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--roche-pale);
}
.entete .enveloppe {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.marque { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--roche); }
.marque svg { width: 2.1rem; height: 2.1rem; flex: none; }
.marque-texte { font-family: var(--sans); line-height: 1.05; }
.marque-nom { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em; }
.marque-lieu { display: block; font-size: 0.72rem; color: var(--roche-mid); font-weight: 500; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; max-width: none; }
.nav li { margin: 0; position: relative; }
.nav a {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: var(--roche); text-decoration: none; padding-block: 0.4rem; display: block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--sapin); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--soleil); }

.sous ul {
  display: none; position: absolute; top: 100%; left: -0.9rem;
  background: var(--papier); border: 1px solid var(--roche-pale);
  padding: 0.5rem 0.9rem; flex-direction: column; gap: 0.5rem; min-width: 15rem;
}
.sous:hover ul, .sous:focus-within ul { display: flex; }

.bouton {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  background: var(--sapin); color: #fff; text-decoration: none;
  padding: 0.62rem 1.15rem; border: 1px solid var(--sapin);
}
.bouton:hover { background: var(--roche); border-color: var(--roche); color: #fff; }
.bouton.creux { background: transparent; color: var(--sapin); }
.bouton.creux:hover { background: var(--sapin); color: #fff; }

.bascule {
  display: none; margin-left: auto; background: none; border: 1px solid var(--roche-pale);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--roche);
  padding: 0.5rem 0.8rem; cursor: pointer;
}

@media (max-width: 62rem) {
  .bascule { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--papier); border-bottom: 1px solid var(--roche-pale);
    padding: 1rem var(--gouttiere) 1.5rem;
  }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav > ul > li { border-bottom: 1px solid var(--neige); }
  .nav a { padding-block: 0.7rem; font-size: 1rem; }
  .sous ul { display: flex; position: static; border: 0; padding: 0 0 0.6rem 1rem; min-width: 0; }
  .sous ul a { font-size: 0.9rem; color: var(--roche-mid); }
  .entete .bouton { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--neige); overflow: hidden; border-bottom: 1px solid var(--roche-pale); }
.hero .enveloppe { position: relative; z-index: 2; padding-block: clamp(3rem, 9vw, 6rem) clamp(9rem, 20vw, 13rem); }
.hero h1 { max-width: 14ch; margin-bottom: 0.35em; }
.hero .accroche { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 30rem; color: var(--roche-mid); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.crete { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; z-index: 1; }
.crete svg { width: 100%; height: auto; display: block; }
.crete .trait { fill: none; stroke: var(--roche); stroke-width: 2; opacity: 0.9; }
.crete .plein { fill: var(--roche-pale); opacity: 0.55; }
.crete .plein-loin { fill: var(--roche-pale); opacity: 0.3; }

@media (prefers-reduced-motion: no-preference) {
  .crete .trait { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: tracer 2.4s 0.2s ease-out forwards; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--rythme); }
.section.pale { background: var(--neige); }
.section.sombre { background: var(--roche); color: #e9eef0; }
.section.sombre h2, .section.sombre h3 { color: #fff; }
.section.sombre a { color: var(--soleil); }
.section > .enveloppe > h2 { max-width: 20ch; }
.intro { font-size: 1.15rem; max-width: 38rem; color: var(--roche-mid); }

.titre-rang { display: flex; align-items: baseline; gap: 1rem; border-top: 2px solid var(--roche); padding-top: 0.9rem; margin-bottom: 2.2rem; }
.titre-rang h2 { margin: 0; }
.titre-rang .compte { font-family: var(--sans); font-size: 0.8rem; color: var(--roche-mid); margin-left: auto; white-space: nowrap; }

/* ---------- Grille des formules (balisage piste) ---------- */
.formules { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 0; border-top: 1px solid var(--roche-pale); }
.formule {
  margin: 0; padding: 1.6rem 0 1.7rem;
  border-bottom: 1px solid var(--roche-pale);
  display: grid; grid-template-columns: 3.2rem 1fr minmax(0, 26rem); gap: 0 1.5rem; align-items: start;
}
.formule .pastille { width: 1.15rem; height: 1.15rem; border-radius: 50%; margin-top: 0.45rem; background: var(--piste-bleu); }
.formule .pastille.vert { background: var(--piste-vert); }
.formule .pastille.bleu { background: var(--piste-bleu); }
.formule .pastille.rouge { background: var(--piste-rouge); }
.formule .pastille.noir { background: var(--piste-noir); }
.formule h3 { margin-bottom: 0.25rem; }
.formule .meta { font-family: var(--sans); font-size: 0.82rem; color: var(--roche-mid); margin: 0; }
.formule p { margin-bottom: 0.6em; }
.formule .lien { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; }

@media (max-width: 48rem) {
  .formule { grid-template-columns: 1.6rem 1fr; }
  .formule > *:last-child { grid-column: 2; }
}

/* ---------- Blocs deux colonnes ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 52rem) { .duo { grid-template-columns: 1fr; } }
.duo p:last-child { margin-bottom: 0; }

.vignette { background: var(--neige); border: 1px solid var(--roche-pale); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.vignette svg { width: 100%; height: 100%; }
.section.sombre .vignette { background: #1b242b; border-color: #3a464f; }

/* ---------- Points repères ---------- */
.reperes { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.reperes li { margin: 0; border-top: 2px solid var(--soleil); padding-top: 0.8rem; }
.reperes b { display: block; font-family: var(--sans); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.reperes span { font-size: 0.95rem; color: var(--roche-mid); }
.section.sombre .reperes span { color: var(--roche-pale); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--roche-pale); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--roche-pale); }
.faq summary {
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 1.5rem;
  width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--sapin); border-bottom: 2px solid var(--sapin);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .reponse { padding-bottom: 1.2rem; }
.faq .reponse p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Tableau tarifs ---------- */
.tableau { width: 100%; border-collapse: collapse; margin-block: 1.5rem 2rem; font-size: 0.98rem; }
.tableau caption { text-align: left; font-family: var(--sans); font-size: 0.85rem; color: var(--roche-mid); padding-bottom: 0.7rem; }
.tableau th, .tableau td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--roche-pale); vertical-align: top; }
.tableau thead th { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--roche-mid); border-bottom-color: var(--roche); }
.tableau td.prix { font-family: var(--sans); font-weight: 600; white-space: nowrap; }

/* ---------- Encart ---------- */
.encart { border-left: 3px solid var(--soleil); padding: 0.2rem 0 0.2rem 1.3rem; margin-block: 2rem; }
.encart p:last-child { margin-bottom: 0; }
.encart .titre { font-family: var(--sans); font-weight: 600; display: block; margin-bottom: 0.3rem; }

/* ---------- Contact ---------- */
.coordonnees { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.8rem; }
.coordonnees li { margin: 0; }
.coordonnees .etiquette { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--roche-mid); display: block; margin-bottom: 0.2rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--roche); color: #cfd8dd; padding-block: var(--rythme) 2.5rem; font-size: 0.95rem; }
.pied a { color: #eef2f4; text-decoration: none; }
.pied a:hover { color: var(--soleil); text-decoration: underline; }
.pied h2 { color: #fff; font-size: 1.5rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 52rem) { .pied-grille { grid-template-columns: 1fr; gap: 2rem; } }
.pied h3 { font-size: 0.82rem; font-weight: 600; color: var(--roche-pale); letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.5rem; }
.pied .marque-nom, .pied .marque { color: #fff; }
.pied .marque-lieu { color: var(--roche-pale); }
.bas {
  border-top: 1px solid #3a464f; margin-top: 3rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.85rem; color: var(--roche-pale);
}
.bas ul { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-left: auto; }
.bas li { margin: 0; }

/* ---------- Fil d'ariane ---------- */
.fil { font-family: var(--sans); font-size: 0.82rem; color: var(--roche-mid); padding-top: 1.6rem; }
.fil a { color: var(--roche-mid); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; max-width: none; }
.fil li { margin: 0; }
.fil li + li::before { content: '/'; margin-right: 0.5rem; color: var(--roche-pale); }

/* ---------- Page intérieure ---------- */
.chapeau { padding-block: 2rem clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--roche-pale); }
.chapeau h1 { max-width: 18ch; }
.chapeau .accroche { font-size: 1.15rem; color: var(--roche-mid); max-width: 38rem; margin-bottom: 0; }

/* ---------- Hero photo ---------- */
.hero-photo { background: var(--roche); border-bottom: 0; }
.hero-photo .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-photo .enveloppe { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8rem); }
.hero-photo .hero-texte {
  max-width: 33rem;
  background: linear-gradient(105deg, rgba(24,31,37,0.82) 0%, rgba(24,31,37,0.66) 60%, rgba(24,31,37,0) 100%);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 6vw, 4rem) clamp(1.6rem, 3vw, 2.4rem) 0;
  margin-left: calc(var(--gouttiere) * -1);
  padding-left: var(--gouttiere);
  border-radius: 0 3px 3px 0;
}
.hero-photo h1, .hero-photo .accroche, .hero-photo .hero-sur { color: #fff; }
.hero-photo h1 { margin-bottom: 0.3em; }
.hero-sur { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin: 0 0 0.9rem; color: var(--soleil) !important; }
.hero-photo .accroche { color: #e7edef; max-width: 30rem; }
.hero-photo .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-photo .bouton.creux { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-photo .bouton.creux:hover { background: #fff; color: var(--sapin); border-color: #fff; }
@media (max-width: 40rem){
  .hero-photo .hero-media img { object-position: 65% center; }
}

/* ---------- Cadres photo ---------- */
.photo-cadre { overflow: hidden; background: var(--neige); display: block; }
.photo-cadre img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}
