:root {
  --nuit: #0d2238;
  --texte: #465868;
  --fond: #f7f9f8;
  --brume: #e3edef;
  --ligne: #c5d3d8;
  --mandarine: #ff8a3d;
  --espace: clamp(5rem, 11vw, 9rem);
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.0625rem; padding-bottom: 5.5rem; }
body.sans-barre { padding-bottom: 0; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3 { color: var(--nuit); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.03em; max-width: 18ch; }
h3 { font-size: 1.5rem; letter-spacing: -.015em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mandarine); outline-offset: 4px; }

.large { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
main > section { padding-block: var(--espace); scroll-margin-top: 1rem; }
.insecable { white-space: nowrap; }
.intro { font-size: 1.25rem; max-width: 34ch; }
.petit { font-size: .9375rem; }

.evitement { position: absolute; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--nuit); color: #fff; z-index: 3; }
.evitement:focus { top: 1rem; }

.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.entete nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.entete nav a {
  text-decoration: none; color: var(--nuit); padding: .5rem 1.125rem; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px rgb(13 34 56 / .08), 0 4px 18px rgb(13 34 56 / .13); transition: box-shadow .2s;
}
.entete nav a:hover { box-shadow: 0 0 0 1px var(--mandarine), 0 6px 22px rgb(13 34 56 / .18); }
.marque { color: var(--nuit); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.entete .marque { font-size: clamp(1.625rem, 3.5vw, 2.125rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }

.actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.5rem;
  border: 1.5px solid var(--nuit); border-radius: .75rem; background: transparent; color: var(--nuit);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s;
}
.bouton:hover { transform: translateY(-2px); }
.principal { background: var(--mandarine); border-color: var(--mandarine); }
.principal:hover { background: #ff9c5b; }
.bouton:disabled, .bouton[aria-disabled] { background: var(--brume); border-color: var(--ligne); color: var(--texte); cursor: not-allowed; transform: none; }

.accueil { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
main > .accueil { padding-top: clamp(2.5rem, 6vw, 5rem); }
.accueil .intro { margin-block: 1.75rem 2.25rem; }
.accueil > div { min-width: 0; }
.carrousel { margin-top: 2.5rem; }
.piste { position: relative; display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 1rem; }
.piste li { flex: 0 0 85%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 1rem; overflow: hidden; }
.piste img { display: block; width: 100%; height: 100%; object-fit: cover; }
.piste .vide { display: grid; place-items: center; background: var(--brume); border: 1.5px dashed #8aa3ad; color: var(--texte); font-weight: 600; }
.fleches { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.fleches button { width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: #fff; color: var(--nuit); font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px rgb(13 34 56 / .08), 0 4px 18px rgb(13 34 56 / .13); }
.accueil-droite { display: flex; flex-direction: column; align-self: stretch; }
.accueil-droite .week-end { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.preparer { margin-block: 0 4rem; padding-top: 2.5rem; }
.preparer h2 { font-size: 1.5rem; letter-spacing: -.015em; }
.preparer ul { margin-block: 1.25rem; padding: 0; list-style: none; }
.preparer li { padding-block: .625rem; border-bottom: 1px solid var(--ligne); }
.week-end { background: var(--nuit); color: #fff; border-radius: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); overflow: hidden; }
.jours { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.heures { margin-top: 1rem; color: var(--mandarine); font-size: 1.5rem; font-weight: 650; }
.souffle { display: block; width: 100%; margin-bottom: clamp(1.5rem, 5vw, 4rem); fill: none; stroke: #8fb6c2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 130 30; }

.prestations { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 3.5rem; }
.prestations article { border-top: 2px solid var(--nuit); padding-top: 1.75rem; }
.prestations p { margin-block: .875rem 1.5rem; max-width: 36ch; }
.fleche { color: var(--nuit); font-weight: 650; text-underline-offset: .35em; text-decoration-color: var(--mandarine); text-decoration-thickness: 2px; display: inline-block; padding-block: .5rem; }
.note { margin-top: 3rem; }

.sombre { background: var(--nuit); color: #c9d9e0; }
.sombre h2, .sombre strong { color: #fff; }
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 3.5rem; }
.atouts strong { display: block; font-size: 1.25rem; line-height: 1.3; margin-bottom: .75rem; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 3.5rem; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; color: var(--nuit); font-size: 3rem; font-weight: 300; line-height: 1; margin-bottom: 1.25rem; }
.etapes p { margin-top: .75rem; }

.secteur { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.communes { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin-block: 2rem 1rem; padding: 0; list-style: none; color: var(--nuit); font-size: 1.125rem; font-weight: 600; }
.carte { width: 100%; height: auto; }
.carte .ile { fill: var(--brume); stroke: #71858f; stroke-width: 2; stroke-linejoin: round; }
.carte .zone { fill: #c3dbe2; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.carte .trajet { fill: none; stroke: var(--mandarine); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.carte .points { fill: #fff; stroke: var(--nuit); stroke-width: 4; }
.carte .bouts { fill: var(--mandarine); stroke: var(--nuit); stroke-width: 4; }
.carte text { fill: var(--nuit); font-size: 34px; font-weight: 700; paint-order: stroke; stroke: var(--fond); stroke-width: 7; stroke-linejoin: round; }

.avis { text-align: center; }
.avis h2, .avis .intro { margin-inline: auto; }
.avis .intro { margin-block: 1.25rem 2rem; }
.devis { background: var(--brume); }
.deux { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.deux .intro { margin-block: 1.5rem 1rem; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.champ { display: grid; gap: .5rem; align-content: start; }
.entier { grid-column: 1 / -1; }
label { color: var(--nuit); font-weight: 600; }
input, select, textarea { width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border: 1px solid #71858f; border-radius: .625rem; background: #fff; color: var(--nuit); font: inherit; }
textarea { resize: vertical; }
.piege { display: none; }
#etat { color: var(--nuit); font-weight: 600; }
#etat:empty { display: none; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-block: 4rem; }
.contacts { display: grid; gap: .5rem; }
.barre { display: none; }

.texte { padding-block: 3rem 6rem; }
.texte h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.texte h2 { font-size: 1.5rem; margin-block: 3rem 1rem; max-width: none; }
.texte p { max-width: 68ch; margin-bottom: 1rem; }
.texte dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .75rem 1.5rem; }
.texte dt { color: var(--nuit); font-weight: 600; }
.texte dd { margin: 0; overflow-wrap: anywhere; }

.animations .anime { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease-out, transform .7s ease-out; }
.animations .anime.vu { opacity: 1; transform: none; }
.animations .carte .trajet { stroke-dashoffset: 1; }
.animations .carte.trace .trajet { stroke-dashoffset: 0; transition: stroke-dashoffset 2.5s .3s ease-in-out; }
.animations .souffle path { animation: souffle 9s linear infinite; }
.animations .souffle path:nth-child(2) { animation-duration: 12s; }
@keyframes souffle { to { stroke-dashoffset: -160; } }

@media (min-width: 48.01rem) { body { padding-bottom: 0; } }
@media (max-width: 48rem) {
  .accueil, .prestations, .atouts, .etapes, .secteur, .deux { grid-template-columns: 1fr; }
  .entete nav a { font-size: .9375rem; padding-inline: 1rem; }
  .preparer { display: none; }
  .barre {
    position: fixed; inset: auto 0 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
    padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--ligne);
    transition: transform .25s, visibility .25s;
  }
  .barre .bouton { padding-inline: .5rem; font-size: 1rem; text-align: center; white-space: nowrap; }
  .barre.cachee { transform: translateY(100%); visibility: hidden; }
}
@media (max-width: 30rem) {
  .entete nav { gap: .5rem; }
  .entete nav a { font-size: .875rem; padding-inline: .75rem; }
  form, .texte dl { grid-template-columns: 1fr; }
  .texte dl { gap: .25rem; }
  .texte dd { margin-bottom: 1rem; }
  .accueil .bouton, form .bouton { width: 100%; }
}
/* Grand écran : le contenu occupe la largeur et les vides sont resserrés. */
@media (min-width: 64.01rem) {
  :root { --espace: clamp(4rem, 5.5vw, 6.5rem); }
  body { font-size: 1.125rem; }
  .large { width: min(100% - 7vw, 104rem); }
  h1 { font-size: clamp(3.75rem, 5.4vw, 6.25rem); }
  main > .accueil { padding-top: 2.5rem; }
  .accueil { grid-template-columns: 1.55fr 1fr; gap: 4rem; }
  .accueil .intro { max-width: 46ch; }
  .piste li { flex-basis: 47%; }
  #prestations { display: grid; grid-template-columns: 1fr 2.2fr; gap: 1.5rem 4rem; }
  #prestations .prestations { margin-top: 0; gap: 2rem; }
  .prestations article { background: #fff; border-radius: 0 0 1rem 1rem; padding: 2.25rem 2.5rem 2.5rem; }
  #prestations .note { grid-column: 2; margin-top: 0; }
  .secteur { grid-template-columns: 1fr 1.5fr; }
  .carte { max-height: 46rem; }
  .communes { font-size: 1.375rem; gap: .75rem 2rem; }
  .atouts strong { font-size: 1.5rem; }
  .jours { font-size: 3rem; }
  .avis { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem 4rem; text-align: left; }
  .avis h2, .avis .intro { margin: 0; max-width: none; }
  .avis .bouton { grid-area: 1 / 2 / span 2; }
  .deux { grid-template-columns: 1fr 1.6fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root, .piste { scroll-behavior: auto; }
  .bouton, .barre { transition: none; }
}
