/* DA « Laine & Givre » : crème laineuse, bleu glacier, châtaigne, cuivre. Deux signatures seulement : la surpiqûre pointillée (.stitch, cadres) et la laine retournée (.wool, dégradés CSS superposés). Aucune animation. */

/* Polices servies par le site (aucun appel externe) : Fraunces variable (wght, opsz, SOFT, WONK), Instrument Sans variable, Instrument Serif italique. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-ext-full-normal.woff2) format('woff2'); 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: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-full-normal.woff2) format('woff2'); 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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2'); 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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); 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; }

:root {
  /* 6 couleurs */
  --creme: #F4EEE4;      /* fond */
  --glacier: #2F4A5C;    /* primaire : liens, boutons */
  --chataigne: #6B4A32;  /* secondaire : titres, texte fort */
  --cuivre: #B8733A;     /* accent 1 : filets, surpiqûre, décor ; jamais en texte de petit corps */
  --givre: #9DBBCB;      /* accent 2 : halos, motifs, jamais en texte sur fond clair */
  --nuit: #1F2D36;       /* fond alt : pied de page, bandeaux */
  /* 9 dérivés (valeurs calculées, vérifiées par scripts/contrast_check.py) */
  --surface: #FBF9F5;
  --bordure: #CEC0B2;
  --texte-attenue: #795A44;
  --survol: #283D4B;
  --focus: #2F4A5C;
  --cuivre-fonce: #8F5424;
  --creme-sur-nuit-attenue: #C9C7C1;
  --voile-hero: rgba(31, 45, 54, .16);
  --fond-citation: #D6DCDB;

  --f-titre: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-cite: 'Instrument Serif', Georgia, serif;
  --wrap: 72rem;
  --lecture: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--chataigne); font-family: var(--f-texte); font-size: clamp(1.0625rem, 1.03rem + .12vw, 1.125rem); line-height: 1.6; }
/* Anti-distorsion (règle du réseau) : reset global puis wrappers à aspect-ratio. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glacier); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--survol); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--glacier); color: var(--creme); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--f-titre); font-optical-sizing: auto; font-variation-settings: 'SOFT' 100, 'WONK' 0; color: var(--chataigne); line-height: 1.15; margin: 2.2rem 0 .7rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); font-weight: 600; margin-top: 0; letter-spacing: -.012em; }
h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.95rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1.1rem; }
strong { font-weight: 650; }

/* Signature 1 : la surpiqûre pointillée, tirets courts et réguliers en cuivre */
.stitch { height: 2px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px); }
.stitch--wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.stitch--court { width: 5.5rem; margin: .5rem 0 1rem; }

/* Signature 2 : la laine retournée, fibres bouclées en dégradés superposés (aucune image, aucun SVG, aucun data:) */
.wool {
  background-color: var(--nuit);
  background-image:
    radial-gradient(ellipse 5px 3px at 50% 50%, transparent 55%, rgba(244, 238, 228, .05) 60% 78%, transparent 84%),
    radial-gradient(ellipse 4px 3px at 50% 50%, transparent 55%, rgba(157, 187, 203, .06) 60% 78%, transparent 84%),
    repeating-linear-gradient(32deg, rgba(244, 238, 228, .03) 0 1px, transparent 1px 6px);
  background-size: 11px 8px, 13px 10px, auto;
  background-position: 0 0, 5px 4px, 0 0;
}
.wool--clair {
  background-color: var(--fond-citation);
  background-image:
    radial-gradient(ellipse 5px 3px at 50% 50%, transparent 55%, rgba(107, 74, 50, .05) 60% 78%, transparent 84%),
    radial-gradient(ellipse 4px 3px at 50% 50%, transparent 55%, rgba(47, 74, 92, .05) 60% 78%, transparent 84%),
    repeating-linear-gradient(32deg, rgba(244, 238, 228, .35) 0 1px, transparent 1px 6px);
  background-size: 11px 8px, 13px 10px, auto;
  background-position: 0 0, 5px 4px, 0 0;
}

