/* Au Week-End : feuille de style unique.
   Polices : Young Serif (titres) et Figtree (texte), servies depuis le site, licence SIL OFL.
   Couleurs : papier chaud, encre bleu-noir, outremer pour les liens et la carte, rose sable pour les encadrés. */

@font-face {
  font-family: 'Young Serif';
  src: url('/assets/fonts/young-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Young Serif';
  src: url('/assets/fonts/young-serif-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-latin-wght-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --papier: #fffdf8;
  --encre: #1b1d2a;
  --gris: #5e6072;
  --outremer: #2c3ea8;
  --outremer-fonce: #1f2d80;
  --sable: #f5ddd2;
  --sable-clair: #fbeee8;
  --terre: #e9e3d8;
  --titres: 'Young Serif', Georgia, 'Times New Roman', serif;
  --texte: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --colonne: 42rem;
  --large: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga';
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--outremer); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--outremer-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--outremer); outline-offset: 3px; border-radius: 2px; }

.saut {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--encre); color: var(--papier); padding: 0.5rem 0.9rem; z-index: 10;
}
.saut:focus { left: 0.5rem; }

h1, h2, h3 { font-family: var(--titres); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; margin: 0; }

.enveloppe { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }

/* En-tête */
.entete { padding-block: 1.4rem 1rem; }
.entete .enveloppe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2.5rem; justify-content: space-between; }
.marque {
  font-family: var(--titres); font-size: 1.65rem; color: var(--encre); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.marque:hover { color: var(--encre); }
.marque svg { width: 1.6rem; height: 1.6rem; flex: none; transform: translateY(0.12rem); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.35rem 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 0.3rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--outremer); text-decoration: underline; text-underline-offset: 0.35em; }

@media (max-width: 40rem) {
  .nav { width: 100%; overflow-x: auto; }
  .nav ul { flex-wrap: nowrap; padding-bottom: 0.3rem; }
  .nav a { white-space: nowrap; }
}

/* Accueil */
.ouverture { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.ouverture h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); max-width: 11ch; }
.ouverture p { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34rem; margin: 1.4rem 0 0; color: var(--encre); }

.carte-france { padding-block: 1rem 3.5rem; }
.carte-france .grille { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .carte-france .grille { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.carte-france svg { display: block; width: 100%; max-width: 38rem; }
.carte-france .terre { fill: var(--sable); }
.carte-france .point circle { fill: var(--outremer); stroke: var(--papier); stroke-width: 3; transition: r 200ms ease-out; }
.carte-france .point:hover circle, .carte-france .point:focus circle { r: 11; }
.carte-france .point text { font-family: var(--texte); font-size: 17px; font-weight: 600; fill: var(--encre); paint-order: stroke; stroke: var(--papier); stroke-width: 5px; }
.carte-france .legende h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.carte-france .legende p { margin: 0 0 1rem; color: var(--gris); }
.carte-france .legende ul { list-style: none; padding: 0; margin: 0; columns: 2 10rem; column-gap: 1.5rem; }
.carte-france .legende li { break-inside: avoid; padding-block: 0.15rem; }

.derniers { padding-block: 3rem 4rem; }
.derniers > .enveloppe > h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.8rem; }

.liste-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem 3rem; }
@media (min-width: 50rem) { .liste-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.liste-articles a { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.1rem; text-decoration: none; color: var(--encre); align-items: start; }
.liste-articles h3 { font-size: 1.45rem; margin-bottom: 0.4rem; transition: color 200ms ease-out; }
.liste-articles a:hover h3 { color: var(--outremer); }
.liste-articles p { margin: 0; }
.liste-articles .chapo-court { color: var(--encre); }
.liste-articles .infos { color: var(--gris); font-size: 0.92rem; margin-top: 0.45rem; }

/* Petite carte de situation : la France en fond, un point placé en pourcentage */
.mini {
  position: relative; display: block; width: 4.5rem; aspect-ratio: 600 / 580;
  background: url('/img/france.svg') center / contain no-repeat;
}
.mini i {
  position: absolute; left: var(--x); top: var(--y);
  width: 0.55rem; height: 0.55rem; margin: -0.275rem 0 0 -0.275rem; border-radius: 50%;
  background: var(--outremer); box-shadow: 0 0 0 2px var(--papier);
}

.envies { background: var(--sable-clair); padding-block: 3.5rem; }
.envies h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.6rem; }
.envies dl { margin: 0; display: grid; gap: 1.4rem 3rem; }
@media (min-width: 46rem) { .envies dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .envies dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.envies dt { font-family: var(--titres); font-size: 1.3rem; }
.envies dt a { color: var(--encre); text-decoration: none; }
.envies dt a:hover { color: var(--outremer); text-decoration: underline; }
.envies dd { margin: 0.25rem 0 0; color: var(--gris); }

.methode { padding-block: 3.5rem 4.5rem; }
.methode .enveloppe { max-width: var(--colonne); margin-inline: auto; }
.methode h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.methode p { margin: 0 0 1rem; }

/* Rubriques */
.tete-rubrique { padding-block: clamp(2rem, 6vw, 4.5rem) 2.5rem; }
.tete-rubrique h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; }
.tete-rubrique p { max-width: 38rem; font-size: 1.15rem; margin: 1.1rem 0 0; }
.vide { color: var(--gris); font-size: 1.05rem; padding-bottom: 4rem; }

