/* =========================================================================
   Theme.fm — feuille de style « éditorial chic »
   Titres : Newsreader (serif moderne) · Texte : Hanken Grotesk
   Crème + encre + bleu de Prusse · angles nets · filets fins · grandes photos
   ========================================================================= */

:root {
  --encre:        #1c1a16;
  --encre-doux:   #4f4a40;
  --gris-papier:  #7d756a;
  --creme:        #f7f2e8;
  --creme-alt:    #f1ead9;
  --blanc-chaud:  #fffdf8;
  --prusse:       #16324f;
  --prusse-vif:   #1f4d77;
  --prusse-pale:  #e7edf2;
  --filet:        rgba(28, 26, 22, 0.14);
  --filet-fort:   rgba(28, 26, 22, 0.32);
  --largeur-large:  1180px;
  --largeur-lecture: 720px;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  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; }

/* ----------------------------------------------------------- Bandeau / header */
.bandeau-edition {
  position: sticky; top: 0; z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid var(--filet-fort);
  transition: transform .3s ease;
}
.bandeau-cache { transform: translateY(-100%); }

.bandeau-edition-haut { border-bottom: 1px solid var(--filet); }
.bandeau-edition-rang {
  display: flex; align-items: center; gap: 20px;
  height: 92px;
}
.enseigne { display: flex; align-items: center; line-height: 1; margin-right: auto; }
.enseigne-logo { height: 72px; width: auto; display: block; }
.enseigne-nom {
  font-family: "Newsreader", serif; font-weight: 700;
  font-size: 1.9rem; letter-spacing: -0.01em; color: var(--encre);
}
.enseigne-baseline {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gris-papier); margin-top: 4px;
}

.quete { display: flex; align-items: center; border: 1px solid var(--filet-fort); background: var(--blanc-chaud); }
.quete input {
  border: 0; background: transparent; padding: 9px 12px; font: inherit;
  font-size: 0.9rem; width: 200px; color: var(--encre);
}
.quete input:focus { outline: none; }
.quete button {
  border: 0; background: transparent; color: var(--prusse);
  padding: 0 12px; cursor: pointer; display: flex; align-items: center; height: 38px;
}

.bascule-sommaire {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--filet-fort);
  background: var(--blanc-chaud); cursor: pointer; padding: 0;
}
.bascule-sommaire span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--encre); 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: 26px;
  height: 50px; overflow: visible;
}
.sommaire-rubriques a {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--encre-doux); white-space: nowrap; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.sommaire-rubriques a:hover { color: var(--prusse); border-bottom-color: var(--prusse); }

/* 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% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 190px; background: var(--creme); border: 1px solid var(--filet-fort);
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.1);
  list-style: none; margin: 0; padding: 6px 0; z-index: 200;
}
.nav-sous-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--filet-fort);
  border-top: none; width: 0; height: 0;
}
.nav-sous-menu li a {
  display: block; padding: 9px 16px; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--encre-doux); border-bottom: none; white-space: nowrap;
}
.nav-sous-menu li a:hover { color: var(--prusse); background: var(--blanc-chaud); }
@media (hover: hover) { .nav-groupe:hover .nav-sous-menu { display: block; } }
.nav-groupe.est-ouvert .nav-sous-menu { display: block; }

/* ----------------------------------------------------------- Étiquette rubrique */
.etiquette-rubrique {
  display: inline-block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: #fff; background: var(--prusse);
  padding: 6px 13px; margin-bottom: 14px;
}
.etiquette-rubrique:hover { background: var(--prusse-vif); color: #fff; }
.feuillet-rubrique {
  display: inline-block; align-self: flex-start;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--prusse); background: var(--prusse-pale);
  padding: 4px 9px; margin-bottom: 11px;
}
.feuillet-rubrique:hover { background: var(--prusse); color: #fff; }

/* ----------------------------------------------------------- La une (accueil) */
.une-magazine {
  display: grid; grid-template-columns: 1.9fr 1fr; gap: 48px;
  padding-top: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--filet);
}
.une-vedette { position: relative; overflow: hidden; }
.une-vedette-image { display: block; height: 100%; }
.une-vedette-image img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.une-vedette:hover .une-vedette-image img { transform: scale(1.04); }
.une-vedette-texte {
  position: absolute; inset: auto 0 0 0;
  padding: 96px 40px 34px;
  background: linear-gradient(to top, rgba(16,18,22,0.9) 10%, rgba(16,18,22,0.45) 55%, transparent);
}
.une-vedette-texte .etiquette-rubrique { background: #fff; color: var(--prusse); }
.une-vedette-texte .etiquette-rubrique:hover { background: var(--creme); }
.une-vedette-titre {
  font-size: clamp(2.1rem, 3.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em;
  margin: 4px 0 12px; line-height: 1.06;
}
.une-vedette-titre a, .une-vedette-titre a:hover { color: #fff; }
.une-vedette-titre a:hover { opacity: 0.92; }
.une-vedette-chapo { font-size: 1.08rem; color: rgba(255,255,255,0.85); margin: 0 0 14px; max-width: 58ch; }
.une-vedette-texte time, .une-vedette-texte .feuillet-date { color: rgba(255,255,255,0.72); }

.une-colonne { display: flex; flex-direction: column; gap: 22px; }
.une-colonne .feuillet--standard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--filet); }
.une-colonne .feuillet--standard:last-child { border-bottom: 0; padding-bottom: 0; }
.une-colonne .feuillet-image { aspect-ratio: 1 / 1; object-fit: cover; width: 96px; height: 96px; }
.une-colonne .feuillet-titre { font-size: 1.02rem; }
.une-colonne .feuillet-chapo { display: none; }

/* ----------------------------------------------------------- Intertitres */
.intertitre {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 24px; padding-bottom: 10px;
  border-bottom: 2px solid var(--encre);
}
.intertitre h2 { font-size: 1.5rem; margin: 0; }
.intertitre-lien { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; white-space: nowrap; }

.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(266px, 1fr));
  gap: 36px 30px;
}

