/* ==========================================================================
   toovaucluse.fr | feuille de style unique
   Palette : bleu #009CDE, jaune #FFC72C, lavande #7566A8, olive #718355.
   Aucune ressource externe : pas de Google Fonts, pas de CDN.
   ========================================================================== */

:root {
  /* Marque : bleu du ciel et de la Sorgue, jaune du soleil, lavande, olive. */
  --bleu:        #009cde;
  --bleu-fonce:  #0079ac;   /* survol et texte : #009cde ne passe pas sur blanc */
  --bleu-nuit:   #0b2b40;   /* bandeaux et pied de page */
  --bleu-pale:   #e3f4fd;
  --bleu-brume:  #f2fafe;
  --bleu-titre:  #0d5f86;   /* bleu sourd des titres et des accents editoriaux */

  --jaune:       #ffc72c;
  --jaune-pale:  #fff5d9;
  --jaune-texte: #8a5a00;   /* le seul jaune lisible en texte, sur fond pale */
  --lavande:     #7566a8;
  --lavande-pale:#efecf8;
  --lavande-fonce:#574a80;
  --olive:       #718355;
  --olive-pale:  #eef2e7;
  --olive-fonce: #5f6f45;

  /* Neutres, tires vers le bleu pour qu'ils ne jurent pas avec la marque */
  --encre:       #14212b;
  --encre-douce: #4d5a63;
  --encre-pale:  #7c8a92;
  --papier:      #ffffff;
  --papier-creux:#f4f8fa;
  --trait:       #e0e8ed;
  --trait-fort:  #c6d4dc;

  --rayon:    18px;
  --rayon-s:  10px;
  --rayon-xs: 999px;
  --ombre:    0 2px 4px rgba(11,43,64,.04), 0 10px 28px rgba(11,43,64,.07);
  --ombre-f:  0 4px 10px rgba(11,43,64,.07), 0 22px 54px rgba(11,43,64,.13);

  /* Titres en serif : aucune police externe, uniquement des polices systeme. */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --titre: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --sans:  "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.72;
  color: var(--encre);
  background: var(--papier);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bleu-fonce); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--lavande); }

h1, h2, h3, h4 {
  font-family: var(--titre); font-weight: 800; line-height: 1.14;
  margin: 0 0 .45em; letter-spacing: -.025em; color: var(--encre);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.8em; font-weight: 750; }
h4 { font-size: 1.1rem; margin-top: 1.5em; font-weight: 700; letter-spacing: -.01em; }
h2 + h3, h3 + h4 { margin-top: 1em; }

/* Barre verte devant chaque H2 de contenu */
.corps-article > h2,
.bloc-texte > h2 {
  position: relative; padding-top: .5em;
}
.corps-article > h2::before,
.bloc-texte > h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--bleu), var(--jaune));
}

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.3em; }
li { margin-bottom: .5em; }
li::marker { color: var(--bleu); }
strong { font-weight: 700; }
small { font-size: .86rem; }

.zone { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
/* Colonne de lecture. Elargie a 1080 px le 13 aout 2026 : a 860 px, le texte
   revenait a la ligne alors qu'il restait 500 px de vide de chaque cote. */
.zone-etroite { max-width: 1080px; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bleu); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--rayon-s) 0;
  font-weight: 700;
}
.lien-evitement:focus { left: 0; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

/* Contenu reserve aux lecteurs d'ecran : un label doit exister pour le champ
   qu'il decrit, meme quand le placeholder suffit a l'oeil. On ne le masque pas
   avec display:none, qui le retirerait aussi de l'arbre d'accessibilite. */
.hors-ecran {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ==========================================================================
   En-tete
   ========================================================================== */
.entete {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
  position: sticky; top: 0; z-index: 100;
}
.entete-barre { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo img { height: 42px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 9px 15px; border-radius: var(--rayon-xs);
  color: var(--encre-douce); text-decoration: none; font-size: .95rem; font-weight: 650;
  white-space: nowrap;
}
.nav a:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
.nav a.actif { color: #fff; background: var(--bleu); }

.nav-bouton {
  display: none; margin-left: auto; background: var(--bleu); color: #fff;
  border: 0; border-radius: var(--rayon-xs); padding: 11px 20px; cursor: pointer;
  font-size: .95rem; font-family: inherit; font-weight: 700;
}

/* --- En-tete : navigation courte au centre, recherche puis btn Menu ---- */
.nav-principale { margin-left: 34px; }
.nav-principale ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-principale li { margin: 0; }
.nav-principale a {
  display: block; padding: 10px 16px; border-radius: var(--rayon-xs);
  color: var(--encre-douce); text-decoration: none; font-family: var(--sans);
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  white-space: nowrap; position: relative;
}
.nav-principale a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--bleu-titre); transform: scaleX(0);
  transform-origin: left; transition: transform .18s;
}
.nav-principale a:hover { color: var(--bleu-fonce); }
.nav-principale a:hover::after { transform: scaleX(1); }
.nav-principale a.actif { color: var(--bleu-fonce); background: var(--bleu-pale); }
.nav-principale a.actif::after { transform: scaleX(1); }
@media (max-width: 1080px) { .nav-principale { display: none; } }

/* Le btn Menu ouvre le panneau des neuf territoires, a toutes les tailles. */
.entete-barre .nav-bouton { display: block; margin-left: 14px; background: var(--bleu-nuit); }
.entete-barre .nav-bouton::after { content: " \2261"; }
.entete-barre .nav-bouton:hover { background: var(--bleu-fonce); }
.entete-barre .nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--trait);
  box-shadow: var(--ombre-f); padding: 14px 24px 20px; margin-left: 0;
}
.entete-barre .nav.ouvert { display: block; }
.entete-barre .nav ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 18px; max-width: var(--largeur); margin: 0 auto; padding: 0; list-style: none;
}
.entete-barre .nav a { padding: 12px 16px; border-radius: var(--rayon-s); font-family: var(--sans); }
@media (max-width: 430px) { .entete-barre .nav ul { grid-template-columns: 1fr; } }
@media (max-width: 430px) {
  .logo img { height: 34px; }
  .entete-barre { gap: 12px; min-height: 64px; }
  .zone { padding: 0 18px; }
  .nav-bouton { padding: 10px 16px; }
}

