/* Hunawé — la carte des séjours ([hunawe_carte]).
   Elle s'habille comme le reste du site : ses teintes, ses polices et ses rayons
   sont lus dans les variables du site (--eau, --papier, --serif…) ; les valeurs
   écrites ici ne servent que de repli. Pour retoucher, redéfinis une variable
   dans l'Atelier, par exemple :  .hw-carte { --hw-carte-choisie: #223C38; } */

.hw-carte {
  --hw-carte-zone: var(--eau-2, #8EB8CE);            /* une zone qui a des séjours */
  --hw-carte-survol: var(--eau, #5D92B3);            /* la même, sous le pointeur */
  --hw-carte-choisie: var(--nuit-2, #16303B);        /* la zone choisie */
  --hw-carte-vide: color-mix(in srgb, var(--encre, #14242B) 8%, var(--papier, #FBFAF6));
  --hw-carte-trait: var(--papier, #FBFAF6);
  --hw-carte-encre: var(--encre, #14242B);
  --hw-carte-lien: var(--eau-texte, #3E6E8C);
  --hw-carte-feu: var(--feu, #D18D60);
  --hw-carte-feu-texte: var(--feu-texte, #A2603A);
  --hw-carte-filet: color-mix(in srgb, var(--hw-carte-encre) 13%, transparent);
  container-type: inline-size;
  color: var(--hw-carte-encre);
  font-family: var(--sans, "Space Grotesk", Arial, sans-serif);
  text-align: left;
}
/* La carte prend la largeur des sections du site. Posée dans une section qui touche
   les bords de l'écran, elle garde d'elle-même une marge ; dans une rangée déjà
   rentrée, elle n'en ajoute pas. (--hw-carte-largeur, --hw-carte-marge pour régler.) */
.hw-carte__int { box-sizing: border-box; width: 100%; max-width: var(--hw-carte-largeur, 1240px); margin: 0 auto; padding-inline: max(0px, calc(var(--hw-carte-marge, 22px) - (100vw - 100cqw) / 2)); }

/* ---- le titre, quand le code court le porte ------------------------------ */

/* Avec son titre, la carte est une section à part entière : elle apporte ses marges haute et basse (--hw-carte-espace pour régler). */
.hw-carte--titree { padding-block: var(--hw-carte-espace, clamp(44px, 5.4vw, 88px)); }
.hw-carte__tete { max-width: 760px; margin: 0 0 clamp(26px, 3.4vw, 48px); }
.hw-carte .hw-carte__tete .kicker { display: inline-flex; margin: 0 0 14px; }
.hw-carte .hw-carte__tete h2 { margin: 0; padding: 0; color: var(--hw-carte-encre); font-family: var(--serif, "Fraunces", Georgia, serif); font-size: clamp(30px, 3.3vw, 46px); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; text-wrap: balance; }
.hw-carte .hw-carte__tete h2 em { color: var(--hw-carte-lien); font-style: italic; font-weight: 540; }
.hw-carte .hw-carte__tete p { max-width: 58ch; margin: 16px 0 0; color: color-mix(in srgb, var(--hw-carte-encre) 76%, transparent); font-size: 17px; line-height: 1.7; }

/* ---- deux colonnes : la carte, puis le sommaire des régions --------------- */

.hw-carte__corps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 5vw, 76px); }
.hw-carte__col { flex: 1 1 360px; min-width: 0; }
.hw-carte__col--carte { flex-basis: 400px; }
/* Côte à côte, le sommaire se cale au milieu de la carte. */
@container (min-width: 860px) {
  .hw-carte__corps { align-items: center; }
}

/* ---- la carte ----------------------------------------------------------- */

.hw-carte .hw-carte__svg { display: block; width: 100%; height: auto; max-width: 600px; margin: 0 auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(16, 35, 44, .09)); }
.hw-carte__svg path { fill: var(--hw-carte-vide); stroke: var(--hw-carte-trait); stroke-width: 1.2; stroke-linejoin: round; transition: fill .2s ease; }
.hw-carte__svg a { cursor: pointer; outline: none; text-decoration: none; }
.hw-carte__svg a path { fill: var(--hw-carte-zone); }
.hw-carte__svg a:hover path,
.hw-carte__svg a:focus-visible path,
.hw-carte__svg a.hw-survol path { fill: var(--hw-carte-survol); }
.hw-carte__svg a.hw-actif path { fill: var(--hw-carte-choisie); }
.hw-carte__svg a:focus-visible path { stroke: var(--hw-carte-feu); stroke-width: 2.4; }
/* La pastille fait partie du lien : sur un petit pays de l'encart, c'est elle qu'on vise. */
.hw-carte__pastille circle { fill: var(--hw-carte-trait); stroke: var(--hw-carte-choisie); stroke-width: 1.5; }
.hw-carte__pastille text { font: 700 14px/1 var(--sans, "Space Grotesk", Arial, sans-serif); fill: var(--hw-carte-choisie); }
.hw-carte__svg a.hw-actif circle { stroke: var(--hw-carte-feu); stroke-width: 2.5; }
.hw-carte__encart rect { fill: none; stroke: var(--hw-carte-encre); stroke-width: 1; stroke-dasharray: 4 4; opacity: .4; }
.hw-carte__encart > text { font: 400 22px/1 var(--main, "Caveat", cursive); fill: var(--hw-carte-lien); }
.hw-carte__encart path { stroke-width: .8; }

/* ---- les listes : remises à zéro, quel que soit le thème ------------------ */

.hw-carte ul { margin: 0; padding: 0; list-style: none; }
.hw-carte ul li { margin: 0; padding: 0; list-style: none; }
.hw-carte ul li::before, .hw-carte ul li::marker { content: none; }
.hw-carte a { text-decoration: none; }

/* ---- le sommaire : les régions, comme une table des matières -------------- */

.hw-carte p.hw-carte__invite { max-width: 20em; margin: 0 0 16px; padding: 0; color: var(--hw-carte-lien); font-family: var(--main, "Caveat", cursive); font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; }
.hw-carte ul.hw-carte__regions { border-top: 1px solid var(--hw-carte-filet); }
.hw-carte__regions a { display: flex; align-items: baseline; gap: 12px; padding: 14px 2px 13px; border-bottom: 1px solid var(--hw-carte-filet); color: var(--hw-carte-encre); transition: color .2s ease, padding-left .25s ease; }
.hw-carte__region-nom { font-family: var(--serif, "Fraunces", Georgia, serif); font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.hw-carte__points { flex: 1 1 18px; min-width: 18px; height: 0; border-bottom: 1px dotted color-mix(in srgb, var(--hw-carte-encre) 34%, transparent); transform: translateY(-4px); }
.hw-carte__region-nb { color: var(--hw-carte-feu-texte); font-family: var(--main, "Caveat", cursive); font-size: 22px; line-height: 1; white-space: nowrap; }
.hw-carte__regions a:hover,
.hw-carte__regions a:focus-visible,
.hw-carte__regions a.hw-survol { padding-left: 10px; color: var(--hw-carte-lien); }
.hw-carte__regions a:focus-visible { outline: 2px solid var(--hw-carte-feu); outline-offset: 2px; }
.hw-carte ul li.hw-carte__groupe { margin: 0; padding: 26px 2px 8px; border-bottom: 1px solid var(--hw-carte-filet); color: var(--hw-carte-lien); font-family: var(--main, "Caveat", cursive); font-size: 23px; line-height: 1; }

/* La ligne de la région choisie au catalogue, « Plus loin », et le retour à tout le catalogue. */
.hw-carte__regions .hw-carte__fleche { flex: none; margin-left: 2px; color: var(--hw-carte-lien); font-size: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .25s ease; }
.hw-carte__regions a:hover .hw-carte__fleche,
.hw-carte__regions a:focus-visible .hw-carte__fleche,
.hw-carte__regions a.hw-survol .hw-carte__fleche,
.hw-carte__regions a.hw-actif .hw-carte__fleche { opacity: 1; transform: none; }
.hw-carte__regions a.hw-actif { padding-left: 10px; color: var(--hw-carte-choisie); }
.hw-carte__regions a.hw-actif .hw-carte__region-nom { text-decoration: underline; text-decoration-color: var(--hw-carte-feu); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hw-carte ul li.hw-carte__toutes { margin-top: 18px; }
.hw-carte__toutes a { border-bottom: 0; }
.hw-carte__toutes .hw-carte__region-nom { color: var(--hw-carte-lien); font-family: var(--sans, "Space Grotesk", Arial, sans-serif); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hw-carte__toutes .hw-carte__points { border-bottom-color: transparent; }
.hw-carte__toutes .hw-carte__fleche { opacity: 1; transform: none; }

/* ---- ce qu'on montre sur chaque écran ([hunawe_carte ordinateur="…" mobile="…"]) --------
   « carte » : la carte seule ; « liste » : le sommaire seul ; « non » : rien sur cet écran. */
.hw-carte__liste { max-width: 640px; }
@media (min-width: 768px) {
  .hw-carte--ordi-non, .hw-carte--ordi-carte .hw-carte__liste, .hw-carte--ordi-liste .hw-carte__col--carte { display: none; }
}
@media (max-width: 767px) {
  .hw-carte--tel-non, .hw-carte--tel-carte .hw-carte__liste, .hw-carte--tel-liste .hw-carte__col--carte { display: none; }
  /* Sur téléphone, la carte est petite et c'est du doigt qu'on la vise : les pastilles grossissent. */
  .hw-carte__pastille circle, .hw-carte__pastille text { transform-box: fill-box; transform-origin: center; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .hw-carte * { transition: none; animation: none; }
}
