/* ============================================================
   Interslide — Calque de redesign (2026-05)
   Additif, chargé APRÈS theme.min.css + le CSS inline du Customizer.
   100% réversible : retirer l'enqueue 'interslide-redesign' dans functions.php.
   ============================================================ */

/* 1) TOKENS — palette plus nette, couleurs plus vives, plus d'air ------- */
:root {
  --accent: #e11d2a;
  --accent-dark: #b3121d;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-soft: #fbfbf9;
  --ink: #141414;
  --muted: #5d5a54;
  --line: #e6e4dd;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(18, 18, 18, .12);
  --shadow-sm: 0 10px 26px rgba(18, 18, 18, .09);
  /* dé-compacte la home (le Customizer est réglé sur "compact") */
  --home-section-space: 46px;
  --home-cell-padding: 18px;
}

body { line-height: 1.6; }

/* 2) PLACEHOLDER d'image manquante — fin du gros "Interslide" cassé ------ */
/* Remplace le bloc plat bleu/vert + texte géant par un visuel éditorial
   sobre : dégradé sombre + texture pointillée + point rouge de marque.    */
.image-placeholder {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #16171b 0%, #262830 58%, var(--accent-dark) 165%) !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden;
}
.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: .8;
}
.image-placeholder::after {
  content: "";
  position: relative;
  width: clamp(14px, 12%, 30px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .35em rgba(255, 255, 255, .08);
}

/* 3) EYEBROW catégorie — pastilles vives façon Brut (contextes clairs) --- */
.feature-card .eyebrow,
.post-card .eyebrow,
.mini-card .eyebrow,
.home-frontpage .eyebrow,
.lead-story .eyebrow,
.archive-grid .eyebrow {
  padding: 3px 9px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  letter-spacing: .06em;
}

/* 4) TITRES de section — barre rouge éditoriale --------------------------- */
.section-heading h2 {
  position: relative;
  padding-left: 16px;
}
.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .14em;
  bottom: .14em;
  width: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.section-heading.compact h2 { padding-left: 13px; }
.section-heading.compact h2::before { width: 5px; }

/* 5) CARTES — séparation nette, coins doux, élévation au survol ---------- */
.post-card,
.feature-card,
.mini-card {
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover,
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(20, 20, 20, .2);
}
.post-card:hover { box-shadow: var(--shadow-sm); }

/* 6) PLUS D'AIR — neutralise le rendu compact ---------------------------- */
.density-compact .news-section,
.density-compact .briefing-wall,
.density-compact .formats-band,
.density-compact .front-video-strip { margin-top: 46px; }
.density-compact .post-card__body,
.density-compact .feature-card__body { padding: 18px; }
.site-main { padding-bottom: 84px; }

/* 7) HERO « À la Une » — interligne resserré, titre plus présent --------- */
.home-frontpage__masthead h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
}
.home-frontpage__lead-title { line-height: 1.04; }

/* 8) RESPONSIVE — corrige le débordement / texte coupé sur mobile -------- */
.home-frontpage,
.home-frontpage__grid,
.home-frontpage__lead-column,
.section-combo,
.card-grid,
.briefing-grid { min-width: 0; }
.home-frontpage__lead-title,
.home-frontpage__side-title,
.home-frontpage__below-story h3,
.feature-card h2,
.post-card h2,
.mini-card h3,
.lead-story h1 { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .home-frontpage__grid { grid-template-columns: 1fr; }
  .home-frontpage__left-stack { padding: 0 0 14px; }
  .home-frontpage__lead-column {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }
  .home-frontpage__right-rail {
    position: static;
    max-height: none;
    padding: 14px 0 0;
    border-top: 1px solid rgba(20, 20, 20, .14);
  }
}

@media (max-width: 600px) {
  .section-combo,
  .formats-band { grid-template-columns: 1fr; }
  .briefing-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .home-frontpage__masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   9) ARTICLE — finitions éditoriales (lisibilité + rythme)
   Cible le gabarit réel : plugin interslide-editorial-architecture
   (<main class="iea-article">, .iea-article__body / __image).
   ============================================================ */
/* Chapô : le 1er paragraphe se distingue (taille + couleur pleine) */
.iea-article__body > p:first-of-type {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
/* Intertitres : petit tiret rouge de marque au-dessus */
.iea-article__body h2,
.iea-article__body h3,
.iea-article__body .wp-block-heading {
  position: relative;
  margin-top: 1.6em;
  padding-top: 14px;
}
.iea-article__body h2::before,
.iea-article__body h3::before,
.iea-article__body .wp-block-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
/* Légendes d'images sobres */
.iea-article__body figcaption,
.iea-article__body .wp-block-image figcaption,
.iea-article__image figcaption {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
/* Image de tête : coins doux + élévation éditoriale */
.iea-article__image {
  border-radius: var(--radius);
  overflow: hidden;
}
.iea-article__image img { box-shadow: var(--shadow-sm); }
/* Liens dans le corps : soulignement discret + survol plein accent */
.iea-article__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(225, 29, 42, .4);
  text-underline-offset: 2px;
}
.iea-article__body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ============================================================
   10) ARCHIVE / CATÉGORIE — titre marqué d'une barre rouge
   ============================================================ */