/* Article */
.fil { font-size: 0.92rem; color: var(--gris); padding-top: 1.5rem; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.fil li + li::before { content: '›'; margin-right: 0.4rem; color: var(--gris); }
.fil a { color: var(--gris); }

.article { padding-bottom: 3rem; }
.tete-article { max-width: 48rem; padding-block: 1.6rem 2rem; }
.tete-article h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.chapo { font-size: clamp(1.15rem, 2.2vw, 1.32rem); line-height: 1.55; margin: 1.2rem 0 0; }
.meta { color: var(--gris); font-size: 0.95rem; margin: 1rem 0 0; }

.fiche {
  background: var(--sable); border-radius: 0.4rem; padding: 1.6rem;
  display: grid; gap: 1.2rem 2rem; max-width: 48rem; margin-bottom: 2.6rem;
}
@media (min-width: 40rem) { .fiche { grid-template-columns: 8.5rem 1fr; } }
.fiche h2 { font-size: 1.3rem; grid-column: 1 / -1; }
.fiche .mini { width: 8.5rem; background-image: url('/img/france-fiche.svg'); }
.fiche .mini i { width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem; box-shadow: 0 0 0 3px var(--sable); }
.fiche dl { margin: 0; display: grid; gap: 0.7rem; }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; }
@media (min-width: 40rem) { .fiche dl { grid-template-columns: 9rem 1fr; gap: 0.6rem 1rem; } }

.corps { max-width: var(--colonne); }
.corps h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 2.8rem 0 0.9rem; }
.corps h3 { font-family: var(--texte); font-weight: 700; font-size: 1.15rem; margin: 1.8rem 0 0.4rem; line-height: 1.35; }
.corps p, .corps ul, .corps ol { margin: 0 0 1.1rem; }
.corps ul, .corps ol { padding-left: 1.3rem; }
.corps li { margin-bottom: 0.35rem; }
.corps strong { font-weight: 700; }
.corps blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; background: var(--sable-clair); border-radius: 0.4rem; }
.corps blockquote p:last-child { margin-bottom: 0; }

.sources { max-width: var(--colonne); margin-top: 3rem; font-size: 0.95rem; color: var(--gris); }
.sources h2 { font-size: 1.3rem; color: var(--encre); margin-bottom: 0.6rem; }
.sources ol { padding-left: 1.3rem; margin: 0; }
.sources li { margin-bottom: 0.3rem; }

.a-lire { background: var(--sable-clair); padding-block: 3rem 3.5rem; }
.a-lire h2 { font-size: 1.8rem; margin-bottom: 1.6rem; }

/* Pages simples */
.page { padding-block: clamp(2rem, 6vw, 4rem) 4rem; }
.page .enveloppe > * { max-width: var(--colonne); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
.page p, .page ul { margin: 0 0 1rem; }

/* Pied de page */
.pied { background: var(--encre); color: #e9e8ef; padding-block: 3rem 2rem; font-size: 0.95rem; }
.pied a { color: #e9e8ef; }
.pied a:hover { color: #ffffff; }
.pied .grille { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .pied .grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied .marque { color: #ffffff; font-size: 1.4rem; }
.pied .marque svg .soleil { fill: #f5ddd2; }
.pied p { margin: 0.8rem 0 0; max-width: 26rem; color: #c9c8d3; }
.pied h2 { font-family: var(--texte); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; color: #ffffff; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding-block: 0.15rem; }
.pied .bas { margin-top: 2.5rem; color: #a9a8b6; font-size: 0.85rem; }

/* Apparition au défilement : légère, désactivée si l'utilisateur réduit les animations */
.js [data-apparait] { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease-out, transform 600ms ease-out; transition-delay: var(--delai, 0ms); }
.js [data-apparait].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-apparait] { opacity: 1; transform: none; transition: none; }
  .carte-france .point circle { transition: none; }
}