.feuillet { display: flex; flex-direction: column; }
.feuillet-lien { display: block; overflow: hidden; margin-bottom: 14px; }
.feuillet-image {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--creme-alt); transition: transform .5s ease;
}
.feuillet-lien:hover .feuillet-image { transform: scale(1.04); }
.feuillet-image--vide {
  display: block; background:
    repeating-linear-gradient(45deg, var(--creme-alt), var(--creme-alt) 10px, var(--creme) 10px, var(--creme) 20px);
}
.feuillet-corps { display: flex; flex-direction: column; }
.feuillet-titre { font-size: 1.18rem; font-weight: 600; line-height: 1.25; margin: 0 0 8px; }
.feuillet-titre a { color: var(--encre); }
.feuillet-titre a:hover { color: var(--prusse); }
.feuillet-chapo { font-size: 0.95rem; color: var(--encre-doux); margin: 0 0 10px; }
.feuillet-date { font-size: 0.78rem; color: var(--gris-papier); text-transform: uppercase; letter-spacing: 0.06em; }

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

.fil-ariane { margin-bottom: 22px; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 0.8rem; color: var(--gris-papier); }
.fil-ariane li + li::before { content: "›"; margin-right: 8px; color: var(--filet-fort); }
.fil-ariane a { color: var(--gris-papier); }
.fil-ariane a:hover { color: var(--prusse); }
.fil-ariane [aria-current] { color: var(--encre-doux); }

.article-tete { margin-bottom: 26px; }
.article-titre {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.018em;
  line-height: 1.08; margin: 4px 0 18px;
}
.article-signature { font-size: 0.85rem; color: var(--gris-papier); display: flex; align-items: center; gap: 10px; }
.article-signature .puce { color: var(--filet-fort); }

.article-vignette { margin: 0 auto 36px; max-width: 1040px; }
.article-vignette img { width: 100%; max-height: 620px; object-fit: cover; }

/* Corps de l'article (contenu repris de WordPress) */
.article-corps { font-size: 1.12rem; line-height: 1.85; 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 { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(22,50,79,.35); }
.article-corps a:hover { text-decoration-color: var(--prusse-vif); }
.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; }
.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: "Newsreader", serif; font-size: 1.3rem; font-style: italic; color: var(--encre-doux);
}
.article-corps strong { font-weight: 700; }
.article-corps table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.98rem; }
.article-corps th, .article-corps td { border: 1px solid var(--filet); padding: 10px 12px; text-align: left; }
.article-corps th { background: var(--prusse-pale); font-weight: 700; }
.article-corps iframe { max-width: 100%; }

.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 12px; border: 1px solid var(--filet);
}

.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) 322px; gap: 56px; align-items: start; padding-top: 18px; padding-bottom: 20px; }
.article-flux { min-width: 0; }
.article-flux .article-corps { max-width: 740px; }
.article-flux .article-etiquettes { max-width: 740px; }