/* En-tête */
.site-header { background: var(--creme); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0 .7rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--chataigne); }
.logo svg { width: 2.4rem; height: 2.4rem; flex: none; }
.logo__nom { font-family: var(--f-titre); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-weight: 650; font-size: 1.5rem; letter-spacing: -.01em; }
.site-header__tools { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; align-items: center; gap: .45rem; font-size: .95rem; }
.lang [aria-current] { font-weight: 650; color: var(--chataigne); }
.lang__sep { color: var(--texte-attenue); }
.menu-btn { display: none; font: inherit; background: var(--glacier); color: var(--creme); border: 0; padding: .45rem .9rem; border-radius: 4px; cursor: pointer; }
.menu-btn:hover { background: var(--survol); }
.nav { border-top: 0; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem 1.3rem; padding: .35rem 0 .6rem; margin: 0 auto; }
.nav a { display: inline-block; padding: .3rem 0; text-decoration: none; font-size: .96rem; font-weight: 500; color: var(--glacier); background: repeating-linear-gradient(90deg, transparent 0 7px, transparent 7px 13px) 0 100% / 100% 2px no-repeat; }
.nav a:hover { color: var(--survol); }
.nav a[aria-current] { color: var(--chataigne); background-image: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px); }
.site-header .stitch { margin-top: 0; }

/* Fil d'Ariane */
.crumbs { padding-top: .9rem; font-size: .9rem; color: var(--texte-attenue); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .55rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: .55rem; color: var(--texte-attenue); }
.crumbs a { color: var(--glacier); }
.crumbs [aria-current] { color: var(--texte-attenue); }

/* Hero : bandeau bord à bord sous le menu, titre et chapô dessous */
.hero { margin-bottom: 1.5rem; }
.img-hero { aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); width: 100%; overflow: hidden; position: relative; background: var(--fond-citation); }
.img-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to bottom, transparent, var(--voile-hero)); pointer-events: none; }
.img-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__texte { padding-top: 1.6rem; }
.hero__texte .wrap > * { max-width: 48rem; }
.hero__chapo { font-family: var(--f-cite); font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.4; color: var(--chataigne); margin-top: .8rem; }
.hero__legende { font-size: .85rem; color: var(--texte-attenue); }
.meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .9rem; color: var(--texte-attenue); margin: 0 0 .7rem; }
.meta__cat { color: var(--cuivre-fonce); font-weight: 600; background: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; }

/* Corps de texte */
.prose { max-width: var(--lecture); }
.prose h2 { margin-top: 2.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote:not(.encadre) { margin: 1.8rem 0; padding: 1.2rem 1.4rem; font-family: var(--f-cite); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--chataigne); background-color: var(--fond-citation); background-image: radial-gradient(ellipse 5px 3px at 50% 50%, transparent 55%, rgba(107, 74, 50, .05) 60% 78%, transparent 84%), radial-gradient(ellipse 4px 3px at 50% 50%, transparent 55%, rgba(47, 74, 92, .05) 60% 78%, transparent 84%), repeating-linear-gradient(32deg, rgba(244, 238, 228, .35) 0 1px, transparent 1px 6px); background-size: 11px 8px, 13px 10px, auto; background-position: 0 0, 5px 4px, 0 0; }
.prose blockquote:not(.encadre) p { margin: 0; }
.prose table, .tableau { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .97rem; background: var(--surface); }
.prose th, .prose td, .tableau th, .tableau td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--bordure); }
.prose thead th, .tableau thead th { background: var(--glacier); color: var(--creme); font-weight: 600; border-bottom: 0; }
.prose figure.fig, .fig { margin: 2rem 0; max-width: 100%; }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--fond-citation); }
.img-body img, .img-card img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
figcaption, .credit { font-size: .85rem; color: var(--texte-attenue); margin-top: .4rem; }

