/* L'Édito. Tokens Moriarty v2 (couleurs, typographie, effets), polices déjà
   servies par le site : Dosis, Moriarty1, DM Mono auto-hébergé.
   Aucun style en ligne : la CSP de /edito/** reste bloquante. */

@font-face {
  font-family: 'Dosis';
  src: url('/font/Dosis-VariableFont_wght.woff2') format('woff2'),
    url('/font/Dosis-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Moriarty';
  src: url('/font/Moriarty1.woff2') format('woff2'),
    url('/font/Moriarty1.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/font/DMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/font/DMMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #002e72;
  --navy-deep: #001b45;
  /* Oranges Moriarty. Mêmes teintes que $orange et $orange-secondary (src/assets/css/var.scss). */
  --orange: #c2410e;
  --orange-secondary: #e14f0b;
  --orange-700: var(--orange);
  --blue-deep: #4f78b8;
  --white: #ffffff;
  --muted: #5a6b8c;
  --b-surface1: #ebeff5;
  --b-well: rgba(0, 46, 114, 0.055);
  --b-well-orange: rgba(194, 65, 14, 0.07);
  --b-highlight: #f3f6fb;
  --t-primary: var(--navy-deep);
  --t-secondary: var(--muted);
  --t-tertiary: #56678a;
  --t-light: var(--white);
  --t-accent: var(--orange-700);
  --t-blue: var(--navy);
  --kicker: var(--orange-700);
  --s-subtle: rgba(0, 46, 114, 0.1);
  --accent-soft-bg: rgba(194, 65, 14, 0.08);
  --font-brand: 'Moriarty', 'Dosis', system-ui, sans-serif;
  --font-display: 'Dosis', system-ui, sans-serif;
  --font-body: 'Dosis', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --grad-primary: linear-gradient(180deg, #0a3e8c 0%, #002e72 100%);
  --grad-accent: var(--orange);
  --shadow-widget: 0 5px 1.5px -4px rgba(0, 27, 69, 0.09),
    0 6px 4px -4px rgba(0, 27, 69, 0.05);
  --shadow-depth: 0 2.15px 0.5px -2px rgba(0, 27, 69, 0.25),
    0 24px 24px -16px rgba(0, 27, 69, 0.04),
    0 6px 13px 0 rgba(0, 27, 69, 0.03);
  --shadow-accent-glow: 0 10px 24px -8px rgba(194, 65, 14, 0.45),
    0 2px 4px -2px rgba(194, 65, 14, 0.3);
  --radius-carte: 32px;
  --radius-puits: 20px;
  --radius-bouton: 24px;
  --success: #1e7a52;
  --cal-ouverture-text: var(--success);
  --cal-ouverture-bg: color-mix(in srgb, var(--success) 7%, transparent);
  --cal-ouverture-border: color-mix(in srgb, var(--success) 35%, transparent);
  --cal-releve-text: var(--navy);
  --cal-releve-bg: color-mix(in srgb, var(--navy) 6%, transparent);
  --cal-releve-border: color-mix(in srgb, var(--navy) 30%, transparent);
  --cal-cloture-text: var(--orange);
  --cal-cloture-bg: color-mix(in srgb, var(--orange) 8%, transparent);
  --cal-cloture-border: var(--orange-secondary);
  --cal-cell-bg: var(--white);
  --cal-cell-border: var(--s-subtle);
  --cal-weekend-bg: var(--b-well);
  --cal-day-num: var(--t-secondary);
  --marge-page: clamp(24px, 4vw, 64px);
  --largeur-article: 1280px;
  --largeur-liste: 1440px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body {
  margin: 0;
  padding-top: 70px;
  background: var(--b-surface1);
  color: var(--t-primary);
  font-family: var(--font-body);
  font-size: clamp(17px, 0.15vw + 16.4px, 19px);
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: var(--t-accent); }
:where(a, summary):focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { top: 78px; }

/* En-tête du site (src/components/header) : barre fixe, deux publics, sans script.
   #public-experts est l'ancre du lien « L'Édito » du menu cabinets. */
.site-ancre { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-entete {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 70px;
  background: #fff;
}
.site-entete-barre {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(92.86rem, 100%);
  height: 70px;
  margin: 0 auto;
  padding: 15px 40px;
}
.site-logo { display: flex; flex: 0 0 auto; }
.site-logo img { display: block; width: 120px; height: 38px; object-fit: contain; }
.site-menu ul, .pied ul, .filtres, .lire-aussi ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-menu-barre { flex: 1; min-width: 0; }
.site-menu-barre ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-menu a {
  color: #000;
  font-weight: 600;
  font-size: 15px;
  line-height: 25px;
  white-space: nowrap;
  text-decoration: none;
  padding: 0 8px;
}
.site-menu a:hover, .site-menu a[aria-current] {
  color: var(--orange);
  text-decoration: none;
  box-shadow: none;
}
.site-bascule {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: 40px;
  margin: 0 12px 0 8px;
  padding: 3px;
  border: 1px solid #d3dcea;
  border-radius: 999px;
  background: #fff;
}
.site-bascule-choix {
  display: block;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: #002e72;
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
  text-decoration: none;
}
.site-bascule-choix:hover { background: #eef2f8; color: #002e72; }
.site-bascule-entreprises {
  color: #fff;
  background: #002e72;
}
.site-bascule-entreprises:hover { color: #fff; background: #002e72; }
html:has(#public-experts:target) .site-bascule-entreprises {
  color: #002e72;
  background: transparent;
}
html:has(#public-experts:target) .site-bascule-experts {
  color: #fff;
  background: #002e72;
}
.site-connexion {
  flex-shrink: 0;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-connexion:hover { color: var(--orange); }
.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  margin-left: 12px;
  padding: 0 16px;
  border: 2px solid var(--orange);
  border-radius: 60px;
  background: transparent;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.site-cta:hover {
  background: var(--orange-secondary);
  border-color: var(--orange-secondary);
  color: #fff;
}
.site-pour-experts { display: none; }
@media screen and (min-width: 1001px) {
  html:has(#public-experts:target) .site-menu-barre.site-pour-entreprises,
  html:has(#public-experts:target) .site-cta-barre.site-pour-entreprises { display: none; }
  html:has(#public-experts:target) .site-menu-barre.site-pour-experts { display: block; }
  html:has(#public-experts:target) .site-cta-barre.site-pour-experts { display: inline-flex; }
}
.site-burger { display: none; margin-left: auto; }
.site-burger summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  color: #000;
}
.site-burger summary::-webkit-details-marker { display: none; }
.site-burger-fermer { display: none; }
.site-burger[open] .site-burger-ouvrir { display: none; }
.site-burger[open] .site-burger-fermer { display: block; }
.site-menu-mobile { display: none; }

@media screen and (max-width: 1439px) {
  .site-bascule-suite { display: none; }
}
@media screen and (max-width: 1239px) {
  .site-bascule-fin { display: none; }
}
@media screen and (max-width: 1179px) and (min-width: 1001px) {
  .site-entete-barre { padding: 15px 20px; }
  .site-menu a { padding: 0 4px; font-size: 14px; }
  .site-bascule { margin-right: 8px; }
}
@media screen and (max-width: 1000px) {
  html { scroll-padding-top: 78px; }
  body { padding-top: 62px; }
  .site-entete {
    height: 62px;
    background: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
  }
  .site-entete-barre { height: 62px; max-width: 100%; padding: 11px 15px; gap: 8px; }
  .site-menu-barre, .site-cta-barre, .site-connexion-barre { display: none; }
  .site-burger { display: block; }
  .site-burger-panneau {
    position: fixed;
    z-index: 19;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
    overflow: auto;
    background: #fff;
  }
  .site-menu-mobile.site-pour-entreprises { display: block; width: 100%; }
  .site-menu-mobile ul { display: flex; flex-direction: column; align-items: center; }
  .site-menu-mobile a {
    font-size: 25px;
    font-weight: 600;
    line-height: 60px;
  }
  .site-burger .site-connexion { margin: 10px 0 24px; font-size: 25px; }
  .site-cta-mobile.site-pour-entreprises {
    display: flex;
    width: 100%;
    max-width: 420px;
    height: 54px;
    margin: 0;
    font-size: 22px;
  }
  html:has(#public-experts:target) .site-menu-mobile.site-pour-entreprises,
  html:has(#public-experts:target) .site-cta-mobile.site-pour-entreprises { display: none; }
  html:has(#public-experts:target) .site-menu-mobile.site-pour-experts { display: block; }
  html:has(#public-experts:target) .site-cta-mobile.site-pour-experts {
    display: flex;
    width: 100%;
    max-width: 420px;
    height: 54px;
    margin: 0;
    font-size: 22px;
  }
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-bouton);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.bouton-contour {
  border: 1.5px solid var(--orange);
  color: var(--t-accent);
  background: transparent;
}
.bouton-contour:hover { background: var(--accent-soft-bg); }
.bouton-plein {
  border: 0;
  background: var(--grad-accent);
  color: var(--t-light);
  box-shadow: var(--shadow-accent-glow);
}
.bouton-plein:hover { background: var(--orange-secondary); color: var(--t-light); }

.hero {
  margin: 20px auto 0;
  width: min(var(--largeur-liste), calc(100% - 2 * var(--marge-page)));
  background: var(--grad-primary);
  border-radius: 40px 40px 0 0;
  color: var(--t-light);
}
.hero-inner { max-width: 760px; padding: 64px 40px 56px; }
.hero h1 {
  margin: 14px 0 0;
  color: var(--t-light);
  font-size: clamp(40px, 6vw, 64px);
}
.hero-chapo {
  margin: 18px 0 0;
  max-width: 46em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}
.kicker {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 0.15vw + 11px, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--navy); }
.kicker-inverse { color: var(--orange-secondary); }
.kicker-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.kicker-tags a { text-decoration: none; }

h1 {
  margin: 12px 0 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  word-spacing: 0.13em;
  text-wrap: balance;
}
.enveloppe {
  width: min(var(--largeur-liste), calc(100% - 2 * var(--marge-page)));
  margin: 0 auto;
}
.enveloppe-article {
  width: min(var(--largeur-article), calc(100% - 2 * var(--marge-page)));
  max-width: none;
  padding-top: 36px;
}
.enveloppe-page { padding-top: 36px; }
.chapo {
  margin: 16px 0 0;
  font-size: clamp(19px, 0.25vw + 16px, 22px);
  line-height: 1.5;
  color: var(--t-secondary);
}
.meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--t-tertiary);
}

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.filtres a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--t-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-widget);
}
.filtres a[aria-current='page'] { background: var(--navy); color: var(--t-light); }

.grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.5vw, 24px);
  margin-top: 20px;
}
.carte {
  background: var(--white);
  border-radius: var(--radius-carte);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-widget);
}
.carte h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 0.3vw + 18px, 26px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.carte h2 a { color: var(--t-primary); text-decoration: none; }
.carte h2 a:hover { color: var(--t-blue); }
.carte-chapo { margin: 10px 0 0; color: var(--t-secondary); font-size: 15px; }

.auteur {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.auteur picture {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}
.auteur img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.auteur-signature {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auteur-nom { font-weight: 700; font-size: 16px; }
.auteur-role { font-weight: 500; font-size: 14px; color: var(--t-secondary); }

.article-rangee { display: block; }
.article-rail { display: none; }
.article-suite > .mesure { margin-top: 8px; }
.sommaire { margin: 4px 0 20px; }
.sommaire ol { list-style: none; margin: 10px 0 0; padding: 0; }
.sommaire li { margin: 0; }
.sommaire a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid var(--s-subtle);
  color: var(--t-primary);
  font-weight: 600;
  font-size: clamp(15px, 0.15vw + 13px, 17px);
  line-height: 1.35;
  text-decoration: none;
}
.sommaire li:last-child a { border-bottom: 1px solid var(--s-subtle); }
.sommaire a:hover { color: var(--t-accent); }
.article-rail .auteur { margin-top: 0; }
.article-rail .appel { margin-top: 8px; }

.en-bref {
  background: var(--b-well-orange);
  border-radius: var(--radius-puits);
  padding: 22px 24px 8px;
  margin: 8px 0 28px;
}
.en-bref p { margin: 0 0 12px; }

.prose h2, .faq h2, .agenda-bloc h2, .fiches-bloc h2, .lire-aussi h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 1.1vw + 14px, 36px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 0.3vw + 16px, 24px);
}
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 700; }
.prose a { font-weight: 700; }
.mention {
  position: relative;
  display: inline;
  padding: 1px 2px 1px 6px;
  border-radius: 6px;
  background: var(--b-well);
  color: var(--t-primary);
  font-weight: 700;
  text-decoration: none;
  box-decoration-break: clone;
}
.mention-puce {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--t-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  vertical-align: 1px;
}
.mention-carte {
  display: none;
  position: absolute;
  z-index: 4;
  left: 0;
  top: calc(100% + 6px);
  width: min(280px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-depth);
  text-align: left;
  white-space: normal;
}
.mention:hover .mention-carte,
.mention:focus .mention-carte,
.mention:focus-within .mention-carte {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mention-titre {
  color: var(--t-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.mention-financeur {
  color: var(--t-secondary);
  font-weight: 500;
  font-size: 13px;
}
.mention-ouvrir {
  color: var(--t-accent);
  font-weight: 700;
  font-size: 13px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--b-well);
  padding: 0 4px;
  border-radius: 4px;
}

.tableau {
  background: var(--white);
  border-radius: 24px;
  padding: 8px 8px 4px;
  box-shadow: var(--shadow-widget);
  overflow-x: auto;
  margin: 8px 0 28px;
}
/* La carte est en absolu, calée à gauche du lien (left: 0). Dans la dernière
   colonne ce bord est déjà contre le bord droit du tableau, et overflow-x: auto
   calcule aussi overflow-y en auto : la carte est coupée. On aligne la carte
   sur le bord droit du lien pour qu'elle s'ouvre vers l'intérieur. inline-block
   évite qu'un lien revenu à la ligne ne prenne que sa première ligne comme
   repère. La largeur reste dans la zone utile du tableau, et la dernière ligne
   s'ouvre vers le haut pour ne pas dépasser le bas. */
.tableau td:last-child .mention,
.tableau th:last-child .mention {
  display: inline-block;
  max-width: 100%;
}
.tableau td:last-child .mention-carte,
.tableau th:last-child .mention-carte {
  left: auto;
  right: 0;
  width: min(280px, calc(100vw - 2 * var(--marge-page) - 32px));
}
.tableau tr:last-child .mention-carte {
  top: auto;
  bottom: calc(100% + 6px);
}
table { width: 100%; border-collapse: collapse; font-size: clamp(15px, 0.2vw + 13px, 17px); }
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  padding: 14px 14px 6px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--s-subtle);
  vertical-align: top;
}
thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-tertiary);
}
tbody th { font-weight: 700; }
tbody tr:hover { background: var(--b-highlight); }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  position: relative;
  padding-bottom: 22px;
}
.agenda li::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 76px;
  bottom: 0;
  width: 1.5px;
  background: var(--s-subtle);
}
.agenda li:last-child::before { display: none; }
.agenda time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 76px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-widget);
}
.agenda-jour {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
}
.agenda-mois {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--t-tertiary);
  text-align: center;
}
.agenda-titre { margin: 8px 0 0; font-weight: 700; }
.agenda-detail { margin: 4px 0 0; color: var(--t-secondary); }