/* ==========================================================================
   Bandeau
   ========================================================================== */
.entete-page { position: relative; background: var(--bleu-nuit); color: #fff; overflow: hidden; }
.entete-page::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 460px at 90% -12%, rgba(0,156,222,.34), transparent 64%),
    linear-gradient(180deg, rgba(11,43,64,.62) 0%, rgba(11,43,64,.36) 42%, rgba(11,43,64,.90) 100%);
}
.entete-bloc { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 74px; }
.entete-page h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 26px rgba(0,0,0,.34); }
/* L'accroche occupe toute la largeur : pas de max-width court, sinon le texte
   casse au tiers de la ligne. */
.entete-accroche {
  font-size: clamp(1.12rem, 2.05vw, 1.45rem); line-height: 1.5; font-weight: 450;
  color: rgba(255,255,255,.95); margin: 0; text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.entete-reperes {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0;
}
.entete-reperes li {
  margin: 0; font-size: .92rem; font-weight: 750;
  background: rgba(255,255,255,.94); border: 0;
  color: var(--bleu-nuit); padding: 9px 19px; border-radius: var(--rayon-xs);
}
.entete-reperes li:nth-child(2) { background: var(--jaune); color: #452f00; }
.entete-reperes li:nth-child(3) { background: var(--lavande); color: #fff; }
.entete-reperes li:nth-child(4) { background: var(--olive-fonce); color: #fff; }
.entete-court .entete-bloc { padding-top: 58px; padding-bottom: 50px; }
.entete-plein { background: linear-gradient(135deg, var(--bleu-nuit) 0%, #14507a 55%, var(--bleu-fonce) 100%); }
.entete-plein::after {
  background: radial-gradient(760px 380px at 92% 0%, rgba(255,199,44,.24), transparent 60%);
}

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.fil { background: var(--bleu-brume); border-bottom: 1px solid var(--trait); font-size: .9rem; }
.fil ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 13px 0; color: var(--encre-pale); }
.fil li { margin: 0; display: flex; gap: 8px; align-items: center; }
.fil li + li::before { content: "›"; color: var(--trait-fort); font-weight: 700; }
.fil a { color: var(--encre-douce); text-decoration: none; font-weight: 600; }
.fil a:hover { color: var(--bleu-fonce); text-decoration: underline; }

/* ==========================================================================
   Mise en page. Les colonnes sont posees explicitement : le rendu ne doit
   jamais dependre de l'ordre du HTML.
   ========================================================================== */
.corps-page { padding: 56px 0 84px; }
.avec-colonne {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start;
}
.avec-colonne > .corps-article { grid-column: 1; min-width: 0; }
.avec-colonne > .aside-col,
.avec-colonne > .colonne-cote { grid-column: 2; min-width: 0; position: sticky; top: 100px; }
@media (max-width: 1080px) {
  .avec-colonne { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .avec-colonne > .corps-article,
  .avec-colonne > .aside-col,
  .avec-colonne > .colonne-cote { grid-column: 1; position: static; }
}

.corps-article > *:first-child { margin-top: 0; }
.corps-article figure { margin: 2.2em 0; }
.corps-article figure img { border-radius: var(--rayon); box-shadow: var(--ombre-f); width: 100%; }
.corps-article figcaption { font-size: .86rem; color: var(--encre-pale); margin-top: .7em; line-height: 1.5; }

/* Photo hors article : hubs et accueil. La zone y est plus large que la
   colonne d'article, et nos fichiers plafonnent a 1600 px : sans max-width,
   le navigateur agrandit l'image et la rend floue. */
.photo-large { margin: 2.4em auto; max-width: 1080px; }
.photo-large img { display: block; width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre-f); }
.photo-large figcaption { font-size: .86rem; color: var(--encre-pale); margin-top: .7em; line-height: 1.5; }

.intro {
  font-size: clamp(1.12rem, 1.55vw, 1.3rem); line-height: 1.62; color: var(--encre-douce); font-weight: 450;
}
.intro strong { color: var(--encre); font-weight: 750; }

/* ==========================================================================
   Sommaire
   ========================================================================== */
.plan-page {
  background: var(--bleu-brume); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 24px 28px; margin: 0 0 36px;
}
.plan-page p {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: var(--bleu); margin: 0 0 14px;
}
.plan-page ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 36px; }
.plan-page li { margin-bottom: .45em; font-size: .96rem; break-inside: avoid; }
.plan-page a { color: var(--encre-douce); text-decoration: none; font-weight: 600; }
.plan-page a:hover { color: var(--bleu-fonce); text-decoration: underline; }
@media (max-width: 640px) { .plan-page ol { columns: 1; } }

/* ==========================================================================
   Encadres. Un seul vc-cle par page, un seul vc-methode.
   ========================================================================== */
.vc-methode, .vc-cle, .vc-note {
  border-radius: var(--rayon); padding: 22px 26px; margin: 2em 0; line-height: 1.62;
}
.vc-methode {
  background: var(--papier-creux); border: 1px solid var(--trait);
  color: var(--encre-douce); font-size: .93rem;
}
.vc-cle {
  background: linear-gradient(135deg, var(--lavande-pale), #f7f4fc);
  border: 1px solid #ded7ee; border-left: 6px solid var(--lavande);
  font-size: 1.02rem;
}
.vc-note { background: var(--bleu-pale); border: 1px solid #bde4f6; border-left: 6px solid var(--bleu); }
.vc-methode > *:last-child, .vc-cle > *:last-child, .vc-note > *:last-child { margin-bottom: 0; }
.vc-methode > *:first-child, .vc-cle > *:first-child, .vc-note > *:first-child { margin-top: 0; }
.vc-titre {
  display: block; font-weight: 800; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .11em; color: var(--lavande); margin-bottom: .6em;
}
.vc-note .vc-titre { color: var(--bleu-fonce); }
.vc-methode .vc-titre { color: var(--encre-pale); }

/* Fiche de lieu */
.vc-lieu {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 26px 28px; margin: 1.5em 0; box-shadow: var(--ombre);
  border-top: 5px solid var(--bleu);
}
.vc-lieu h3 { margin-top: 0; margin-bottom: .45em; font-size: 1.3rem; }
.vc-lieu-meta {
  list-style: none; margin: 0 0 1em; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: .87rem;
}
.vc-lieu-meta li {
  margin: 0; background: var(--bleu-brume); border: 1px solid var(--trait);
  border-radius: var(--rayon-xs); padding: 4px 13px; color: var(--encre-douce);
}
.vc-lieu-meta b { font-weight: 750; color: var(--encre); }
.vc-lieu > p:last-child { margin-bottom: 0; }

/* Chiffres cles */
.vc-chiffres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px; margin: 2.2em 0; padding: 0; list-style: none;
}
.vc-chiffres li {
  background: var(--bleu-brume); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 22px 24px; margin: 0; min-width: 0;
  position: relative; overflow: hidden;
}
.vc-chiffres li::after {
  content: ""; position: absolute; right: -26px; top: -26px;
  width: 84px; height: 84px; border-radius: 50%; background: rgba(0,156,222,.07);
}
.vc-chiffres li:nth-child(2) { background: var(--jaune-pale); border-color: #f3e2b0; }
.vc-chiffres li:nth-child(2)::after { background: rgba(255,199,44,.14); }
.vc-chiffres li:nth-child(3) { background: var(--lavande-pale); border-color: #ded7ee; }
.vc-chiffres li:nth-child(4) { background: var(--olive-pale); border-color: #d7e0c8; }
.vc-chiffres li:nth-child(3)::after { background: rgba(117,102,168,.10); }
.vc-chiffres b {
  display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.02;
  letter-spacing: -.035em; color: var(--bleu-fonce); position: relative;
}
.vc-chiffres li:nth-child(2) b { color: #8a5a00; }
.vc-chiffres li:nth-child(3) b { color: var(--lavande); }
.vc-chiffres span {
  display: block; font-size: .89rem; color: var(--encre-douce);
  margin-top: 8px; line-height: 1.45; position: relative;
}

/* ==========================================================================
   Tableaux : ils defilent dans leur conteneur, jamais la page
   ========================================================================== */
.tableau-large {
  overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff;
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 480px; }
caption {
  caption-side: bottom; text-align: left; font-size: .84rem;
  color: var(--encre-pale); padding: 12px 20px 16px; line-height: 1.5;
}
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th {
  background: var(--bleu-nuit); color: #fff; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .09em; font-weight: 800; white-space: nowrap; border-bottom: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--bleu-brume); }
tbody tr:hover { background: var(--bleu-pale); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { margin: 2em 0 0; }
.faq details {
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: #fff; margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--bleu); box-shadow: var(--ombre); }
.faq summary {
  cursor: pointer; padding: 20px 26px; font-weight: 700; font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
/* Le « + » pivote en croix a l'ouverture : evite un caractere tiret dans le CSS. */
.faq summary::after {
  content: "+"; color: #fff; background: var(--bleu); width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1; flex-shrink: 0; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-rep { padding: 0 26px 20px; font-size: 1rem; color: var(--encre-douce); }
.faq-rep > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   Colonne laterale
   ========================================================================== */
.encart {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--ombre);
}
.encart h2, .encart h3 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: var(--bleu); margin: 0 0 16px;
}
.encart h2::before { display: none; }
.encart ul { list-style: none; margin: 0; padding: 0; font-size: .96rem; }
.encart li { margin-bottom: .8em; line-height: 1.48; }
.encart li:last-child { margin-bottom: 0; }
.encart a { text-decoration: none; }
.encart a:hover { text-decoration: underline; }
.encart .precision { display: block; font-size: .82rem; color: var(--encre-pale); font-weight: 400; }
.encart--accent {
  background: linear-gradient(150deg, var(--bleu-nuit), #14507a);
  border-color: transparent; color: rgba(255,255,255,.92);
}
.encart--accent h2 { color: var(--jaune); }
.encart--accent a { color: #fff; }
/* Sur le degrade sombre, la precision heritait de --encre-pale (#7c8a92),
   soit 2,40 pour 1 sur l'extremite claire du fond (#14507a) : sous le seuil
   de 4,5. Mesure faite, pas estimee a l'oeil. */
.encart--accent .precision { color: rgba(255,255,255,.78); }
.encart--jaune { background: var(--jaune-pale); border-color: #f3e2b0; }
.encart--jaune h2 { color: #8a5a00; }

.fiche-reperes { list-style: none; margin: 0; padding: 0; font-size: .96rem; }
.fiche-reperes li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--trait); margin: 0;
}
.fiche-reperes li:last-child { border-bottom: 0; }
.fiche-reperes span { color: var(--encre-pale); flex-shrink: 0; }
.fiche-reperes b { font-weight: 750; text-align: right; }

/* ==========================================================================
   Cartes
   ========================================================================== */
.grille-articles {
  /* min() : sous 320 px de viewport, la vignette ne doit pas imposer sa largeur
     minimale, sinon la page deborde. */
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px; margin: 2.4em 0; list-style: none; padding: 0;
}
.grille-articles > li { margin: 0; min-width: 0; }
.vignette {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s;
  position: relative;
}
.vignette::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--bleu), var(--jaune));
}
.grille-articles > li:nth-child(3n+2) .vignette::before { background: linear-gradient(90deg, var(--jaune), var(--lavande)); }
.grille-articles > li:nth-child(3n+3) .vignette::before { background: linear-gradient(90deg, var(--lavande), var(--bleu)); }
a.vignette { text-decoration: none; color: inherit; }
a.vignette:hover { box-shadow: var(--ombre-f); transform: translateY(-4px); }
.vignette-corps { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vignette h3 { margin: 0 0 .45em; font-size: 1.3rem; }
a.vignette:hover h3 { color: var(--bleu-fonce); }
.vignette p { font-size: .97rem; color: var(--encre-douce); margin: 0 0 1.3em; }
.vignette-pied {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--trait);
  font-size: .84rem; color: var(--encre-pale);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.vignette-pied b { color: var(--bleu-fonce); font-weight: 800; }

/* ==========================================================================
   Liste des communes
   ========================================================================== */
@media (max-width: 900px) { .liste-communes { columns: 2; } }
@media (max-width: 540px) { .liste-communes { columns: 1; } }

/* Index alphabetique */
.champ-filtre {
  width: 100%; padding: 16px 22px; font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--trait-fort); border-radius: var(--rayon); background: #fff;
  margin: 8px 0 6px; color: var(--encre);
}
.champ-filtre:focus { outline: 3px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.filtre-resultat { font-size: .92rem; color: var(--encre-pale); margin: 0 0 18px; }

/* ==========================================================================
   Carte Leaflet
   ========================================================================== */
.plan-lieu {
  height: 470px; border-radius: var(--rayon); border: 1px solid var(--trait);
  margin: 2em 0 .7em; z-index: 1; box-shadow: var(--ombre);
}
.plan-legende { font-size: .86rem; color: var(--encre-pale); margin-top: -.3em; }
@media (max-width: 640px) { .plan-lieu { height: 360px; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied { background: var(--bleu-nuit); color: rgba(255,255,255,.74); margin-top: 80px; font-size: .96rem; }
.pied-grille { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; padding: 64px 0 48px; }
.pied h2 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: var(--jaune); margin: 0 0 18px;
}
.pied h2::before { display: none; }
/* Deuxieme titre dans une meme colonne de pied : sans marge haute, il se colle
   au dernier lien de la liste precedente et se lit comme une entree de plus. */
.pied ul + h2 { margin-top: 30px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .65em; }
.pied a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; }
.pied a:hover { color: var(--jaune); text-decoration: underline; }
.pied-logo { margin: 0 0 1em; }
.pied-logo img { height: 40px; width: auto; }
.pied-desc { line-height: 1.65; margin: 0; color: rgba(255,255,255,.62); }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,.13); padding: 22px 0 32px;
  font-size: .88rem; color: rgba(255,255,255,.52);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
}
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; gap: 34px; padding: 48px 0 34px; } }
@media (max-width: 540px) { .pied-grille { grid-template-columns: 1fr; } }

/* ==========================================================================
   Divers
   ========================================================================== */
.mention-src { font-size: .89rem; color: var(--encre-pale); }
/* URL de source, en clair et non cliquable : le lecteur peut verifier, et le
   site ne distribue pas de lien sortant. overflow-wrap est indispensable, une
   URL longue deborde sinon la aside-col sur mobile. */
.src-url,
.source-url {
  display: inline-block;
  font-size: .82em;
  color: var(--encre-pale);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.btn {
  display: inline-block; background: var(--bleu); color: #fff; text-decoration: none;
  padding: 15px 30px; border-radius: var(--rayon-xs); font-weight: 750; font-size: 1rem;
  border: 2px solid var(--bleu); box-shadow: 0 6px 18px rgba(0,156,222,.24);
}
.btn:hover { background: var(--bleu-fonce); color: #fff; border-color: var(--bleu-fonce); }

/* Bandeau de rupture pleine largeur */
@media (max-width: 640px) { .ruban { padding: 30px 24px; } }

hr { border: 0; border-top: 1px solid var(--trait); margin: 3em 0; }

@media print {
  .entete, .pied, .nav, .aside-col, .plan-page { display: none; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   Accueil : mise en page editoriale (13 aout 2026)
   Prefixe .acc- : ces regles ne servent qu'a la page d'accueil et a
   /territoires/. Elles n'affectent aucune page commune.
   ========================================================================== */

/* --- Heros ---------------------------------------------------------------- */
.acc-hero {
  position: relative;
  background: linear-gradient(180deg, #fafcfd 0%, #eef4f8 100%);
  overflow: hidden;
}
.acc-hero-photo {
  position: absolute; inset: 0 0 0 40%;
  background-size: cover; background-position: 50% 45%;
  /* La photo d'accueil est l'element le plus lourd du premier ecran. Elle est
     declaree ici et non en style inline : un style inline l'emporte sur toute
     regle, et il n'y aurait alors aucun moyen d'en servir une version plus
     petite au telephone. */
  background-image: url("../img/accueil-hero-gordes-1200.jpg");
}
@media (max-width: 1080px) {
  .acc-hero-photo { background-image: url("../img/accueil-hero-gordes-800.jpg"); }
}
@media (max-width: 560px) {
  .acc-hero-photo { background-image: url("../img/accueil-hero-gordes-480.jpg"); }
}
.acc-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #f4f8fa 0%, rgba(244,248,250,.88) 15%, rgba(244,248,250,0) 48%);
}
.acc-hero-grille {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: 40px; padding-top: 74px; padding-bottom: 120px;
}
.acc-hero h1 {
  font-family: var(--serif); font-size: clamp(2.15rem, 4.1vw, 3.3rem);
  line-height: 1.07; letter-spacing: -.032em; margin: 0 0 .55em;
}
.acc-hero h1 .acc-italique {
  display: block; font-style: italic; font-weight: 700; color: var(--bleu-titre);
}
.acc-hero-texte {
  font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.62;
  color: var(--encre-douce); margin: 0 0 30px; max-width: 30em;
}
.acc-chiffres { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.acc-chiffres li {
  margin: 0; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--trait); border-radius: 14px;
  padding: 12px 20px 12px 14px; box-shadow: 0 1px 2px rgba(11,43,64,.04), 0 8px 22px rgba(11,43,64,.06);
}
.acc-pastille {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  display: grid; place-items: center;
}
.acc-pastille svg { width: 19px; height: 19px; }
.acc-pastille-bleu  { background: var(--bleu-pale); color: var(--bleu-fonce); }
.acc-pastille-jaune { background: var(--jaune-pale); color: #8a5a00; }
.acc-pastille-lavande{ background: var(--lavande-pale); color: #574a80; }
.acc-chiffre-b { display: block; font-weight: 800; font-size: 1.12rem; line-height: 1.15; color: var(--encre); }
.acc-chiffre-l { display: block; font-size: .8rem; color: var(--encre-pale); }

/* Barre de recherche a cheval sur le bas du heros */
.acc-recherche-enveloppe {
  /* La barre chevauche le bas du heros, mais il faut de l'air en dessous :
     sans ce padding, elle colle a la limite de la photo. */
  position: relative; z-index: 3; margin-top: -46px; padding-bottom: 40px;
}
.acc-recherche {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-xs);
  padding: 10px 10px 10px 24px; box-shadow: var(--ombre-f); max-width: 720px; margin: 0 auto;
}
.acc-recherche svg { width: 20px; height: 20px; color: var(--encre-pale); flex: 0 0 20px; }
.acc-recherche input {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1rem;
  color: var(--encre); padding: 12px 0;
}
.acc-recherche input::placeholder { color: var(--encre-pale); }
.acc-recherche input:focus { outline: none; }
.acc-recherche button {
  flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-weight: 750; font-size: .98rem;
  background: var(--bleu-titre); color: #fff; padding: 14px 30px; border-radius: var(--rayon-xs);
}
.acc-recherche button:hover { background: var(--bleu-fonce); }

@media (max-width: 900px) {
  .acc-hero-photo { inset: 0; opacity: .2; }
  .acc-hero-photo::after { background: linear-gradient(180deg, rgba(244,248,250,.55), rgba(244,248,250,.92)); }
  .acc-hero-grille { grid-template-columns: minmax(0, 1fr); padding-top: 52px; padding-bottom: 96px; }
  .acc-recherche { flex-wrap: wrap; padding: 14px; }
  /* La loupe reste sur la meme ligne que le champ : en la laissant se replier
     seule, elle occupait une ligne entiere au-dessus d'un champ vide. Seul le
     bouton passe dessous, sur toute la largeur. */
  .acc-recherche input { flex: 1 1 auto; min-width: 0; padding: 6px 8px; }
  .acc-recherche button { flex: 1 1 100%; }
}

/* --- Titres de section de l'accueil -------------------------------------- */
.acc-section { padding: 66px 0 0; }
/* La partie editoriale de l'accueil respire plus large que la aside-col de
   lecture : 1480 px au lieu de 1240. */
.acc-large { max-width: 1480px; }
.acc-tete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.acc-tete h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 0;
  letter-spacing: -.02em; padding-left: 18px; position: relative;
}
.acc-tete h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 5px; border-radius: 999px; background: var(--bleu-titre);
}
.acc-lien-tete {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-xs);
  padding: 11px 22px; font-size: .93rem; font-weight: 650; color: var(--encre-douce);
  box-shadow: 0 1px 2px rgba(11,43,64,.04);
}
.acc-lien-tete:hover { border-color: var(--bleu-titre); color: var(--bleu-fonce); }

/* --- Rangee de cartes territoire ---------------------------------------- */
/* Grille 3 x 3 : les neuf territoires tiennent en trois rangees pleines, sans
   vignette coupee au bord ni defilement horizontal. */
.acc-rangee {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; list-style: none; margin: 0; padding: 0;
}
.acc-rangee > li { margin: 0; min-width: 0; }
@media (max-width: 1080px) { .acc-rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .acc-rangee { grid-template-columns: minmax(0, 1fr); } }

/* Dix rubriques dans une grille de trois : la derniere resterait seule au bord
   gauche de sa ligne, ce qui se lit comme un oubli. Quand le dernier element
   ouvre une nouvelle ligne, il occupe toute la largeur et passe en vignette
   horizontale. La regle ne se declenche que dans ce cas precis, donc elle ne
   genera pas un decoupage a neuf ou a douze. */
@media (min-width: 1081px) {
  .acc-rangee > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .acc-rangee > li:last-child:nth-child(3n + 1) .acc-vignette {
    flex-direction: row; align-items: stretch;
  }
  .acc-rangee > li:last-child:nth-child(3n + 1) .acc-vignette img {
    width: 34%; height: auto; flex: 0 0 34%; min-height: 210px;
  }
  .acc-rangee > li:last-child:nth-child(3n + 1) .acc-vignette-corps { justify-content: center; }
}
@media (min-width: 701px) and (max-width: 1080px) {
  .acc-rangee > li:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}

.acc-vignette {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,43,64,.04), 0 10px 24px rgba(11,43,64,.05);
  transition: box-shadow .2s, transform .2s;
}
.acc-vignette:hover { transform: translateY(-4px); box-shadow: var(--ombre-f); color: inherit; }
.acc-vignette img { width: 100%; height: 210px; object-fit: cover; }
.acc-vignette-corps { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.acc-vignette h3 { font-family: var(--serif); font-size: 1.24rem; margin: 0 0 .5em; letter-spacing: -.015em; }
.acc-vignette p { font-size: .93rem; line-height: 1.55; color: var(--encre-douce); margin: 0 0 1.3em; }
.acc-vignette-pied {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--trait);
  font-size: .83rem; color: var(--encre-pale); display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.acc-vignette-pied b { color: var(--encre); font-weight: 800; }
.acc-vignette-pied span + span::before { content: "\2022"; color: var(--trait-fort); margin-right: 8px; }

/* --- Panneau des mille visages ------------------------------------------- */
.acc-panneau {
  background: var(--papier-creux); border-radius: 22px; padding: 48px;
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px;
  align-items: center; margin-top: 34px;
}
.acc-panneau-texte > *:first-child { margin-top: 0; }
.acc-etiquette {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 750; color: var(--bleu-titre); margin: 0 0 .5em;
}
.acc-etiquette svg { width: 17px; height: 17px; }
.acc-panneau h2 {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0 0 .6em; letter-spacing: -.02em;
}
.acc-panneau h2::before { display: none; }
.acc-panneau p { font-size: .96rem; line-height: 1.62; color: var(--encre-douce); }
.acc-btn-fonce {
  display: inline-block; background: var(--bleu-nuit); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: var(--rayon-xs); font-weight: 700; font-size: .95rem;
}
.acc-btn-fonce:hover { background: var(--bleu-fonce); color: #fff; }
.acc-mosaique {
  display: grid; grid-template-columns: 1.55fr 1fr .95fr; grid-template-rows: 1fr 1fr;
  gap: 12px; min-width: 0; padding: 0; margin: 0; list-style: none;
}
.acc-mosaique li { margin: 0; min-width: 0; }
.acc-mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.acc-mosaique > li:nth-child(1) { grid-row: 1 / 3; }
.acc-mosaique > li:nth-child(2) { grid-row: 1 / 3; }
@media (max-width: 900px) {
  .acc-panneau { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .acc-mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
  .acc-mosaique > li:nth-child(1) { grid-row: 1 / 2; }
  .acc-mosaique > li:nth-child(2) { grid-row: 2 / 3; }
}

/* Recadrages : l'objet interessant n'est pas toujours au centre du cliche. */
.acc-mosaique > li:nth-child(2) img { object-position: 45% 42%; }
/* Le theatre d'Orange : cadre par defaut sur le haut sombre du mur de scene,
   alors que ce qui se reconnait, ce sont les gradins. */
.acc-mosaique > li:nth-child(3) img { object-position: 50% 62%; }

/* --- A la une ------------------------------------------------------------ */
.acc-une {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px; list-style: none; margin: 0; padding: 0;
}
.acc-une > li { margin: 0; min-width: 0; }
.acc-une-vignette {
  display: grid; grid-template-columns: minmax(0, 1fr) 42%;
  background: #fff; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; height: 100%;
  box-shadow: 0 1px 2px rgba(11,43,64,.04), 0 10px 24px rgba(11,43,64,.05);
  transition: box-shadow .2s, transform .2s;
}
.acc-une-vignette:hover { transform: translateY(-4px); box-shadow: var(--ombre-f); color: inherit; }
.acc-une-texte { padding: 22px 20px; display: flex; flex-direction: column; min-width: 0; }
.acc-cat {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 12px;
}
.acc-cat-bleu { color: var(--bleu-titre); }
.acc-cat-jaune { color: #8a5a00; }
.acc-cat-lavande { color: var(--lavande); }
.acc-une-vignette h3 {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; margin: 0 0 1.1em;
  letter-spacing: -.01em;
}
.acc-lire {
  margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--encre);
  display: inline-flex; align-items: center; gap: 8px;
}
.acc-une-vignette:hover .acc-lire { color: var(--bleu-fonce); }
.acc-une-vignette img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: 50% 42%; }

/* --- Recherche de l'en-tete ---------------------------------------------- */
.entete-recherche {
  display: flex; align-items: center; gap: 9px; margin-left: auto;
  background: var(--papier-creux); border: 1px solid var(--trait);
  border-radius: var(--rayon-xs); padding: 7px 16px; min-width: 210px;
}
.entete-recherche svg { width: 16px; height: 16px; color: var(--encre-pale); flex: 0 0 16px; }
.entete-recherche input {
  border: 0; background: none; font: inherit; font-size: .88rem; width: 100%; min-width: 0;
  color: var(--encre); padding: 3px 0;
}
.entete-recherche input:focus { outline: none; }
.entete-recherche input::placeholder { color: var(--encre-pale); }
@media (max-width: 1080px) {
  .entete-recherche { display: none; }
  /* Sans le champ de recherche, plus rien ne pousse le btn Menu a droite. */
  .entete-barre .nav-bouton { margin-left: auto; }
}

/* --- Pied de page : icones rondes ---------------------------------------- */
.pied-icones { display: flex; gap: 12px; margin-top: 22px; padding: 0; list-style: none; }
.pied-icones li { margin: 0; }
.pied-icones a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.86);
}
.pied-icones a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.pied-icones svg { width: 18px; height: 18px; }

/* --- Grille des neuf territoires (page /territoires/) -------------------- */

/* --- Ne jamais renvoyer a la ligne pour rien -----------------------------
   Un tableau de donnees enferme dans la aside-col de lecture (860 px) casse ses
   cellules sur deux lignes alors qu'il reste 300 px de vide de chaque cote.
   Au-dela de 1240 px de fenetre, les tableaux debordent donc symetriquement
   de leur aside-col. Verifie : a 1240 px le bord gauche reste a +30 px, il n'y
   a aucun debordement de page. */
@media (min-width: 1400px) {
  .corps-article .tableau-large,
  .bloc-texte .tableau-large {
    width: calc(100% + 200px);
    margin-left: -100px;
  }
  /* Sauf quand l'article partage la ligne avec une colonne : la debordait de
     100 px a gauche et recouvrait la colonne de droite de 40 px. Le
     debordement symetrique n'a de sens que sur une page en pleine largeur. */
  .avec-colonne > .corps-article .tableau-large {
    width: 100%;
    margin-left: 0;
  }
}


/* ==========================================================================
   Pages communes : classes employees par les gabarits et qui n'avaient
   jamais ete declarees ici. Elles etaient donc rendues sans aucun style, et
   .source-url faisait deborder la page a 320 px sur 54 pages. Verifie au
   rendu avec _dev/verif-debordement.html, pas en relisant le HTML.
   ========================================================================== */
.fiche-commune {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--ombre);
}
.fiche-commune h2 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: var(--bleu); margin: 0 0 12px;
}
.fiche-commune h2::before { display: none; }

.encart--ambre { background: var(--jaune-pale); border-color: #f3e2b0; }
.encart--ambre h2 { color: var(--jaune-texte); }

/* La carte occupe la largeur de l'article et ne la depasse jamais : Leaflet
   pose ses tuiles bien au-dela du cadre et compte sur ce rognage. */
.carte-lieux {
  width: 100%; max-width: 100%; overflow: hidden;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--papier-creux); margin: 2em 0;
}

.liste-sources { list-style: none; margin: 1.4em 0 0; padding: 0; font-size: .93rem; }
.liste-sources li {
  padding: 13px 0; border-bottom: 1px solid var(--trait);
  margin: 0; line-height: 1.55; color: var(--encre-douce);
}
.liste-sources li:last-child { border-bottom: 0; }

/* Ce que nous n'avons pas pu verifier. Le lecteur doit voir que c'est nous qui
   parlons, pas la source. */
.note-verif {
  background: var(--papier-creux); border: 1px solid var(--trait);
  border-left: 6px solid var(--trait-fort); border-radius: var(--rayon);
  padding: 20px 24px; margin: 2em 0 0;
  font-size: .9rem; line-height: 1.6; color: var(--encre-douce);
}

/* ==========================================================================
   Le mag : page d'accueil en cartes illustrees, et en-tete photo des articles.
   Chaque article publie un meta.php (titre, chapo, categorie, image, dates),
   lu a la fois par l'article et par /mag/ : une seule source, rien a recopier.
   ========================================================================== */
.mag-cat {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--rayon-xs);
  background: var(--lavande-pale); color: var(--lavande-fonce);
}
.mag-cat-bleu   { background: var(--bleu-pale);   color: var(--bleu-titre); }
.mag-cat-jaune  { background: var(--jaune-pale);  color: var(--jaune-texte); }
.mag-cat-olive  { background: var(--olive-pale);  color: var(--olive-fonce); }
.mag-meta { font-size: .84rem; color: var(--encre-pale); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mag-meta span + span::before { content: "\2022"; color: var(--trait-fort); margin-right: 14px; }

/* L'article a la une : image a gauche, texte a droite. */
.mag-une {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--trait); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit; margin: 0 0 44px;
  box-shadow: 0 1px 2px rgba(11,43,64,.04), 0 14px 34px rgba(11,43,64,.08);
  transition: box-shadow .2s, transform .2s;
}
a.mag-une:hover { transform: translateY(-4px); box-shadow: var(--ombre-f); color: inherit; }
.mag-une img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.mag-une-texte { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.mag-une h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; margin: 0; letter-spacing: -.02em; }
a.mag-une:hover h2 { color: var(--bleu-fonce); }
.mag-une p { font-size: 1.02rem; line-height: 1.6; color: var(--encre-douce); margin: 0; }
.mag-lire { font-size: .9rem; font-weight: 750; color: var(--bleu-fonce); display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .mag-une { grid-template-columns: minmax(0, 1fr); }
  .mag-une img { min-height: 0; height: 240px; }
  .mag-une-texte { padding: 26px 24px 28px; }
}

/* Les autres articles : grille de cartes. */
.mag-grille {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 28px; list-style: none; margin: 0; padding: 0;
}
.mag-grille > li { margin: 0; min-width: 0; }
.mag-carte {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,43,64,.04), 0 10px 24px rgba(11,43,64,.05);
  transition: box-shadow .2s, transform .2s;
}
a.mag-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-f); color: inherit; }
.mag-carte img { width: 100%; height: 220px; object-fit: cover; }
.mag-carte-corps { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mag-carte h3 { font-family: var(--serif); font-size: 1.26rem; line-height: 1.25; margin: 0; letter-spacing: -.015em; }
a.mag-carte:hover h3 { color: var(--bleu-fonce); }
.mag-carte p { font-size: .94rem; line-height: 1.55; color: var(--encre-douce); margin: 0; }
.mag-carte .mag-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--trait); }

/* En-tete d'article : la photo a la une en fond, voilee pour que le titre se lise. */
.entete-mag { background-size: cover; background-position: center; }
.entete-mag::after {
  background:
    linear-gradient(90deg, rgba(11,43,64,.78) 0%, rgba(11,43,64,.52) 45%, rgba(11,43,64,.12) 100%),
    linear-gradient(180deg, rgba(11,43,64,.10) 0%, rgba(11,43,64,.55) 100%);
}
.entete-mag .entete-bloc { padding-top: 110px; padding-bottom: 60px; }
.entete-mag .mag-cat { background: rgba(255,255,255,.94); color: var(--lavande-fonce); margin-bottom: 18px; }
.entete-mag .mag-meta { color: rgba(255,255,255,.9); margin-top: 22px; font-size: .92rem; }
.entete-mag .mag-meta span + span::before { color: rgba(255,255,255,.55); }
.entete-mag .entete-credit { position: absolute; z-index: 2; right: 18px; bottom: 10px; font-size: .72rem; color: rgba(255,255,255,.72); margin: 0; }
@media (max-width: 700px) { .entete-mag .entete-bloc { padding-top: 70px; padding-bottom: 48px; } .entete-mag .entete-credit { position: static; padding: 0 18px 12px; } }

/* Fin d'article : les autres articles du mag. */
.mag-suite { background: var(--papier-creux); border-top: 1px solid var(--trait); padding: 56px 0 64px; }
.mag-suite h2 { font-family: var(--serif); margin: 0 0 26px; }

/* Outil de l'article sur la baignade : départ, surveillance, trajet. */
.outil-baignade {
  background: var(--bleu-brume); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 22px 24px; margin: 0 0 28px;
}
.outil-baignade-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.outil-baignade-champs label { display: block; font-size: .85rem; font-weight: 600; color: var(--encre); margin-bottom: 4px; }
.outil-baignade-champs select {
  width: 100%; padding: 9px 10px; font: inherit; font-size: .95rem;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); background: var(--papier); color: var(--encre);
}
.outil-baignade-res { margin-top: 18px; display: grid; gap: 10px; }
.outil-baignade-ligne {
  padding: 12px 14px; border-radius: var(--rayon-s); background: var(--papier);
  border-left: 4px solid var(--bleu); font-size: .93rem; line-height: 1.55;
}
.outil-baignade-ligne strong { color: var(--bleu-titre); }
.outil-baignade-ligne--alerte { border-left-color: var(--jaune); background: var(--jaune-pale); }
.outil-baignade-note { font-size: .82rem; color: var(--encre-pale); margin: 14px 0 0; }
@media (max-width: 600px) { .outil-baignade { padding: 18px 16px; } }