.archive-header { position: relative; }
.archive-header h1 { margin-bottom: 14px; }
.archive-header h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--accent);
}
/* Pagination : état actif/hover plus net */
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  .article-content { font-size: 17px; }
  .article-content > p:first-of-type { font-size: 19px; }
}

/* ============================================================
   11) FOOTER — bandeau sombre éditorial (injecté via wp_footer)
   ============================================================ */
.site-footer {
  margin-top: 66px;
  padding: 46px clamp(20px, 5vw, 64px) 34px;
  background: #16171b;
  border-top: 4px solid var(--accent);
  color: rgba(255, 255, 255, .62);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 18px 48px;
  align-items: start;
}
.site-footer__brand strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.site-footer__brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  line-height: 1.5;
  max-width: 40ch;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-content: start;
}
.site-footer__nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .15s ease;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
}
@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   12) MENU LATÉRAL GAUCHE (ivm-brut-menu) — plus Brut, plus net
   Sobre & réversible : on renforce le style « presse » existant.
   ============================================================ */
/* Filet rouge de marque sur le bord droit du rail */
.navigation-wrapper.ivm-brut-menu {
  box-shadow: inset -3px 0 0 rgba(225, 29, 42, .85);
}
/* Liens : plus présents */
.navigation-wrapper.ivm-brut-menu .navigation-button-link {
  border-radius: 6px;
}
.navigation-wrapper.ivm-brut-menu .navigation-link-text {
  font-weight: 800;
  letter-spacing: .01em;
}
/* Survol : pastille rouge translucide (au lieu du bleu d'origine) */
.navigation-wrapper.ivm-brut-menu .navigation-button-link:hover {
  background: rgba(225, 29, 42, .10) !important;
}
.navigation-wrapper.ivm-brut-menu .navigation-button-link:hover .navigation-link-text {
  color: var(--accent-dark);
}
/* Élément actif (Webflow w--current sur les pages rubrique) : barre rouge */
.navigation-wrapper.ivm-brut-menu .navigation-button-link.w--current {
  background: rgba(225, 29, 42, .08) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}
.navigation-wrapper.ivm-brut-menu .navigation-button-link.w--current .navigation-link-text {
  color: var(--accent-dark);
}

/* ============================================================
   13) REFONTE PAGE D'ACCUEIL — moderne, aérée, fluide (2026-05)
   Restyle complet, contenu inchangé. Override theme.css (chargé avant).
   Tout est préfixé body.home → n'affecte QUE l'accueil. 100% réversible.
   ============================================================ */

/* 13.0 — rythme général */
body.home { --home-gap: clamp(16px, 2vw, 28px); }
body.home .site-main { padding-bottom: clamp(60px, 8vw, 110px); }

/* 13.1 — Fond de chargement des médias : neutre & calme
   (remplace le dégradé bleu→vert criard visible avant le chargement des photos) */
body.home .feature-card__media,
body.home .post-card__media,
body.home .mini-card__media,
body.home .home-frontpage__side-media,
body.home .home-frontpage__lead-media {
  background: linear-gradient(135deg, #eceae4, #e1dfd7) !important;
}

/* 13.2 — CARTES : coins doux + ombre légère au lieu des bordures dures, plus d'air */
body.home .post-card,
body.home .feature-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 10px 26px rgba(18, 18, 18, .06);
  overflow: hidden;
}
body.home .post-card:hover,
body.home .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 18, 18, .14);
}
body.home .post-card__body { padding: 17px 18px 18px; }
body.home .feature-card__body { padding: 20px 22px 22px; }
body.home .post-card h2 { font-size: 20px; line-height: 1.12; }

/* 13.3 — TITRES DE SECTION : épuré, marqueur rouge vif, lien « voir plus » en pastille */
body.home .section-heading {
  align-items: center;
  margin-bottom: 22px;
  border-bottom-width: 2px;
  border-bottom-color: rgba(18, 18, 18, .12);
}
body.home .section-heading h2 {
  position: relative;
  padding-left: 0;
  padding-bottom: 12px;
}
body.home .section-heading h2::before { display: none; }
body.home .section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
body.home .section-heading a {
  align-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(225, 29, 42, .10);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease;
}
body.home .section-heading a:hover { background: var(--accent); color: #fff; }

/* 13.4 — RYTHME : plus d'espace entre les sections */
body.home .news-section,
body.home .briefing-wall,
body.home .formats-band,
body.home .front-video-strip,
body.home .home-calculator,
body.home .newsletter-band { margin-top: clamp(46px, 6vw, 82px) !important; }

/* 13.5 — HERO « À la Une » : colonnes aérées, médias arrondis, rail & lead épurés */
body.home .home-frontpage__grid {
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr) minmax(250px, .86fr);
  gap: var(--home-gap);
  margin-top: 22px;
  border-bottom: 0;
}
body.home .home-frontpage__masthead { border-bottom-color: rgba(18, 18, 18, .14); }
body.home .home-frontpage__left-stack { padding: 0; background: transparent; }
body.home .home-frontpage__lead-column {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.home .home-frontpage__lead-media,
body.home .home-frontpage__side-media { border: 0; border-radius: var(--radius); }
body.home .home-frontpage__lead-media::after { display: none; } /* pas de voile sur l'image */
body.home .home-frontpage__lead-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; }
body.home .home-frontpage__lead-standfirst { font-size: 1.05rem; }