.faq-liste { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius-puits);
  padding: 4px 20px;
  box-shadow: var(--shadow-widget);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-reponse { padding-bottom: 8px; color: var(--t-secondary); }
.faq-reponse p { margin: 0 0 10px; }

.fiches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fiches a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: var(--shadow-widget);
  text-decoration: none;
  color: inherit;
}
.fiches a:hover { box-shadow: var(--shadow-depth); }
.fiche-titre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--t-primary);
}
.fiche-resume { color: var(--t-secondary); font-size: 15px; }

.lire-aussi {
  margin-top: 12px;
  background: var(--b-well);
  border-radius: var(--radius-puits);
  padding: 8px 22px 18px;
}
.lire-aussi a { font-weight: 700; }
.calendrier-bloc { margin: 8px 0 28px; }
.cal-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.cal-legende li {
  font-size: clamp(13px, 0.15vw + 12px, 15px);
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid transparent;
}
.cal-legende .cal-ev--ouverture { color: var(--cal-ouverture-text); border-color: var(--cal-ouverture-border); }
.cal-legende .cal-ev--releve { color: var(--cal-releve-text); border-color: var(--cal-releve-border); }
.cal-legende .cal-ev--cloture { color: var(--cal-cloture-text); border-color: var(--cal-cloture-border); }
.calendrier {
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
  font-size: clamp(14px, 0.15vw + 12.5px, 16px);
  hyphens: auto;
}
.calendrier col.we { width: 10%; }
.calendrier caption { padding: 0 4px 8px; }
.calendrier th,
.calendrier td {
  border-bottom: none;
  padding: 8px 6px;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}
