/* =========================================================================
   Theme.fm — feuille de style « bold / design-forward »
   Display : Space Grotesk › Texte : Inter › Méta : Space Mono
   Blanc franc + encre quasi-noire + filets noirs › violet électrique en éclat
   Angles nets › typo XXL › kickers monospace
   ========================================================================= */

:root {
  /* Socle bold */
  --ink:          #0e0e12;   /* encre quasi-noire — texte, filets, blocs */
  --ink-soft:     #3a3a42;
  --muted:        #70707a;   /* méta */
  --paper:        #ffffff;
  --paper-2:      #f6f6f7;   /* blocs alternés / placeholders */
  --violet:       #6d4aff;   /* éclat unique */
  --violet-deep:  #5733e6;
  --violet-soft:  #efeaff;
  --grad:         linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --line:         #e6e6ea;   /* filet discret */
  --line-2:       #d4d4dc;
  --rayon:        0px;        /* angles nets */
  --ombre:        0 6px 22px rgba(14, 14, 18, 0.07);
  --ombre-dure:   6px 6px 0 var(--ink);  /* ombre portée « sticker » */

  /* Polices */
  --f-titre:      "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-corps:      "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:       "Space Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Alias hérités (composants articles existants) */
  --encre:        var(--ink);
  --encre-doux:   var(--ink-soft);
  --gris-papier:  var(--muted);
  --creme:        var(--paper);
  --creme-alt:    var(--paper-2);
  --blanc-chaud:  var(--paper);
  --prusse:       var(--violet);
  --prusse-vif:   var(--violet-deep);
  --prusse-pale:  var(--violet-soft);
  --filet:        var(--line);
  --filet-fort:   var(--line-2);
  --footer-bg:    var(--ink);
  --rayon-sm:     0px;
  --ombre-forte:  0 10px 30px rgba(14,14,18,.12);

  --largeur-large:  1420px;
  --largeur-lecture: 820px;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--f-corps);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--prusse-vif); text-decoration: none; }
a:hover { color: var(--prusse); }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 600;
  line-height: 1.15;
  color: var(--encre);
  margin: 0 0 0.5em;
}

.contenu-large {
  max-width: var(--largeur-large);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.contenu-article {
  max-width: var(--largeur-lecture);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--prusse); color: #fff; padding: 10px 16px; z-index: 100;
}
.evitement:focus { left: 8px; top: 8px; color: #fff; }

:focus-visible { outline: 2px solid var(--prusse-vif); outline-offset: 2px; }

/* ----------------------------------------------------------- Masthead / header */
.bandeau-edition {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: transform .3s ease;
}
.bandeau-cache { transform: translateY(-100%); }

/* Bandeau supérieur noir (masthead) */
.masthead-strip { background: var(--ink); color: #fff; }
.masthead-strip-rang {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; font-family: var(--f-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.72);
}
.masthead-tag { display: flex; align-items: center; gap: 9px; }
.masthead-tag::before { content: ''; width: 7px; height: 7px; background: var(--violet); border-radius: 50%; box-shadow: 0 0 0 3px rgba(109,74,255,.28); }
.masthead-date { color: rgba(255,255,255,0.55); }

.bandeau-edition-rang {
  display: flex; align-items: center; gap: 30px;
  height: 84px;
}
.enseigne { display: flex; align-items: center; line-height: 1; }
.enseigne-logo { height: 46px; width: auto; display: block; }
.enseigne-nom {
  font-family: var(--f-titre); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.02em; color: var(--encre);
}

.sommaire-rubriques { display: flex; margin-left: auto; }
.quete {
  display: flex; align-items: center; flex-shrink: 0;
  border: 1.5px solid var(--ink); background: var(--paper);
  transition: background .15s, color .15s;
}
.quete:focus-within { background: var(--violet-soft); }
.quete input {
  border: 0; background: transparent; padding: 9px 6px 9px 14px; font: inherit;
  font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
  width: 132px; color: var(--encre);
}
.quete input::placeholder { color: var(--muted); }
.quete input:focus { outline: none; }
.quete button {
  border: 0; background: transparent; color: var(--ink);
  padding: 0 12px 0 4px; cursor: pointer; display: flex; align-items: center; height: 38px;
}
.quete:focus-within button { color: var(--violet-deep); }

.bascule-sommaire {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--ink);
  background: var(--paper); cursor: pointer; padding: 0;
}
.bascule-sommaire span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--ink); transition: .25s; }
.bascule-sommaire.est-actif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bascule-sommaire.est-actif span:nth-child(2) { opacity: 0; }
.bascule-sommaire.est-actif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sommaire-rubriques-rang {
  display: flex; align-items: center; gap: 22px;
  overflow: visible;
}
.sommaire-rubriques a {
  position: relative; font-family: var(--f-titre);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 600; color: var(--encre); white-space: nowrap; padding: 6px 0;
}
.sommaire-rubriques a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--violet); transition: right .2s ease;
}
.sommaire-rubriques a:hover { color: var(--violet-deep); }
.sommaire-rubriques a:hover::after { right: 0; }

