/* =========================================================
   Hutly — feuille de style du site
   Palette « Corail et nuit » : changez les couleurs ici seulement.
   ========================================================= */

/* ----- Polices (hébergées sur le site, pas de Google Fonts) ----- */
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/merriweather-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/merriweather-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/merriweather-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --nuit: #22303B;
  --nuit-2: #3A4B58;
  --corail: #C23A47;        /* boutons et liens (contraste AA) */
  --corail-sombre: #A32E3A; /* survol */
  --corail-clair: #E8505B;  /* décor uniquement, jamais pour du texte */
  --creme: #FAF7F4;
  --sable: #E9DED3;
  --sable-trait: #D9CCBF;
  --blanc: #FFFFFF;
  --texte: #22303B;
  --texte-doux: #4A5763;
  --sur-nuit: #D7DEE4;

  --titre: "Merriweather", Georgia, serif;
  --corps: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 16px;
  --largeur: 1120px;
  --ombre: 0 10px 30px rgba(34, 48, 59, .10);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.22; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--corail); text-underline-offset: 3px; }
a:hover { color: var(--corail-sombre); }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; }
.section { padding: 72px 0; }
.section.sable { background: var(--sable); }
.section.blanc { background: var(--blanc); }
.intro { font-size: 1.1rem; color: var(--texte-doux); max-width: 44em; }
.centre { text-align: center; }
.centre .intro { margin-left: auto; margin-right: auto; }
.surtitre { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--corail); margin-bottom: .6em; }

