/* ==========================================================================
   Mon Couple Magazine — feuille de style (palier 1 bis)
   Charte : bleus #3F71A9 / #23478A / #12182B, fonds #FFFFFF / #F5F8FC.
   Typographie : Fraunces (titres éditoriaux, nom du magazine en italique),
   Inter (interface), Georgia (corps de lecture des articles).
   Références validées : maquette charte + rangées et bloc experts
   observés sur psychologies.com, bandeau d'interruption sur lemonde.fr.
   ========================================================================== */

/* Polices auto-hébergées (aucun appel à un service tiers — conformité RGPD/CNIL) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bleu: #3F71A9;
  --bleu-profond: #23478A;
  --encre: #12182B;
  --brume: #F5F8FC;
  --brume-bleue: #E9F0F8;
  --blanc: #FFFFFF;
  --bordure: #E3E8F1;
  --gris-texte: #5A6478;
  /* Palier 26 — LA LARGEUR DU JOURNAL. Une seule valeur commande toute la
     mise en page : en-tete, menu, contenu, pied de page. 1200 px est le
     gabarit editorial courant (Le Monde, Capital, Geo) : il laisse de
     vraies marges sur grand ecran et tient encore trois cartes de front. */
  --journal: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --lecture: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.55;
}

a { color: var(--bleu-profond); }
img { max-width: 100%; }

/* --------------------------------------------------------------------------
   En-tête : logo 68 px + nom 44 px, recherche centrale, Tests + S'abonner
   -------------------------------------------------------------------------- */

.site-header { background: var(--blanc); border-bottom: 1px solid var(--bordure); }

.header-inner {
  max-width: var(--journal);
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { text-decoration: none; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { height: 68px; width: auto; display: block; }
.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  color: var(--bleu-profond);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.header-recherche { flex: 1 1 220px; min-width: 44px; max-width: 360px; margin-left: auto; }
.header-recherche input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235A6478' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; padding-left: 36px; }
.header-recherche input {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--brume);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--encre);
}
.header-recherche input:focus { outline: 2px solid var(--bleu); background: var(--blanc); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lien-header { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--encre); }
.lien-header:hover { color: var(--bleu-profond); }

.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
  border: 2px solid transparent;
  cursor: pointer;
}
.bouton-plein { background: var(--bleu-profond); color: var(--blanc); }
.bouton-plein:hover { background: var(--encre); }
.bouton-ghost { border-color: var(--bleu-profond); color: var(--bleu-profond); background: transparent; }
.bouton-ghost:hover { background: var(--brume-bleue); }
.bouton-blanc { background: var(--blanc); color: var(--bleu-profond); }
.bouton-blanc:hover { background: var(--brume-bleue); }
.bouton-section { background: var(--brume-bleue); color: var(--bleu-profond); font-size: 13px; padding: 9px 18px; }
.bouton-section:hover { background: var(--bleu-profond); color: var(--blanc); }

/* Navigation à 10 entrées */
.menu { border-top: 1px solid var(--bordure); }
.menu-inner {
  max-width: var(--journal);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
}
.menu-lien {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding: 12px 0 10px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.menu-lien:hover { color: var(--bleu-profond); }
.menu-lien.actif { color: var(--bleu-profond); border-bottom-color: var(--bleu-profond); }

/* Messages flash */
.flashs { max-width: var(--journal); margin: 16px auto 0; padding: 0 24px; }
.flash { padding: 12px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; }
.flash-succes { background: var(--brume-bleue); color: var(--bleu-profond); }
.flash-erreur { background: #FBEFEC; color: #9C3B21; }
/* Palier 38 — l'avertissement : ni un succès, ni une erreur. La campagne est
   bien enregistrée, mais quelque chose mérite un coup d'œil humain. */
.flash-avertissement { background: #FDF3E7; color: #7A4B12; border: 1px solid #E8C9A0; }

/* --------------------------------------------------------------------------
   Structure des pages
   -------------------------------------------------------------------------- */

.page { max-width: var(--journal); margin: 0 auto; padding: 8px 24px 56px; }
/* Palier 136 — « margin: 52px 0 » écrasait le « margin: 0 auto » de .page
   sur les blocs qui portent LES DEUX classes (ex. « Dans la même rubrique »,
   « Les différentes séries ») : la section gardait sa largeur de journal
   mais collait au bord gauche de l'écran. `auto` centre quand une largeur
   maximale existe, et ne change rien ailleurs. */
.section { margin: 52px auto; }

.section-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-titre {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  margin: 0;
  color: var(--encre);
  letter-spacing: -0.5px;
}

.page-entete { padding-top: 28px; margin-bottom: 8px; }
.page-titre { font-family: var(--serif); font-weight: 600; font-size: 44px; margin: 0 0 10px; letter-spacing: -0.5px; }
.page-intro { color: var(--gris-texte); font-size: 16px; max-width: 720px; margin: 0; }

/* --------------------------------------------------------------------------
   Bloc 1 — Bannière hero (dossier du trimestre)
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(115deg, var(--encre), var(--bleu-profond));
  background-size: cover;
  background-position: center 35%;
  color: var(--blanc);
}
.hero-inner { max-width: none; margin: 0; padding: 72px 48px; }
.hero-surtitre {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
}
.hero-titre {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 720px;
  letter-spacing: -1px;
}
.hero-chapo { font-size: 18px; max-width: 640px; margin: 0 0 26px; color: rgba(255, 255, 255, 0.92); }

/* --------------------------------------------------------------------------
   Bloc 2 — Cartes d'entrée par public
   -------------------------------------------------------------------------- */

.publics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }  /* palier 25 : « minmax(0, 1fr) » et non « 1fr » — sans cela les trois
     cartes refusent de descendre sous leur largeur naturelle et poussent
     tout le contenu par-dessus la colonne publicitaire. */
.public-carte {
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--bleu);
  border-radius: 10px;
  padding: 24px 26px;
  text-decoration: none;
  color: var(--encre);
  background: var(--blanc);
  transition: box-shadow 0.15s ease;
}
.public-carte:hover { box-shadow: 0 8px 24px rgba(18, 24, 43, 0.08); }
.public-carte h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.public-carte p { margin: 0; font-size: 14.5px; color: var(--gris-texte); }

/* --------------------------------------------------------------------------
   Cartes et lignes de contenus (codes éditoriaux de la charte)
   -------------------------------------------------------------------------- */

.carte-contenu { min-width: 0; }
.carte-lien { text-decoration: none; color: inherit; display: block; }
.carte-visuel { position: relative; }
.carte-photo {
  /* Palier 185 — 16:10, comme tous les cadres de visuel de contenu. */
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  background: var(--brume);
}
.pastille-nature {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--encre);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.carte-corps { padding-top: 14px; }

.carte-surtitre { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.pastille-rubrique {
  background: var(--brume-bleue);
  color: var(--bleu-profond);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}
/* Palier 147 — fin des « carrés bleus partout » (constat de Laurent) : la
   NATURE se dit en petites capitales, sans pavé — seule la rubrique garde son
   fond doux. */
.pastille-podcast, .pastille-masterclass {
  background: transparent; color: var(--bleu-profond);
  padding: 4px 0; text-transform: uppercase; letter-spacing: .09em; font-size: 11.5px;
}
.date-pub { font-size: 13px; font-weight: 600; color: var(--bleu); }

.carte-titre {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.2px;
}
.carte-lien:hover .carte-titre, .ligne-lien:hover .ligne-titre { color: var(--bleu-profond); }
.carte-grande .carte-titre { font-size: 31px; line-height: 1.18; }
.carte-chapo { font-size: 15px; color: var(--gris-texte); margin: 10px 0 0; }
.carte-meta { font-size: 13px; color: var(--gris-texte); margin: 10px 0 0; }

.badge-acces {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: 1px;
}
/* Palier 147 — l'ACCÈS se distingue par un CONTOUR, jamais un pavé plein :
   vert pour ce qui est gratuit, bleu pour ce qui se paie ou s'abonne. Plus
   de confusion possible avec la nature ni entre eux. */
.badge-acces { background: transparent; border: 1px solid var(--bleu-profond); color: var(--bleu-profond); }
.badge-gratuit_compte, .badge-gratuit_gp { border-color: #2E7D5B; color: #2E7D5B; }
.badge-abonnes { border-color: var(--bleu-profond); color: var(--bleu-profond); }

/* Lignes : vignette à gauche, texte à droite */
.liste-lignes { border-top: 1px solid var(--bordure); }
.ligne-contenu { border-bottom: 1px solid var(--bordure); }
.ligne-lien {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  align-items: start;
}
.ligne-titre { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0; }
.ligne-chapo { font-size: 14px; color: var(--gris-texte); margin: 8px 0 0; }

/* Bloc 3 — À la une : 1 principal + 2 secondaires */
.grille-une { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; }
.grille-une .carte-grande { grid-row: span 2; }

/* Bloc 6 — Rangée thématique : 1 principal + 3 lignes */
.rangee-asym { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.rangee-secondaires { border-top: 1px solid var(--bordure); }
.rangee-secondaires .ligne-lien { grid-template-columns: 150px 1fr; padding: 16px 0; }
.rangee-secondaires .ligne-titre { font-size: 17.5px; }
.rangee-secondaires .ligne-chapo { display: none; }

/* Grilles génériques (rubriques, listes) */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }

/* --------------------------------------------------------------------------
   Bloc 5 — Ce que dit la recherche
   -------------------------------------------------------------------------- */

.chiffres-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.chiffre-carte {
  background: var(--brume);
  border-left: 4px solid var(--bleu);
  border-radius: 10px;
  padding: 26px 28px;
}
.chiffre { font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--bleu-profond); margin: 0 0 10px; }
.chiffre-texte { font-size: 14px; color: var(--gris-texte); margin: 0; }

/* --------------------------------------------------------------------------
   Bloc 8 — L'équipe (bandeau de confiance, référence psychologies.com)
   -------------------------------------------------------------------------- */

.bandeau-equipe {
  background: var(--brume-bleue);
  border-radius: 18px;
  padding: 52px 40px;
  text-align: center;
}
.equipe-accroche {
  /* Palier 127 — 27 px paraissait trop gros dans l'encadré des engagements
     (constat de Laurent) ; le lien « Découvrir notre charte éditoriale », lui,
     est à la bonne taille et reste inchangé. */
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  color: var(--bleu-profond);
  max-width: 780px;
  margin: 0 auto 34px;
}
.grille-equipe-extrait { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-bottom: 30px; }
.equipe-mini { width: 158px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blanc);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.avatar-grand { width: 76px; height: 76px; font-size: 24px; }
.equipe-nom { font-weight: 700; font-size: 15px; margin: 12px 0 2px; }
.equipe-titre { font-size: 13px; color: var(--gris-texte); margin: 0; }
.equipe-lien { margin: 0; }

/* --------------------------------------------------------------------------
   Bloc 10 — Newsletter (jamais désactivable)
   -------------------------------------------------------------------------- */

.newsletter { background: linear-gradient(115deg, var(--bleu-profond), var(--encre)); color: var(--blanc); }
.newsletter-inner { max-width: 680px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.newsletter-titre { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 34px; margin: 0 0 10px; }
.newsletter-inner > p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.9); }
.newsletter-form { display: flex; gap: 10px; justify-content: center; }
.newsletter-form input {
  flex: 1;
  max-width: 340px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--sans);
  font-size: 14.5px;
}
.newsletter-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); margin: 16px 0 0; }

/* --------------------------------------------------------------------------
   Page contenu (article, podcast, masterclass)
   -------------------------------------------------------------------------- */

.page-contenu { max-width: 780px; margin: 0 auto; padding: 40px 24px 56px; }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bleu); }
.kicker-article { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.kicker-article .pastille-nature { position: static; }
.lien-rubrique { color: var(--bleu); text-decoration: none; }
.lien-rubrique:hover { text-decoration: underline; }

.contenu-titre {
  font-family: var(--serif);
  font-weight: 600;
  /* Palier 139 — 42 px paraissait un peu gros (essai demandé par Laurent) :
     38 px garde la force du titre sans écraser le chapô. Valeur à ajuster
     d'un mot si le rendu ne convient pas. */
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
}
.contenu-chapo { font-size: 19px; line-height: 1.55; color: var(--gris-texte); margin: 0 0 18px; }
.contenu-meta { font-size: 14px; color: var(--gris-texte); margin: 0 0 8px; }
/* Palier 167 — signature et actions sur UNE SEULE ligne (demande de Laurent :
   « comme ça, on gagne une ligne »). Les éléments passent à la ligne d'eux-
   mêmes sur écran étroit. */
.contenu-meta-actions {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: 0 0 1.1rem;
}
.contenu-meta-actions form { margin: 0; }
.contenu-signature { flex: 1 1 auto; min-width: 260px; }

.contenu-photo { margin: 26px 0; }
.contenu-photo img { width: 100%; border-radius: 10px; display: block; }
.contenu-photo figcaption { font-size: 12.5px; color: var(--gris-texte); margin-top: 8px; }
/* Palier 255 — le crédit se distingue de la légende sans la concurrencer :
   même taille, teinte plus discrète, italique comme dans la presse. */
.contenu-photo figcaption .credit-image { font-style: italic; opacity: .78; }
/* Les trois champs de l'image, sous la photothèque : une colonne calme. */
.champs-image { display: grid; gap: 14px; margin-top: 18px; }
.champs-image textarea { resize: vertical; }

.lecteur-media {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--brume);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.lecteur-picto {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bleu-profond);
  color: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.lecteur-titre { font-weight: 700; margin: 0 0 4px; }
.lecteur-note { font-size: 13px; color: var(--gris-texte); margin: 0; }

.fiche-ouvrage {
  background: var(--brume);
  border-left: 4px solid var(--bleu);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
}
.fiche-ouvrage p { margin: 0 0 6px; }
.fiche-ouvrage-etiquette { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bleu); }

/* Corps de lecture — Georgia. Palier 60 : interligne et espacement resserrés
   à la demande de Laurent (« comme dans un livre, un texte continu ») —
   1.65 d'interligne, 13px entre paragraphes au lieu de 1.8 / 24px. */
.contenu-corps { font-family: var(--lecture); font-size: 18px; line-height: 1.65; }
.contenu-corps p { margin: 0 0 13px; }
.contenu-corps h2.intertitre { margin: 26px 0 12px; }
.bloc-comprendre p { margin: 0 0 11px; line-height: 1.6; }
.bloc-comprendre p:last-child { margin-bottom: 0; }

/* Aperçu + fondu vers le blanc (bandeau d'interruption, section 3.3) */
.contenu-apercu { position: relative; padding-bottom: 8px; }
.fondu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--blanc) 88%);
  pointer-events: none;
}

.bandeau-verrou {
  background: var(--brume);
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--bleu-profond);
  border-radius: 12px;
  padding: 26px 32px 24px;
  text-align: center;
  margin: 4px 0 36px;
}
.verrou-ligne-fine { font-size: 13.5px; color: var(--gris-texte); margin: 0 0 4px; }
.verrou-accroche { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 12px 0 18px; }
.verrou-prix { font-size: 15px; margin: 0 0 14px; }
.prix-barre { text-decoration: line-through; color: var(--gris-texte); margin-right: 8px; }
.verrou-prix strong { color: var(--bleu-profond); }
.bouton-verrou { font-size: 15.5px; padding: 13px 30px; }
.verrou-argument { font-size: 13px; color: var(--gris-texte); margin: 12px 0 0; }
.verrou-paiements { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.verrou-paiements span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gris-texte);
  border: 1px solid var(--bordure);
  background: var(--blanc);
  border-radius: 999px;
  padding: 4px 12px;
}

.contenu-sources { border-top: 1px solid var(--bordure); margin-top: 36px; padding-top: 18px; }
.contenu-sources h2 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-texte); margin: 0 0 8px; }
.contenu-sources p { font-size: 14px; color: var(--gris-texte); margin: 0; }

.bloc-ressources {
  background: var(--brume);
  border-left: 4px solid var(--bleu-profond);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.bloc-ressources h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.bloc-ressources p { font-size: 14.5px; margin: 0 0 8px; }

.contenu-auteur {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-top: 1px solid var(--bordure);
  padding: 20px 0 4px;
  margin-top: 28px;
}
.auteur-nom { font-weight: 700; margin: 0; }
.auteur-titre { font-size: 13px; color: var(--gris-texte); margin: 2px 0 0; }
.auteur-presentation { font-size: 14px; color: var(--gris-texte); margin: 8px 0 0; }

/* Emplacement publicitaire « Fin d'article » (section 7 bis) */
.bloc-pub { margin: 44px 0 8px; text-align: center; }
.pub-etiquette {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin: 0 0 8px;
}
.bloc-pub img {
  width: 300px;               /* pavé IAB 300 x 250 — le standard de la presse en ligne */
  max-width: 100%;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Pages équipe / rubrique / recherche / formulaires
   -------------------------------------------------------------------------- */

.filtres-sous-themes { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 30px; }
.filtre {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--bleu-profond);
  background: var(--brume-bleue);
  border-radius: 999px;
  padding: 7px 16px;
}
.filtre.actif, .filtre:hover { background: var(--bleu-profond); color: var(--blanc); }

.grille-equipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.carte-personne {
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 22px 24px;
  background: var(--blanc);
}
.personne-lien { text-decoration: none; color: inherit; }
.personne-nom { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 12px 0 2px; }
.personne-titre { font-size: 13.5px; color: var(--bleu); font-weight: 600; margin: 0 0 8px; }
.personne-presentation { font-size: 14px; color: var(--gris-texte); margin: 0; }

.recherche-vide { color: var(--gris-texte); }

.formulaire { max-width: 440px; margin: 20px 0 40px; }
.formulaire label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.formulaire input[type="email"], .formulaire input[type="password"], .formulaire input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--brume);
}
.formulaire input:focus { outline: 2px solid var(--bleu); background: var(--blanc); }
/* Palier 176 (constat de Laurent) — LA CASE EN FACE DE SON TEXTE. Le libellé
   héritait de la hauteur de ligne du paragraphe voisin (41 px pour 17 px de
   texte) : la case, alignée en haut, flottait 21 px au-dessus de ses mots.
   Une hauteur de ligne propre remet la boîte à la taille du texte, et un
   léger décalage pose la case sur la PREMIÈRE ligne — ce qui vaut aussi pour
   les libellés longs, qui passent à la ligne. */
/* « .formulaire label » (0,1,1) l'emportait sur « .case » (0,1,0) : dans un
   formulaire, le libellé repassait en bloc et la case, elle-même en bloc,
   prenait sa propre ligne — d'où la case AU-DESSUS de son texte. On égalise
   la spécificité. */
.case, .formulaire label.case, .formulaire-article label.case {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.4; margin: 16px 0; font-weight: 400;
}
.case > input[type="checkbox"], .case > input[type="radio"],
.formulaire label.case > input, .formulaire-article label.case > input {
  display: inline-block; flex: none; width: auto; margin-top: .18em;
}
.formulaire .bouton { margin-top: 10px; }
.note-bas { font-size: 14px; color: var(--gris-texte); }

.carte-compte {
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 560px;
  margin: 20px 0;
}
.carte-compte p { margin: 0 0 10px; }
.categorie { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-texte); font-weight: 700; }

.bloc { margin: 28px 0; }
.bloc-etroit { max-width: 720px; }
.note-palier { font-size: 13.5px; color: var(--gris-texte); background: var(--brume); border-radius: 8px; padding: 12px 16px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer { background: var(--encre); color: rgba(255, 255, 255, 0.85); margin-top: 0; }
.footer-inner { max-width: var(--journal); margin: 0 auto; padding: 44px 24px; font-size: 14px; }
.footer-marque { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; color: var(--blanc); margin: 0 0 8px; }
.footer-inner p { margin: 0 0 6px; }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Adaptation mobile
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 14px; padding: 14px 16px 10px; }
  .brand-logo { height: 44px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 26px; }
  .header-recherche { order: 3; max-width: none; flex-basis: 100%; }
  .header-actions { margin-left: auto; gap: 10px; }
  .bouton-ghost { display: none; }

  .hero-inner { padding: 56px 16px; }
  .hero-titre { font-size: 36px; }
  .section-titre { font-size: 29px; }
  .page-titre { font-size: 32px; }
  .contenu-titre { font-size: 30px; }
  .page, .flashs { padding-left: 16px; padding-right: 16px; }
  .section { margin: 40px auto; }

  .publics, .grille, .grille-une, .rangee-asym, .chiffres-grille, .grille-equipe { grid-template-columns: 1fr; }
  .grille-une .carte-grande { grid-row: auto; }
  .rangee-asym { gap: 24px; }
  .ligne-lien, .rangee-secondaires .ligne-lien { grid-template-columns: 118px 1fr; gap: 14px; }
  .ligne-chapo { display: none; }
  .bandeau-equipe { padding: 36px 20px; }
  .equipe-accroche { font-size: 18px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input { max-width: none; }

  /* Fondu plus progressif sur mobile (spécification 3.3) */
  .fondu { height: 190px; }
  .bandeau-verrou { padding: 22px 18px 20px; }
}