/* Groupes avec sous-menu déroulant */
.nav-groupe { position: relative; display: flex; align-items: center; }
.nav-groupe-lien { display: flex; align-items: center; gap: 4px; }
.nav-groupe-lien::after { content: '▾'; font-size: .65em; opacity: .6; margin-top: 1px; }
.nav-sous-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 210px; background: var(--paper); border: 1.5px solid var(--ink);
  box-shadow: var(--ombre-dure);
  list-style: none; margin: 0; padding: 6px; z-index: 200;
}
.nav-sous-menu li a {
  display: block; padding: 9px 14px; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--encre); border-bottom: none; white-space: nowrap;
}
.nav-sous-menu li a:hover { color: #fff; background: var(--ink); }
@media (hover: hover) { .nav-groupe:hover .nav-sous-menu { display: block; } }
.nav-groupe.est-ouvert .nav-sous-menu { display: block; }

/* ----------------------------------------------------------- Étiquette rubrique (tag mono) */
.etiquette-rubrique {
  display: inline-block;
  font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: #fff; background: var(--violet);
  padding: 6px 12px; border-radius: 0; margin-bottom: 14px;
}
.etiquette-rubrique:hover { color: #fff; background: var(--ink); }
.feuillet-rubrique {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--violet-deep); background: none; padding: 0; margin: 0;
}
.feuillet-rubrique:hover { color: var(--ink); }

/* ----------------------------------------------------------- La une (accueil) */
.une-magazine {
  display: grid; grid-template-columns: 1.75fr 1fr; gap: 52px;
  padding-top: 44px; padding-bottom: 56px;
}
.une-vedette { display: flex; flex-direction: column; min-width: 0; }
.une-vedette-image { display: block; overflow: hidden; background: var(--paper-2); }
.une-vedette-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.une-vedette:hover .une-vedette-image img { transform: scale(1.03); }
.une-vedette-texte { padding-top: 24px; }
.une-vedette-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.kicker-cat { color: #fff; background: var(--violet); padding: 5px 11px; }
.kicker-cat:hover { background: var(--ink); color: #fff; }
.kicker-date { color: var(--muted); }
.une-vedette-titre {
  font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.02; margin: 0 0 16px;
}
.une-vedette-titre a { color: var(--ink); }
.une-vedette-titre a:hover { color: var(--violet-deep); }
.une-vedette-chapo { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 24px; max-width: 56ch; line-height: 1.55; }
.bouton-lire {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-titre); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--ink); padding: 14px 26px; transition: background .15s;
}
.bouton-lire::after { content: '→'; }
.bouton-lire:hover { background: var(--violet); color: #fff; }

/* Colonne « À la une » */
.une-colonne-titre {
  font-family: var(--f-titre); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--ink); margin: 0 0 4px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.une-colonne { display: flex; flex-direction: column; gap: 0; }
.une-colonne .feuillet--standard {
  display: grid; grid-template-columns: 1fr 88px; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.une-colonne .feuillet--standard:last-child { border-bottom: 0; }
.une-colonne .feuillet-lien { order: 2; margin-bottom: 0; }
.une-colonne .feuillet-corps { order: 1; }
.une-colonne .feuillet-image { aspect-ratio: 1 / 1; object-fit: cover; width: 88px; height: 88px; }
.une-colonne .feuillet-meta { margin-bottom: 7px; }
.une-colonne .feuillet-titre { font-size: 0.98rem; line-height: 1.26; margin-bottom: 0; }
.une-colonne .feuillet-chapo { display: none; }

/* ----------------------------------------------------------- Intertitres */
.intertitre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 0 28px; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.intertitre h2 {
  display: flex; align-items: center; gap: 13px;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0;
}
.intertitre h2::before {
  content: ''; width: 14px; height: 14px; background: var(--violet);
  flex-shrink: 0; transform: translateY(1px);
}
.intertitre-lien {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; white-space: nowrap; color: var(--ink);
}
.intertitre-lien::after { content: '→'; transition: transform .15s; }
.intertitre-lien:hover { color: var(--violet-deep); }
.intertitre-lien:hover::after { transform: translateX(3px); }

.bloc-recents, .bande-rubrique { padding-top: 44px; padding-bottom: 12px; }
.bande-rubrique { padding-bottom: 24px; }

/* ----------------------------------------------------------- Rayon de feuillets (grille) */
.rayon-feuillets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 38px 30px;
}

.feuillet { display: flex; flex-direction: column; }
.feuillet-lien {
  display: block; overflow: hidden; margin-bottom: 16px; background: var(--paper-2);
}
.feuillet-image {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--paper-2); transition: transform .5s ease;
}
.feuillet-lien:hover .feuillet-image { transform: scale(1.04); }
.feuillet-image--vide {
  display: block; aspect-ratio: 3 / 2; background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 11px, #ececf1 11px, #ececf1 22px);
}
.feuillet-corps { display: flex; flex-direction: column; }
.feuillet-meta {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
  font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.feuillet-meta .feuillet-date { color: var(--muted); }
.feuillet-meta-sep { color: var(--line-2); }
.feuillet-titre { font-size: 1.16rem; font-weight: 700; line-height: 1.24; margin: 0 0 8px; letter-spacing: -0.02em; }
.feuillet-titre a { color: var(--ink); transition: color .15s; }
.feuillet-titre a:hover { color: var(--violet-deep); }
.feuillet-chapo { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.55; }
.feuillet-date { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ----------------------------------------------------------- Article */
.article-papier { padding-top: 32px; padding-bottom: 20px; }

.fil-ariane { margin-bottom: 16px; padding-top: 18px; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fil-ariane li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.fil-ariane a { color: var(--muted); }
.fil-ariane a:hover { color: var(--violet-deep); }
.fil-ariane [aria-current] { color: var(--ink-soft); }

.article-tete { margin-bottom: 26px; }
.article-titre {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin: 4px 0 18px;
}
.article-signature { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.article-signature .puce { color: var(--line-2); }

.article-vignette { margin: 0 0 36px; width: 100%; }
.article-vignette img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }

/* Corps de l'article (contenu repris de WordPress) */
.article-corps { font-size: 1.14rem; line-height: 1.8; color: var(--encre); }
.article-corps > * + * { margin-top: 1.25em; }
.article-corps p { margin: 0 0 1.25em; }
.article-corps h2 {
  font-size: 1.7rem; margin: 1.8em 0 0.5em; padding-top: 0.4em;
}
.article-corps h3 { font-size: 1.32rem; margin: 1.5em 0 0.4em; }
.article-corps a { color: var(--prusse-vif); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--prusse-vif); font-weight: 500; }
.article-corps a:hover { color: var(--prusse); text-decoration-color: var(--prusse); }
.article-corps ul, .article-corps ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.article-corps li { margin-bottom: 0.5em; }
.article-corps img { margin: 1.6em auto; max-width: 100%; height: auto; }
.article-corps img.img-petite { max-width: 280px; }
.article-corps img.img-moyenne { max-width: 480px; }
.article-corps img.img-grande { max-width: 100%; }
.article-corps img.img-centre { display: block; margin-left: auto; margin-right: auto; }
.article-corps img.img-gauche { float: left; margin: .4em 1.5em 1em 0; }
.article-corps img.img-droite { float: right; margin: .4em 0 1em 1.5em; }
@media (max-width: 600px) {
  .article-corps img.img-gauche, .article-corps img.img-droite { float: none; margin: 1.6em auto; }
}
.article-corps figure { margin: 1.8em 0; }
.article-corps figcaption { font-size: 0.85rem; color: var(--gris-papier); text-align: center; margin-top: 8px; }
.article-corps blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--prusse);
  font-family: var(--f-titre); font-size: 1.3rem; font-style: italic; color: var(--encre-doux);
}
.article-corps strong { font-weight: 700; }

/* Signature sous une citation */
.article-corps blockquote .citation-signature {
  margin: 10px 0 0; font-family: var(--f-mono); font-size: 0.74rem; font-style: normal;
  text-transform: uppercase; letter-spacing: 0.11em; color: var(--encre-doux);
}

/* Note de methode en fin d'article */
.article-corps .note-methode {
  font-size: 0.9rem; color: var(--encre-doux); line-height: 1.6;
  padding-top: 14px; border-top: 1px solid var(--filet);
}

/* Bloc Sources : URL en clair, jamais cliquables */
.page-sources { font-size: 0.85rem; color: var(--encre-doux); line-height: 1.65; }
.page-sources li { margin-bottom: 0.45em; word-break: break-word; }

/* Bloc de code dans un article */
.article-corps .bloc-code {
  font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.6;
  background: var(--creme-alt); border-left: 3px solid var(--filet);
  padding: 14px 16px; margin: 1.6em 0; overflow-x: auto; white-space: pre;
}
.article-corps table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.98rem; table-layout: auto; }
.article-corps .tableau-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Filet de securite : un tableau pose directement dans le corps de l'article
   defile au lieu de deborder de la page sur mobile. */