.calendrier thead th {
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  font-size: clamp(13px, 0.15vw + 12px, 15px);
  padding: 4px 2px;
}
.calendrier tbody tr:hover { background: transparent; }
.calendrier td {
  background: var(--cal-cell-bg);
  border: 1px solid var(--cal-cell-border);
  border-radius: 10px;
  height: 4.75rem;
}
.calendrier td.we { background: var(--cal-weekend-bg); }
.calendrier td.hors {
  background: transparent;
  border-color: transparent;
}
.calendrier time {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.15vw + 12px, 15px);
  color: var(--cal-day-num);
}
.calendrier ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.calendrier .cal-ev {
  margin: 0 0 6px;
  padding: 4px 4px 4px 6px;
  border-left: 3px solid transparent;
  border-radius: 4px;
  line-height: 1.3;
}
.calendrier .cal-ev a {
  display: block;
  max-height: calc(1.3em * 3);
  overflow: hidden;
  font-size: clamp(14px, 0.15vw + 12.5px, 16px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--t-primary);
  text-decoration: none;
  word-break: normal;
  overflow-wrap: break-word;
}
@supports (-webkit-line-clamp: 3) {
  .calendrier .cal-ev a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-height: none;
  }
}
.calendrier .cal-ev-type,
.calendrier .cal-ev-org {
  display: block;
  overflow: hidden;
  font-size: clamp(13px, 0.1vw + 12px, 14px);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--t-secondary);
}
.calendrier .cal-ev--ouverture { background: var(--cal-ouverture-bg); border-color: var(--cal-ouverture-border); }
.calendrier .cal-ev--releve { background: var(--cal-releve-bg); border-color: var(--cal-releve-border); }
.calendrier .cal-ev--cloture { background: var(--cal-cloture-bg); border-color: var(--cal-cloture-border); }
.calendrier-liste {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.calendrier-liste > li { margin: 0 0 8px; }
.calendrier-liste h3 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 0.3vw + 15px, 22px);
}
.calendrier-liste ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.calendrier-liste .cal-ev {
  margin: 0 0 12px;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: var(--white);
}
.calendrier-liste .cal-ev--ouverture { border-color: var(--cal-ouverture-border); }
.calendrier-liste .cal-ev--releve { border-color: var(--cal-releve-border); }
.calendrier-liste .cal-ev--cloture { border-color: var(--cal-cloture-border); }
.calendrier-liste .cal-ev-type { margin: 0; font-size: 13px; font-weight: 700; }
.calendrier-liste .cal-ev--ouverture .cal-ev-type { color: var(--cal-ouverture-text); }
.calendrier-liste .cal-ev--releve .cal-ev-type { color: var(--cal-releve-text); }
.calendrier-liste .cal-ev--cloture .cal-ev-type { color: var(--cal-cloture-text); }
.calendrier-liste .cal-ev-titre { margin: 4px 0 0; font-size: clamp(14px, 0.15vw + 12.5px, 16px); }
.calendrier-liste .cal-ev-org,
.calendrier-liste .cal-ev-detail { margin: 2px 0 0; font-size: clamp(14px, 0.15vw + 12.5px, 16px); color: var(--t-secondary); }
.calendrier-liste .cal-ev-liens { margin: 8px 0 0; font-size: clamp(14px, 0.15vw + 12.5px, 16px); }