/* --------------------------------------------------------------------------
   Page auteur (référence psychologies.com : biographie + publications)
   -------------------------------------------------------------------------- */

.fil-ariane { font-size: 13px; color: var(--gris-texte); padding-top: 24px; }
.fil-ariane a { color: var(--bleu); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }

.auteur-entete { display: flex; align-items: center; gap: 24px; margin: 22px 0 6px; }
.avatar-page { width: 104px; height: 104px; font-size: 34px; }
.auteur-entete .page-titre { margin-bottom: 4px; }
.auteur-fonction { font-size: 16px; font-weight: 600; color: var(--bleu); margin: 0; }

.auteur-bio { font-size: 16.5px; line-height: 1.7; max-width: 760px; margin: 14px 0 6px; }
.auteur-site { margin: 6px 0 0; font-size: 14.5px; }

.lien-auteur { color: inherit; text-decoration: none; }
.lien-auteur:hover { color: var(--bleu-profond); text-decoration: underline; }

.personne-suite { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.personne-suite a { text-decoration: none; }
.personne-suite a:hover { text-decoration: underline; }

a.equipe-mini { text-decoration: none; color: inherit; display: block; }
a.equipe-mini:hover .equipe-nom { color: var(--bleu-profond); text-decoration: underline; }

@media (max-width: 960px) {
  .auteur-entete { gap: 16px; }
  .avatar-page { width: 76px; height: 76px; font-size: 26px; }
}

/* --------------------------------------------------------------------------
   Pied de page complet (section 5 bis) et pages réglementaires
   -------------------------------------------------------------------------- */

.footer-haut { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; align-items: start; }
.footer-baseline { color: rgba(255, 255, 255, 0.75); font-size: 14px; margin: 0; max-width: 300px; }

.footer-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-colonne h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 12px;
}
.footer-colonne > a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 9px;
}
.footer-colonne > a:hover { color: var(--blanc); text-decoration: underline; }

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Pages réglementaires : prose lisible */
.texte-legal h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 34px 0 10px; }
.texte-legal p { font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; max-width: 720px; }
.a-completer {
  background: #FFF3D6;
  color: #7A5A12;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .footer-haut, .footer-colonnes { grid-template-columns: 1fr; gap: 26px; }
  .footer-marque-bloc { margin-bottom: 4px; }
}

/* --------------------------------------------------------------------------
   Formulaires : cartes centrées, contact, protections
   -------------------------------------------------------------------------- */

/* La barre de défilement du menu reste fonctionnelle mais invisible */
.menu-inner { scrollbar-width: none; }
.menu-inner::-webkit-scrollbar { display: none; }

.entete-formulaire { text-align: center; max-width: 620px; margin: 30px auto 4px; }
.entete-formulaire .page-intro { margin: 0 auto; }

.carte-formulaire {
  max-width: 500px;
  margin: 26px auto 60px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 30px 34px 26px;
  box-shadow: 0 10px 30px rgba(18, 24, 43, 0.05);
}
.carte-formulaire .formulaire { max-width: none; margin: 0; }
.carte-formulaire .note-bas { text-align: center; margin: 16px 0 0; }
.note-demo { font-size: 12.5px; }

.formulaire select, .formulaire textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--brume);
}
.formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--bleu); background: var(--blanc); }
.formulaire textarea { resize: vertical; }
.optionnel { font-weight: 400; color: var(--gris-texte); font-size: 13px; }

/* Champ piège : hors écran pour les humains, présent pour les robots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.question-controle {
  background: var(--brume);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 12px 14px 14px;
  margin: 18px 0 6px;
}
.question-controle input { background: var(--blanc); margin-top: 8px; }

.note-rgpd { font-size: 12.5px; color: var(--gris-texte); margin: 14px 0 0; }

/* Rubrique « Suivez-nous » : logos en pastilles rondes */
.footer-colonnes { grid-template-columns: repeat(4, 1fr); }
.reseaux-icones { display: flex; gap: 10px; }
.reseau-icone {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
}
.reseau-icone svg { display: block; }
.reseau-icone:hover { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }

/* --------------------------------------------------------------------------
   Page des formules d'abonnement (section 3.1, offre de lancement 3.1 bis)
   -------------------------------------------------------------------------- */

.bandeau-lancement {
  display: inline-block;
  background: var(--brume-bleue);
  color: var(--bleu-profond);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  margin: 14px 0 0;
}

.grille-formules {
  /* Palier 93 — les formules EMPILÉES (demande Laurent) : une carte par
     ligne, pleine largeur contenue — le cadrage de l'image devient
     trivial, et le téléphone suit naturellement. */
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 860px;
  margin: 36px auto 26px;
}

.carte-formule {
  position: relative;
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 26px 24px 24px;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
}
.formule-populaire {
  border: 2px solid var(--bleu-profond);
  box-shadow: 0 14px 34px rgba(35, 71, 138, 0.12);
}
.formule-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bleu-profond);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0;
  white-space: nowrap;
}

.formule-nom { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 2px; }
.formule-accroche { font-size: 13.5px; color: var(--gris-texte); margin: 0 0 16px; }

.formule-prix { margin: 0 0 16px; line-height: 1.2; }
.prix-actuel { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--bleu-profond); }
.formule-periode { font-size: 14px; color: var(--gris-texte); margin-left: 3px; }
.formule-prix .prix-barre { display: block; font-size: 15px; margin-bottom: 2px; }
.prix-lancement { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--bleu-profond); margin-right: 6px; }

.formule-avantages { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.formule-avantages li {
  font-size: 14px;
  padding: 7px 0 7px 26px;
  position: relative;
  border-top: 1px solid var(--brume);
}
.formule-avantages li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--bleu);
  font-weight: 700;
}
.carte-formule .bouton { text-align: center; }

.notes-formules { max-width: 760px; margin: 6px auto 30px; text-align: center; }
.notes-formules p { font-size: 13px; color: var(--gris-texte); margin: 0 0 8px; }

@media (max-width: 960px) {
  .grille-formules { grid-template-columns: 1fr; gap: 26px; }
}

/* Mise en évidence des formules au survol */
.carte-formule { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.carte-formule:hover {
  border-color: var(--bleu-profond);
  box-shadow: 0 16px 38px rgba(35, 71, 138, 0.16);
  transform: translateY(-4px);
}

/* Œil de visibilité du mot de passe */
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 46px; }
.bouton-oeil {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gris-texte);
  padding: 8px;
  line-height: 0;
}
.bouton-oeil:hover { color: var(--bleu-profond); }
.bouton-oeil .oeil-barre { display: none; }
.bouton-oeil.oeil-actif .oeil-ouvert { display: none; }
.bouton-oeil.oeil-actif .oeil-barre { display: inline; }

/* --------------------------------------------------------------------------
   Charte éditoriale et page L'équipe enrichie
   -------------------------------------------------------------------------- */

.section-sous-titre { color: var(--gris-texte); font-size: 15px; margin: -12px 0 22px; max-width: 720px; }

.grille-charte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 30px; }
.carte-charte {
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 26px 28px;
  background: var(--blanc);
  box-shadow: 0 8px 24px rgba(18, 24, 43, 0.05);
}
.carte-charte h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.carte-charte p { font-size: 14.5px; color: var(--gris-texte); margin: 0 0 16px; }
.carte-ecrire { max-width: 460px; margin-top: 26px; }

/* Colonne latérale des articles : pavé publicitaire fixe au défilement */
.page-contenu-grille { max-width: var(--journal); margin: 0 auto; }
.colonne-laterale { display: none; }

@media (min-width: 1140px) {
  .page-contenu-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0 56px;
    padding: 0 24px;
  }
  .page-contenu-grille .page-contenu { padding-left: 0; padding-right: 0; }
  .colonne-laterale { display: block; padding-top: 150px; }
  .pub-laterale { position: sticky; top: 28px; margin: 0; }
  .pub-laterale img { width: 300px; }
}

@media (max-width: 960px) {
  .grille-charte { grid-template-columns: 1fr; }
}

