:root {
  color-scheme: light;
  --fond: #FFFBFA;
  --surface: #FFFFFF;
  --texte: #231417;
  --doux: #5C4A4C;
  --principal: #9D174D;
  --principal-texte: #FFFFFF;
  --accent: #115E59;
  --bord: #ECDDDE;
  --lien-visite: #9D174D;
  --espace: 0.75rem;
  --bloc: 1.4rem;
  --section: 2.25rem;
  --interligne: 1.6;
  --rayon: 8px;
  --mesure: 65ch;
  --largeur: min(100% - 2 * var(--bloc), 76rem);
  --police-titre: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --police-texte: 'Optima', 'Avenir Next', 'Gill Sans', 'Trebuchet MS', 'Lucida Grande', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police-texte); font-size: 1.0625rem; line-height: var(--interligne);
  font-synthesis-weight: none; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.2; margin: 0 0 var(--espace); text-wrap: balance; }
h1 { font-size: calc(1.6rem * 1.25); letter-spacing: -0.01em; }
h2 { font-size: calc(1.15rem * 1.25); margin-top: var(--section); }
h3 { font-size: calc(1rem * 1.25); margin-top: var(--bloc); }
p, ul, ol, dl, figure { margin: 0 0 var(--bloc); }
a { color: var(--principal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:visited { color: var(--lien-visite); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.enveloppe { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--bloc); }
/* Le texte courant garde une longueur de ligne lisible ; les blocs larges (image de bandeau,
   grilles de cartes, tableaux, encadrés) occupent toute la page. */
p, ul, ol, dl, h1, h2, h3, blockquote { max-width: var(--mesure); }
.grille, figure, table, .carte, .encadre, .bandeau-image, .bandeau .enveloppe > * { max-width: none; }
.entete-site { background: var(--surface); border-bottom: 3px solid var(--accent); }
.entete-site .enveloppe { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: var(--espace); padding-bottom: var(--espace); }
.marque { font-family: var(--police-titre); font-size: 1.25rem; font-weight: 700; color: var(--principal); text-decoration: none; letter-spacing: -0.015em; }
.marque::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
nav.principal ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
nav.principal a { color: var(--principal); text-decoration: none; opacity: 0.85; }
nav.principal a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
nav.principal a[aria-current="page"] { opacity: 1; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pied-site nav ul { display: flex; flex-wrap: wrap; gap: var(--espace); margin: 0 0 0.5rem; padding: 0; list-style: none; }
.pied-site nav a { color: var(--doux); text-decoration: none; }
.pied-site nav a[aria-current="page"] { color: var(--principal); font-weight: 600; }
main { display: block; padding: var(--section) 0; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { position: static; display: inline-block; background: var(--principal); color: var(--principal-texte); padding: 0.5rem 0.75rem; }
.bandeau { background: var(--principal); color: var(--principal-texte); }
.bandeau .enveloppe { padding-top: calc(var(--bloc) * 1.1); padding-bottom: calc(var(--bloc) * 1.1); }
/* Titre de tête : sobre et net — interligne serré, approche légèrement resserrée,
   retour à la ligne équilibré. Aucun ornement. */
.bandeau h1, article header h1 { line-height: 1.15; letter-spacing: -0.012em; font-weight: 700; margin-bottom: 0.8rem; hyphens: none; overflow-wrap: break-word; text-wrap: balance; }
.bandeau p { line-height: 1.55; max-width: 44ch; opacity: 0.94; }
.bandeau-image { display: block; margin: var(--bloc) 0 0; background: var(--principal); }
.bandeau-image img { display: block; width: 100%; height: auto; border-radius: var(--rayon); }
.bandeau h1, .bandeau a { color: var(--principal-texte); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: var(--bloc); margin: 0 0 var(--bloc); }
.grille { display: grid; gap: var(--bloc); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; margin: 0 0 var(--bloc); }
.grille li { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: var(--espace); }
.encadre { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--bloc); margin: 0 0 var(--bloc); border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre h2 { margin-top: 0; }
.meta { color: var(--doux); font-size: 0.9375rem; }
.pied-site { border-top: 1px solid var(--bord); background: var(--surface); margin-top: var(--section); padding: var(--bloc) 0; color: var(--doux); font-size: 0.9375rem; }
.pied-site a { color: var(--doux); }
table { border-collapse: collapse; width: 100%; margin: 0 0 var(--bloc); }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--bord); }
th { font-family: var(--police-titre); }
img { max-width: 100%; height: auto; }
figure { margin-left: 0; margin-right: 0; }
figcaption { color: var(--doux); font-size: 0.9375rem; }
/* FAQ dépliable : <details> natif, sans script — la CSP des sites n'autorise pas
   de script en ligne, et le repli sans JavaScript reste utilisable. */
.faq details { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin: 0 0 0.6rem; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem var(--espace); font-family: var(--police-titre); font-weight: 600; color: var(--principal); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq .ouvre { flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq .moins { display: none; }
.faq details[open] .plus { display: none; }
.faq details[open] .moins { display: inline; }
.faq summary:hover { background: rgba(0, 0, 0, 0.02); }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq details > p { margin: 0; padding: 0 var(--espace) var(--espace); }
input, textarea, select, button { font: inherit; }
@media (max-width: 44rem) {
  :root { --espace: 0.85rem; --bloc: 1.25rem; --section: 2rem; --largeur: 100%; }
  body { font-size: 1rem; }
  main { padding: 1.5rem 0; }
  /* L'image d'ouverture vient se coller sous le filet de l'en-tête : plus de bande
     blanche entre les deux (le retrait du haut de main est compensé pile). */
  .bandeau-image { margin-top: calc(-1 * 1.5rem); }
  h1 { font-size: calc(1.42rem * 1.25); }
  h2 { font-size: calc(1.05rem * 1.25); }
  h3 { font-size: calc(0.95rem * 1.25); }
  p { text-wrap: pretty; }
  /* sur un téléphone, l'image de tête et les illustrations occupent toute la largeur */
  .bandeau-image, figure.illustration { margin-left: calc(-1 * var(--bloc)); margin-right: calc(-1 * var(--bloc)); }
  .bandeau-image img, figure.illustration img { border-radius: 0; }
  .bandeau .enveloppe > *:last-child, .encadre > *:last-child, .grille li > *:last-child,
  main section > *:last-child, .bandeau-image + .bandeau p { margin-bottom: 0; }
  .grille { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  .pied-site nav ul { gap: 0.4rem 1rem; }
  .entete-site .enveloppe { gap: 0.15rem 1rem; }
  nav.principal ul { gap: 0.2rem 0.9rem; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .entete-site nav, .lien-evitement { display: none; } body { background: #fff; } }


/* ---------- météo : compléments propres à meteoguadeloupe.net ---------- */
.fil { font-size: 0.9rem; color: var(--doux); margin: var(--bloc) 0 var(--espace); }
.fil a { text-decoration: none; }
.chapeau { font-size: 1.1rem; color: var(--doux); border-left: 3px solid var(--accent); padding-left: var(--espace); max-width: var(--mesure); }
.jour-principal, .jour {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: var(--bloc); margin-bottom: var(--espace);
}
.jour-principal { border-left: 5px solid var(--principal); }
.jour h3, .jour-principal h3 { margin-top: 0; }
.plage { font-size: 1.05rem; margin-bottom: 0.35rem; }
.ciel { color: var(--doux); font-style: italic; margin-bottom: 0.6rem; }
dl.details { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.15rem 0.5rem; margin: 0; font-size: 0.95rem; align-items: baseline; }
dl.details dt { color: var(--doux); display: block; margin: 0; }
dl.details dd { margin: 0; display: block; }
ul.grille-communes { list-style: none; padding: 0; margin: 0 0 var(--section); display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.5rem; }
li.carte-commune { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0.6rem 0.8rem; }
li.carte-commune a { font-weight: 600; text-decoration: none; }
li.carte-commune .detail { display: block; color: var(--doux); font-size: 0.9rem; }
ul.liste-communes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.25rem 1rem; }
ul.liste-communes li { margin: 0; }
.pied-site { margin-top: var(--section); border-top: 3px solid var(--accent); background: var(--surface); }
.pied-site p { font-size: 0.85rem; color: var(--doux); margin: var(--espace) 0; }


/* ---------- météo : suivi par moments de la journée et pictogrammes ---------- */
.sprite-pictos { display: none; }
svg.picto { width: 1.7rem; height: 1.7rem; display: block; margin: 0 auto; }
svg.picto-petit { width: 1.15rem; height: 1.15rem; margin: 0 auto; }
ol.moments { list-style: none; margin: 0.4rem 0 0.7rem; padding: 0; display: grid; max-width: none;
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; }
ol.moments li.moment { display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  background: var(--fond); border: 1px solid var(--bord); border-radius: calc(var(--rayon) - 2px);
  padding: 0.35rem 0.15rem; text-align: center; min-width: 0; }
.moment .heure { font-size: 0.78rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.moment .deg { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.moment .pluie { font-size: 0.72rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.moment .pluie::after { content: ""; }
ul.grille-communes, ul.liste-communes { max-width: none; }
ol.moments-compacts { list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: flex-end; max-width: none; }
ol.moments-compacts .heure { font-size: 0.66rem; color: var(--doux); }
ol.moments-compacts li { display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
  font-size: 0.78rem; color: var(--doux); font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) {
  ol.moments { gap: 0.15rem; }
  svg.picto { width: 1.25rem; height: 1.25rem; }
  .moment .heure { font-size: 0.7rem; }
  .moment .deg { font-size: 0.78rem; }
  .moment .pluie { font-size: 0.66rem; }
}

/* ---------- météo : conditions du moment ---------- */
li.carte-commune .actuel { display: flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0 0.15rem; }
li.carte-commune .actuel svg.picto { margin: 0; width: 1.6rem; height: 1.6rem; flex: none; }
li.carte-commune .actuel .temp { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
li.carte-commune .actuel .ciel { font-size: 0.82rem; color: var(--doux); }
p.actuel-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  color: var(--doux); font-size: 1rem; margin: 0 0 var(--bloc); max-width: var(--mesure); }
p.actuel-ligne svg.picto { margin: 0; display: inline-block; flex: none; }
p.actuel-ligne strong { color: var(--texte); }
li.carte-commune .detail { display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem; }
li.carte-commune .detail > span { white-space: nowrap; }
li.carte-commune .actuel .ciel { font-style: italic; }

/* ---------- météo : carte de l'archipel ---------- */
svg.carte-meteo { width: 100%; max-width: 1000px; height: auto; display: block; margin: 0 auto;
  border: 1px solid var(--bord); border-radius: var(--rayon); background: #DCE9F1; }
svg.carte-meteo a path { transition: fill-opacity .15s; }
svg.carte-meteo a:hover path { fill-opacity: .82; }
p.legende-carte { color: var(--doux); max-width: var(--mesure); margin: 0 0 0.6rem; }
p.legende-radar { color: var(--doux); font-size: 0.85rem; max-width: var(--mesure); margin: 0.5rem 0 0; }
ul.echelle-temp { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; padding: 0;
  margin: 0.55rem 0 var(--bloc); font-size: 0.85rem; color: var(--doux); max-width: none; }
ul.echelle-temp li { display: flex; align-items: center; gap: 0.35rem; }
.pastille { width: 0.9rem; height: 0.9rem; border-radius: 3px; display: inline-block;
  border: 1px solid rgba(0, 0, 0, .12); }
.pastille.p1 { background: #B03A2E; }
.pastille.p2 { background: #C75C33; }
.pastille.p3 { background: #DC8341; }
.pastille.p4 { background: #E7A85C; }
.pastille.p5 { background: #EFCB92; }
ul.liste-puces { list-style: none; padding: 0; margin: 0; display: grid; max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.3rem 1.1rem; }
ul.liste-puces li a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; }
ul.liste-puces svg.picto-petit { margin: 0; flex: none; }
ul.liste-puces .nom { flex: 1; min-width: 0; }
ul.liste-puces .temp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.liste-puces .ciel { color: var(--doux); font-size: 0.8rem; white-space: nowrap; }
@media (max-width: 34rem) {
  ul.liste-puces { grid-template-columns: 1fr; }
  svg.carte-meteo a.point { display: none; }
}

/* ---------- articles ---------- */
article.article { max-width: var(--mesure); }
article.article h1 { margin-bottom: 0.2rem; }
article.article h2 { margin-top: var(--bloc); }
article.article p, article.article li { line-height: 1.65; }
p.article-meta { color: var(--doux); font-size: 0.85rem; font-style: italic; margin: 0 0 1.1rem; }
article.article blockquote { margin: 1rem 0; padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--accent, #0d6b5f); color: var(--doux); font-style: italic; }
article.article blockquote p { margin: 0; }
ul.liste-articles { list-style: none; padding: 0; margin: 0; max-width: var(--mesure); }
ul.liste-articles li { padding: 0.7rem 0; border-bottom: 1px solid var(--bord); }
ul.liste-articles li a { font-weight: 600; display: block; }
ul.liste-articles .article-meta { margin: 0.1rem 0 0.2rem; }
ul.liste-articles .article-resume { display: block; color: var(--doux); font-size: 0.9rem; }