/* Retenir, sommaire, encadrés, FAQ, sources */
.retenir { max-width: var(--lecture); margin: 1.6rem 0; padding: 1.1rem 1.3rem 1.1rem; background: var(--surface); border-top: 2px solid transparent; border-image: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px) 1; border-bottom: 2px solid transparent; }
.retenir__titre { font-family: var(--f-titre); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-weight: 650; font-size: 1.25rem; margin: 0 0 .5rem; color: var(--chataigne); }
.retenir ul { margin: 0; padding-left: 1.2rem; }
.article-sommaire { max-width: var(--lecture); margin: 1.4rem 0; font-size: .98rem; }
.article-sommaire strong { font-family: var(--f-titre); font-variation-settings: 'SOFT' 100; font-size: 1.1rem; }
.article-sommaire ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.encadre { max-width: var(--lecture); margin: 1.6rem 0; padding: 1rem 1.2rem; background: var(--surface); border-left: 4px solid var(--glacier); }
.encadre--attention { border-left-color: var(--cuivre-fonce); }
.encadre--juridique { border-left-color: var(--chataigne); }
.encadre--a-savoir { border-left-color: var(--givre); background: var(--creme); }
.encadre__titre { font-family: var(--f-titre); font-variation-settings: 'SOFT' 100; font-weight: 650; margin: 0 0 .3rem; }
.encadre p:last-child { margin-bottom: 0; }
.faq { max-width: var(--lecture); margin-top: 2.6rem; }
.faq details { background: var(--surface); border-bottom: 1px solid var(--bordure); padding: .85rem 1rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--glacier); }
.faq details[open] summary { margin-bottom: .5rem; }
.sources { max-width: var(--lecture); margin-top: 2.6rem; font-size: .93rem; }
.sources ol { padding-left: 1.3rem; }
.verifie { font-size: .9rem; color: var(--texte-attenue); }

/* Interview, portrait */
.interview-tete { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1.5rem; align-items: center; margin: 0 0 1.6rem; max-width: var(--lecture); }
.interview-tete__nom { font-family: var(--f-titre); font-weight: 650; font-size: 1.3rem; margin: 0; }
.interview-tete__titre { margin: .1rem 0 .5rem; color: var(--texte-attenue); }
.interview-tete__mention { font-family: var(--f-cite); font-style: italic; font-size: 1.15rem; margin: 0; }
.img-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--fond-citation); }
.portrait { margin: 0; }
.portrait--l { max-width: 18rem; }
.util-portrait { margin: 0 0 1.4rem; }