/* Bloc « La rédaction » en haut de l'accueil + adresse de la rédaction */
.bandeau-redaction {
  background: var(--brume);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 28px;
  align-items: center;
}
.redaction-accroche { font-weight: 700; font-size: 17px; color: var(--bleu-profond); margin: 6px 0 0; }
.redaction-visages { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.redaction-visages .equipe-mini { width: 132px; text-align: center; }
.redaction-visages .avatar-grand { width: 60px; height: 60px; font-size: 20px; }
.redaction-visages .equipe-nom { font-size: 13.5px; margin: 8px 0 1px; }
.redaction-visages .equipe-titre { font-size: 12px; }
.redaction-lien { margin: 0; }

.equipe-invitation { font-size: 15px; max-width: 680px; margin: 22px auto 0; color: var(--encre); }
.adresse-redaction { font-weight: 700; color: var(--bleu-profond); text-decoration: none; }
.adresse-redaction:hover { text-decoration: underline; }
.adresse-grande { font-family: var(--serif); font-size: 24px; }

@media (max-width: 960px) {
  .bandeau-redaction { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .redaction-lien { text-align: center; }
}

/* Portraits photo dans les avatars + cartes « rédaction » façon référence */
.avatar-img { object-fit: cover; padding: 0; }

.redaction-visages .equipe-mini {
  background: var(--bleu-profond);
  border-radius: 14px;
  padding: 18px 12px 14px;
  width: 148px;
}
.redaction-visages .avatar { border: 3px solid rgba(255, 255, 255, 0.9); }
.redaction-visages .equipe-nom { color: var(--blanc); }
.redaction-visages .equipe-titre { color: rgba(255, 255, 255, 0.75); }
.redaction-visages a.equipe-mini:hover .equipe-nom { color: var(--blanc); }

.bandeau-equipe .avatar, .grille-equipe .avatar { border: 3px solid var(--blanc); box-shadow: 0 2px 10px rgba(18, 24, 43, 0.12); }

/* Bloc de clôture « Le comité d'experts » (cartes blanches sur fond doux) */
.bandeau-experts {
  background: var(--brume-bleue);
  border-radius: 18px;
  padding: 52px 44px 44px;
  text-align: center;
}
.experts-titre {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.3;
  color: var(--bleu-profond);
  max-width: 860px;
  margin: 0 auto 36px;
  letter-spacing: -0.3px;
}
.experts-grille { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.expert-carte {
  background: var(--blanc);
  border-radius: 14px;
  padding: 24px 16px 18px;
  width: 176px;
  text-decoration: none;
  color: var(--encre);
  box-shadow: 0 6px 18px rgba(18, 24, 43, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.expert-carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 24, 43, 0.12); }
.avatar-expert { width: 84px; height: 84px; font-size: 26px; border: 3px solid var(--brume-bleue); }
.expert-nom { font-weight: 700; font-size: 15px; margin: 12px 0 3px; }
.expert-carte:hover .expert-nom { color: var(--bleu-profond); }
.expert-titre { font-size: 12.5px; color: var(--gris-texte); margin: 0; line-height: 1.4; }
.experts-mission { max-width: 760px; margin: 0 auto 24px; font-size: 15.5px; color: var(--encre); }
.experts-lien { margin: 0; }

@media (max-width: 960px) {
  .bandeau-experts { padding: 36px 18px 30px; }
  .experts-titre { font-size: 23px; }
}

/* --------------------------------------------------------------------------
   L'article offert (section 3.2, modèle Le Monde)
   -------------------------------------------------------------------------- */

.bouton-offrir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bleu-profond);
  text-decoration: none;
  border: 1px solid var(--bleu-profond);
  border-radius: 999px;
  padding: 4px 12px;
  margin-left: 10px;
  vertical-align: 2px;
}
.bouton-offrir:hover { background: var(--brume-bleue); }

.banniere-offert {
  background: var(--bleu-profond);
  color: var(--blanc);
  text-align: center;
  font-size: 14.5px;
  padding: 12px 20px;
}
.banniere-offert a { color: var(--blanc); font-weight: 700; }

.carte-offrir { max-width: 600px; }
.etiquette-lien { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ligne-copie { display: flex; gap: 10px; }
.ligne-copie input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: var(--brume);
  color: var(--gris-texte);
}
.partage-boutons { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }

.deblocage-entete { padding-bottom: 0; }
.deblocage-invite { font-size: 15.5px; font-weight: 600; margin: 0 0 16px; }

/* Palier 2 : formule actuelle et historique du compte */
.formule-actuelle { background: var(--brume-bleue); cursor: default; }
.bloc-abonnement form { margin: 8px 0 0; }
.ligne-historique { font-size: 13.5px; color: var(--gris-texte); margin: 0 0 4px; }

/* Mention de reconduction et d'échéance (Mon compte) */
.mention-reconduction { font-size: 14px; color: var(--gris-texte); margin: 6px 0 12px; }

/* Logos des moyens de paiement (bandeau d'interruption) + « Membre depuis » */
.verrou-paiements .logo-paiement {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 0 10px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.marque-cb {
  background: linear-gradient(135deg, #1B4F9C 55%, #0E9C6E 55%);
  color: #fff;
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  border: none;
  letter-spacing: 0.5px;
}
.marque-visa { color: #1A1F71; font-weight: 800; font-style: italic; font-size: 13.5px; letter-spacing: 0.6px; }
.marque-apple { color: #000; font-weight: 600; font-size: 13.5px; letter-spacing: -0.2px; }
.marque-gpay { color: #5F6368; font-weight: 600; font-size: 13.5px; }
.marque-gpay b { color: #4285F4; font-weight: 800; }
.marque-paypal { font-size: 13.5px; font-style: italic; }
.marque-paypal b { color: #003087; font-weight: 800; font-style: italic; }
.marque-paypal i { color: #009CDE; font-weight: 800; }
.logo-paiement svg { display: block; }

.membre-depuis { font-size: 13.5px; color: var(--gris-texte); margin: 4px 0 0; }

/* --------------------------------------------------------------------------
   Administration des contenus (palier 3, périmètre acté)
   -------------------------------------------------------------------------- */

.admin-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.lien-admin { color: var(--bleu-profond); font-weight: 700; }

.admin-ligne {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--blanc);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.admin-infos { flex: 1; min-width: 0; }
.admin-titre { font-weight: 700; margin: 0 0 3px; }
.admin-titre a { color: inherit; text-decoration: none; }
.admin-titre a:hover { color: var(--bleu-profond); text-decoration: underline; }
.admin-meta { font-size: 13px; color: var(--gris-texte); margin: 0; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions form { margin: 0; }
.bouton-mini { padding: 7px 14px; font-size: 13px; }

.badge-statut { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.badge-statut.en-ligne { background: #E4F4EA; color: #1B7A43; }
.badge-statut.programme { background: var(--brume-bleue); color: var(--bleu-profond); }
.badge-statut.depublie { background: #F4E4E4; color: #9A2B2B; }
.badge-statut.attente { background: #FFF3D6; color: #7A5A12; }
/* Palier 211 (demande de Laurent) — « Gratuit » se montre en badge, dans la
   ligne des dates ; « payant » ne s'affiche pas. Même moule que les badges
   de statut, le vert de la charte, petites capitales espacées. */
.badge-gratuit { display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase; border-radius: 999px;
  padding: 3px 10px; background: #E4F4EA; color: #1B7A43;
  vertical-align: 1px; white-space: nowrap; }

.formulaire-admin { max-width: 860px; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apercu-image { width: 220px; border-radius: 8px; margin-top: 8px; border: 1px solid var(--bordure); }
.fieldset-ouvrage { border: 1px solid var(--bordure); border-radius: 12px; padding: 14px 18px 6px; margin: 4px 0 16px; }
.fieldset-ouvrage legend { font-weight: 700; font-size: 14px; padding: 0 8px; }

@media (max-width: 720px) {
  .admin-entete, .admin-ligne { flex-direction: column; align-items: stretch; }
  .champs-duo { grid-template-columns: 1fr; }
}

/* Médiathèque de l'administration (façon banque d'images) */
.mediatheque {
  border: 1px solid var(--bordure);
  border-radius: 14px;
  background: var(--brume);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.mediatheque-titre { font-weight: 700; margin: 0 0 10px; }
.apercu-principal { width: 100%; max-width: 460px; border-radius: 10px; border: 1px solid var(--bordure); display: block; margin-bottom: 12px; }
.televersement-etiquette { cursor: pointer; margin-right: 10px; }
.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  /* Palier 190 — la photothèque respire : 240 px ne montraient que deux
     rangées sur trente-cinq images. */
  max-height: 520px;
  overflow-y: auto;
  margin-top: 12px;
  padding: 4px;
}
.vignette {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.vignette img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: 6px; }
.vignette:hover { border-color: var(--bleu); }
.vignette.active { border-color: var(--bleu-profond); box-shadow: 0 0 0 2px rgba(35, 71, 138, 0.2); }

/* Navigation et pages de l'administration étendue */
.admin-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--bordure); margin: 6px 0 24px; }
.admin-nav a {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--gris-texte);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 3px solid transparent;
}
.admin-nav a.actif { color: var(--bleu-profond); border-bottom-color: var(--bleu-profond); }
.admin-nav a:hover { color: var(--bleu-profond); }

.ligne-membre {
  display: grid;
  grid-template-areas: "identite fonction statut actions" "bas bas bas bas";
  grid-template-columns: 1.6fr 1.2fr 1fr auto;
  gap: 8px 18px;
  align-items: center;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--blanc);
  padding: 11px 16px 9px;
  margin-bottom: 10px;
}
.membre-bas { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--bordure); padding-top: 6px; }
.membre-groupe { display: inline-flex; gap: 12px; align-items: center; }
.membre-portrait input { display: block; margin-top: 4px; font-size: 12.5px; max-width: 240px; }
@media (max-width: 900px) { .ligne-membre { grid-template-areas: "identite" "fonction" "statut" "bas" "actions"; grid-template-columns: 1fr; } }
.membre-identite { display: flex; align-items: center; gap: 12px; min-width: 0; }
.membre-champ { font-size: 12.5px; font-weight: 600; color: var(--gris-texte); }
.membre-champ input, .membre-champ select { margin-top: 4px; font-size: 13.5px; padding: 8px 10px; }
.membre-case { white-space: nowrap; font-size: 13.5px; }

.tableau-lecteurs { border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; background: var(--blanc); }
.lecteur-ligne {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1.8fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brume);
  font-size: 14px;
  align-items: center;
}
.lecteur-ligne:last-child { border-bottom: none; }
.lecteur-entete { background: var(--brume); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gris-texte); }
.lecteur-ligne small { color: var(--gris-texte); }
.mention-resilie { color: #9A2B2B; font-weight: 600; }

@media (max-width: 960px) {
  .ligne-membre, .lecteur-ligne { grid-template-columns: 1fr; }
  .lecteur-entete { display: none; }
}

/* Administration v2 : groupes dépliables, publication, chiffre d'affaires */
.admin-groupe {
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--blanc);
  margin-bottom: 10px;
  padding: 0 16px;
}
.admin-groupe summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 2px;
  list-style: none;
}
.admin-groupe summary::before { content: "+"; display: inline-block; width: 20px; color: var(--bleu-profond); font-weight: 800; }
.admin-groupe[open] summary::before { content: "–"; }
.admin-groupe summary::-webkit-details-marker { display: none; }
.groupe-compte {
  background: var(--brume-bleue);
  color: var(--bleu-profond);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
  margin-left: 6px;
}
.admin-groupe .admin-ligne { border-left: none; border-right: none; border-radius: 0; margin: 0; border-top: none; }
.admin-sous-theme { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gris-texte); margin: 12px 2px 6px; }

.bloc-publication { border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 18px 14px; margin: 4px 0 16px; }
.bloc-publication legend { font-weight: 700; font-size: 14px; padding: 0 8px; }
.bloc-publication .case { display: block; margin: 8px 0; }
#champ-date { margin-left: 10px; }
#champ-date input { width: auto; }

/* Palier 155 — le bouton « Supprimer » se lisait mal : selon le contexte, un
   fond rouge héritait par-dessus le texte rouge (constat de Laurent). Le
   bouton porte désormais SES deux couleurs, de façon explicite. */
.bouton-danger { border: 1px solid #C24B4B; color: #9A2B2B !important; background: var(--blanc) !important; border-radius: 999px; font-weight: 700; }
.bouton-danger:hover { background: #F9ECEC !important; color: #7E1F1F !important; }

.filtres-periode { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.pilule-filtre {
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gris-texte);
  text-decoration: none;
  background: var(--blanc);
}
.pilule-filtre.actif { background: var(--bleu-profond); border-color: var(--bleu-profond); color: var(--blanc); }

.chiffres-ca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.chiffre-carte { border: 1px solid var(--bordure); border-radius: 14px; background: var(--blanc); padding: 22px 24px; }
.chiffre-valeur { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--bleu-profond); margin: 0 0 4px; }
.chiffre-nom { font-size: 13.5px; color: var(--gris-texte); margin: 0; }
.chiffre-nom small { display: block; margin-top: 4px; }

/* Intertitres chartés dans les articles */
.contenu-corps .intertitre, .page-contenu .intertitre {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--bleu-profond);
  margin: 34px 0 10px;
  letter-spacing: -0.2px;
}

@media (max-width: 960px) { .chiffres-ca { grid-template-columns: 1fr; } }

/* Éditeur visuel de l'administration (charte appliquée dans la zone d'écriture) */
.champ-editeur { margin-bottom: 16px; }
.etiquette-editeur { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#editeur { background: var(--blanc); min-height: 320px; font-family: var(--sans); font-size: 15.5px; }
#editeur-comprendre { background: var(--blanc); min-height: 180px; font-family: var(--sans); font-size: 15.5px; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: var(--bordure); background: var(--brume); }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: var(--bordure); }
.ql-editor h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--bleu-profond); }
.ql-editor blockquote { border-left: 3px solid var(--bleu); color: var(--gris-texte); }

/* Les contenus écrits à l'éditeur : mêmes styles chartés que les intertitres */
.page-contenu .contenu-corps h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--bleu-profond);
  margin: 34px 0 10px;
  letter-spacing: -0.2px;
}
.contenu-corps ul, .contenu-corps ol { margin: 0 0 18px 22px; }
.contenu-corps blockquote { border-left: 3px solid var(--bleu); margin: 0 0 18px; padding: 4px 0 4px 18px; color: var(--gris-texte); font-style: italic; }

/* Fin d'article pédagogique : l'idée clé et les points à retenir (chartés) */
.bloc-idee-cle {
  background: var(--brume-bleue);
  border-left: 4px solid var(--bleu-profond);
  border-radius: 0 12px 12px 0;
  padding: 20px 26px;
  margin: 36px 0 26px;
}
.idee-cle-etiquette {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bleu-profond);
  margin: 0 0 8px;
}
.idee-cle-texte {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  font-style: italic;
  color: var(--encre);
  margin: 0;
}
/* Palier 32 — « En bref », remis à l'échelle du texte.
   Les pastilles bleu plein de 28 px pesaient plus lourd que les phrases
   qu'elles numérotaient : l'œil voyait cinq gros points avant de voir cinq
   idées. Le chiffre passe en chiffre de titrage, discret, dans la marge —
   et le bloc devient un panneau tramé, reconnaissable d'un coup d'œil sans
   crier. */
.bloc-a-retenir {
  margin: 0 0 30px;
  background: var(--brume);
  border-radius: 12px;
  padding: 24px 28px 8px;
}
.bloc-a-retenir h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin: 0 0 16px;
}
.bloc-a-retenir ol { counter-reset: retenir; list-style: none; margin: 0; padding: 0; }
.bloc-a-retenir li {
  counter-increment: retenir;
  position: relative;
  padding: 0 0 16px 34px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  border-bottom: 1px solid var(--bordure);
}
.bloc-a-retenir li:last-child { border-bottom: 0; }
.bloc-a-retenir li::before {
  content: counter(retenir);
  position: absolute;
  left: 0;
  top: -1px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--bleu);
  line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* Palier 5 — masterclass, billetterie et lecteur intégré             */
/* ------------------------------------------------------------------ */

.session-masterclass { background: var(--brume-bleue); border: 1px solid var(--bordure); border-left: 4px solid var(--bleu-profond); border-radius: 10px; padding: 20px 22px; margin: 26px 0; }
.session-etiquette { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu-profond); margin: 0 0 6px; }
.session-date { margin: 0 0 6px; color: var(--encre); }
.session-places { font-family: var(--sans); font-size: 14px; color: var(--gris-texte); margin: 0 0 12px; }
.session-complet { color: #8A3B2E; font-weight: 700; }
.session-prix { margin: 0 0 12px; }
.session-inscrit { font-family: var(--sans); font-weight: 600; color: var(--bleu-profond); background: var(--blanc); border: 1px solid var(--bordure); border-radius: 8px; padding: 10px 14px; margin: 0 0 8px; }
.session-masterclass form { margin: 0 0 8px; }

.cadre-video { position: relative; aspect-ratio: 16 / 9; margin: 22px 0; background: var(--encre); border-radius: 10px; overflow: hidden; }
.cadre-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur-audio { width: 100%; margin: 8px 0 4px; }
.lecteur-integre, .lecteur-apercu, .lecteur-verrouille { display: block; }
.lecteur-apercu { border-left-color: var(--bleu); }

.flux-podcast { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.flux-attente { font-family: var(--sans); font-size: 14px; color: var(--gris-texte); }

/* Palier 144 — la pastille passe en BAS À DROITE : toutes les masterclass
   partageant la même présentation, elle se repère au même endroit. */
.pastille-session { position: absolute; bottom: 12px; right: 12px; background: var(--bleu-profond); color: var(--blanc); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }
/* Palier 256 — « Session complète » ne se crie pas comme une invitation :
   même forme, teinte neutre, pour dire l'état sans appeler au clic. */
.pastille-complete { background: #4a5568; }
.carte-session .carte-date-session { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--bleu-profond); margin: 0 0 4px; }
.carte-session .carte-places { font-family: var(--sans); font-size: 13px; color: var(--gris-texte); margin: 8px 0 0; }

.billetterie-session { border: 1px solid var(--bordure); border-radius: 10px; background: var(--blanc); padding: 12px 16px; margin: 0 0 12px; }
.billetterie-session summary { cursor: pointer; font-family: var(--sans); font-size: 14.5px; color: var(--encre); }
.billetterie-session[open] summary { margin-bottom: 10px; }

/* ------------------------------------------------------------------ */
/* Palier 6 — régie publicitaire (bannière, vidéo, onglet admin)      */
/* ------------------------------------------------------------------ */
.bloc-pub video { display: block; width: 100%; height: auto; border-radius: 8px; }
.section-pub { display: flex; justify-content: center; }
.section-pub .bloc-pub { max-width: 970px; width: 100%; }
/* Palier 28 f — LE BANDEAU EST UNE BOÎTE DE 970 × 250, la création tient
   DEDANS. Jamais d'agrandissement, jamais de recadrage : un pavé 300 × 250
   servi par erreur dans un bandeau se pose au centre au lieu d'être étiré
   sur 970 de large — il faisait 808 px de haut et dévorait la page.
   La hauteur est fixe : l'espace est réservé avant le chargement de
   l'image, donc la page ne saute pas sous les yeux du lecteur. */
.pub-banniere img, .pub-banniere video,
.pub-inter-blocs img, .pub-inter-blocs video {
  display: block;
  width: 100%;
  max-width: 970px;
  height: 250px;
  object-fit: contain;
  background: var(--brume);
  margin: 0 auto;
  border-radius: 10px;
}
.campagne-detail { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; padding-top: 6px; }
.campagne-visuel img, .campagne-visuel video { width: 100%; border-radius: 8px; border: 1px solid var(--bordure); }
.actions-campagne { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions-campagne form { display: inline; margin: 0; }
.bouton-danger { background: #8A3B2E; color: var(--blanc); border: 1px solid #8A3B2E; }
.statut-campagne { font-family: var(--sans); font-size: 12.5px; font-weight: 700; }
.statut-en-diffusion { color: #2E6B3F; }
.statut-en-pause { color: var(--gris-texte); }
.statut-terminee { color: #8A3B2E; }
.statut-programmee { color: var(--bleu-profond); }
.visuel-actuel img, .visuel-actuel video { max-width: 320px; border-radius: 8px; border: 1px solid var(--bordure); display: block; margin-top: 6px; }
@media (max-width: 720px) { .campagne-detail { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Finitions — recherche, newsletter, Ma fiche                        */
/* ------------------------------------------------------------------ */
.recherche-filtres { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.recherche-filtres input[type="search"] { flex: 1 1 260px; min-width: 220px; }
.recherche-filtres select { flex: 0 1 auto; }
.recherche-themes { margin: 0 0 22px; }
.themes-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.themes-libelle { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gris-texte); margin-right: 2px; }
.chip { font-family: var(--sans); font-size: 13px; color: var(--bleu-profond); background: var(--brume-bleue); border: 1px solid var(--bordure); border-radius: 99px; padding: 4px 12px; text-decoration: none; }
.chip:hover { background: var(--bleu-profond); color: var(--blanc); }
.themes-taxonomie summary { cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--bleu-profond); margin: 6px 0; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fiche-portrait { display: flex; gap: 18px; align-items: center; margin: 0 0 14px; }
.membre-portrait-champ { font-size: 13px; }
.membre-portrait-champ input { font-size: 12.5px; }

/* Palier 5 bis — alignement masterclass sur la référence TCCI */
.pastille-alerte { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: #B3402F; color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; vertical-align: 2px; }
.lien-relance { font-family: var(--sans); font-size: 13.5px; }
.alerte-email { background: #FDF3E7; border: 1px solid #E8C9A0; border-radius: 8px; padding: 12px 16px; font-family: var(--sans); font-size: 14px; }
.case-masterclass { align-self: end; }

/* Carte de session sans visuel : fond de secours, la pastille ne chevauche plus le texte */
/* Palier 187 — la hauteur minimale ne vaut QUE pour le cadre vide : avec une
   image, c'est le rapport 16:10 qui commande, comme partout ailleurs. */
.carte-session .carte-visuel { min-height: 150px; background: var(--brume-bleue); }
.carte-session .carte-visuel:has(img) { min-height: 0; }
.volets-natures { display: flex; gap: 6px; border-bottom: 2px solid var(--bordure); margin: 6px 0 18px; }
.volets-natures a { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--gris-texte); text-decoration: none; padding: 10px 16px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.volets-natures a.actif { color: var(--bleu-profond); border-bottom-color: var(--bleu-profond); }
.vide-groupe { padding: 10px 4px; }

/* Recadrage rond du portrait */
.recadrage-zone { margin-top: 8px; }
.recadrage-cercle { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; border: 2px solid var(--bleu-profond); background: var(--brume); touch-action: none; cursor: grab; position: relative; }
.recadrage-cercle img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.recadrage-outils { display: flex; gap: 10px; align-items: center; margin-top: 6px; max-width: 320px; }
.recadrage-note { font-family: var(--sans); font-size: 12px; color: var(--gris-texte); }

/* ---- Palier 7 : fiche de session, émargement, liste masterclass ---- */
.fiche-statut { max-width: 420px; margin-bottom: 1.2rem; }
.fiche-statut p { margin: .4rem 0 0; }
.bandeau-planifier {
  background: #fdf6dd; border: 1px solid #e8d48a; border-radius: 10px;
  padding: .9rem 1.1rem; margin: 0 0 1.2rem; font-size: .95rem;
}
.encadre-ouverture {
  border: 1px solid var(--filet, #e3ded6); border-radius: 10px;
  padding: 1rem 1.2rem; margin: 0 0 1.2rem; background: #fff;
}
.encadre-ouverture .session-etiquette { margin-top: 0; }
.encadre-ouvert { border-color: #b7d9b0; background: #f4faf2; }
.tableau-emargement { border: 1px solid var(--filet, #e3ded6); border-radius: 10px; overflow: hidden; margin-bottom: .8rem; }
.emargement-ligne {
  display: grid; grid-template-columns: 1.9fr 1.3fr .5fr .6fr .8fr;
  gap: .6rem; padding: .55rem .9rem; align-items: center;
  border-top: 1px solid var(--filet, #eee9e0); font-size: .93rem;
}
.emargement-ligne:first-child { border-top: none; }
.emargement-entete { font-weight: 600; background: #faf8f4; letter-spacing: .02em; font-size: .85rem; text-transform: uppercase; }
.case-emargement { font-size: .9rem; white-space: nowrap; }
.session-annulee { border-color: #e0b4b4; background: #fdf3f3; }
.mc-date-edition { display: none; gap: .4rem; align-items: center; }
.mc-date-edition { margin: .3rem 0 .1rem; }
.mc-date-edition.ouvert { display: block; }
.mc-date-affichee.cache { display: none; }
.bouton-crayon { background: none; border: none; cursor: pointer; padding: 0 .25rem; font-size: .95rem; line-height: 1; }
.mc-menu-statut { font-size: .85rem; padding: .2rem .35rem; border-radius: 7px; border: 1px solid var(--filet, #d8d2c8); max-width: 190px; }
.admin-ligne .admin-meta .mc-inscrits { white-space: nowrap; }
@media (max-width: 720px) { .emargement-ligne { grid-template-columns: 1fr 1fr; } }

/* ---- Palier 7 bis : mention du public visé des masterclass ---- */
.session-public, .carte-public {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .12rem .55rem; border-radius: 99px;
  background: #eef2ec; color: #3d5a3d; border: 1px solid #cfdccb;
}
.session-public { margin: 0 0 .45rem; }
.session-public-pro, .carte-public-pro {
  background: #eceaf4; color: #4a3d78; border-color: #d3cde8;
}

/* ---- Palier 8 : vignette-lecteur, séries, dernier épisode, plus lus, casque ---- */
.vignette-lecture {
  position: relative; display: block; overflow: hidden; border-radius: 12px;
  padding: 0; border: none; background: #e8e4dc; cursor: pointer; width: 100%;
}
.vignette-lecture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.triangle-lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(20, 24, 38, .62); backdrop-filter: blur(2px);
  transition: background .15s ease, transform .15s ease;
}
.triangle-lecture::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.vignette-lecture:hover .triangle-lecture { background: rgba(20, 24, 38, .82); transform: translate(-50%, -50%) scale(1.06); }
.vignette-pleine { border-radius: 14px; }
.vignette-pleine .triangle-lecture { width: 76px; height: 76px; }

/* Palier 161 (demande de Laurent) — LE DERNIER ÉPISODE ATTIRE L'ŒIL.
   Il avait la même discrétion qu'une ligne de liste : vignette de 320 px,
   fond blanc, filet gris. C'est pourtant la première chose que la page doit
   donner à entendre. Vignette portée à 420 px, fond brumé et filet bleuté
   pour détacher le bloc du reste, titre en corps de tête. */
.bloc-dernier-episode {
  display: grid; grid-template-columns: 420px 1fr; gap: 1.8rem; align-items: start;
  border: 1px solid var(--brume-bleue, #E9F0F8); border-radius: 16px;
  padding: 1.6rem; background: var(--brume, #F5F8FC);
}
.bloc-dernier-episode .vignette-lecture { aspect-ratio: 16 / 10; border-radius: 12px; }
.bloc-dernier-episode .vignette-lecture .triangle-lecture { width: 76px; height: 76px; }
.bloc-dernier-episode .vignette-lecture .triangle-lecture::after { border-width: 15px 0 15px 24px; }
.bloc-dernier-episode .carte-titre { font-size: 1.45rem; line-height: 1.22; margin: .15rem 0 .5rem; }
.bloc-dernier-episode .carte-chapo { font-size: 1.02rem; }
.dernier-episode-infos .lecteur-audio { width: 100%; margin-top: .6rem; }
.dernier-episode-acces {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .9rem 0 .2rem;
}
/* la vignette est tantôt un lien, tantôt un bouton : même allure dans les
   deux cas (le bouton n'hérite ni de la bordure ni du fond du navigateur) */
button.vignette-dernier { border: none; padding: 0; background: none; cursor: pointer; width: 100%; }
@media (max-width: 900px) { .bloc-dernier-episode { grid-template-columns: 340px 1fr; } }
@media (max-width: 760px) {
  .bloc-dernier-episode { grid-template-columns: 1fr; padding: 1.1rem; }
  .bloc-dernier-episode .carte-titre { font-size: 1.25rem; }
}

.grille-series { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.carte-serie .vignette-lecture { aspect-ratio: 1 / 1; margin-bottom: .6rem; }
.serie-sans-visuel {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: Fraunces, serif; font-size: 1.3rem; text-align: center; padding: 1rem;
  color: #4a4437; aspect-ratio: 1 / 1;
}
.entete-serie { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: start; }
.serie-visuel img { width: 100%; border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 700px) { .entete-serie { grid-template-columns: 1fr; } }
.liste-episodes { display: flex; flex-direction: column; gap: 1rem; }
.episode-ligne {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.1rem; align-items: start;
  border: 1px solid var(--filet, #e3ded6); border-radius: 12px; padding: .9rem; background: #fff;
}
.vignette-episode { aspect-ratio: 16 / 10; }
.vignette-episode .triangle-lecture { width: 46px; height: 46px; }
.vignette-episode .triangle-lecture::after { border-width: 9px 0 9px 15px; }
@media (max-width: 640px) { .episode-ligne { grid-template-columns: 1fr; } }

.section-plus-lus { margin-top: 2.2rem; }
.liste-plus-lus { counter-reset: pluslus; list-style: none; margin: 0; padding: 0; }
.liste-plus-lus li {
  counter-increment: pluslus; display: flex; align-items: baseline; gap: .8rem;
  padding: .65rem 0; border-top: 1px solid var(--filet, #eee9e0); font-size: 1.02rem;
}
.liste-plus-lus li::before {
  content: counter(pluslus); font-family: Fraunces, serif; font-weight: 700;
  font-size: 1.5rem; color: #b8b0a2; min-width: 1.6rem;
}
.liste-plus-lus li .carte-meta { margin-left: auto; white-space: nowrap; }

.casque-podcasts {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: inherit;
  border: 1px solid var(--filet, #d8d2c8); transition: background .15s ease;
}
.casque-podcasts:hover { background: #f1ede6; }

.serie-ligne + .serie-edition { display: none; margin: -0.4rem 0 .8rem; padding: .9rem 1rem; border: 1px dashed var(--filet, #d8d2c8); border-radius: 10px; }
.serie-edition.ouvert { display: block; margin-bottom: .8rem; padding: .9rem 1rem; border: 1px dashed var(--filet, #d8d2c8); border-radius: 10px; }
.formulaire-serie textarea, .formulaire-serie input, .formulaire-serie select { width: 100%; }

/* ---- Palier 9 : actions (coeur, partage), animateur, progression ---- */
.actions-contenu { display: flex; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 1.1rem; }
.bouton-action {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--filet, #d8d2c8); border-radius: 99px;
  background: #fff; padding: .32rem .85rem; font-size: .92rem; cursor: pointer;
  color: inherit; text-decoration: none; transition: background .15s ease;
}
.bouton-action:hover { background: #f1ede6; }
.bouton-action-actif { background: #fdeef0; border-color: #e8b6bf; color: #a33b52; }
.serie-animateur { margin: .8rem 0; }
.serie-animateur-lien { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.avatar-mini { width: 26px; height: 26px; font-size: .6rem; }
.episode-auteur { display: flex; align-items: center; gap: .5rem; margin: .15rem 0 .3rem; font-size: .95rem; }
.lecteur-episode { width: 100%; margin-top: .5rem; }
.barre-progression {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: rgba(255, 255, 255, .55);
}
.barre-progression span { display: block; height: 100%; background: #b23a52; }
.etat-ecoute {
  display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600; background: #f4efe6; color: #6b6353;
}
.etat-fini { background: #eaf4e8; color: #3d6b3d; }

/* ---- Palier 9 bis : présentation construite des séries ---- */
.serie-presentation { max-width: 42rem; }
.serie-presentation p { margin: 0 0 .8rem; font-size: 1.04rem; line-height: 1.65; }
.serie-presentation .intertitre { margin: 1.1rem 0 .5rem; font-size: 1.15rem; }

/* ---- Palier 9 ter : dernier épisode de série en vedette ---- */
.episode-vedette { border-width: 2px; border-color: #c8bfae; background: #fbf9f5; grid-template-columns: 240px 1fr; }
.section-note { font-size: .92rem; color: #8a8272; margin-left: auto; }
.carte-surtitre a { color: inherit; text-decoration: none; }
.carte-surtitre a:hover { text-decoration: underline; }

/* ---- Palier 9 quater : actions compactes dans les lignes d'episodes ---- */
.actions-episode { margin: .3rem 0 .2rem; }
.actions-episode .bouton-action { font-size: .84rem; padding: .22rem .7rem; }

/* ---- Palier 9 quater : descriptions de series en 2 lignes + points de suite ---- */
.carte-desc-serie {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45; max-height: 2.95em;
}
.points-suite { font-weight: 700; text-decoration: none; color: #23478A; }
.points-suite:hover { text-decoration: underline; }

/* ---- Palier 12 : actualités, dossiers, carrousel, pagination, vidéo flottante ---- */
.bandeau-dossier {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; min-height: 300px; border-radius: 16px; padding: 2rem;
  background-size: cover; background-position: center; background-color: #1c2a4a;
  color: #fff; text-decoration: none; text-align: center;
}
.bandeau-dossier .kicker { color: #e8e3da; }
.bandeau-dossier-titre { font-family: Fraunces, serif; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; }
.bloc-actus-rubrique .section-tete, .bloc-rubrique-accueil .section-tete { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bloc-actus-rubrique .bouton-section, .bloc-rubrique-accueil .bouton-section { margin-left: auto; }
.rubrique-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 860px) { .rubrique-duo { grid-template-columns: 1fr; } }

.carrousel-une { position: relative; }
.carrousel-diapo { display: none; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 1.6rem; align-items: center; }
.carrousel-diapo.active { display: grid; }
.carrousel-visuel img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.carrousel-titre { font-family: Fraunces, serif; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: .2rem 0 .6rem; }
.carrousel-titre a { color: inherit; text-decoration: none; }
.carrousel-points { display: flex; gap: .55rem; justify-content: center; margin-top: 1rem; }
.carrousel-point {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: #d8d2c8; transition: background .15s ease, transform .15s ease; padding: 0;
}
.carrousel-point.actif { background: #23478A; transform: scale(1.25); }
@media (max-width: 820px) { .carrousel-diapo.active { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 1.6rem 0 .4rem; flex-wrap: wrap; }
.page-numero {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--filet, #d8d2c8); color: inherit; padding: 0 .5rem;
}
.page-numero.actif { background: #23478A; border-color: #23478A; color: #fff; font-weight: 700; }
.page-suivante { margin-left: .6rem; text-decoration: underline; color: #23478A; }

.plus-lu-ligne { display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: .4rem; }
.plus-lu-rang { font-family: Fraunces, serif; font-weight: 700; font-size: 1.6rem; color: #b8b0a2; text-align: center; }

.zone-video .fermer-flottant { display: none; }
.video-flotte .cadre-video {
  position: fixed; right: 18px; bottom: 18px; width: min(360px, 62vw); z-index: 60;
  box-shadow: 0 12px 30px rgba(15, 20, 40, .35); border-radius: 12px; overflow: hidden;
}
.video-flotte { min-height: 200px; }
.video-flotte .fermer-flottant {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15, 20, 40, .72); color: #fff; font-size: 1.1rem; line-height: 1;
}
.evenement-externe { align-items: center; }

/* ---- Palier 13 : recherche et tris des lecteurs, menu sur deux lignes ---- */
.recherche-lecteurs { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .6rem; flex-wrap: wrap; }
.recherche-lecteurs input[type=search] { flex: 1; min-width: 260px; padding: .5rem .8rem; border: 1px solid var(--filet, #d8d2c8); border-radius: 10px; }
.tri-colonne { color: inherit; text-decoration: none; }
.tri-colonne:hover, .tri-colonne.actif { text-decoration: underline; font-weight: 700; }
.menu-inner { flex-wrap: wrap; row-gap: .15rem; column-gap: 1.05rem; }  /* palier 13 : le menu passe a la ligne (patron Psychologies), jamais tronque */

/* ---- Palier 13 : video de presentation des conteneurs ---- */
.cadre-video-presentation { max-width: 640px; margin: .9rem 0; }

/* ---- Palier 14 : formulaire de conteneur a pleine largeur + editeur ---- */
.formulaire-article label > input[type=text], .formulaire-article textarea { width: 100%; box-sizing: border-box; }
.formulaire-article { max-width: 1020px; }
#editeur-presentation { background: #fff; min-height: 220px; border-radius: 0 0 10px 10px; }
.bloc-editeur .ql-toolbar { border-radius: 10px 10px 0 0; }

/* ---- Palier 14 : page du dossier au patron Psychologies ---- */
.corps-dossier { max-width: 860px; }
.entete-dossier .kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #23478A; font-size: .82rem; margin: 0 0 .4rem; }
.chapo-dossier { font-size: 1.15rem; line-height: 1.55; color: #3c4356; font-weight: 600; max-width: 760px; }
.visuel-dossier { margin: 1.1rem 0; }
.visuel-dossier img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dossier-presentation a { color: #23478A; }
.dossier-presentation a:not(:where(p a)) { }
.dossier-presentation h2.intertitre, .dossier-presentation h2 { font-family: Fraunces, serif; margin-top: 1.6rem; }

/* ---- Palier 16/17 : bannieres a roulement — FONDU croise (25/07/2026) ---- */
/* Palier 26 : le bandeau ne deborde plus de la page — il respecte la marge
   editoriale comme tout le reste, et se voit arrondi comme une couverture. */
/* Palier 169 (constat de Laurent : « ça saute ») — LA BANNIÈRE NE CHANGE
   PLUS DE HAUTEUR EN TOURNANT. Les bandeaux inactifs étaient sortis du flux
   (position: absolute) : la hauteur du bloc suivait le bandeau ACTIF, et
   passait de l'un à l'autre selon la longueur du titre et du chapô. Ils
   partagent désormais la MÊME CELLULE de grille : le bloc prend la hauteur
   du plus grand, une fois pour toutes, et le fondu ne déplace plus rien.
   La coupe des chapôs à 200 signes (gabarits) règle le reste. */
.hero-roulement { position: relative; display: grid; max-width: var(--journal);
                  margin: 0 auto; padding: 8px 24px 0; }
.hero-roulement .hero { border-radius: 14px; overflow: hidden; }
.hero-roulement .hero-bandeau {
  text-decoration: none; cursor: pointer;
  grid-area: 1 / 1; opacity: 0; z-index: 1;
  transition: opacity .9s ease; pointer-events: none;
}
.hero-roulement .hero-bandeau.active {
  opacity: 1; z-index: 2; pointer-events: auto;
}
/* Palier 17 — lisibilite : le titre du bandeau (span) reprend le bloc et le blanc
   que portait l'ancien h1 (bug noir-sur-noir de la recette du 25/07/2026). */
a.hero, a.hero-bandeau { display: block; color: var(--blanc); }
.bandeaux-actualites a.hero-bandeau.active { display: flex; }
.hero-bandeau .hero-titre { display: block; color: var(--blanc); }
.hero-bandeau .hero-chapo { color: rgba(255, 255, 255, 0.92); }
.points-hero { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; }
.bandeaux-actualites .carrousel-points { margin-top: .8rem; }

/* ---- Palier 16 : entete de rubrique au patron Psychologies ---- */
.fil-ariane { display: flex; gap: .5rem; align-items: center; font-size: .92rem; color: #6a7186; margin: .2rem 0 .9rem; flex-wrap: wrap; }
.fil-ariane a { color: #23478A; text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane .ariane-actuel { color: #3c4356; font-weight: 600; }
.rubrique-description { max-width: 780px; color: #4a5064; line-height: 1.6; margin-top: .5rem; }
#editeur-presentation .ql-editor { min-height: 200px; }


/* ---- Palier 17 : carrousels « A la une » en GLISSEMENT gauche-droite ---- */
.carrousel-fenetre { overflow: hidden; contain: inline-size; }
/* palier 25 : « contain: inline-size » — la piste du carrousel aligne ses
   six diapositives cote a cote ; sans confinement, cette largeur cumulee
   remontait jusqu'a la page et poussait le contenu par-dessus la colonne
   publicitaire. La fenetre masque deja ce qui depasse : sa largeur ne doit
   rien devoir a son contenu. */
.carrousel-piste { display: flex; transition: transform .6s ease; }
.carrousel-piste .carrousel-diapo { display: grid; flex: 0 0 100%; min-width: 100%; box-sizing: border-box; padding: 0 2px; }
@media (max-width: 820px) { .carrousel-piste .carrousel-diapo { grid-template-columns: 1fr; } }

/* ---- Palier 17 : page Composition (tableau de bord editorial) ---- */
.compo-section { margin: 1.6rem 0; }
/* Palier 173 (constat de Laurent) — « MODIFIER » EN FACE DE SA LIGNE. La
   ligne était en flex avec retour à la ligne : dès qu'un titre tenait sur
   deux lignes, « modifier » basculait sur une troisième, et l'on ne savait
   plus à quel élément il se rapportait. Une grille à deux colonnes le tient
   désormais en face, quelle que soit la longueur du titre. */
.compo-ligne {
  display: grid; grid-template-columns: 1fr auto; gap: .9rem;
  align-items: start; padding: .38rem 0;
}
.compo-ligne + .compo-ligne { border-top: 1px solid var(--bordure, #E3E8F1); }
.compo-intitule { display: block; }
.compo-ligne .carte-meta { margin: 0; white-space: nowrap; }
/* la ligne des jauges garde sa disposition souple : trois éléments, pas deux */
.compo-ligne-jauge {
  display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
}
.compo-ligne-jauge .carte-meta { margin-left: auto; }

/* Le monogramme de nature : trois lettres, discrètes, devant le titre. */
.repere-nature {
  display: inline-block; margin-right: .45rem;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px; vertical-align: 1px;
  background: var(--brume-bleue, #E9F0F8); color: var(--bleu-profond);
}
.repere-podcast { background: #EAF3EC; color: #2C6B3F; }
.repere-masterclass { background: #F3EAFB; color: #6B3FA0; }
.repere-dossier { background: #FFF3D6; color: #7A5A12; }
.jauge { background: #e8e3da; border-radius: 999px; height: 12px; overflow: hidden; flex: 1; min-width: 160px; }
.jauge-remplie { background: #23478A; height: 100%; border-radius: 999px; }
.jauge-remplie.faible { background: #c0392b; }
.compo-vide { color: #c0392b; font-weight: 600; }
.compo-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.compo-carte { border: 1px solid var(--filet, #d8d2c8); border-radius: 14px; padding: 1rem 1.2rem; }
.compo-carte h3 { margin: 0 0 .5rem; font-family: var(--serif); }
.taux-global { font-size: 2.2rem; font-family: var(--serif); font-weight: 700; color: #23478A; }

/* ---- Palier 17 bis : case Administrateur grisee hors redaction ---- */
.case-inactive { opacity: .55; cursor: help; }

/* ---- Palier 18 : table de pilotage des articles ---- */
.pilotage-filtres { margin: .4rem 0 .8rem; }
.pilotage-filtres select { padding: .5rem .7rem; border: 1px solid var(--filet, #d8d2c8); border-radius: 10px; }
.pilotage-puces { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }

/* ---- Palier 19 (corr. 26/07) : filtres de pilotage clairs et alignes ---- */
.recherche-lecteurs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.recherche-lecteurs input[type=search] { flex: 1 1 320px; min-width: 240px; padding: .55rem .8rem; border: 1px solid var(--filet, #d8d2c8); border-radius: 10px; }
.recherche-lecteurs select { flex: 0 1 auto; max-width: 240px; padding: .55rem .7rem; border: 1px solid var(--filet, #d8d2c8); border-radius: 10px; background: #fff; }
.recherche-lecteurs select:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Palier 20 : signature d'un dossier ---- */
.dossier-signature { color: #4a5064; font-style: italic; margin-top: .4rem; }

/* ---- Palier 21 : photothèque plus lisible (visuel retenu) ---- */
.format-conseille { font-size: .9rem; color: #4a5064; background: #f3f0ea; border-radius: 8px; padding: .5rem .8rem; margin: .3rem 0 .7rem; }
.visuel-retenu[hidden] { display: none; }
.visuel-retenu { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; padding: .5rem .7rem; border: 1px solid #cdd7ea; background: #f4f7fd; border-radius: 10px; }
.visuel-retenu-libelle { font-weight: 600; color: #23478A; font-size: .92rem; }
.visuel-retenu img { width: 132px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.vignette { position: relative; }
.vignette .vignette-coche { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #23478A; color: #fff; display: none; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.vignette.active { outline: 3px solid #23478A; outline-offset: 1px; }
.vignette.active .vignette-coche { display: flex; }

/* ---- Palier 22 : bannière Actualités au format hero de l'accueil ---- */
.hero-actualites { margin: 0 -24px 1.5rem; }
.hero-actualites .hero { min-height: 460px; display: flex; align-items: center; background-size: cover; background-position: center 30%; }
.hero-actualites .hero-inner { padding: 64px 48px; width: 100%; }
.hero-actualites .hero-titre { display: block; }
@media (max-width: 860px) { .hero-actualites { margin: 0 -16px 1.2rem; } .hero-actualites .hero { min-height: 360px; } .hero-actualites .hero-inner { padding: 40px 20px; } }

/* ---- Palier 22 : Le coin lecture — cartes à couverture portrait ---- */
.grille-livres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem 1.6rem; }
.carte-livre { display: flex; flex-direction: column; }
.carte-livre-couv { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(18,24,43,.14); background: #eee; aspect-ratio: 3 / 4; }
.carte-livre-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-livre-couv .couv-absente { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1rem; text-align: center; font-family: var(--serif); color: #4a5064; }
.livre-parution { position: absolute; left: 0; bottom: 0; right: 0; background: rgba(18,24,43,.86); color: #fff; font-size: .78rem; letter-spacing: .04em; padding: .4rem .6rem; text-transform: uppercase; }
.carte-livre-infos { padding-top: .7rem; }
.carte-livre-surtitre { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: #23478A; margin: 0 0 .25rem; }
.carte-livre-titre { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; margin: 0 0 .3rem; }
.carte-livre-titre a { color: inherit; text-decoration: none; }
.carte-livre-accroche { color: #4a5064; font-size: .92rem; line-height: 1.45; margin: 0; }

/* Fiche d'un livre */
.fiche-livre-haut { display: grid; grid-template-columns: 300px 1fr; gap: 2.4rem; align-items: start; }
.fiche-livre-couv img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(18,24,43,.2); aspect-ratio: 3 / 4; object-fit: cover; }
.fiche-livre-couv .bouton { display: block; text-align: center; margin-top: 1rem; }
.fiche-livre-meta { color: #4a5064; margin: .3rem 0 1rem; }
@media (max-width: 760px) { .fiche-livre-haut { grid-template-columns: 1fr; } .fiche-livre-couv { max-width: 240px; margin: 0 auto; } }


/* ---- Palier 23 : tableau de bord de la régie ---- */
.inventaire-pub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.inventaire-carte { border: 1px solid var(--filet, #d8d2c8); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; }
.inventaire-carte.occupe { border-left: 4px solid #2e7d55; }
.inventaire-carte.libre { border-left: 4px solid #c8a24a; }
.inventaire-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.inventaire-nom { font-weight: 700; font-family: var(--serif); }
.inventaire-etat { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.inventaire-carte.occupe .inventaire-etat { color: #2e7d55; }
.inventaire-carte.libre .inventaire-etat { color: #b5892f; }
.inventaire-pages { font-size: .82rem; color: #23478A; font-weight: 600; margin: .2rem 0; }
.inventaire-fiche { font-size: .84rem; color: #4a5064; margin: .3rem 0 0; }
.inventaire-occupe { font-size: .8rem; color: #2e7d55; margin: .4rem 0 0; }
.fiche-media-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.fiche-media-bloc h3 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 .4rem; color: #23478A; }
.fiche-media-bloc p { color: #4a5064; line-height: 1.5; margin: 0; }
.fiche-media-formats { margin: .3rem 0 0; padding-left: 1.1rem; color: #4a5064; font-size: .88rem; }
.fiche-media-formats li { margin-bottom: .35rem; }
@media (max-width: 760px) { .fiche-media-grille { grid-template-columns: 1fr; } }



/* ---- Palier 24 : la bande inter-blocs (entre deux sections, dans le flux) ---- */
.bande-inter-blocs { display: flex; flex-direction: column; align-items: center; margin: 2.5rem auto; }
.pub-inter-blocs { text-align: center; }
.pub-inter-blocs .pub-etiquette { text-align: center; }

/* ---- Palier 24 : L'équilibre publicitaire (jauges par page) ---- */
.equilibre-pub { display: flex; flex-direction: column; gap: .8rem; }
.equilibre-ligne { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 1rem; }
.equilibre-page { font-weight: 600; font-family: var(--serif); }
.equilibre-jauge { height: 14px; background: #e6e0d6; border-radius: 99px; overflow: hidden; }
.equilibre-remplie { display: block; height: 100%; background: #23478A; border-radius: 99px; }
.equilibre-remplie.faible { background: #B3402F; }
.equilibre-compte { font-size: .85rem; color: #4a5064; white-space: nowrap; }
@media (max-width: 640px) { .equilibre-ligne { grid-template-columns: 1fr; gap: .3rem; } }

/* ==================================================================
   PALIER 26 — LE RAIL DE BLOC (patron Le Monde / Capital / Geo)
   ------------------------------------------------------------------
   Correction d'approche du palier 25. La publicite n'est plus une
   colonne qui court le long de TOUTE la page : c'est un rail attache
   a UN BLOC editorial choisi. C'est ce que font reellement les sites
   de reference — leur composition est dynamique : ici deux cartes et
   un pave a cote, la trois cartes sur toute la largeur, ailleurs un
   bandeau pleine largeur du journal.

   Consequence heureuse : la largeur de lecture ne depend plus de la
   presence d'une publicite, et les blocs qui n'en portent pas
   respirent sur toute la largeur du journal.
   ================================================================== */

.avec-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
             column-gap: 40px; align-items: start; }
.avec-rail-corps { min-width: 0; }
.avec-rail-corps > .section { margin-top: 0; }

/* Le pave descend a la hauteur du premier contenu, sous le titre de
   section, plutot que de s'aligner sur le titre lui-meme. */
.rail { padding-top: 54px; }
.rail .bloc-pub { position: sticky; top: 24px; margin: 0; }
.rail .bloc-pub img {
  display: block; width: 300px; height: auto;
  max-height: 600px; border-radius: 10px;
}
/* Palier 28 f — une vidéo ne connaît pas sa taille avant d'être lue : lui
   laisser « height: auto » la fait naître à 300 × 150 puis grandir d'un coup,
   et la page saute sous les yeux du lecteur. Boîte fixe, création contenue,
   jamais recadrée — un clip large comme un clip haut y tiennent. */
.rail .bloc-pub video {
  display: block; width: 300px; height: 400px;
  object-fit: contain; background: var(--brume); border-radius: 10px;
}

/* Ecrans etroits : le rail passe SOUS son bloc, dans le fil de lecture. */
@media (max-width: 1079px) {
  .avec-rail { grid-template-columns: 1fr; }
  .rail { padding-top: 0; margin: 4px auto 8px; }
  .rail .bloc-pub { position: static; }
}

/* ------------------------------------------------------------------
   Correctif de pied de page (defaut PREEXISTANT, releve au palier 25)
   La regle « .footer-colonnes { repeat(4, 1fr) } », ajoutee plus bas
   dans la feuille qu'elle ne devait, annulait silencieusement le
   passage a une colonne unique sur mobile : le pied de page depassait
   de l'ecran et TOUT le site glissait lateralement au doigt.
   Reaffirmee ici, en fin de feuille, elle reprend le dessus.
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .footer-haut, .footer-colonnes { grid-template-columns: 1fr; gap: 26px; }
}

/* Palier 27 — la console des emplacements, gabarit par gabarit */
.gabarit-pub { border: 1px solid var(--bordure); border-radius: 12px;
               padding: 18px 20px; margin: 0 0 14px; background: var(--blanc); }
.gabarit-tete { display: grid; grid-template-columns: 1fr 180px auto;
                gap: 16px; align-items: center; }
.gabarit-nom { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; }
.gabarit-note { color: var(--gris-texte); font-size: 14px; margin: 6px 0 0; }
.gabarit-places { list-style: none; margin: 12px 0 0; padding: 0; }
.gabarit-place { display: grid; grid-template-columns: 1fr 210px 180px 90px;
                 gap: 14px; align-items: center; padding: 8px 0;
                 border-top: 1px solid var(--bordure); font-size: 14.5px; }
.gabarit-place label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
/* Une place fermée est GRISÉE, jamais barrée : barré se lit « indisponible »,
   or elle est parfaitement disponible — c'est vous qui l'avez fermée. */
.gabarit-place.place-eteinte .place-libelle { color: var(--gris-texte); }
.place-badge { font-size: 12px; font-weight: 700; letter-spacing: .6px;
               text-transform: uppercase; text-align: right;
               color: #1d7a4c; }
.gabarit-place.place-eteinte .place-badge { color: var(--gris-texte); }
/* La barre d'enregistrement reste sous les yeux : le formulaire fait dix
   gabarits de long, un bouton tout en bas passait inaperçu. */
.barre-enregistrer { position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 14px 18px; margin-top: 10px;
  box-shadow: 0 -6px 20px rgba(18, 24, 43, 0.08); }
.barre-note { color: var(--gris-texte); font-size: 14px; }
@media (max-width: 860px) { .barre-enregistrer { flex-direction: column; align-items: stretch; } }
.place-format, .place-etat { color: var(--gris-texte); font-size: 13.5px; }
@media (max-width: 860px) {
  .gabarit-tete, .gabarit-place { grid-template-columns: 1fr; gap: 6px; }
}

/* Palier 28 h — pictogramme de section et sous-titre en italique */
/* La taille est portée par le pictogramme LUI-MÊME, pas par son contexte :
   posé dans un <h1> non prévu, il s'étendait à toute la largeur de la page.
   En « em », il suit la taille du titre qui l'accueille, quel qu'il soit. */
.icone-section {
  /* 0,82 em plutôt que 1 em : un tracé plein pèse optiquement plus lourd
     qu'une lettre de même hauteur. À 1 em, le pictogramme écrasait le titre. */
  width: 0.82em;
  height: 0.82em;
  vertical-align: -0.06em;
  margin-right: 0.34em;
  color: var(--bleu);
  flex: 0 0 auto;
}
.section-sous-titre { font-style: italic; }


/* Palier 30 — la page des ressources d'aide */
.avertissement-urgence {
  border-left: 4px solid #b3261e; background: #fdf3f2;
  padding: 14px 18px; border-radius: 8px; margin: 6px 0 30px;
}
.avertissement-urgence p { margin: 0; }
.liste-lignes-aide { list-style: none; margin: 0; padding: 0; }
.ligne-aide {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--bordure); align-items: baseline;
}
.ligne-numero {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--bleu-profond); white-space: nowrap;
}
.ligne-corps { display: block; }
.ligne-detail { display: block; color: var(--gris-texte); font-size: 15px; margin-top: 2px; }
.note-verification { color: var(--gris-texte); font-size: 14.5px; margin-top: 34px; }
.lien-ressources { font-weight: 600; }
.lien-aide-pied { font-weight: 600; }
@media (max-width: 720px) {
  .ligne-aide { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Palier 39 — la section « Comprendre ce qui se joue » ----------------
   Elle vit DANS le fil de lecture, pas en fin d'article : l'habillage doit
   marquer un changement de registre — la couche clinique — sans rompre la
   colonne de texte. D'où le filet supérieur plutôt qu'un cadre fermé, et la
   même famille typographique que le corps pour le texte lui-même. */
.bloc-comprendre {
  margin: 36px 0 34px;
  padding: 24px 30px 6px;
  background: var(--brume);
  border-top: 3px solid var(--bleu-profond);
  border-radius: 0 0 12px 12px;
  font-family: var(--lecture);
  font-size: 18px;
  line-height: 1.8;
}
.comprendre-titre {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--bleu-profond);
  margin: 0 0 14px;
}
.bloc-comprendre p { margin: 0 0 20px; }
@media (max-width: 700px) {
  .bloc-comprendre { padding: 20px 20px 4px; font-size: 17px; }
  .comprendre-titre { font-size: 19px; }
}

/* Rappel de structure au-dessus de l'éditeur (formulaire de rédaction) */
.rappel-structure {
  background: var(--brume-bleue);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0 6px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bleu-profond);
}
.rappel-structure strong { font-weight: 700; }
.rappel-structure code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #FFFFFF;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Table de pilotage — état de la section, trois valeurs */
.etat-comprendre { font-size: 12px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.etat-placee { background: #E4F1E8; color: #23603A; }
.etat-fin { background: #FDF3E7; color: #7A4B12; }
.etat-absente { background: var(--brume); color: var(--gris-texte); }

/* ---- Palier 39 ter — le repère de section DANS l'éditeur -----------------
   Il doit se lire comme un objet posé, jamais comme du texte : sans cela
   l'auteur le confond avec un intertitre, et son propre titre « Comprendre ce
   qui se joue » devient indiscernable du repère. Non éditable côté Quill. */
.ql-editor p.marqueur-comprendre {
  display: block;
  background: var(--brume-bleue);
  border: 1px dashed var(--bleu-profond);
  border-radius: 8px;
  padding: 12px 16px 12px 42px;
  margin: 20px 0;
  color: var(--bleu-profond);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;
  position: relative;
  cursor: default;
  user-select: none;
}
.ql-editor p.marqueur-comprendre::before {
  content: "";
  position: absolute;
  left: 15px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 1.7px solid var(--bleu-profond);
  border-radius: 50% 50% 45% 45%;
  border-bottom-width: 4px;
}

/* ---- Palier 41 — la page du pilotage financier -------------------------- */
.table-pilotage { width: 100%; border-collapse: collapse; margin: 12px 0 28px; font-size: 14px; }
.table-pilotage th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gris-texte); border-bottom: 2px solid var(--bordure); padding: 8px 10px; }
.table-pilotage td { padding: 9px 10px; border-bottom: 1px solid var(--bordure); }
.cartes-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 24px; }
.cloture-bloc { margin: 0 0 14px; border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 16px; background: #fff; }
.cloture-bloc summary { cursor: pointer; font-size: 14.5px; }

/* ---- Palier 42 — le pilotage devient un outil ---------------------------- */
.barre-periode { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }
.granularites { display: flex; gap: 4px; background: var(--brume); border-radius: 10px; padding: 4px; }
.granularites a { padding: 7px 16px; border-radius: 7px; font-size: 14px; color: var(--gris-texte); text-decoration: none; }
.granularites a.actif { background: #fff; color: var(--bleu-profond); font-weight: 600; box-shadow: 0 1px 3px rgba(20,40,80,0.12); }
.navigation-periode { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.navigation-periode a { text-decoration: none; font-size: 18px; }
.lien-aujourdhui { font-size: 13px; color: var(--gris-texte); }

/* Graphiques en barres — CSS pur, auto-hébergé comme tout le reste */
.graphique { display: flex; align-items: flex-end; gap: 3px; height: 190px; margin: 10px 0 4px; padding: 0 2px; border-bottom: 2px solid var(--bordure); }
.colonne { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.barres { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; }
.barre { width: 100%; border-radius: 2px 2px 0 0; }
.barre-abo { background: var(--bleu-profond); }
.barre-pub { background: #7FA6D9; }
.barre-billets { background: #C9A227; }
.barre-lectures { background: #4E8B6B; }
.graphique-lectures { height: 120px; }
.graduation { font-size: 10px; color: var(--gris-texte); text-align: center; margin-top: 4px; overflow: hidden; white-space: nowrap; }
.legende-graphique { font-size: 13px; color: var(--gris-texte); margin: 6px 0 26px; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: baseline; }
.pastille-abo { background: var(--bleu-profond); }
.pastille-pub { background: #7FA6D9; }
.pastille-billets { background: #C9A227; }

/* Saisies posées dans les tableaux */
.saisie-tableau { width: 58px; padding: 5px 8px; border: 1px solid var(--bordure); border-radius: 6px; font-size: 14px; text-align: right; }
.saisie-large { width: 84px; }
.col-pct { width: 110px; }
.col-montant { text-align: right; width: 130px; }
.table-pilotage td.col-montant { font-variant-numeric: tabular-nums; }
.ligne-total td { border-top: 2px solid var(--bordure); border-bottom: none; padding-top: 10px; }
.reglages-en-ligne { font-size: 14.5px; margin: 4px 0 10px; }
.bloc-cloture { background: var(--brume); border-radius: 12px; padding: 16px 20px; margin: 4px 0 26px; }
.formulaire-pilotage .bouton-principal { margin: 6px 0 26px; }
@media (max-width: 700px) { .graduation { display: none; } .col-pct { width: 84px; } }

/* ---- Palier 43 — les onglets du pilotage --------------------------------- */
.onglets-pilotage { display: flex; gap: 2px; border-bottom: 2px solid var(--bordure); margin: 4px 0 18px; }
.onglets-pilotage a { padding: 10px 20px 9px; font-size: 15px; color: var(--gris-texte); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.onglets-pilotage a.actif { color: var(--bleu-profond); font-weight: 600; border-bottom-color: var(--bleu-profond); }
.filtres-pilotage { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }

/* ---- Palier 44 — le suivi des règlements --------------------------------- */
.etat-regle { background: #DDEBE2; color: #1E4D33; }
.forme-en-ligne { display: inline; margin-left: 6px; }
.bouton-secondaire { border: 1px solid var(--bleu-profond); color: var(--bleu-profond); background: #fff; border-radius: 7px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.bouton-secondaire:hover { background: var(--brume-bleue); }
.bouton-discret { border: none; background: none; color: var(--gris-texte); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.fil-retour { font-size: 14px; margin: 0 0 4px; }

/* ---- Palier 45 — l'alerte des paiements à faire -------------------------- */
.alerte-paiements { background: #FDF3E7; border: 1px solid #E8C9A0; border-radius: 12px; padding: 16px 20px; margin: 0 0 26px; }
.alerte-paiements h2 { margin: 0 0 10px; font-size: 18px; color: #7A4B12; }
.paiement-du { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #F0DFC8; flex-wrap: wrap; }
.paiement-du:first-of-type { border-top: none; }

/* ---- Palier 49 — transparence : liens d'intérêt, note de correction ------ */
.bloc-transparence { background: var(--brume); border-left: 3px solid var(--gris-texte); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; }
.bloc-transparence h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gris-texte); margin: 0 0 6px; }
.bloc-transparence p { font-size: 14.5px; margin: 0; }
.note-correction { background: #FDF6E3; border: 1px solid #E8D9A0; border-radius: 8px; padding: 10px 16px; margin: 14px 0 4px; font-size: 14.5px; }
.signaler-erreur { font-size: 13px; color: var(--gris-texte); margin: 26px 0 10px; }
.page-texte { max-width: 760px; }
.page-texte h2 { font-family: var(--serif); font-size: 22px; margin: 30px 0 10px; }
.page-texte p { line-height: 1.75; }

/* ---- Palier 50 — le menu mobile (standard hamburger) --------------------- */
.bouton-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.bouton-menu span { display: block; width: 24px; height: 2.5px; background: var(--bleu-profond); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-entete-mobile, .menu-compte { display: none; }

@media (max-width: 960px) {
  .bouton-menu { display: inline-flex; }
  .lien-header { display: none; }
  .menu { position: fixed; inset: 0; z-index: 300; background: var(--blanc); border-top: none; transform: translateX(-102%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; overflow-y: auto; }
  body.menu-ouvert .menu { transform: none; visibility: visible; transition: transform 0.25s ease; box-shadow: 0 0 40px rgba(20, 40, 80, 0.25); }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .bouton-menu span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-ouvert .bouton-menu span:nth-child(2) { opacity: 0; }
  body.menu-ouvert .bouton-menu span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 28px; overflow: visible; }
  .menu-entete-mobile { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 12px; border-bottom: 1px solid var(--bordure); }
  .menu-titre-mobile { font-family: var(--serif); font-size: 22px; color: var(--bleu-profond); }
  .fermer-menu { background: none; border: none; font-size: 22px; color: var(--bleu-profond); cursor: pointer; padding: 6px 10px; }
  .menu .menu-lien { padding: 15px 22px; font-size: 17px; border-bottom: 1px solid var(--brume); border-left: 3px solid transparent; }
  .menu .menu-lien.actif { border-left-color: var(--bleu-profond); background: var(--brume); border-bottom-color: var(--brume); }
  .menu-compte { display: block; margin-top: 10px; border-top: 2px solid var(--bordure); }
  .menu-lien-abonner { color: var(--bleu-profond); font-weight: 700; }
  /* Les grands tableaux (pilotage, admin) défilent au doigt sans casser la page */
  .table-pilotage { display: block; overflow-x: auto; }
  /* Les onglets de l'administration défilent au doigt (standard mobile) */
  .admin-nav, .volets-natures { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
}

/* ---- Palier 51 — encart de lancement (monte du bas) ---------------------- */
.encart-promo {
  /* Palier 55 — l'encart occupe toute la largeur du pavé central (la même
     que le corps du journal) : il doit se voir, pas se glisser dans un coin. */
  position: fixed; left: 50%; bottom: 0; z-index: 250;
  width: min(var(--journal), calc(100% - 24px));
  transform: translate(-50%, 110%);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: var(--blanc); border: 1px solid var(--bordure);
  border-bottom: none; border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px rgba(20, 40, 80, 0.18);
  padding: 22px 32px 24px; text-align: left;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.encart-promo-corps { flex: 1 1 320px; min-width: 0; }
.encart-promo-visible { transform: translate(-50%, 0); }
.encart-promo-titre {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bleu);
  margin: 0 0 6px;
}
.encart-promo-texte { font-size: 16px; color: var(--gris-texte); margin: 0; line-height: 1.55; }
.encart-promo-texte strong { color: var(--bleu-profond); }
.encart-promo-bouton { display: inline-block; flex: 0 0 auto; white-space: nowrap; }
.encart-promo-fermer {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 17px; line-height: 1;
  color: var(--gris-texte); cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.encart-promo-fermer:hover { background: var(--brume); color: var(--bleu-profond); }
@media (max-width: 700px) {
  .encart-promo { width: 100%; border-radius: 14px 14px 0 0; padding: 16px 18px 18px; gap: 12px; display: block; }
  .encart-promo-texte { font-size: 15px; margin: 0 0 14px; }
  .encart-promo-bouton { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .encart-promo { transition: none; }
}

/* Page des formules — prix promotionnel */
.bandeau-promotion {
  background: var(--brume); border-left: 3px solid var(--bleu-profond);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 12px auto 0;
  max-width: 760px; font-size: 15px; color: var(--gris-texte);
}
.formule-economie { font-size: 13.5px; color: var(--bleu); margin: -6px 0 12px; font-weight: 600; }

/* Palier 52 — formule annoncée mais pas encore vendue */
.carte-a-venir { opacity: 0.88; border-style: dashed; }
.formule-badge-attente { background: var(--brume); color: var(--gris-texte); }
.formule-a-venir { background: var(--brume); color: var(--gris-texte); cursor: default; }

/* Palier 53 — écran des tarifs */
.bloc-reglage { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; padding: 20px 22px; margin: 22px 0; }
.bloc-reglage h2 { font-family: var(--serif); font-size: 22px; color: var(--bleu-profond); margin: 0 0 10px; }
.reglage-aide { font-size: 14.5px; color: var(--gris-texte); line-height: 1.6; margin: 10px 0; }
.reglage-aide input[type="text"], .reglage-aide input[type="number"], .reglage-aide input[type="date"] { padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 15px; }
.reglage-aide input[type="text"] { min-width: 150px; }
.reglage-aide input[type="number"] { width: 80px; }
.saisie-tableau input[type="text"] { width: 90px; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; text-align: right; }
.etat-actif { color: #2E7D32; }
.mention-discrete { font-size: 13px; color: var(--gris-texte); opacity: 0.85; }
.actions-formulaire { margin: 24px 0 8px; }
.formulaire-tarifs .case { display: inline-block; margin-right: 18px; }

@media (max-width: 960px) {
  /* Palier 53 — la barre du pilotage compte désormais quatre onglets :
     elle défile au doigt comme celle de l'administration. */
  .onglets-pilotage { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

  /* Le tableau des tarifs devient une liste : pour de la SAISIE, un
     défilement horizontal est pénible au doigt — chaque formule prend une
     carte, chaque cellule annonce son intitulé. */
  .saisie-tableau, .saisie-tableau tbody, .saisie-tableau tr, .saisie-tableau td { display: block; width: auto; }
  .saisie-tableau thead { display: none; }
  .saisie-tableau tr { border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
  .saisie-tableau td { border: none; padding: 5px 0; }
  .saisie-tableau td::before { content: attr(data-intitule); display: block; font-size: 12.5px; color: var(--gris-texte); margin-bottom: 3px; }
  .saisie-tableau td:first-child::before { content: none; }
  .bloc-reglage { padding: 16px 14px; }
  .reglage-aide input[type="text"] { min-width: 0; width: 100%; max-width: 220px; }
}

/* Palier 54 — rappel du dossier auquel appartient un article */
.rappel-dossier { background: var(--brume); border-left: 3px solid var(--bleu-profond); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 28px 0; }
.rappel-dossier-etiquette { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bleu); margin: 0 0 5px; }
.rappel-dossier p:last-child { margin: 0; font-family: var(--serif); font-size: 19px; }
.rappel-dossier a { color: var(--bleu-profond); }

/* Palier 61 — l'affordance des cartes : on dit où le clic mène */
/* Palier 136 — « Lire l'article » prend l'aspect d'un BOUTON, comme dans le
   bloc « À la une » : « les gens ont l'habitude de voir ces boutons-là »
   (Laurent). Le repère reste un <span> — la carte entière est déjà un lien,
   et un lien dans un lien n'est pas valide — mais il en a désormais l'allure
   et la taille de cible. */
.carte-lire {
  display: inline-block; margin-top: 12px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  background: var(--bleu-profond); color: var(--blanc);
  border-radius: 999px; padding: 9px 20px;
  transition: background .15s ease;
}
.carte-lien:hover .carte-lire, .ligne-lien:hover .carte-lire, a.carte-lire:hover {
  background: var(--encre); text-decoration: none;
}

/* Palier 62 — garde-fou : la démonstration ne revient plus incognito */
.alerte-demo { background: #B3402F; color: #fff; text-align: center; padding: 10px 16px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; }
.alerte-demo strong { text-decoration: underline; }

/* Palier 63 — Vos questions au thérapeute */
.bloc-cadre { background: var(--brume); border-left: 3px solid var(--bleu-profond); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0 24px; font-size: 15px; }
.formulaire textarea, .formulaire select { width: 100%; max-width: 720px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; font-size: 15.5px; font-family: inherit; }
.formulaire label { display: block; font-weight: 600; margin-bottom: 6px; }
.liste-questions { list-style: none; padding: 0; }
.liste-questions li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--brume); flex-wrap: wrap; }
.question-date { color: var(--gris-texte); font-size: 13.5px; flex: 0 0 auto; }
.question-texte { flex: 1 1 300px; }
.question-statut { font-family: var(--sans); font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--brume); color: var(--gris-texte); }
.question-statut-retenue { background: #FFF3D6; color: #8A6100; }
.question-statut-repondue { background: #E3F1E4; color: #2E7D32; }
.cellule-question { max-width: 480px; }
.acces-questions { margin: 0 0 14px; }

/* Palier 64-65 — l'appel à candidatures dans le bandeau rédaction.
   Les cartes du bandeau sont bleu nuit : TOUT texte y passe en blanc
   (constat de Laurent : « la police derrière ne se détache pas »). */
.avatar-appel { display: inline-flex; align-items: center; justify-content: center; background: var(--blanc) !important; color: var(--bleu-profond); font-size: 30px; font-weight: 700; border: 2px dashed rgba(255, 255, 255, 0.9); }
.redaction-visages .equipe-nom, .redaction-visages a.equipe-mini:hover .equipe-nom { color: var(--blanc); }
.redaction-visages .equipe-titre, .equipe-appel .equipe-titre { color: rgba(255, 255, 255, 0.85); }
.equipe-role { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.16); border-radius: 99px; padding: 2px 10px; display: inline-block; margin: 6px 0 0; }
.redaction-lien { display: flex; gap: 12px; flex-wrap: wrap; }
.equipe-question { font-family: var(--serif); font-size: 24px; color: var(--bleu-profond); margin: 26px 0 6px; }

/* Palier 70 — l'entrée en lecture depuis le hero du dossier */
.dossier-entree { margin: 18px 0 0; }
.visuel-dossier a { display: block; }
.visuel-dossier a:hover img { opacity: 0.94; }

/* Palier 71 — proposer un événement + pages vides chaleureuses */
.bloc-proposer-evenement { background: var(--brume); border: 1px solid var(--bordure); border-radius: 16px; padding: 26px 30px; margin-top: 40px; }
.formulaire-evenement input[type="text"], .formulaire-evenement input[type="email"], .formulaire-evenement input[type="url"], .formulaire-evenement input[type="number"], .formulaire-evenement textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; font-size: 15.5px; font-family: inherit; background: var(--blanc); }
.formulaire-deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.formulaire-evenement label { display: block; font-weight: 600; margin-bottom: 6px; }
.formulaire-evenement .case { font-weight: 400; margin-top: 8px; }
.champ-invisible { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.vide-chaleureux { text-align: center; padding: 46px 20px 30px; color: var(--gris-texte); }
.vide-chaleureux .vide-titre { font-family: var(--serif); font-size: 26px; color: var(--bleu-profond); margin: 0 0 8px; }
@media (max-width: 700px) { .formulaire-deux-colonnes { grid-template-columns: 1fr; } .bloc-proposer-evenement { padding: 18px 16px; } }

/* Palier 74 — la vitalité exigeante : objectif réglable, taux par rubrique */
.vitalite-objectif { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.vitalite-objectif select { padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; font-family: inherit; }
.vitalite-rubriques { list-style: none; padding: 0; margin: 0 0 14px; }
.vitalite-rubriques li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--brume); font-size: 14px; }
.vitalite-pastille { font-family: var(--sans); font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.vitalite-ok { background: #E3F1E4; color: #2E7D32; }
.vitalite-moyen { background: #FFF3D6; color: #8A6100; }
.vitalite-faible { background: #FBE4E0; color: #B3402F; }

/* Palier 75 — réassurance et visuel de la carte Premium */
.reassurance { list-style: none; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding: 0; margin: 22px 0 26px; }
.reassurance li { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--encre); }
.reassurance li::before { content: "\2713\00a0\00a0"; color: #2E7D32; font-weight: 800; }
.carte-formule.formule-illustree { overflow: hidden; }

/* Palier 76 — la réponse personnelle du thérapeute */
.question-bloc { display: block; }
.question-entete { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; flex-wrap: wrap; }
.question-reponse { background: var(--brume); border-left: 3px solid var(--bleu-profond); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 8px 0 4px; }
.reponse-etiquette { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--bleu-profond); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.formulaire-reponse { margin-top: 8px; }
.formulaire-reponse textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; font-family: inherit; }
.bouton-petit { font-size: 13px; padding: 6px 14px; margin-top: 6px; }

/* Palier 77 — les visuels fournis : bande de page */
.page-visuel { display: block; width: 100%; max-height: 300px; object-fit: cover; object-position: center 22%; border-radius: 14px; margin: 6px 0 20px; }

/* Palier 78 — la vignette du visuel proposé */
.proposition-vignette { max-width: 130px; max-height: 90px; border-radius: 8px; margin-top: 6px; display: block; object-fit: cover; }

/* Palier 79 — le formulaire d'événement respire : une colonne, grands champs */
.formulaire-evenement { max-width: 640px; }
.formulaire-evenement input[type="text"], .formulaire-evenement input[type="email"], .formulaire-evenement input[type="tel"], .formulaire-evenement input[type="url"], .formulaire-evenement input[type="number"], .formulaire-evenement input[type="date"], .formulaire-evenement textarea { padding: 13px 14px; font-size: 16px; }
.formulaire-evenement > p, .formulaire-evenement p { margin: 0 0 18px; }
.apercu-televersement { max-width: 340px; max-height: 240px; border-radius: 10px; border: 1px solid var(--bordure); display: block; }

/* Palier 80 — les coups de cœur : cartes d'humanité */
.coeur-carte { display: block; background: linear-gradient(135deg, #FDF6F0, #F3F6FB); border: 1px solid var(--bordure); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.coeur-carte:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30, 50, 90, 0.10); }
.coeur-titre { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--bleu-profond); margin: 0 0 6px; }
.coeur-pourquoi { font-size: 14.5px; line-height: 1.55; color: var(--encre); margin: 0 0 10px; }
.coeur-voir { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--bleu-profond); margin: 0; }
.coeur-etiquette { color: #B3402F; }
.bloc-coeur { max-width: 560px; margin-left: auto; margin-right: auto; }
.grille-coeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 22px; }
.coeur-carte-page .coeur-pourquoi { -webkit-line-clamp: unset; }
.pub-rail .coeur-carte, .rail .coeur-carte { padding: 14px 16px; }

/* Palier 81 — l'étiquette de nature des coups de cœur */
.coeur-nature { font-family: var(--sans); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #8A6100; background: #FFF3D6; display: inline-block; padding: 2px 10px; border-radius: 99px; margin: 0 0 8px; }

/* Palier 82 — les moments partagés */
.coeur-photo { display: block; width: calc(100% + 40px); margin: -18px -20px 12px; max-height: 220px; object-fit: cover; border-radius: 14px 14px 0 0; }
.coeur-partage { overflow: hidden; }
.coeur-appel { margin-top: 34px; }
.coeur-appel .entete-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }


/* Palier 84 — la pastille du type de moment */
.coeur-type { color: #27476E; background: #E7EEF7; }

/* Palier 85 — l'onglet Coups de cœur respire */
.tableau-admin td { vertical-align: top; }
.tableau-admin td form select { width: 100%; min-width: 190px; margin-top: 6px; }
.liste-types-moments { list-style: none; padding: 0; margin: 0 0 14px; }
.liste-types-moments li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--brume); }
.type-inactif { color: #98A4B5; text-decoration: line-through; }
.formulaire-ligne { display: flex; gap: 10px; align-items: center; }
.formulaire-ligne input[type="text"] { flex: 1; padding: 9px 12px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; }
.case-encarts { font-size: 13px; white-space: nowrap; }

/* Palier 86 — l'épure : les cartes redeviennent typographiques, un liseré
   de couleur distingue chaque formule (les visuels figuratifs, trois fois
   décevants, sont retirés — décision design). */
.carte-formule { border-top: 5px solid transparent; }
.carte-gratuit { border-top-color: #A9C3E2; }
.carte-numerique { border-top-color: #27476E; }
.carte-papier { border-top-color: #D8B26A; }
.carte-premium { border-top-color: #B3402F; border-top-width: 6px; }

/* Palier 90 — les grilles tarifaires de la publicité */
.grilles-pub { margin: 0 0 18px; }
.grille-pub-ligne { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.grille-pub-numero { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--bleu-profond); min-width: 64px; }
.grille-pub-ligne input[type="text"] { padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; }
.inventaire-grille select { width: 100%; padding: 6px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 13px; margin-top: 4px; }
.grille-pub-ligne input[type="text"] { max-width: 180px; box-sizing: border-box; }
.inventaire-pub { overflow: hidden; }
.admin-nav { flex-wrap: wrap; }


/* Palier 93 — l'image de formule : un bandeau collé aux trois bords */
.formule-visuel {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  flex-shrink: 0;
  margin: -26px -24px 18px;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px 13px 0 0;
}
@media (min-width: 721px) {
  .carte-formule .formule-avantages { columns: 2; column-gap: 34px; }
  .carte-formule .formule-avantages li { break-inside: avoid; }
}
@media (max-width: 720px) {
  .formule-visuel { height: 150px; margin-bottom: 14px; }
}

/* Palier 94 — le panneau de ciblage des espaces */
.cible-encarts summary { cursor: pointer; font-size: 13px; color: var(--bleu-profond); margin: 6px 0; }
.cible-encarts .case-espace { display: block; font-size: 13px; margin: 4px 0 0 14px; }
.cible-encarts form { padding: 6px 0 2px; }

/* Palier 95 — l'onglet Coups de cœur en cartes lisibles */
.coeurs-admin-liste { display: grid; gap: 14px; }
.coeur-admin { display: grid; grid-template-columns: 1fr 250px; gap: 10px 22px; border: 1px solid var(--bordure); border-radius: 12px; padding: 16px 18px; background: var(--blanc); }
.coeur-admin-titre { margin: 0 0 4px; }
.coeur-admin-meta { margin: 8px 0 0; font-size: 14px; }
.coeur-admin-origine { color: #5A6C82; }
.email-cassable { word-break: break-all; font-size: 12.5px; }
.coeur-admin-type select { width: 100%; max-width: 320px; margin-top: 8px; padding: 6px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 13px; }
.coeur-admin-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.coeur-admin-actions .bouton { width: 100%; text-align: center; }
@media (max-width: 860px) { .coeur-admin { grid-template-columns: 1fr; } .coeur-admin-actions { flex-direction: row; flex-wrap: wrap; } .coeur-admin-actions .bouton { width: auto; } }
.motif-refus { width: 100%; box-sizing: border-box; font-size: 13px; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; margin: 6px 0 8px; font-family: inherit; }

/* Palier 102 — les trois statuts d'abonnement */
.statut-abo { display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 9px; border-radius: 99px; }
.statut-non { background: #EEF1F5; color: #5A6C82; }
.statut-abonne { background: #E4F1E6; color: #2C6B39; }
.statut-encours { background: #FFF3D6; color: #8A6100; }

/* Palier 103 — réordonner les livres au glisser-déposer */
.livre-triable { cursor: grab; }
.livre-triable.en-deplacement { opacity: .45; background: var(--brume); }
.poignee-glisser { color: #98A4B5; font-size: 15px; letter-spacing: -2px; margin-right: 6px; cursor: grab; }
#ordre-etat { margin-left: 10px; color: #2C6B39; font-size: 13px; }
.livre-triable { touch-action: none; user-select: none; }

/* Palier 108 — l'historique d'un compte */
.historique-compte summary { cursor: pointer; font-size: 13px; color: var(--bleu-profond); margin-top: 6px; }
.historique-liste { list-style: none; padding: 6px 0 0; margin: 0; font-size: 13px; }
.historique-liste li { padding: 3px 0; border-bottom: 1px solid var(--brume); }

/* Palier 109 — l'encadré « Accès et tarif » de la masterclass */
.cadre-tarif { border: 1px solid var(--bleu-profond); border-radius: 12px; padding: 14px 18px 10px; margin: 6px 0 18px; background: #F7FAFD; }
.cadre-tarif legend { font-family: var(--sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--bleu-profond); padding: 0 8px; }
.cadre-tarif .admin-meta { margin: 4px 0 0; }
#apercu-tarif { color: var(--bleu-profond); }
.champs-empiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.champs-empiles input[type="text"] { max-width: 160px; }
.champs-empiles select { max-width: 520px; }

/* Palier 111 — séparation visuelle des lignes d'utilisateurs */
.lecteur-ligne { border-bottom: 1px solid var(--bordure); padding-bottom: 14px; }
.lecteur-ligne:last-child { border-bottom: 0; }

/* ==========================================================================
   Palier 120 — Questions des abonnés : fiches de travail et fil d'échange
   ========================================================================== */
.barre-questions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.barre-questions input[type="search"] { flex: 1 1 240px; min-width: 180px; padding: 8px 12px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; font-family: inherit; }
.barre-questions select { padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--blanc); }
.pilules-etats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }

.fiche-question { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; }
.fiche-question.fiche-retard { border-left: 4px solid #B3402F; }
.fiche-question-entete { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 8px; font-size: 13.5px; color: var(--gris-texte); }
.fiche-abonne { font-weight: 700; color: var(--encre); }
.fiche-rubrique { background: var(--brume-bleue); color: var(--bleu-profond); border-radius: 99px; padding: 2px 10px; font-size: 12px; }
.badge-echeance-retard { background: #F4E4E4; color: #9A2B2B; }
.badge-echeance-proche { background: #FFF3D6; color: #7A5A12; }
.badge-echeance-ok { background: #E4F4EA; color: #1B7A43; }
.fiche-question-texte { margin: 0 0 10px; font-size: 16px; }

.fil-message { border-left: 3px solid var(--bordure); background: #FAF8F4; padding: 8px 12px; margin: 0 0 10px; border-radius: 0 8px 8px 0; }
.fil-message-redaction { border-left-color: var(--bleu-profond); background: var(--brume-bleue); }
.fil-message-etiquette { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gris-texte); }
.fil-message p:last-child { margin: 0; }

.fiche-question .reponse-pliee summary { cursor: pointer; color: var(--bleu-profond); font-size: 14px; margin: 4px 0 8px; }
.fiche-question .formulaire-reponse .mention-discrete { margin: 6px 0 8px; }
.fiche-question-pied { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; border-top: 1px solid var(--bordure); margin-top: 12px; padding-top: 10px; font-size: 14px; color: var(--gris-texte); }
.fiche-question-pied select { padding: 5px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 13.5px; font-family: inherit; background: var(--blanc); }

/* Côté abonné : le fil dans le compte */
.badge-nouveau { background: #B3402F; color: #fff; }
.question-relance { border-left: 3px solid var(--bordure); background: #FAF8F4; padding: 8px 12px; margin: 10px 0; border-radius: 0 8px 8px 0; }
.reponse-signature { margin: 6px 0 0; font-size: 12.5px; color: var(--gris-texte); }
.relance-details summary { cursor: pointer; color: var(--bleu-profond); margin: 6px 0; }

@media (max-width: 700px) {
  .fiche-question-pied { flex-direction: column; align-items: flex-start; gap: 8px; }
  .barre-questions input[type="search"] { flex-basis: 100%; }
}

/* ==========================================================================
   Palier 121 — périodicité des abonnements, confidentialité, pause du service
   ========================================================================== */
.commutateur-periodicite { display: flex; justify-content: center; gap: 8px; margin: 4px 0 22px; }
.commutateur-periodicite .pilule-filtre { font-size: 14.5px; padding: 7px 16px; }
.pastille-economie { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #E4F4EA; color: #1B7A43; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.pilule-filtre.actif .pastille-economie { background: rgba(255, 255, 255, 0.22); color: var(--blanc); }
.formule-equivalent { margin: -4px 0 10px; font-size: 13.5px; color: var(--gris-texte); }
.bloc-confidentialite { max-width: 760px; margin: 26px auto 6px; }
.pause-service { margin: 0 0 14px; }
.pause-service > summary { cursor: pointer; color: var(--bleu-profond); font-size: 14px; font-weight: 600; }
.formulaire-pause { margin: 10px 0 4px; }
.formulaire-pause label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gris-texte); }
.formulaire-pause input[type="date"] { padding: 6px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-family: inherit; font-size: 14px; }
.bloc-pause { border-left: 4px solid #C9A227; }

/* ==========================================================================
   Palier 122 — boîte de réception des questions, référent, signature
   ========================================================================== */
.onglets-boite { display: flex; gap: 6px; margin: 16px 0 10px; flex-wrap: wrap; }

.boite-questions { display: flex; flex-direction: column; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; background: var(--blanc); margin: 10px 0 20px; }
/* Palier 124 — la ligne devient un conteneur : le LIEN porte le corps de la
   conversation, le formulaire d'assignation en ligne vit a cote (un
   formulaire dans un lien serait invalide). */
.ligne-question { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bordure); }
.ligne-question-lien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.ligne-question:last-child { border-bottom: none; }
.ligne-question:hover { background: var(--brume); }
.ligne-question.ligne-retard { background: #FBF3F1; }
.ligne-question-assigner { display: flex; align-items: center; gap: 6px; flex: none; }
.ligne-question-assigner select { padding: 4px 6px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 12.5px; font-family: inherit; background: var(--blanc); max-width: 170px; }
.ligne-question-corps { flex: 1; min-width: 0; }
.ligne-question-entete { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.ligne-question-nom { font-weight: 700; font-size: 14.5px; color: var(--encre); }
.ligne-question-rubrique { font-size: 11px; font-weight: 600; color: var(--bleu-profond); background: var(--brume-bleue); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.ligne-question-suivi { font-size: 12.5px; color: var(--gris-texte); }
.ligne-question-date { margin-left: auto; font-size: 12.5px; color: var(--gris-texte); white-space: nowrap; padding-left: 10px; }
.ligne-question-snippet { display: block; font-size: 13.5px; color: var(--gris-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-question-etat { flex: none; display: flex; align-items: center; gap: 6px; }
.retard-mini { font-size: 12.5px; font-weight: 700; color: #9A2B2B; white-space: nowrap; }

.losange-alerte { display: inline-block; width: 9px; height: 9px; background: #B3402F; transform: rotate(45deg); flex: none; }
.badge-echeance-retard .losange-alerte { background: #9A2B2B; margin-right: 7px; }

.detail-question-entete { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.detail-question-entete > div { flex: 1; }
.detail-question-echeance { flex: none; }
.fil-question-detail { margin: 0 0 16px; }
.lien-retour { display: inline-block; margin: 6px 0 14px; font-size: 14px; color: var(--bleu-profond); text-decoration: none; }
.lien-retour:hover { text-decoration: underline; }

.detail-question-pied { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; border-top: 1px solid var(--bordure); margin-top: 6px; padding-top: 12px; font-size: 14px; color: var(--gris-texte); }
.detail-question-pied select { padding: 5px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-size: 13.5px; font-family: inherit; background: var(--blanc); }

.referent-abonne { margin: 20px 0 0; padding: 12px 14px; background: var(--brume); border-radius: 10px; font-size: 14px; }
.referent-abonne summary { cursor: pointer; color: var(--bleu-profond); font-weight: 600; }
.referent-abonne form { margin: 10px 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.referent-abonne select { padding: 5px 8px; border: 1px solid var(--bordure); border-radius: 8px; font-family: inherit; }

.marque-logo-mini { height: 15px; width: auto; vertical-align: -3px; margin-right: 5px; }
.bloc-invite-abonnement { border-left: 4px solid var(--bleu-profond); }

@media (max-width: 640px) {
  .ligne-question { flex-wrap: wrap; }
  .ligne-question-date { padding-left: 0; }
  .detail-question-entete { flex-wrap: wrap; }
  .detail-question-pied { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   Palier 123 — icônes de formule, économie mise en évidence
   ========================================================================== */
.icone-formule { width: 22px; height: 22px; margin-right: 8px; vertical-align: -4px; color: var(--bleu-profond); }
.carte-formule .formule-nom { display: flex; align-items: center; }
.economie-surlignee { color: #1B7A43; font-size: 1.05em; background: #E4F4EA; padding: 1px 8px; border-radius: 6px; }

/* ==========================================================================
   Palier 123 — image de session, billetterie, remboursement
   ========================================================================== */
.session-visuel { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; flex: none; }
.admin-entete:has(.session-visuel) { align-items: flex-start; }

.tableau-billetterie { border: 1px solid var(--filet, #e3ded6); border-radius: 10px; overflow: hidden; margin-bottom: .8rem; }
.billet-ligne {
  display: grid; grid-template-columns: 2.2fr 1fr 1.2fr 1.3fr;
  gap: .6rem; padding: .55rem .9rem; align-items: center;
  border-top: 1px solid var(--filet, #eee9e0); font-size: .93rem;
}
.billet-ligne:first-child { border-top: none; }
.billet-entete { font-weight: 600; background: #faf8f4; letter-spacing: .02em; font-size: .85rem; text-transform: uppercase; }
.billet-rembourse { color: var(--gris-texte); }
@media (max-width: 720px) { .billet-ligne { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Palier 125 — l'éditeur « Comprendre » : mêmes caractères que le corps
   ========================================================================== */
/* L'éditeur vit DANS le <label> du champ : sans cette règle, tout son texte
   hérite du gras des étiquettes de formulaire (font-weight 600) — c'était
   la « graisse de caractères différente » relevée par Laurent. */
.formulaire label .champ-editeur { font-weight: 400; }
#editeur-comprendre .ql-editor { font-weight: 400; font-size: 15.5px; }

/* ==========================================================================
   Palier 126 — Ma fiche : portrait lisible, bouton séparé du texte ;
   présentation éditable dans l'écran Rédaction
   ========================================================================== */
.fiche-portrait { align-items: flex-start; gap: 22px; }
.fiche-portrait-champ { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fiche-portrait-etiquette { font-size: 14px; font-weight: 600; }
.fiche-portrait-champ .optionnel { display: block; max-width: 46ch; }
.fiche-portrait-champ .case { font-weight: 400; margin: 2px 0 0; }
.membre-presentation textarea { width: 100%; font-family: inherit; font-size: 14px; font-weight: 400;
  padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; resize: vertical; }
/* La présentation occupe sa propre ligne dans la zone basse : un textarea
   coincé entre les groupes de cases devenait illisible. */
.membre-bas { align-items: flex-start; }
.membre-presentation { flex: 1 1 100%; }
/* Palier 126 — l'écran Rédaction débordait de 260 px sur mobile (défaut
   antérieur, relevé par la vérification géométrique) : le groupe des quatre
   cases de droits était en ligne INSÉCABLE, plus large que l'écran. Les
   groupes passent à la ligne, et les champs ne dépassent plus leur colonne. */
.membre-groupe { flex-wrap: wrap; }
.ligne-membre, .ligne-membre > * { min-width: 0; }
@media (max-width: 700px) {
  .membre-bas { gap: 14px; }
  .membre-champ input, .membre-champ select, .membre-portrait input { max-width: 100%; width: 100%; }
  .membre-case { white-space: normal; }
}

/* ==========================================================================
   Palier 127 — cadre « La rédaction » de l'accueil : cartes sur UNE ligne,
   dernière carte vers l'équipe complète (logo en rond), candidature en texte
   ========================================================================== */
/* Le bandeau n'a plus que deux zones (texte, visages) : la troisième colonne
   portait les deux boutons — c'est elle qui comprimait la zone des visages et
   forçait la dernière carte à passer à la ligne (constat de Laurent). */
.bandeau-redaction { grid-template-columns: 1.05fr 2.4fr; }
.redaction-candidature { margin: 12px 0 0; font-size: 14.5px; }
.redaction-candidature a { color: var(--bleu-profond); font-weight: 600; text-decoration: none; }
.redaction-candidature a:hover { text-decoration: underline; }

/* Plus de retour à la ligne : les cartes se resserrent plutôt que de passer
   dessous (le wrap reste actif en dessous de 960 px, voir plus bas). */
.redaction-visages { flex-wrap: nowrap; align-items: stretch; }
.redaction-visages .equipe-mini { flex: 1 1 118px; width: auto; max-width: 152px; min-width: 0; }

/* La carte qui mène à l'équipe complète : le logo du magazine en rond. */
.avatar-marque { background: var(--blanc) !important; display: inline-flex;
  align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.avatar-marque img { width: 78%; height: 78%; object-fit: contain; }
.equipe-vers-equipe { background: var(--bleu) !important; }

@media (max-width: 960px) {
  .redaction-visages { flex-wrap: wrap; }
  .redaction-visages .equipe-mini { flex: 0 1 132px; }
  .redaction-candidature { text-align: center; }
}


/* ==========================================================================
   Palier 131 — pictogrammes des champs de rédaction, éditeur « À retenir »
   ========================================================================== */
/* Palier 134 — pictogrammes agrandis (17 → 22 px) et trait épaissi dans
   les tracés eux-mêmes : ils étaient trop discrets. */
.icone-champ { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; color: var(--bleu-profond); }
#editeur-retenir { background: var(--blanc); min-height: 150px; font-family: var(--sans); font-size: 15.5px; }
.formulaire label .champ-editeur { font-weight: 400; }

/* ==========================================================================
   Palier 132 — les pictogrammes côté LECTEUR (encadrés « L'idée clé » et
   « À retenir »). Au palier 131 ils n'avaient été posés que dans l'écran de
   rédaction : Laurent les cherchait, à juste titre, sur la page publique.
   ========================================================================== */
.idee-cle-etiquette, .bloc-a-retenir h2 { display: flex; align-items: center; gap: 7px; }
.idee-cle-etiquette .icone-champ, .bloc-a-retenir h2 .icone-champ,
.comprendre-titre .icone-champ, .bloc-ressources h2 .icone-champ {
  width: 21px; height: 21px; margin: 0; flex: none;
  /* Les deux étiquettes sont en petites capitales grises ou bleues : le
     pictogramme prend la couleur du texte pour rester dans le ton. */
  color: currentColor;
}

/* Palier 134 — les deux titres qui reçoivent un pictogramme à ce palier. */
.comprendre-titre, .bloc-ressources h2 { display: flex; align-items: center; gap: 8px; }



/* ==========================================================================
   Palier 137 — sur-titre de dossier et navigation d'un article à l'autre
   ========================================================================== */
.surtitre-dossier { margin: 0 0 6px; font-size: 14px; }
.surtitre-dossier span { font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: 12px; color: var(--gris-texte); margin-right: 8px; }
.surtitre-dossier a { color: var(--bleu-profond); font-weight: 700; text-decoration: none; }
.surtitre-dossier a:hover { text-decoration: underline; }

.navigation-dossier { margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--bordure); }
.navigation-dossier-titre { margin: 0 0 14px; font-size: 15px; color: var(--gris-texte); }
.navigation-dossier-titre a { color: var(--bleu-profond); font-weight: 700; text-decoration: none; }
.navigation-dossier-rang { margin-left: 8px; font-size: 12.5px; }
.navigation-dossier-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Palier 143 — l'image CALÉE à gauche sur toute la hauteur de l'encadré, le
   texte au centre, un chevron à droite (« un v orienté vers la droite pour
   dire suivant » — Laurent). Plus de padding autour de l'image : elle touche
   le bord, ce qui donne au bloc sa tenue. */
.navigation-dossier-lien {
  display: flex; align-items: stretch; gap: 0;
  padding: 0; overflow: hidden; border: 1px solid var(--bordure);
  border-radius: 12px; background: var(--blanc); text-decoration: none;
}
/* Palier 139 — la vignette : assez grande pour se voir, assez petite pour ne
   pas concurrencer l'article qu'on vient de lire. */
.navigation-dossier-vignette { flex: none; width: 96px; align-self: stretch; overflow: hidden; display: block; }
.navigation-dossier-vignette .carte-photo { width: 100%; height: 100%; min-height: 82px; object-fit: cover; display: block; }
.navigation-dossier-texte { flex: 1; min-width: 0; padding: 14px 6px 14px 16px; }
/* Le chevron : pastille bleue, signe blanc — même famille que le repère des
   vignettes de dossier (palier 140). */
.navigation-dossier-chevron {
  flex: none; align-self: center; margin: 0 14px 0 8px;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--bleu-profond); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.navigation-dossier-chevron svg { width: 18px; height: 18px; }
.navigation-dossier-lien:hover .navigation-dossier-chevron { background: var(--encre); }
.navigation-dossier-suivant:hover .navigation-dossier-chevron { transform: translateX(2px); }
.navigation-dossier-lien:not(.navigation-dossier-suivant):hover .navigation-dossier-chevron { transform: translateX(-2px); }
.navigation-dossier-lien:hover { background: var(--brume); }
/* Palier 143 — le sens est porté par le chevron, plus par l'alignement. */
/* Palier 139 — polices agrandies : le bloc paraissait fade. */
.navigation-dossier-sens { display: block; font-size: 14px; font-weight: 700;
  color: var(--bleu-profond); margin-bottom: 5px; }
.navigation-dossier-nom { display: block; font-family: var(--serif); font-size: 19px;
  color: var(--encre); line-height: 1.3; }
@media (max-width: 700px) {
  .navigation-dossier-liens { grid-template-columns: 1fr; }
  .navigation-dossier-suivant { text-align: left; }
}

@media (max-width: 700px) {
  .navigation-dossier-vignette { width: 76px; }
  .navigation-dossier-chevron { width: 28px; height: 28px; margin: 0 10px 0 4px; }
}


/* ==========================================================================
   Palier 140 — le repère de lecture DANS la vignette d'un dossier
   ========================================================================== */
.vignette-lecture { position: relative; display: block; }
/* Palier 165 — la pastille fléchée .vignette-repere a été retirée (demande
   de Laurent) ; .vignette-lecture reste en position relative pour le
   triangle de lecture des podcasts. */
/* Le titre du dossier ne se souligne plus au repos (demande de Laurent) :
   il se souligne au survol, comme un lien de titre ordinaire. */
.carte-serie .carte-titre a { text-decoration: none; }
.carte-serie .carte-titre a:hover { text-decoration: underline; }


/* Palier 141 — la mention qui remplace un réglage sans effet pour la nature
   en cours (podcast, masterclass) : lisible, mais visiblement non saisissable. */
.reglage-fixe {
  margin: 26px 0 0; padding: 12px 14px;
  background: var(--brume); border: 1px dashed var(--bordure);
  border-radius: 10px; font-size: 14px; color: var(--gris-texte); line-height: 1.45;
}
.reglage-fixe strong { color: var(--bleu-profond); }

/* ==========================================================================
   Palier 143 — TEXTE JUSTIFIÉ (demande de Laurent). Appliqué aux textes longs
   de présentation : description d'une masterclass sur sa page et au catalogue.
   Le corps des articles n'est PAS touché : la justification y demanderait une
   césure propre, sinon elle creuse des « rivières » blanches dans le texte.
   ========================================================================== */
.session-presentation, .carte-chapo-long, .masterclass-description { text-align: justify; }
.bloc-session .session-texte { text-align: justify; }


/* Palier 144 — la description d'une session au catalogue : justifiée, et
   coupée après quelques lignes. Les points de suite (« … ») ouvrent la page
   complète : la carte annonce, elle ne raconte pas tout. */
/* Palier 149 — règle unique pour la description tronquée : voir plus bas. */
.points-suite { color: var(--bleu-profond); font-weight: 700; text-decoration: none; }
.points-suite:hover { text-decoration: underline; }


/* Palier 144 — le conteneur du visuel porte le repère de position. */
.carte-visuel { position: relative; }
/* Palier 144 — le champ de durée de la vidéo, sous son lien. */
.duree-video-champ { display: block; margin-top: 10px; font-size: 14px; }
.duree-video-champ input { margin-left: 8px; }


/* Palier 147 — le repère de lecture d'un podcast : un triangle blanc dans une
   pastille, centré sur la vignette (patron Psychologies montré par Laurent). */
.repere-lecture {
  position: absolute; inset: 0; margin: auto;
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(23, 45, 84, .78); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.repere-lecture svg { width: 22px; height: 22px; margin-left: 2px; }
.carte-lien:hover .repere-lecture { background: var(--bleu-profond); transform: scale(1.06); }

/* Palier 147 — les vignettes RÉDUITES (lignes de liste) montrent l'image
   ENTIÈRE, posée sur un fond doux, au lieu de la rogner : « on ne va pas
   couper les images de cette manière-là » (Laurent). Les grandes cartes
   gardent le cadrage plein. */
.ligne-lien .carte-photo { object-fit: contain; background: var(--brume); }


/* Palier 147 — vignette du lecteur en tête des podcasts : image entière. */
.vignette-lecture img, .vignette-lecture .carte-photo { object-fit: contain; background: var(--brume); }
/* La photo d'un événement extérieur. */
.evenement-photo { width: 100%; border-radius: 10px; margin: 0 0 10px; display: block; }
/* Le numéro de palier, discret, en pied de page. */
.version-palier { font-size: 11px; color: rgba(255, 255, 255, .45); margin: 18px 0 0; }


/* Palier 147 — un champ qui reçoit une adresse web occupe toute la largeur :
   on ne relit pas ce qu'on ne voit pas. */
.formulaire .champ-large input { width: 100%; max-width: 100%; box-sizing: border-box; }


/* Palier 148 — la description est longue sur une masterclass : la zone de
   saisie doit respirer (demande de Laurent). */
#editeur-chapo.editeur-chapo-haut, .champ-editeur #editeur-chapo { min-height: 210px; }


/* ==========================================================================
   Palier 149 — la description tronquée s'ESTOMPE avant les points de suite :
   la coupure se voit et se comprend, au lieu de s'arrêter net (demande de
   Laurent). Le dégradé porte sur les deux dernières lignes ; les points, eux,
   restent pleinement lisibles et cliquables.
   ========================================================================== */
.carte-chapo-justifie {
  text-align: justify;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.35) 100%);
}
/* Les points de suite sortent du dégradé : ils appellent le clic, ils doivent
   rester nets. */
.carte-chapo-justifie .points-suite {
  -webkit-mask-image: none; mask-image: none;
  display: inline-block; font-size: 20px; line-height: 1;
  letter-spacing: .12em; padding: 2px 6px 0;
}


/* Palier 149 — le format d'image conseillé, dit là où l'on téléverse : une
   image au mauvais rapport se fait recouper à l'affichage (mesure de Laurent :
   1448 x 1086 passe entier). */
.mediatheque-format { margin: 2px 0 12px; font-size: 13px; color: var(--gris-texte); line-height: 1.45; }
.mediatheque-format strong { color: var(--bleu-profond); }


/* Palier 150 — l'accroche de la page Événements, au-dessus du texte d'accueil. */
.page-accroche {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--bleu-profond); margin: 4px 0 10px; line-height: 1.3;
}
/* L'appel aux organisateurs ferme la page : détaché de ce qui précède. */
.bloc-proposer-evenement { border-top: 1px solid var(--bordure); padding-top: 30px; }


/* Palier 151 — un libellé long passait EN DESSOUS de sa zone de saisie
   (« …en fin d'article) » sous le cadre — constat de Laurent) : le label est
   un bloc, sa légende aussi, la zone vient après. */
.formulaire label { display: block; }
.formulaire label > .optionnel { display: inline; }
.formulaire label > textarea, .formulaire label > input, .formulaire label > select {
  display: block; margin-top: 6px;
}


/* ==========================================================================
   Palier 151 — la FICHE D'ÉVÉNEMENT : photo à gauche, texte à droite, bouton
   dessous ; les fiches s'empilent. Avant, la photo occupait toute la largeur
   et repoussait le texte très bas (constat de Laurent).
   ========================================================================== */
.fiche-evenement {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--bordure);
}
.fiche-evenement:last-child { border-bottom: 0; }
.fiche-evenement-photo { flex: 0 0 300px; max-width: 300px; }
.fiche-evenement-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  display: block; border-radius: 10px; background: var(--brume);
}
.fiche-evenement-corps { flex: 1; min-width: 0; }
.fiche-evenement-corps .admin-titre { margin: 0 0 4px; font-size: 20px; }
.fiche-evenement-action { margin: 14px 0 0; }

/* Au téléphone, la photo repasse au-dessus, pleine largeur. */
@media (max-width: 700px) {
  .fiche-evenement { flex-direction: column; gap: 14px; }
  .fiche-evenement-photo { flex: none; max-width: 100%; width: 100%; }
}


/* ==========================================================================
   Palier 154 — LA GRANDE BANNIÈRE SUR TÉLÉPHONE. Elle y était en portrait
   (342 × 615) : une image 16:9 y perdait 70 % de sa largeur — « ça n'a pas
   de sens de rogner autant une image » (Laurent). L'image s'affiche
   désormais ENTIÈRE, en haut, à son rapport naturel ; le texte se place
   dessous, sur le fond bleu. Plus rien n'est rogné.
   ========================================================================== */
@media (max-width: 700px) {
  .hero-actualites .hero,
  .hero-roulement .hero-bandeau,
  a.hero-bandeau {
    background-size: 100% auto !important;   /* largeur pleine, hauteur libre */
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-color: var(--encre);          /* le texte repose sur le bleu */
    min-height: 0 !important;
    display: block !important;
  }
  /* le texte commence SOUS l'image : 56,25 % de la largeur = rapport 16:9 */
  .hero-actualites .hero .hero-inner,
  .hero-roulement .hero-bandeau .hero-inner {
    padding: calc(56.25vw + 20px) 22px 30px;
  }
}


/* Palier 154 — la médiathèque : une grille d'images, chacune disant à quoi
   elle sert. Les libres (supprimables) se distinguent au premier regard. */
.grille-mediatheque {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px; margin: 26px 0 40px;
}
.carte-media {
  border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden;
  background: var(--blanc); display: flex; flex-direction: column;
}
.carte-media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--brume); }
.carte-media-corps { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.carte-media-nom { font-family: var(--sans); font-size: 12.5px; word-break: break-all; margin: 0 0 2px; color: var(--gris-texte); }
.carte-media-poids { font-size: 12px; color: var(--gris-texte); margin: 0 0 8px; }
.carte-media-usage { font-size: 13.5px; margin: 0 0 6px; }
.carte-media-orpheline { color: var(--bleu-profond); font-weight: 700; }
.carte-media-liste { margin: 0 0 8px; padding-left: 18px; font-size: 12.5px; color: var(--gris-texte); line-height: 1.5; }
.carte-media-verrou { font-size: 12px; color: var(--gris-texte); font-style: italic; margin: auto 0 0; }
.carte-media-libre { border-color: var(--bleu-profond); }
.carte-media form { margin: auto 0 0; }
.bouton-danger { border-color: #B3402F; color: #B3402F; }
.bouton-danger:hover { background: #B3402F; color: var(--blanc); }


/* Palier 156 — l'avertissement « moins de deux éléments » sur la fiche d'un
   conteneur : visible sans être criard. */
.avertissement-conteneur {
  background: #FFF6E5; border: 1px solid #E8C67A; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; color: #6B4E12; margin: 0 0 18px;
}


/* ==========================================================================
   Palier 157 — LA BANNIÈRE SUR TÉLÉPHONE. Mesurée en portrait (342 × 615) :
   toute image y perdait 60 à 70 % sur les côtés. Elle repasse en paysage
   (16:10) : le visuel s'y lit, le texte se resserre.
   ========================================================================== */
@media (max-width: 700px) {
  .hero-roulement { min-height: 0; }
  .hero-roulement .hero-bandeau, .hero-roulement .hero { aspect-ratio: 16 / 10; min-height: 0; }
  .hero-inner { padding: 22px 18px; }
  .hero-inner .hero-titre, .hero-titre { font-size: 24px; line-height: 1.15; }
  .hero-chapo { display: none; }
}

/* Palier 158 — ancre invisible de l'épisode mis en vedette : elle donne un
   point d'arrivée au lien /podcasts#episode-<id> sans rien afficher, et se
   décale du haut pour ne pas passer sous l'en-tête collant. */
.ancre-episode { display: block; height: 0; scroll-margin-top: 90px; }

/* Palier 162, revu aux paliers 164 et 166 — LE CONTENU D'UN CONTENEUR.
   Palier 166 (demande de Laurent) : un ENCADRÉ par conteneur, qui embarque
   la ligne et son contenu, pour distinguer d'un coup d'œil un dossier du
   suivant. Les deux traits parasites disparaissent — la bordure basse de la
   ligne, qui laissait un tiret au-dessus du premier article, et le filet
   vertical à gauche de la liste. Une étiquette « Articles liés » annonce
   simplement ce qui suit. */
.conteneur-bloc {
  border: 1px solid var(--bordure, #E3E8F1); border-radius: 12px;
  background: var(--blanc); margin-bottom: 16px; overflow: hidden;
}
.conteneur-bloc .admin-ligne {
  border: none; border-radius: 0; margin: 0; background: transparent;
}
.conteneur-etiquette {
  margin: 0 0 .35rem; padding: 0 18px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gris-texte);
}
.conteneur-enfants {
  list-style: none; margin: 0; padding: 0 18px 1rem;
}
.conteneur-enfants li { padding: .12rem 0; line-height: 1.45; }
.conteneur-enfants a {
  font-size: 13.5px; font-weight: 400; color: var(--bleu-profond);
  text-decoration: none;
}
.conteneur-enfants a:hover { text-decoration: underline; }
.conteneur-vide {
  margin: 0; padding: 0 18px 1rem;
  font-size: 13px; color: var(--gris-texte); font-style: italic;
}

/* Palier 166 — LES MISES À LA UNE SE REPÈRENT D'UN COUP D'ŒIL. Elles
   portaient le badge vert « en ligne », indistinct des états de publication.
   Une étoile et une couleur propre à chaque emplacement. */
.badge-une {
  font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 4px 12px; white-space: nowrap; margin-left: 6px;
}
.badge-une-accueil { background: #E9F0F8; color: #23478A; }
.badge-une-actualites { background: #F3EAFB; color: #6B3FA0; }


/* Palier 169 (demande de Laurent) — « INVISIBLE DU PUBLIC », DIT DANS LA
   LISTE. La règle des deux éléments (palier 156) n'était annoncée que sur la
   fiche d'un conteneur : il fallait ouvrir chaque dossier pour savoir
   lesquels ne paraissent pas sur le site. Un repère ambré, distinct des
   badges d'état et des mises à la une. */
.badge-muet {
  font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 4px 12px; white-space: nowrap; margin-left: 6px;
  background: #FFF3D6; color: #7A5A12;
}

/* Palier 175 (constat de Laurent : « je ne vois pas où télécharger une
   image ») — LE BOUTON DE TÉLÉVERSEMENT RESSEMBLE ENFIN À UN BOUTON. La
   classe .bouton-televersement, posée au palier 152, n'avait JAMAIS reçu de
   règle : c'était une étiquette nue, invisible comme affordance. Elle prend
   l'allure des boutons discrets du site, sur tous les formulaires qui
   l'emploient — dossiers, séries, programmes, articles, événements et
   maintenant les livres. */
/* « label. » et non « . » seul : les blocs de photothèque posent une règle
   « .bloc-phototheque label » plus spécifique, qui étirait le bouton sur
   toute la largeur et l'aplatissait. */
label.bouton-televersement {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: .4rem 0 .6rem; padding: 10px 18px;
  border: 1px solid var(--bleu-profond); border-radius: 999px;
  background: transparent; color: var(--bleu-profond);
  font-size: 14px; font-weight: 700; cursor: pointer;
  width: max-content; align-self: flex-start;
  transition: background .15s ease;
}
label.bouton-televersement::before { content: "\2191"; font-size: 15px; line-height: 1; }
label.bouton-televersement:hover { background: var(--brume-bleue); }
/* Le champ de fichier porte l'attribut « hidden », mais une règle des
   formulaires le remet en « display: block » : il restait donc VISIBLE dans
   le bouton, natif et large de 253 px, depuis le palier 152. On le masque
   pour de bon — c'est le libellé qui doit se voir, pas le contrôle. */
label.bouton-televersement input[type="file"] { display: none; }

/* Palier 178 — le compte à rebours de parution d'un ouvrage, dans le
   catalogue. Discret tant qu'il reste du temps, ambré quand la fin approche ;
   le livre éteint porte le repère « badge-muet », déjà employé pour ce qui ne
   paraît pas sur le site. */
.badge-parution {
  font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 4px 12px; white-space: nowrap; margin-left: 6px;
  background: var(--brume-bleue, #E9F0F8); color: var(--bleu-profond);
}
.badge-parution-bientot { background: #FFF3D6; color: #7A5A12; }

/* Palier 182 — les trois groupes du catalogue, et la case à cocher d'une
   recommandation. */
.groupe-catalogue { margin: 26px 0 10px; }
.groupe-catalogue:first-of-type { margin-top: 8px; }
/* Palier 183 (constat de Laurent) — « label. » et non « . » seul : les
   formulaires posent une règle « .formulaire label » plus spécifique, qui
   remettait l'étiquette en display:block. La case se retrouvait 11 px
   au-dessus du milieu de son libellé. Même piège qu'au palier 175 pour le
   bouton de téléversement. */
label.case-a-cocher {
  display: flex; align-items: center; gap: .55rem;
  margin: 1rem 0 .3rem; font-weight: 600; cursor: pointer;
}
label.case-a-cocher input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer;
}

/* Palier 188 — le retour visuel après le choix d'un fichier. */
/* Palier 216 (constat de Laurent) — L'IMAGE CHOISIE SE PRÉSENTE PROPREMENT :
   un cadre doux, la vignette bornée à gauche, les détails en colonne à
   droite (nom, dimensions et poids, rappel). Une seule définition — la
   vignette était décrite deux fois, aux paliers 188 et 190. */
.fichier-choisi {
  display: flex; align-items: center; gap: 16px;
  margin: .6rem 0 .9rem; padding: 12px 16px;
  border: 1px solid var(--bordure, #E3E8F1); border-radius: 10px;
  background: var(--brume, #F7F9FC); max-width: 560px;
  font-size: 13.5px; color: var(--gris-texte);
}
.fichier-choisi:empty { display: none; margin: 0; padding: 0; border: 0; }
.fichier-choisi-vignette {
  /* Palier 190 — l'aperçu doublé (192 px) : on garde ce contrat. */
  width: 192px; height: 120px; object-fit: contain; border-radius: 8px;
  border: 1px solid var(--bordure, #E3E8F1); background: #fff; flex: none;
}
.fichier-choisi-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fichier-choisi-nom { font-weight: 700; color: var(--encre); word-break: break-all; }
.fichier-choisi-rappel { font-style: italic; margin-top: 3px; }
@media (max-width: 640px) {
  .fichier-choisi { flex-direction: column; align-items: flex-start; }
}

/* Palier 190 — les filtres de la photothèque. */
.filtres-phototheque {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .2rem;
}
.filtres-phototheque .pilule-filtre {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--bordure, #E3E8F1); background: var(--blanc);
  color: var(--gris-texte); cursor: pointer;
}
.filtres-phototheque .pilule-filtre.actif {
  background: var(--bleu-profond); border-color: var(--bleu-profond); color: var(--blanc);
}
.phototheque-vide:empty { display: none; }

/* Palier 190 (constat de Laurent) — L'APERÇU DEUX FOIS PLUS GRAND, ET ENTIER.
   Il faisait 96 × 60 en « cover » : une couverture portrait y était rognée en
   paysage, exactement ce qu'on cherchait à vérifier. */
/* (Palier 216 — la seconde définition de la vignette, fusionnée ci-dessus.) */

/* Palier 192 — la signature de qui a recommandé l'ouvrage, et le lien de
   retour au rayon depuis « À lire aussi ». */
.signature-recommandation {
  margin: 1.1rem 0 0; padding-left: 14px;
  border-left: 3px solid var(--brume-bleue);
  font-size: 14.5px; color: var(--gris-texte); font-style: italic;
}
.signature-recommandation strong { color: var(--bleu-profond); font-style: normal; }
.section-lien {
  margin-left: auto; font-family: var(--sans); font-size: 14px;
  font-weight: 700; color: var(--bleu-profond); text-decoration: none;
  white-space: nowrap;
}
.section-lien:hover { text-decoration: underline; }

/* Palier 193 — la pastille de ce qui attend une décision, dans le menu. */
.pastille-a-traiter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: #C8322B; color: #FFF;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  line-height: 1; vertical-align: 2px;
}

/* Palier 201 — le bandeau qui signale une date à fixer. */
.bandeau-alerte {
  border-left: 4px solid var(--ambre, #C8862B);
  background: #FDF6E9; padding: 10px 14px; border-radius: 6px;
}

/* Palier 202 — le mot de la rédaction sur un événement. */
.mot-redaction {
  margin: .8rem 0 0; padding: 10px 14px;
  background: var(--brume-bleue); border-radius: 8px;
  font-size: 14.5px; line-height: 1.55; color: var(--encre);
}
.mot-redaction-etiquette {
  display: block; font-family: var(--sans); font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bleu-profond); margin-bottom: 4px;
}

/* Palier 205 — début et fin, côte à côte : on les lit d'un seul regard. */
.duo-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 560px) { .duo-dates { grid-template-columns: 1fr; } }

/* Palier 206 — qui organise ce rendez-vous, et comment le joindre. */
.coordonnees-organisateur {
  margin: .5rem 0 0; font-size: 14px; color: var(--gris-texte);
}
.coordonnees-organisateur strong { color: var(--encre); }
.sous-titre-champs {
  margin: 1.2rem 0 .2rem; font-family: var(--sans); font-size: 13px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--bleu-profond);
}


/* Palier 222 — les actions du lecteur restent ensemble (favoris + copier),
   et l'encart « Ouvrage recommandé » des emplacements libres. */
.actions-lecteur { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-left: auto; }
.contenu-meta-actions { flex-wrap: wrap; row-gap: 8px; }
.bloc-livre-maison .livre-maison-carte {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--encre); padding: 6px 4px 10px;
}
.bloc-livre-maison .livre-maison-couverture {
  max-width: 100%; max-height: 190px; object-fit: contain;
  border-radius: 6px; border: 1px solid var(--bordure, #E3E8F1);
  background: #fff;
}
.bloc-livre-maison .livre-maison-titre { font-weight: 700; text-align: center; font-size: 15px; }
.bloc-livre-maison .livre-maison-auteur { color: var(--gris-texte); font-size: 13.5px; }
.bloc-livre-maison .livre-maison-voir { color: var(--bleu-profond); font-size: 13.5px; font-weight: 600; }


/* Palier 223 (remarque de Laurent : « les boutons doivent être alignés
   entre un élément et un autre ») — L'ALIGNEMENT NE DÉPEND PLUS DU TEXTE.
   La carte de session devient une colonne pleine hauteur : le bouton
   « S'informer / s'inscrire » s'ancre en bas (margin-top auto), et le
   chapo se coupe proprement en fin de ligne, à quatre lignes — plus
   jamais au milieu d'un mot ni à des hauteurs disparates. */
.carte-session { display: flex; }
.carte-session .carte-lien { display: flex; flex-direction: column; width: 100%; }
.carte-session .carte-corps { display: flex; flex-direction: column; flex: 1 1 auto; }
.carte-session .carte-chapo {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.carte-session .carte-lire { margin-top: auto; padding-top: 12px; }


/* Palier 224 — la sélection groupée de la médiathèque. */
.barre-selection-media { margin: 0 0 18px; }
.barre-selection-media form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.case-selection-media {
  display: flex; align-items: center; gap: 7px; margin: 0 0 8px;
  font-family: var(--sans); font-size: 13.5px; color: var(--encre); cursor: pointer;
}
.case-selection-media input { width: 16px; height: 16px; accent-color: var(--bleu-profond); cursor: pointer; }


/* Palier 225 — la mention « Dernières places ! » qui attire l'œil quand
   il reste moins de cinq places, sur la liste comme sur la fiche. */
.mention-dernieres-places {
  display: inline-block; margin-left: 6px; padding: 2px 9px;
  background: #FDF0E7; color: #B23A1E; border: 1px solid #EFC9B4;
  border-radius: 999px; font-family: var(--sans); font-size: 12.5px;
  font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
}


/* Palier 229 — le dialogue « Lier vers le magazine », et les liens posés
   dans le corps des contenus. */
.lien-magazine-fond {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(16, 24, 40, 0.45); align-items: center; justify-content: center;
}
.lien-magazine-fond.ouvert { display: flex; }
.lien-magazine-boite {
  width: min(480px, calc(100vw - 32px)); background: #fff; border-radius: 12px;
  padding: 18px 20px 16px; box-shadow: 0 18px 50px rgba(16, 24, 40, 0.25);
}
.lien-magazine-titre { font-weight: 700; margin: 0 0 10px; }
.lien-magazine-champ { display: block; font-family: var(--sans); font-size: 13.5px; margin: 10px 0 4px; }
.lien-magazine-champ input { width: 100%; margin-top: 4px; }
.lien-magazine-resultats { list-style: none; margin: 6px 0 2px; padding: 0; max-height: 190px; overflow: auto; }
.lien-magazine-resultats li { margin: 0; }
.lien-magazine-resultats button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 7px 8px; border-radius: 7px; font-family: var(--sans); font-size: 14px;
}
.lien-magazine-resultats button:hover { background: #F1F5FB; }
.lien-magazine-type {
  display: inline-block; min-width: 86px; color: var(--gris-texte);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
}
.lien-magazine-vide { color: var(--gris-texte); font-family: var(--sans); font-size: 13.5px; padding: 6px 8px; }
.lien-magazine-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.contenu-corps a { color: var(--bleu-profond); text-decoration: underline; text-underline-offset: 2px; }
.contenu-corps a:hover { text-decoration-thickness: 2px; }


/* Palier 232 — le bloc « Image de bannière » se distingue du visuel :
   un encadré à part, pour que les deux images ne se confondent plus. */
.bloc-visuel-une {
  margin-top: 22px; padding: 14px 16px 12px;
  border: 1px solid var(--trait, #D8DEE9); border-radius: 10px;
  background: #F7F9FC;
}
.bloc-visuel-une .mediatheque-titre { margin-top: 0; }


/* Palier 232 — LE CADRE DU BANDEAU AU FORMAT DE LA BANNIÈRE (constat de
   Laurent : « l'image reste coupée, même si elle est moins coupée »). La
   hauteur du bandeau suivait le TEXTE — aucun format d'image ne pouvait y
   tenir exactement. Sur grand écran, le bandeau adopte désormais le ratio
   exact de la bannière (1600 / 730) : elle s'affiche entière. Si le texte
   déborde (écran étroit, long titre), le cadre s'étire — l'image se recadre
   alors légèrement plutôt que d'écraser le texte. Sur téléphone, la règle
   16:10 du palier 157 continue de s'appliquer. */
@media (min-width: 861px) {
  .hero-roulement .hero,
  .hero-actualites .hero {
    aspect-ratio: 1600 / 730;
    min-height: 0;
    display: flex;
    align-items: center;
  }
  .hero-roulement .hero-inner,
  .hero-actualites .hero-inner {
    width: 100%;
    padding: clamp(28px, 4vw, 72px) 48px;
  }
}


/* Palier 233 — la pastille « En bref » sur l'image des cartes, la mention
   de fin d'article, et le dialogue de lien agrandi (liste déroulante des
   contenus récents, bouton « Voir »). */
.carte-visuel { position: relative; }
.badge-en-bref {
  /* palier 235 — en bas à gauche, partout (carrousel compris). */
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: var(--bleu-profond); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

.lien-magazine-boite { width: min(640px, calc(100vw - 32px)); }
.lien-magazine-resultats { max-height: 340px; }
.lien-magazine-resultats li { display: flex; align-items: stretch; gap: 4px; }
.lien-magazine-resultats li > button:first-child { flex: 1; }
.lien-magazine-voir {
  flex: 0 0 auto; background: none; border: 1px solid var(--trait, #D8DEE9);
  border-radius: 7px; cursor: pointer; padding: 0 10px;
  font-family: var(--sans); font-size: 12.5px; color: var(--bleu-profond);
}
.lien-magazine-voir:hover { background: #F1F5FB; }


/* Palier 234 — le repère « Lire l'article complet » dans l'éditeur (même
   langage visuel que la section), sa forme de bouton à la lecture, et
   l'aperçu agrandi des vignettes au survol. */
.ql-editor p.marqueur-lire-complet {
  display: block; background: #EEF6EF; border: 1px dashed #2E7D46;
  border-radius: 8px; padding: 12px 16px; margin: 20px 0;
  font-family: var(--sans, system-ui, sans-serif); font-size: 13.5px;
  font-weight: 600; letter-spacing: 0.2px;
}
.ql-editor p.marqueur-lire-complet a { color: #2E7D46; pointer-events: none; text-decoration: none; }
.ql-editor p.marqueur-lire-complet::after {
  content: " — repère : la mention s'affichera ici, en bouton";
  font-weight: 400; color: #4E6B57;
}
.contenu-corps p.marqueur-lire-complet { margin: 26px 0 10px; }
.contenu-corps p.marqueur-lire-complet a {
  display: inline-block; background: var(--bleu-profond); color: #fff;
  padding: 11px 22px; border-radius: 999px; text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
}
.contenu-corps p.marqueur-lire-complet a:hover { filter: brightness(1.12); }
.apercu-phototheque {
  display: none; position: fixed; z-index: 1300; width: 460px; max-width: 46vw;
  background: #fff; border: 1px solid var(--trait, #D8DEE9); border-radius: 10px;
  box-shadow: 0 16px 44px rgba(16, 24, 40, 0.28); padding: 8px;
  pointer-events: none;
}
.apercu-phototheque.visible { display: block; }
.apercu-phototheque img { display: block; width: 100%; border-radius: 6px; }
.apercu-phototheque-nom {
  display: block; margin-top: 6px; font-family: var(--sans);
  font-size: 12px; color: var(--gris-texte); word-break: break-all;
}


/* Palier 235 — le cadre image du carrousel « À la une » porte la pastille. */
.carrousel-visuel { position: relative; display: block; }

/* Palier 235 — le fichier réservé du magazine se signale dans la
   médiathèque, sans case ni bouton de suppression. */
.carte-media-reservee { color: var(--bleu-profond); font-weight: 600; }


/* Palier 236 — le format court se repère dans la liste d'administration. */
.badge-liste-en-bref {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--bleu-profond); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}


/* Palier 237 — la croix de retrait et le repère « plusieurs emplacements »
   sur l'écran Composition. */
.compo-ligne { display: flex; align-items: baseline; gap: 8px; }
.compo-ligne .compo-intitule { flex: 1; }
.compo-retrait { display: inline; margin: 0; }
.compo-croix {
  border: 1px solid var(--trait, #D8DEE9); background: #fff; cursor: pointer;
  border-radius: 6px; width: 24px; height: 24px; line-height: 1;
  font-size: 15px; color: var(--gris-texte); padding: 0;
}
.compo-croix:hover { background: #FBE9E9; border-color: #C0392B; color: #C0392B; }
.compo-multiple {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #F2E7C9; color: #6B5320; border: 1px solid #D9C48A;
  font-family: var(--sans); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.compo-ligne-multiple { border-left: 3px solid #D9A521; padding-left: 8px; }


/* Palier 240 — l'engagement associatif et le dossier de présentation. */
.encart-engagement {
  margin: 22px 0; padding: 16px 20px; border-radius: 10px;
  background: var(--brume-bleue, #EEF3FB);
  border-left: 3px solid var(--bleu-profond);
}
.encart-engagement-etat { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.page-lien-annexe { margin-top: 30px; color: var(--gris-texte); font-size: 15px; }
.bloc-partage-lien { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.champ-lien-partage {
  flex: 1 1 320px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--trait, #D8DEE9); background: #F7F9FC;
  font-family: var(--sans); font-size: 14px; color: var(--gris-texte);
}


/* Palier 242 — le COMPTEUR citoyen (le bandeau du palier 241 devient un
   compteur : montant, jauge, amorçage). Il vit sur l'accueil, sur À propos
   et sur la page d'abonnement. */
.compteur-citoyen {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center;
  margin: 40px auto; padding: 26px 30px; max-width: 1180px;
  border-radius: 16px; background: var(--brume-bleue, #EEF3FB);
  border: 1px solid #D6E0F0;
}
.compteur-citoyen-pastille {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #D6E0F0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--bleu-profond);
}
.compteur-citoyen-titre {
  margin: 0 0 10px; font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; color: var(--bleu-profond);
}
.compteur-citoyen-phrase {
  margin: 0 0 18px; font-family: var(--sans); font-size: 15.5px;
  line-height: 1.55; color: var(--gris-texte); max-width: 46ch;
}
.compteur-citoyen-lien { display: inline-block; }
.compteur-citoyen-jauge {
  background: #fff; border: 1px solid #D6E0F0; border-radius: 12px; padding: 20px 22px;
}
.compteur-citoyen-libelle {
  margin: 0; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-texte);
}
.compteur-citoyen-montant {
  margin: 4px 0 14px; font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 52px); font-weight: 600; line-height: 1;
  color: var(--bleu-profond);
}
.jauge-citoyenne {
  height: 10px; border-radius: 999px; background: #E3EAF6; overflow: hidden;
}
.jauge-citoyenne-remplissage {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2A4A82, #16233F);
  transition: width .6s ease;
}
.compteur-citoyen-etape {
  margin: 10px 0 0; font-family: var(--sans); font-size: 14px;
  line-height: 1.5; color: var(--bleu-profond);
}
.compteur-citoyen-mention {
  margin: 8px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--gris-texte);
}
@media (max-width: 860px) {
  .compteur-citoyen { grid-template-columns: 1fr; padding: 22px; }
}

.encart-engagement-libelle {
  margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-texte);
}
.encart-engagement-montant {
  margin: 4px 0 10px; font-family: var(--serif);
  font-size: 40px; font-weight: 600; color: var(--bleu-profond);
}
.encart-engagement-detail { margin: 0; font-size: 15px; }


/* Palier 243 — l'image de l'engagement : en grand sur la page qui explique,
   en pastille ronde dans le compteur (accueil et page d'abonnement). */
.figure-engagement { margin: 24px 0 30px; }
.figure-engagement img {
  display: block; width: 100%; border-radius: 14px;
  aspect-ratio: 1600 / 1000; object-fit: cover;
}
.compteur-citoyen-texte { position: relative; }
.compteur-citoyen-vignette {
  float: right; width: 96px; height: 96px; margin: 0 0 10px 18px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
}
@media (max-width: 860px) {
  .compteur-citoyen-vignette { width: 72px; height: 72px; margin-left: 14px; }
}


/* Palier 246 — le réglage des limites de carrousel, sur l'écran Composition. */
.reglage-limites {
  margin: 6px 0 18px; padding: 12px 16px; border-radius: 10px;
  background: var(--brume-bleue, #EEF3FB); border: 1px solid #D6E0F0;
}
.reglage-limites-texte {
  margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--sans); font-size: 14.5px; color: var(--bleu-profond);
}
.reglage-limites-texte .saisie-tableau { width: 64px; }
.reglage-limites-aide { margin: 8px 0 0; }


/* Palier 247 — la page d'erreur du magazine. */
.page-erreur { text-align: center; padding-top: 30px; }
.erreur-code {
  margin: 0; font-family: var(--serif); font-size: clamp(64px, 10vw, 120px);
  font-weight: 600; line-height: 1; color: #D8DEE9;
}
.erreur-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }


/* Palier 249 — le dépôt d'une bande-son dans la fiche d'un podcast. */
.depot-audio { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.depot-audio-label { font-family: var(--sans); font-size: 14px; color: var(--gris-texte); }
.depot-audio input[type="file"] { font-family: var(--sans); font-size: 13px; }

/* Palier 258 — le bandeau de relecture d'une parution programmée : visible
   de la rédaction seule, il doit se distinguer sans imiter une alerte. */
.bandeau-programme { max-width: 1200px; margin: 0 auto 18px; padding: 10px 16px;
  background: #eef3fa; border-left: 4px solid var(--bleu-profond);
  font-family: var(--sans); font-size: 14px; color: var(--bleu-profond); }

/* Palier 259 — l'appel qui remplace le « 0 € » avant le premier euro : même
   présence typographique que le montant (serif, grande taille) pour que le
   bloc garde son équilibre, mais sans imiter un chiffre. */
.compteur-citoyen-appel { font-family: var(--serif); font-size: 34px;
  font-weight: 600; color: var(--bleu-profond); line-height: 1.15;
  margin: 2px 0 14px; }
@media (max-width: 700px) { .compteur-citoyen-appel { font-size: 28px; } }

/* --------------------------------------------------------------------------
   En-tête sur téléphone — alignement du menu, du logo et de la marque
   (constat de Laurent, captures du 17/08/2026, site en production)

   L'en-tête s'empilait sur TROIS niveaux : le bouton de menu seul, puis la
   marque, puis les actions. Cause : `.header-inner` passe en `flex-wrap:
   wrap` sous 960 px, et `.brand-name` reste en `white-space: nowrap` à
   26 px — soit environ 250 px, auxquels s'ajoutent le logo de 44 px et ses
   écarts. La marque ne tenait plus à côté du bouton de menu et basculait à
   la ligne, laissant le bouton seul au-dessus.

   Le bouton de menu, le logo et « Mon Couple Magazine » tiennent désormais
   sur UNE ligne, alignés sur leur axe. Les actions (casque, compte,
   S'abonner) passent en dessous, calées à droite : deux niveaux au lieu de
   trois, et une hauteur d'en-tête réduite d'environ un tiers.
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px 10px; }

  /* Le bouton ne se comprime jamais : c'est le repère de navigation. */
  .bouton-menu { flex: 0 0 auto; }

  /* La marque occupe la place restante et accepte de se réduire —
     `min-width: 0` est indispensable, sans quoi un enfant en nowrap
     impose sa largeur au conteneur flex et le débordement revient. */
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .brand-logo { height: 38px; }
  .brand-name {
    font-size: 22px;
    white-space: normal;
    line-height: 1.12;
    letter-spacing: -0.2px;
  }

  /* Les actions forment le second niveau, alignées à droite. */
  .header-actions { order: 3; flex-basis: 100%; margin-left: 0; justify-content: flex-end; gap: 12px; }
}

/* Écrans très étroits (moins de 380 px) : la marque perd encore deux points
   pour rester sur une seule ligne à côté du bouton. */
@media (max-width: 380px) {
  .brand-logo { height: 34px; }
  .brand-name { font-size: 20px; }
  .header-inner { gap: 6px 10px; }
}