.colonne-laterale { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 38px; }
.bloc-lateral-titre {
  font-family: "Hanken Grotesk", sans-serif; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 800; color: var(--prusse);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--encre);
}
.lien-rubrique { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.lien-rubrique:last-of-type { border-bottom: 0; }
.lien-rubrique img, .lien-rubrique-vide { width: 80px; height: 58px; object-fit: cover; background: var(--creme-alt); display: block; }
.lien-rubrique-titre { font-family: "Newsreader", serif; font-size: 1.04rem; line-height: 1.24; color: var(--encre); }
.lien-rubrique:hover .lien-rubrique-titre { color: var(--prusse); }
.bloc-lateral-tout { display: inline-block; margin-top: 16px; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.liste-rubriques-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.liste-rubriques-nav a { font-size: 0.82rem; border: 1px solid var(--filet-fort); padding: 7px 13px; color: var(--encre-doux); }
.liste-rubriques-nav a:hover { background: var(--prusse); color: #fff; border-color: var(--prusse); }

@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: 40px 0 8px; border-bottom: 2px solid var(--encre); margin-bottom: 34px; }
.entete-rubrique-sur { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--prusse); margin: 0 0 6px; font-weight: 700; }
.entete-rubrique h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; margin: 0; }
.entete-rubrique-compte { color: var(--gris-papier); font-size: 0.9rem; margin: 8px 0 0; }
.entete-rubrique-intro { max-width: 72ch; font-size: 1rem; line-height: 1.7; color: var(--gris-papier); margin: 0 0 36px; }

.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: "Newsreader", serif; font-size: 1.3rem; }
.grille-rubriques a:hover { background: var(--prusse-pale); color: var(--prusse); }
.grille-rubriques-nb { font-family: "Hanken Grotesk", sans-serif; 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-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; border: 1px solid var(--filet-fort); padding: 10px 18px; }
.feuilletage a:hover { background: var(--prusse); color: #fff; border-color: var(--prusse); }
.feuilletage-pos { font-size: 0.85rem; color: var(--gris-papier); }

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

/* ----------------------------------------------------------- Recherche */
.quete--page { margin: 0 0 40px; max-width: 540px; }
.quete--page input { width: 100%; padding: 14px 16px; font-size: 1rem; }
.quete--page button { padding: 0 22px; font-weight: 600; height: auto; }

/* ----------------------------------------------------------- 404 */
.bloc-introuvable { text-align: center; padding: 70px 24px 80px; }
.introuvable-code { font-family: "Newsreader", serif; font-size: 6rem; line-height: 1; color: var(--prusse); 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-block; background: var(--prusse); color: #fff; padding: 13px 28px; font-weight: 600; margin-bottom: 56px; }
.bouton-retour:hover { background: var(--prusse-vif); color: #fff; }
.bloc-introuvable .rayon-feuillets { text-align: left; }

/* ----------------------------------------------------------- Pied de page */
.ours { background: var(--encre); color: var(--creme); margin-top: 40px; }
.ours-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.ours .enseigne-nom { color: var(--creme); font-size: 2rem; }
.ours-mot { color: rgba(247, 242, 232, 0.66); margin: 14px 0 0; max-width: 42ch; font-size: 0.96rem; }
.ours-titre { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(247,242,232,.5); margin: 0 0 16px; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; }
.ours-colonne { display: flex; flex-direction: column; gap: 11px; }
.ours-colonne a { color: rgba(247, 242, 232, 0.86); font-size: 0.96rem; }
.ours-colonne a:hover { color: #fff; }
.ours-bas { border-top: 1px solid rgba(247,242,232,.14); padding: 18px 0; font-size: 0.82rem; color: rgba(247,242,232,.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; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .bascule-sommaire { display: flex; }
  .enseigne { margin-right: auto; margin-left: 6px; }
  .enseigne-logo { height: 42px; }
  .enseigne-nom { font-size: 1.5rem; }
  .enseigne-baseline { display: none; }
  .quete { display: none; }
  .sommaire-rubriques {
    position: fixed; inset: 76px 0 auto 0; background: var(--creme);
    border-bottom: 1px solid var(--filet-fort);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .sommaire-rubriques.est-ouvert { max-height: 80vh; overflow-y: auto; }
  .sommaire-rubriques-rang { flex-direction: column; align-items: flex-start; height: auto; gap: 0; padding-top: 8px; padding-bottom: 12px; }
  .sommaire-rubriques a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--filet); }
  .sommaire-rubriques a:hover { border-bottom-color: var(--filet); }
  .nav-groupe { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-groupe-lien { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--filet); }
  .nav-groupe-lien::after { content: '▾'; 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; border-radius: 0; background: transparent; display: none; padding: 0 0 0 16px; min-width: auto; }
  .nav-sous-menu::before { display: none; }
  .nav-groupe.est-ouvert .nav-sous-menu { display: block; }
  .nav-sous-menu li a { padding: 10px 0; border-bottom: 1px solid var(--filet); }
  .une-vedette-texte { padding: 64px 20px 22px; }
  .une-colonne .feuillet--standard { grid-template-columns: 80px 1fr; }
  .une-colonne .feuillet-image { width: 80px; height: 80px; }
  .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; }
}