.appel { margin: 32px 0 8px; }
.prose .appel { margin: 28px 0 20px; }
.appel .bouton {
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  white-space: normal;
}

.pied { margin-top: 48px; padding: 8px 0 40px; }
.pied-barre {
  width: min(var(--largeur-liste), calc(100% - 2 * var(--marge-page)));
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1.5px solid var(--s-subtle);
  color: var(--t-secondary);
  font-size: 14px;
}
.pied ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.pied a {
  color: var(--t-blue);
  font-weight: 700;
  text-decoration: none;
}
.page-article .pied-barre {
  width: min(var(--largeur-article), calc(100% - 2 * var(--marge-page)));
}

@media (max-width: 980px) {
  .menu, .entete-barre > .bouton { display: none; }
  .menu-mobile { display: block; }
  .hero-inner { padding: 40px 24px 36px; }
  .hero { border-radius: 28px 28px 0 0; }
}
@media (min-width: 720px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-rangee {
    display: grid;
    grid-template-columns: minmax(0, 72ch) minmax(240px, 320px);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    justify-content: space-between;
  }
  .article-rail {
    display: block;
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
  .article-texte > .auteur,
  .appel-pied { display: none; }
  .mesure { max-width: 72ch; }
  .fiches { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1680px) {
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .calendrier-grille { display: none; }
  .calendrier-liste { display: block; }
}
@media (max-width: 640px) {
  .agenda li { grid-template-columns: 76px 1fr; gap: 12px; }
  .agenda time { width: 76px; height: 68px; }
  .agenda li::before { left: 37px; }
  .entete-barre { border-radius: 28px; }
}