.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--blanc); padding: 10px 16px; z-index: 100; }
.lien-evitement:focus { left: 8px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--corail);
  background: var(--corail); color: var(--blanc);
  font: 700 1rem var(--corps); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--corail-sombre); border-color: var(--corail-sombre); color: var(--blanc); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.contour { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.btn.contour:hover { background: var(--nuit); color: var(--blanc); }
.btn.sur-fonce { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn.sur-fonce:hover { background: var(--blanc); color: var(--nuit); }
.btn.grand { min-height: 60px; font-size: 1.1rem; padding: 14px 30px; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.centre .boutons { justify-content: center; }

/* ----- En-tête ----- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--sable); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { font-family: var(--titre); font-weight: 900; font-size: 1.9rem; color: var(--nuit); text-decoration: none; letter-spacing: .2px; line-height: 1; }
.logo:hover { color: var(--nuit); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--nuit); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--creme); color: var(--corail); }
.entete .tel { white-space: nowrap; min-height: 46px; padding: 8px 18px; }
.menu-btn { display: none; background: none; border: 2px solid var(--nuit); border-radius: 12px; min-height: 48px; padding: 8px 14px; font: 700 .95rem var(--corps); color: var(--nuit); cursor: pointer; align-items: center; gap: 8px; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc); border-bottom: 1px solid var(--sable); padding: 8px 20px 20px;
    box-shadow: var(--ombre);
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--creme); font-size: 1.05rem; }
  .nav .tel { margin-top: 14px; }
}

/* ----- Bandeau d'accueil ----- */
.hero { background: var(--nuit); color: var(--blanc); position: relative; overflow: hidden; }
.hero .conteneur { padding-top: 84px; padding-bottom: 40px; position: relative; z-index: 1; }
.hero h1 { color: var(--blanc); max-width: 15em; }
.hero .intro { color: var(--sur-nuit); font-size: 1.2rem; }
.hero .surtitre { color: #F2B8BD; }
.hero .boutons { margin-top: 30px; }
.hero-petit .conteneur { padding-top: 64px; padding-bottom: 24px; }
.montagnes { display: block; width: 100%; height: auto; margin-top: -1px; margin-bottom: -2px; position: relative; }

/* ----- Cartes et grilles ----- */
.grille { display: grid; gap: 22px; }
.grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grille.trois, .grille.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grille.deux, .grille.trois, .grille.quatre { grid-template-columns: 1fr; } }

.carte { background: var(--blanc); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.carte h3 { margin-bottom: .4em; }
.carte p:last-child { margin-bottom: 0; }

.entree { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--texte); background: var(--blanc); border-radius: var(--rayon); padding: 32px; box-shadow: var(--ombre); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.entree:hover { border-color: var(--corail); color: var(--texte); transform: translateY(-2px); }
.entree .fleche { color: var(--corail); font-weight: 700; margin-top: auto; }
.entree h3 { font-size: 1.5rem; margin: 0; }

.etape { display: flex; flex-direction: column; gap: 10px; }
.etape .num { width: 46px; height: 46px; border-radius: 50%; background: var(--nuit); color: var(--blanc); font: 700 1.1rem var(--corps); display: flex; align-items: center; justify-content: center; }
.etape h3 { margin: 4px 0 0; }
.etape p { color: var(--texte-doux); margin: 0; }

.coche { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.coche li { display: flex; gap: 12px; align-items: flex-start; }
.coche li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--sable) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='%23C23A47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.carte.fonce .coche li::before, .fonce .coche li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ----- Formules ----- */
.formule { display: flex; flex-direction: column; gap: 16px; }
.formule .prix { font-family: var(--titre); font-weight: 700; font-size: 2rem; color: var(--corail); line-height: 1.1; }
.formule .prix small { display: block; font-family: var(--corps); font-weight: 400; font-size: .9rem; color: var(--texte-doux); margin-top: 6px; }
.formule .pour { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.carte.fonce { background: var(--nuit); color: var(--blanc); }
.carte.fonce .prix { color: var(--blanc); }
.carte.fonce .prix small, .carte.fonce .pour { color: var(--sur-nuit); }
.carte.mise-en-avant { outline: 3px solid var(--corail-clair); outline-offset: -3px; }

.argument { display: flex; gap: 18px; align-items: center; background: var(--nuit); color: var(--blanc); border-radius: var(--rayon); padding: 22px 26px; }
.argument strong { font-family: var(--titre); font-size: 1.25rem; display: block; }
.argument span { color: var(--sur-nuit); }
.argument .pastille { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--corail-clair); display: flex; align-items: center; justify-content: center; }
.argument .pastille svg { width: 26px; height: 26px; }

.note { background: var(--sable); border-radius: 12px; padding: 16px 20px; font-size: .95rem; }

/* ----- Tableau comparatif ----- */
.tableau-defile { overflow-x: auto; border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--blanc); }
table.comparatif { width: 100%; border-collapse: collapse; min-width: 680px; }
.comparatif th, .comparatif td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sable); }
.comparatif thead th { background: var(--nuit); color: var(--blanc); font-family: var(--titre); font-size: 1.05rem; }
.comparatif tbody th { font-weight: 600; width: 34%; }
.comparatif .oui { color: var(--corail); font-weight: 700; }
.comparatif .non { color: var(--texte-doux); }
.comparatif tr.total td, .comparatif tr.total th { font-weight: 700; background: var(--creme); }

/* ----- Rapport (exemple) ----- */
.rapport { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.rapport .bandeau-ex { background: var(--sable); color: var(--nuit); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 24px; }
.rapport .corps { padding: 24px; }
.rapport dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.rapport dt, .rapport dd { padding: 10px 0; border-bottom: 1px solid var(--sable); margin: 0; }
.rapport dd { text-align: right; font-weight: 600; }
.rapport .net { display: contents; }
.rapport .net dt, .rapport .net dd { font-weight: 700; color: var(--corail); border-bottom: 0; font-size: 1.1rem; }

/* ----- FAQ ----- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--blanc); border-radius: 12px; box-shadow: 0 4px 14px rgba(34,48,59,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--corail); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .reponse { padding: 0 22px 20px; color: var(--texte-doux); }

/* ----- Qui suis-je ----- */
.portrait { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
.portrait .visuel { aspect-ratio: 1; border-radius: 50%; background: var(--nuit); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait .visuel svg { width: 62%; height: auto; }
.portrait .visuel img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .portrait { grid-template-columns: 1fr; gap: 24px; } .portrait .visuel { width: 180px; } }

/* ----- Logements ----- */
.filtres { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; background: var(--blanc); padding: 20px; border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 28px; }
.filtres label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.filtres .case { flex-direction: row; align-items: center; gap: 10px; min-height: 52px; }
.filtres .case input { width: 24px; height: 24px; accent-color: var(--corail); }
.fiche { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.fiche .photo { aspect-ratio: 4 / 3; background: var(--sable); }
.fiche .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche .infos { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fiche .lieu { color: var(--texte-doux); font-size: .95rem; margin: 0; }
.fiche .histoire { font-family: var(--titre); font-style: italic; margin: 0; }
.fiche .details { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fiche .details li { background: var(--creme); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.fiche .btn { margin-top: auto; align-self: flex-start; }
.vide { text-align: center; padding: 40px 20px; }

/* ----- Menu des régions (bandeau de montagnes) ----- */
.menu-regions { position: relative; margin-top: 150px; }
.menu-regions svg { display: block; width: 100%; height: auto; overflow: visible; }
.menu-regions .randonneur .halo { animation: halo 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* Étapes du sentier : un point blanc, le nom au-dessus */
.menu-regions .etape-region {
  position: absolute; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 2;
}
.menu-regions .etape-region::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--nuit); border: 3px solid var(--blanc);
  transition: transform .25s, background .25s;
}
.menu-regions .etape-region .nom {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; color: var(--blanc); font-weight: 700; font-size: .95rem;
  background: rgba(34, 48, 59, .82); padding: 4px 12px; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.menu-regions .etape-region:hover::before, .menu-regions .etape-region.active::before { transform: scale(1.35); background: var(--corail-clair); }
.menu-regions .etape-region:hover .nom, .menu-regions .etape-region.active .nom { background: var(--corail); transform: translateX(-50%) translateY(-3px); }
.menu-regions .etape-region.active .nom { opacity: 0; }

/* Carte d'aperçu qui apparaît quand le randonneur arrive */
.apercu-region {
  position: absolute; z-index: 3; width: 270px;
  transform: translate(-50%, calc(-100% - 26px)) scale(.94);
  opacity: 0; pointer-events: none;
  background: var(--blanc); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(34, 48, 59, .28);
  text-decoration: none; color: var(--texte);
  transition: opacity .3s ease, transform .3s ease;
}
.apercu-region.visible { opacity: 1; transform: translate(-50%, calc(-100% - 26px)) scale(1); pointer-events: auto; }
.apercu-region:hover { color: var(--texte); }
.apercu-region .image { display: block; height: 130px; background: center/cover no-repeat var(--sable); }
.apercu-region .image.sans-photo { background: linear-gradient(160deg, #3A4B58 0%, #22303B 60%, #C23A47 140%); }
.apercu-region .texte { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.apercu-region strong { font-family: var(--titre); font-size: 1.15rem; }
.apercu-region .nb { color: var(--corail); font-weight: 700; font-size: .9rem; }

.liste-regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
@media (max-width: 700px) {
  .menu-regions { margin-top: 20px; }
  .menu-regions .etape-region .nom, .apercu-region { display: none; }
}

/* ----- Apparition douce au défilement ----- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
.entree.apparait.visible:hover, .carte.apparait.visible:hover { transform: translateY(-2px); }

/* ----- Formulaire ----- */
.formulaire { display: grid; gap: 18px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.formulaire .facultatif { font-weight: 400; color: var(--texte-doux); }
.formulaire input[type=text], .formulaire input[type=tel], .formulaire input[type=email], .formulaire input[type=url], .formulaire textarea, .formulaire select, .filtres select {
  font: 400 1rem var(--corps); color: var(--texte);
  min-height: 52px; padding: 12px 14px;
  border: 2px solid #8C99A4; border-radius: 12px; background: var(--blanc);
}
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus, .filtres select:focus { border-color: var(--corail); outline: none; box-shadow: 0 0 0 3px rgba(194,58,71,.2); }
.formulaire fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.formulaire legend { font-weight: 600; margin-bottom: 8px; }
.formulaire .choix { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
.formulaire .choix input { width: 24px; height: 24px; accent-color: var(--corail); }
.cache-robot { position: absolute; left: -9999px; }

.contact-direct { display: grid; gap: 14px; }
.contact-direct a.ligne { display: flex; align-items: center; gap: 16px; background: var(--blanc); border-radius: var(--rayon); padding: 18px 22px; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); border: 2px solid transparent; }
.contact-direct a.ligne:hover { border-color: var(--corail); }
.contact-direct .icone { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--creme); display: flex; align-items: center; justify-content: center; color: var(--corail); }
.contact-direct .icone svg { width: 26px; height: 26px; }
.contact-direct small { display: block; color: var(--texte-doux); font-size: .9rem; }
.contact-direct strong { font-size: 1.15rem; }

/* ----- Bandeau d'appel final ----- */
.appel { background: var(--nuit); color: var(--blanc); }
.appel .conteneur { padding-top: 64px; padding-bottom: 64px; }
.appel h2 { color: var(--blanc); }
.appel p { color: var(--sur-nuit); }

/* ----- Pied de page ----- */
.pied { background: var(--nuit); color: var(--sur-nuit); padding: 8px 0 36px; }
.pied .grille-pied { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .pied .grille-pied { grid-template-columns: 1fr; } }
.pied .logo { color: var(--blanc); font-size: 1.7rem; }
.pied a { color: var(--blanc); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied h2 { font-family: var(--corps); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sur-nuit); margin-bottom: 12px; }
.pied .bas { margin-top: 32px; font-size: .9rem; }

/* ----- Pages de texte (légal) ----- */
.texte h2 { font-size: 1.4rem; margin-top: 1.8em; }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: .4em; }