.article-corps > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-corps th, .article-corps td { border: 1px solid var(--filet); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-corps th { background: var(--prusse); color: #fff; font-weight: 700; }
.article-corps tbody tr:nth-child(even) td { background: var(--creme-alt); }
.article-corps iframe { max-width: 100%; }

/* ----------------------------------------------------------- Composants éditoriaux (articles) */
.tableau-compare {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.96rem;
}
.tableau-compare th, .tableau-compare td {
  border: 1px solid var(--filet); padding: 11px 14px; text-align: left; vertical-align: top;
}
.tableau-compare th { background: var(--prusse); color: #fff; font-weight: 700; }
.tableau-compare tr:nth-child(even) td { background: var(--creme-alt); }

/* Variante resserree : comparatif a cinq colonnes ou plus */
.tableau-compare--serre { font-size: 0.88rem; }
.tableau-compare--serre th, .tableau-compare--serre td { padding: 9px 10px; }
.tableau-compare--serre td:first-child, .tableau-compare--serre th:first-child { white-space: nowrap; }

.encadre-retenir, .encadre-bonsavoir, .encadre-attention {
  margin: 1.8em 0; padding: 16px 20px; border-left: 4px solid; border-radius: 0;
}
.encadre-retenir { background: var(--prusse-pale); border-color: var(--prusse); }
.encadre-bonsavoir { background: #eef7e8; border-color: #3a7a35; }
.encadre-attention { background: #fef5e7; border-color: #c97b1a; }

.encadre-retenir > strong:first-child,
.encadre-bonsavoir > strong:first-child,
.encadre-attention > strong:first-child {
  display: block; font-family: var(--f-mono);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.encadre-retenir > strong:first-child { color: var(--prusse); }
.encadre-bonsavoir > strong:first-child { color: #2d6128; }
.encadre-attention > strong:first-child { color: #9e6010; }

.encadre-retenir p, .encadre-bonsavoir p, .encadre-attention p,
.encadre-savoir p { margin: 0; font-size: 0.97rem; line-height: 1.65; }

.encadre-savoir {
  margin: 1.8em 0; padding: 16px 20px; border-left: 4px solid #3a7a35;
  border-radius: 0; background: #eef7e8;
}
.encadre-savoir > strong:first-child {
  display: block; font-family: var(--f-mono);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px; color: #2d6128;
}

/* Simulateur / sélecteur interactif */
.simulateur {
  background: var(--violet-soft); border: 1.5px solid var(--ink); border-left-width: 5px;
  border-radius: 0; padding: 22px 24px; margin: 1.8em 0;
}
.simulateur label {
  font-weight: 700; display: block; margin-bottom: 10px; font-size: 0.97rem;
}
.simulateur select {
  display: block; width: 100%; max-width: 380px; padding: 10px 12px;
  border: 1.5px solid var(--ink); background: var(--paper);
  font: inherit; font-size: 0.95rem; cursor: pointer; margin-bottom: 14px;
  border-radius: 0;
}
.simulateur input[type="number"],
.simulateur input[type="text"] {
  display: block; width: 100%; max-width: 220px; padding: 10px 12px;
  border: 1.5px solid var(--ink); background: var(--paper);
  font: inherit; font-size: 0.95rem; margin-bottom: 16px; border-radius: 0;
}
.simulateur select:focus,
.simulateur input:focus {
  outline: 2px solid var(--prusse); outline-offset: 1px;
}
.simulateur .res-valeur {
  font-weight: 700; color: var(--prusse); font-size: 1.08rem;
  margin-bottom: 6px; min-height: 1.4em;
  padding-top: 16px; border-top: 1.5px solid var(--ink);
}
.simulateur .res-detail {
  color: var(--encre-doux); font-size: 0.96rem; line-height: 1.6;
}

.article-etiquettes { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.vignette-mot {
  font-size: 0.78rem; color: var(--encre-doux); background: var(--creme-alt);
  padding: 5px 14px; border: 1px solid var(--filet); border-radius: 999px;
}

.a-lire-aussi { margin-top: 30px; padding-top: 40px; padding-bottom: 60px; border-top: 1px solid var(--filet); }

/* Grille corps + colonne latérale (maillage) */
.article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 18px; padding-bottom: 20px; }
.article-flux { min-width: 0; }
.article-flux .article-corps { max-width: 840px; }
.article-flux .article-etiquettes { max-width: 840px; }

.colonne-laterale { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 38px; }
.bloc-lateral-titre {
  font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.lien-rubrique { display: grid; grid-template-columns: 84px 1fr; gap: 15px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.lien-rubrique:last-of-type { border-bottom: 0; }
.lien-rubrique img, .lien-rubrique-vide { width: 84px; height: 60px; object-fit: cover; background: var(--paper-2); display: block; }
.lien-rubrique-titre { font-family: var(--f-titre); font-size: 1.02rem; font-weight: 600; line-height: 1.24; letter-spacing: -0.01em; color: var(--ink); }
.lien-rubrique:hover .lien-rubrique-titre { color: var(--violet-deep); }
.bloc-lateral-tout { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family: var(--f-mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.liste-rubriques-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.liste-rubriques-nav a { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; border: 1.5px solid var(--ink); padding: 7px 13px; color: var(--ink); }
.liste-rubriques-nav a:hover { background: var(--ink); color: #fff; }

@media (max-width: 1000px) {
  .article-grille { grid-template-columns: 1fr; gap: 0; }
  .colonne-laterale { position: static; margin-top: 44px; padding-top: 34px; border-top: 2px solid var(--encre); }
  .article-flux .article-corps, .article-flux .article-etiquettes { max-width: none; }
}

/* ----------------------------------------------------------- Rubrique / listes */
.entete-rubrique { padding: 26px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.entete-rubrique-sur { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet-deep); margin: 0 0 10px; font-weight: 700; }
.entete-rubrique-sur::before { content: ''; width: 10px; height: 10px; background: var(--violet); }
.entete-rubrique h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.entete-rubrique-compte { font-family: var(--f-mono); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 0; }
/* En-tete de rubrique en deux colonnes : le titre a gauche, le chapeau a droite,
   cale sur la meme ligne de base. Empilees, elles laissaient une large bande vide
   a droite du titre et coupaient le chapeau en deux colonnes inutiles. */
.entete-rubrique--duo {
  display: grid; grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: 16px 64px; align-items: end;
}
.entete-rubrique-titre { min-width: 0; }
.entete-rubrique--duo .entete-rubrique-intro {
  margin: 0 0 4px; max-width: 64ch; columns: auto;
}
@media (max-width: 860px) {
  .entete-rubrique--duo { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .entete-rubrique--duo .entete-rubrique-intro { max-width: none; }
}

.entete-rubrique-intro {
  font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft);
  margin: 0 0 30px; max-width: 105ch;
  columns: 2; column-gap: 54px;
}
@media (max-width: 900px) { .entete-rubrique-intro { columns: 1; } }

.grille-rubriques { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--filet); }
.grille-rubriques li { border-bottom: 1px solid var(--filet); }
.grille-rubriques a { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px; color: var(--encre); font-family: var(--f-titre); font-size: 1.3rem; }
.grille-rubriques a:hover { background: var(--prusse-pale); color: var(--prusse); }
.grille-rubriques-nb { font-family: var(--f-mono); font-size: 0.8rem; color: var(--gris-papier); }

.feuilletage { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 50px 0 60px; }
.feuilletage a { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; border: 1.5px solid var(--ink); padding: 11px 22px; color: var(--ink); }
.feuilletage a:hover { background: var(--ink); color: #fff; }
.feuilletage-pos { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

.message-vide { padding: 40px 0 80px; color: var(--encre-doux); font-size: 1.1rem; }

/* ----------------------------------------------------------- Recherche (page) */
.quete--page { margin: 0 0 40px; max-width: 540px; }
.quete--page input { flex: 1 1 auto; width: auto; min-width: 0; padding: 14px 16px; font-family: var(--f-corps); font-size: 1rem; text-transform: none; letter-spacing: normal; }
.quete--page button { padding: 0 22px; height: auto; }

/* ----------------------------------------------------------- 404 */
.bloc-introuvable { text-align: center; padding: 70px 24px 80px; }
.introuvable-code { font-family: var(--f-mono); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--violet); margin: 0; }
.bloc-introuvable h1 { font-size: 2rem; margin: 10px 0 12px; }
.introuvable-mot { color: var(--encre-doux); max-width: 460px; margin: 0 auto 28px; }
.bouton-retour { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-titre); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; background: var(--ink); color: #fff; padding: 14px 30px; margin-bottom: 56px; }
.bouton-retour::after { content: '→'; }
.bouton-retour:hover { color: #fff; background: var(--violet); }
.bloc-introuvable .rayon-feuillets { text-align: left; }

/* ----------------------------------------------------------- Pied de page */
.ours { background: var(--footer-bg); color: #fff; margin-top: 72px; border-top: 4px solid var(--violet); }
.ours-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 48px; }
.ours-marque {
  font-family: var(--f-titre); font-weight: 700;
  font-size: 1.8rem; letter-spacing: -0.02em; color: #fff; display: inline-block;
}
.ours-marque .point-fm { color: #9d86ff; }
.ours-mot { color: rgba(255,255,255,0.58); margin: 18px 0 0; max-width: 38ch; font-size: 0.94rem; line-height: 1.6; }
.ours-titre { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.42); margin: 4px 0 20px; font-family: var(--f-mono); font-weight: 700; }
.ours-colonne { display: flex; flex-direction: column; gap: 13px; }
.ours-colonne a { color: rgba(255,255,255,0.8); font-size: 0.94rem; width: fit-content; }
.ours-colonne a:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--violet); }
.ours-reseaux { display: flex; gap: 10px; margin-top: 2px; }
.ours-reseaux a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff; transition: background .15s, border-color .15s, transform .15s;
}
.ours-reseaux a:hover { background: var(--violet); border-color: var(--violet); transform: translateY(-2px); }
.ours-reseaux svg { width: 18px; height: 18px; }
.ours-bas { border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(255,255,255,.5); }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .une-magazine { grid-template-columns: 1fr; gap: 30px; padding-top: 28px; }
  .ours-grille { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ours-enseigne { grid-column: 1 / -1; }
}

/* Header : bascule en menu burger sous 1040px (la barre porte 8 rubriques) */
@media (max-width: 1040px) {
  .masthead-strip { display: none; }
  .bascule-sommaire { display: flex; }
  .bandeau-edition-rang { height: 66px; gap: 14px; }
  .enseigne { margin-right: auto; margin-left: 2px; }
  .enseigne-logo { height: 36px; }
  .quete { display: none; }
  .quete--page { display: flex; }
  .sommaire-rubriques {
    position: fixed; inset: 68px 0 auto 0; background: var(--paper); display: block; z-index: 49;
    margin-left: 0; border-bottom: 2px solid var(--ink); box-shadow: var(--ombre);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .sommaire-rubriques.est-ouvert { max-height: 82vh; overflow-y: auto; }
  .sommaire-rubriques-rang { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 8px 24px 16px; }
  .sommaire-rubriques a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .sommaire-rubriques a::after { display: none; }
  .nav-groupe { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-groupe-lien { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-groupe-lien::after { transition: transform .2s; }
  .nav-groupe.est-ouvert .nav-groupe-lien::after { transform: rotate(180deg); }
  .nav-sous-menu { position: static; transform: none; box-shadow: none; border: none; background: transparent; display: none; padding: 0 0 0 16px; min-width: auto; }
  .nav-groupe.est-ouvert .nav-sous-menu { display: block; }
  .nav-sous-menu li a { padding: 11px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .enseigne-nom { font-size: 1.4rem; }
  .une-magazine { gap: 36px; padding-top: 30px; }
  .une-colonne .feuillet--standard { grid-template-columns: 1fr 76px; }
  .une-colonne .feuillet-image { width: 76px; height: 76px; }
  .rayon-feuillets { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; }
  .ours-grille { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .rayon-feuillets { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- Cartes-fiches (grille visuelle réutilisable) */
.cartes-fiches {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px; margin: 1.8em 0;
}
.carte-fiche {
  background: var(--blanc-chaud); border: 1px solid var(--filet);
  border-top: 4px solid var(--accent, var(--prusse));
  border-radius: 0; padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(28,26,22,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.carte-fiche:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28,26,22,.1); }
.carte-fiche-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.carte-pastille {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.14); box-shadow: inset 0 -4px 7px rgba(0,0,0,.16);
}
.carte-fiche-titre { font-family: var(--f-titre); font-size: 1.18rem; font-weight: 700; margin: 0; line-height: 1.12; color: var(--encre); }
.carte-fiche-lieu { font-size: .76rem; color: var(--encre-doux); text-transform: uppercase; letter-spacing: .06em; }
.carte-fiche-faits { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: .9rem; }
.carte-fiche-faits dt { color: var(--encre-doux); }
.carte-fiche-faits dd { margin: 0; font-weight: 600; text-align: right; color: var(--encre); }

/* Jauge horizontale (niveau réutilisable : oxydation, intensité, difficulté…) */
.jauge { margin: 2px 0 14px; }
.jauge-etiquette { display: flex; justify-content: space-between; font-size: .7rem; color: var(--encre-doux); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.jauge-piste { height: 7px; background: var(--creme-alt); border-radius: 4px; overflow: hidden; }
.jauge-remplissage { height: 100%; background: var(--accent, var(--prusse)); border-radius: 4px; }

/* Spectre dégradé (échelle visuelle, ex. oxydation du thé) */
.spectre { margin: 2em 0; }
.spectre-barre { height: 16px; border-radius: 0; border: 1px solid var(--filet); }
.spectre-bornes { display: flex; justify-content: space-between; margin-top: 8px; font-size: .8rem; color: var(--encre-doux); }
.spectre-bornes strong { color: var(--encre); }
.spectre-legende { font-size: .85rem; color: var(--encre-doux); font-style: italic; margin: 10px 0 0; text-align: center; }

/* Étapes numérotées (timeline verticale, réutilisable) */
.etapes { list-style: none; counter-reset: etape; margin: 1.8em 0; padding: 0; }
.etapes li { counter-increment: etape; position: relative; padding: 0 0 22px 58px; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--prusse); color: #fff;
  font-family: var(--f-titre); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.etapes li:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; top: 42px; bottom: 2px;
  width: 2px; background: var(--filet);
}
.etapes li strong { display: block; margin-bottom: 3px; font-size: 1.05rem; color: var(--encre); }

/* Check-liste (critères cochés, réutilisable) */
.check-liste { list-style: none; margin: 1.6em 0; padding: 0; }
.check-liste li { position: relative; padding: 5px 0 5px 36px; margin-bottom: 6px; line-height: 1.5; }
.check-liste li::before {
  content: '\2713'; position: absolute; left: 0; top: 5px;
  width: 23px; height: 23px; border-radius: 50%;
  background: #eef7e8; color: #2d6128; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* ----------------------------------------------------------- Barre de lecture */
#barre-lecture {
  position: fixed; top: 0; left: 0; width: 0%;
  height: 3px; background: var(--prusse); z-index: 500;
  transition: width .1s linear; pointer-events: none;
}

/* ----------------------------------------------------------- Sommaire article (sidebar) */
.sommaire-article { margin-bottom: 36px; }
.sommaire-article-titre {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 700; font-family: var(--f-mono);
  color: var(--encre-doux); margin: 0 0 10px;
}
.sommaire-article-liste { list-style: none; margin: 0; padding: 0; }
.sommaire-article-lien {
  display: block; padding: 6px 8px 6px 12px; font-size: 0.88rem;
  color: var(--encre-doux); border-left: 2px solid var(--filet);
  text-decoration: none; line-height: 1.35;
  transition: color .15s, border-color .15s, background .15s;
}
.sommaire-article-lien:hover {
  color: var(--prusse); border-left-color: var(--prusse);
  background: var(--prusse-pale);
}
.sommaire-article-lien.est-actif {
  color: var(--prusse); border-left-color: var(--prusse);
  font-weight: 600; background: var(--prusse-pale);
}
.article-corps h2 { scroll-margin-top: 90px; }

/* ----------------------------------------------------------- FAQ accordéon */
.faq-accordeon { margin: 1.6em 0; }
.faq-accordeon details { border-bottom: 1px solid var(--filet); }
.faq-accordeon details:first-child { border-top: 1px solid var(--filet); }
.faq-accordeon summary {
  padding: 15px 44px 15px 0; cursor: pointer; font-weight: 700;
  font-family: var(--f-titre); font-size: 1.04rem;
  list-style: none; position: relative; color: var(--encre);
  user-select: none;
}
.faq-accordeon summary::-webkit-details-marker { display: none; }
.faq-accordeon summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 300;
  color: var(--prusse); line-height: 1; transition: transform .2s;
}
.faq-accordeon details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-accordeon details > p {
  margin: 0 0 16px; color: var(--encre-doux); line-height: 1.65;
  font-size: 0.97rem; animation: faq-apparition .18s ease;
}
@keyframes faq-apparition {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Sections accueil « bold »
   ========================================================================= */

/* --- Cartes overlay (image sombre + texte superposé) --- */
.rayon-overlay {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feuillet-overlay {
  position: relative; display: block; border-radius: 0;
  overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink);
}
.feuillet-overlay img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feuillet-overlay:hover img { transform: scale(1.05); }
.feuillet-overlay-texte {
  position: absolute; inset: auto 0 0 0; padding: 70px 24px 24px;
  background: linear-gradient(to top, rgba(10,10,14,0.94) 4%, rgba(10,10,14,0.5) 55%, transparent);
}
.feuillet-overlay-titre { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
.feuillet-overlay-titre a, .feuillet-overlay-titre a:hover { color: #fff; }
.feuillet-overlay .etiquette-rubrique { margin-bottom: 12px; }
.feuillet-overlay-chapo { color: rgba(255,255,255,0.8); margin: 13px 0 0; font-size: 0.96rem; line-height: 1.55; max-width: 52ch; }

.bloc-nouveautes { padding-top: 44px; padding-bottom: 12px; }

/* --- Explorer par univers --- */
.univers-bloc { padding-top: 52px; padding-bottom: 12px; }
.univers {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: 2px solid var(--ink);
}
.univers-item {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 20px;
  border-right: 1px solid var(--line); transition: background .15s;
}
.univers-item:last-child { border-right: 0; }
.univers-item:hover { background: var(--ink); }
.univers-icone {
  width: 46px; height: 46px; border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.univers-icone svg { width: 23px; height: 23px; }
.univers-item:hover .univers-icone { background: var(--violet); border-color: var(--violet); color: #fff; }
.univers-texte strong { display: block; font-family: var(--f-titre); color: var(--ink); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; transition: color .15s; }
.univers-texte small { font-family: var(--f-mono); color: var(--muted); font-size: 0.72rem; line-height: 1.5; display: block; transition: color .15s; }
.univers-item:hover .univers-texte strong { color: #fff; }
.univers-item:hover .univers-texte small { color: rgba(255,255,255,0.6); }

/* --- Articles populaires --- */
.populaires-bloc { padding-top: 52px; padding-bottom: 20px; }
.populaires { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.palmares { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.palmares li { border-bottom: 1px solid var(--line); }
.palmares a { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: center; padding: 18px 0; }
.palmares-num {
  font-family: var(--f-titre); font-size: 2.1rem; font-weight: 700;
  color: var(--violet); text-align: left; line-height: 1; letter-spacing: -0.03em;
}
.palmares a:hover .palmares-num { color: var(--ink); }
.palmares-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 7px; font-family: var(--f-mono); }
.palmares-cat { color: var(--violet-deep); font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.palmares-meta time { color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; }
.palmares-titre { display: block; font-family: var(--f-titre); color: var(--ink); font-weight: 600; font-size: 1.04rem; line-height: 1.28; letter-spacing: -0.01em; }
.palmares a:hover .palmares-titre { color: var(--violet-deep); }
.populaires-vedette { height: 100%; }
.populaires-vedette .feuillet-overlay { aspect-ratio: auto; height: 100%; min-height: 380px; }
.populaires-vedette .feuillet-overlay-texte { padding: 96px 32px 32px; }
.populaires-vedette .feuillet-overlay-titre { font-size: 1.7rem; }

@media (max-width: 1000px) {
  .univers { grid-template-columns: repeat(3, 1fr); }
  .univers-item:nth-child(3n) { border-right: 0; }
  .univers-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .populaires { grid-template-columns: 1fr; gap: 32px; }
  .populaires-vedette .feuillet-overlay { min-height: 300px; }
}
@media (max-width: 640px) {
  .univers { grid-template-columns: repeat(2, 1fr); }
  .univers-item:nth-child(3n) { border-right: 1px solid var(--filet); }
  .univers-item:nth-child(2n) { border-right: 0; }
  .univers-item { border-bottom: 1px solid var(--filet); }
  .univers-item:nth-last-child(-n+1) { border-bottom: 0; }
}

/* ----------------------------------------------------------- Formulaire contact */
.formulaire-contact { max-width: 600px; margin: 2em 0; }
.champ-contact { margin-bottom: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.champ-contact label { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre); font-weight: 700; }
.champ-contact label span { color: var(--prusse); }
.champ-contact input,
.champ-contact textarea {
  border: 1.5px solid var(--filet); background: #fff; padding: 10px 14px;
  font-family: var(--f-corps); font-size: 1rem; color: var(--encre);
  transition: border-color .15s;
  border-radius: 0; width: 100%; box-sizing: border-box;
}
.champ-contact input:focus,
.champ-contact textarea:focus { outline: none; border-color: var(--prusse); }
.champ-contact textarea { resize: vertical; min-height: 130px; }
.btn-envoyer {
  background: var(--prusse); color: #fff; border: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 13px 28px; font-weight: 700;
  transition: background .15s, transform .1s;
}
.btn-envoyer:hover { background: var(--encre); transform: translateY(-1px); }

.courriel-protege { unicode-bidi: bidi-override; direction: rtl; white-space: nowrap; }