/* Cards : cadre en surpiqûre sur fond surface, image 3:2 */
.grille { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.6rem; }
.card { position: relative; background: var(--surface); padding: 10px; }
.card::before { content: ''; position: absolute; inset: 4px; border: 2px dashed var(--cuivre); pointer-events: none; }
.card[hidden] { display: none; }
.card .img-card { aspect-ratio: 3 / 2; overflow: hidden; background: var(--fond-citation); }
.card__stub { padding: .8rem .6rem .6rem; }
.card__cat { display: inline-block; font-size: .88rem; font-weight: 600; color: var(--glacier); background: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; }
.card__titre { font-size: 1.22rem; margin: .5rem 0 .4rem; }
.card__titre a { color: var(--chataigne); text-decoration: none; }
.card__titre a:hover { color: var(--glacier); text-decoration: underline; }
.card__infos { font-size: .88rem; color: var(--texte-attenue); margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.card__resume { font-size: .95rem; margin: 0; }

/* Accueil : les sept rubriques en sommaire (lignes séparées par la surpiqûre), pas en cartes */
.home { padding-bottom: 2rem; }
.home__intro { margin-top: 1.6rem; }
.home__piliers .grille { display: block; margin: 1rem 0 2rem; max-width: 52rem; }
.home__piliers .card { background: transparent; padding: 1rem 0 1.1rem; background-image: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; }
.home__piliers .card::before { display: none; }
.home__piliers .card__stub { padding: 0; }
.card--pilier .card__cat { display: none; }
.home__piliers .card__titre { margin-top: .3rem; }

/* Filtre */
.filtre[hidden] { display: none; }
.filtre { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; }
.filtre button { font: inherit; font-size: .93rem; background: var(--surface); color: var(--glacier); border: 1px solid var(--glacier); border-radius: 3px; padding: .4rem .8rem; cursor: pointer; }
.filtre button:hover { background: var(--fond-citation); }
.filtre button[aria-pressed='true'] { background: var(--glacier); color: var(--creme); }
.filtre__n { opacity: 1; }

/* Là-bas / chez nous et tableaux comparatifs : empilés en dessous de 40 rem */
.pays-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; background: var(--surface); font-size: .97rem; }
.pays-table caption { text-align: left; font-family: var(--f-titre); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: 1.2rem; padding-bottom: .6rem; }
.pays-table th, .pays-table td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--bordure); }
.pays-table thead th { background: var(--glacier); color: var(--creme); font-weight: 600; border-bottom: 0; }
.pays-table tbody th { font-weight: 600; color: var(--chataigne); width: 26%; }
@media (max-width: 40rem) {
  .pays-table, .pays-table tbody, .pays-table tr, .pays-table th, .pays-table td { display: block; width: auto; }
  .pays-table caption { display: block; }
  .pays-table thead { position: absolute; left: -999px; }
  .pays-table tr { border-bottom: 1px solid var(--bordure); padding: .5rem 0; }
  .pays-table td[data-label]::before { content: attr(data-label) ' : '; font-weight: 600; color: var(--glacier); }
  .pays-table th, .pays-table td { border: 0; padding: .25rem .8rem; }
}

/* Pied de page : laine retournée sur Nuit, texte crème */
.site-footer { margin-top: 3rem; color: var(--creme); padding: 2.2rem 0 1.6rem; }
.site-footer .wrap > * { max-width: 52rem; }
.site-footer__nom { font-family: var(--f-titre); font-variation-settings: 'SOFT' 100; font-weight: 650; font-size: 1.5rem; margin: 0 0 .3rem; color: var(--creme); }
.site-footer p { color: var(--creme); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 1rem 0; }
.site-footer a { color: var(--creme); }
.site-footer a:hover { color: var(--creme); text-decoration-thickness: 3px; }
.site-footer :focus-visible { outline-color: var(--givre); }
.site-footer .non-affiliation { border-top: 2px solid transparent; border-image: repeating-linear-gradient(90deg, var(--cuivre) 0 7px, transparent 7px 13px) 1; padding-top: .9rem; font-family: var(--f-cite); font-style: italic; font-size: 1.15rem; line-height: 1.4; }
.site-footer__petit { font-size: .88rem; color: var(--creme-sur-nuit-attenue) !important; }

/* Mention de non-affiliation hors pied de page (À propos, mentions légales) */
.non-affiliation { max-width: var(--lecture); }
.prose .non-affiliation { font-family: var(--f-cite); font-style: italic; font-size: 1.25rem; }

/* Formulaire */
.form { max-width: 32rem; margin: 1.6rem 0; display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 500; }
.form input, .form textarea { font: inherit; color: var(--chataigne); background: var(--surface); border: 1px solid var(--chataigne); border-radius: 3px; padding: .6rem .7rem; }
.hp { position: absolute; left: -9999px; }
.btn { font: inherit; font-weight: 600; background: var(--glacier); color: var(--creme); border: 0; border-radius: 3px; padding: .7rem 1.3rem; cursor: pointer; justify-self: start; }
.btn:hover { background: var(--survol); }

/* Mobile */
@media (max-width: 52rem) {
  .menu-btn { display: inline-block; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .55rem 0; }
  .interview-tete { grid-template-columns: 1fr; }
  .portrait--l { max-width: 12rem; }
  .logo__nom { font-size: 1.3rem; }
}

/* Aucune animation décorative : rien à désactiver, mais le média est respecté. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