/* Rail « En continu » en carte propre */
body.home .home-frontpage__right-rail {
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(18, 18, 18, .06);
}
body.home .home-frontpage__rail-head { padding: 11px 16px; border-radius: var(--radius) var(--radius) 0 0; }
body.home .home-frontpage__rail-list { padding: 2px 16px 8px; }
body.home .home-frontpage__rail-link { padding-left: 4px; }
body.home .home-frontpage__rail-link:hover { background: rgba(225, 29, 42, .06); padding-left: 8px; }

/* 13.6 — MINI-CARTES (« La sélection ») : respiration + ombre douce */
body.home .mini-card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 8px 20px rgba(18, 18, 18, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.home .mini-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(18, 18, 18, .12); }
body.home .briefing-grid { gap: 18px; }

/* 13.7 — Panneaux sombres (vidéos) : coins doux */
body.home .front-video-strip { border-radius: 14px; }

/* 13.8 — RESPONSIVE : fluide & lisible sur tous les écrans */
@media (max-width: 1023px) {
  body.home .home-frontpage__grid { grid-template-columns: 1fr; gap: 22px; }
  body.home .home-frontpage__right-rail { position: static; }
  /* Hiérarchie mobile : la story principale d'abord, puis les côtés, puis le direct */
  body.home .home-frontpage__lead-column { order: -1; }
  body.home .home-frontpage__left-stack { order: 0; }
  body.home .home-frontpage__right-rail { order: 1; }
}
@media (max-width: 700px) {
  body.home .section-combo { grid-template-columns: 1fr; }
  body.home .section-combo .feature-card { grid-row: auto; }
  body.home .card-grid,
  body.home .briefing-grid { grid-template-columns: 1fr; }
  body.home .section-heading h2 { font-size: 24px; }
  body.home .feature-card { grid-template-columns: 1fr; }
}

/* ============================================================
   14) HARMONISATION — cartes modernes hors accueil
   (catégorie, taxonomie, archive, recherche, auteur)
   Même traitement que l'accueil : coins doux, ombre, fond média neutre.
   ============================================================ */
body.archive .post-card,
body.archive .feature-card,
body.search .post-card,
body.search .feature-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 10px 26px rgba(18, 18, 18, .06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.archive .post-card:hover,
body.archive .feature-card:hover,
body.search .post-card:hover,
body.search .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 18, 18, .14);
}
body.archive .post-card__body,
body.search .post-card__body { padding: 17px 18px 18px; }
body.archive .post-card__media,
body.archive .feature-card__media,
body.archive .mini-card__media,
body.search .post-card__media {
  background: linear-gradient(135deg, #eceae4, #e1dfd7) !important;
}
body.archive .mini-card,
body.search .mini-card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 8px 20px rgba(18, 18, 18, .05);
}
body.archive .card-grid { gap: 18px; }

/* ============================================================
   15) ACCUEIL — boost : hero plus marquant + apparitions au scroll
   ============================================================ */
/* Hero : titre lead plus grand et plus tranché */
body.home .home-frontpage__lead-title {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.03;
  letter-spacing: -.01em;
  font-weight: 950;
}
body.home .home-frontpage__lead-standfirst { font-size: 1.08rem; }

/* Apparitions au scroll — amélioration progressive.
   L'état masqué n'existe QUE sous <html class="js-anim"> (ajouté par le JS en <head>).
   Sans JS → pas de js-anim → contenu visible. prefers-reduced-motion neutralise tout. */
html.js-anim body.home .home-frontpage,
html.js-anim body.home .home-section,
html.js-anim body.home .news-section,
html.js-anim body.home .briefing-wall,
html.js-anim body.home .formats-band,
html.js-anim body.home .front-video-strip,
html.js-anim body.home .newsletter-band {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .6, .2, 1);
  will-change: opacity, transform;
}
html.js-anim body.home .home-frontpage.is-in,
html.js-anim body.home .home-section.is-in,
html.js-anim body.home .news-section.is-in,
html.js-anim body.home .briefing-wall.is-in,
html.js-anim body.home .formats-band.is-in,
html.js-anim body.home .front-video-strip.is-in,
html.js-anim body.home .newsletter-band.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim body.home .home-frontpage,
  html.js-anim body.home .home-section,
  html.js-anim body.home .news-section,
  html.js-anim body.home .briefing-wall,
  html.js-anim body.home .formats-band,
  html.js-anim body.home .front-video-strip,
  html.js-anim body.home .newsletter-band {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
