/* Variante C « sommaire » (05/11/2026) : en-tête aligné, le slogan sous le nom et le menu dans une barre de couleur ;
   accueil en deux colonnes (titre + sommaire numéroté des rubriques) ; article à la une puis grille serrée.
   Chargée seulement quand la config pose "mise_en_page": "C" (functions.php). */

/* En-tête */
body.ed-mep-c .ed-marque-texte { display: flex; flex-direction: column; gap: .1rem; line-height: 1.1; }
body.ed-mep-c .ed-mot-slogan { font-family: var(--k-sans); font-size: .78rem; font-weight: 400; letter-spacing: .02em; color: var(--k-encre-douce); }
@media (min-width: 769px) {
  body.ed-mep-c .site-header .inside-header { padding-bottom: 0; row-gap: .7rem; }
  body.ed-mep-c .site-header #site-navigation { flex: 0 0 100%; background: var(--k-accent-fort); border-radius: 4px 4px 0 0; }
  body.ed-mep-c .main-navigation .inside-navigation { padding: 0 .6rem; }
  body.ed-mep-c .main-navigation .main-nav ul li a { color: #fff; line-height: 44px; }
  body.ed-mep-c .main-navigation .main-nav ul li a:hover,
  body.ed-mep-c .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #fff; box-shadow: inset 0 -3px 0 var(--k-soleil); }
  body.ed-mep-c .main-navigation .menu-bar-items .ed-recherche { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
  body.ed-mep-c .main-navigation .menu-bar-items .ed-recherche input[type="search"] { color: #fff; }
  body.ed-mep-c .main-navigation .menu-bar-items .ed-recherche input[type="search"]::placeholder { color: rgba(255, 255, 255, .75); }
  body.ed-mep-c .main-navigation .menu-bar-items .ed-recherche button { color: #fff; }
  body.ed-mep-c .site-header .ed-recherche.ed-recherche-ouverte input[type="search"] { color: var(--k-encre); }
  body.ed-mep-c .site-header .ed-recherche.ed-recherche-ouverte button { color: var(--k-encre); }
}

/* Accueil : deux colonnes, le sommaire à droite */
body.ed-mep-c .ed-hero-sommaire { background: var(--k-fond-alt); border-bottom: 0; padding: 2.4rem 0; }
body.ed-mep-c .ed-hero-grille { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { body.ed-mep-c .ed-hero-grille { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
body.ed-mep-c .ed-hero-sommaire .ed-hero-titre { max-width: 18ch; }
body.ed-mep-c .ed-hero-sommaire .ed-hero-chapo { margin-bottom: 0; }
body.ed-mep-c .ed-sommaire { background: var(--k-papier); border-top: 4px solid var(--k-accent); padding: 1rem 1.2rem .6rem; }
body.ed-mep-c .ed-sommaire-titre { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--k-encre-douce); }
body.ed-mep-c .ed-sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: ed-som; }
body.ed-mep-c .ed-sommaire li { counter-increment: ed-som; display: flex; align-items: baseline; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--k-trait); }
body.ed-mep-c .ed-sommaire li:first-child { border-top: 0; }
body.ed-mep-c .ed-sommaire li::before { content: counter(ed-som, decimal-leading-zero); font-family: var(--k-serif); font-weight: 700; color: var(--k-accent); min-width: 1.8rem; }
body.ed-mep-c .ed-sommaire a { color: var(--k-encre); font-weight: 700; text-decoration: none; }
body.ed-mep-c .ed-sommaire a:hover { color: var(--k-accent); }

/* Bandes : titre aligné à gauche, barre d'accent */
body.ed-mep-c .ed-bande > .ed-wrap > h2 { border-left: 5px solid var(--k-accent); padding-left: .7rem; }

/* Articles : le premier à la une, puis une grille serrée */
body.ed-mep-c .ed-cartes-une { grid-template-columns: 1fr; gap: 1.1rem 1.4rem; }
@media (min-width: 720px) { body.ed-mep-c .ed-cartes-une { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body.ed-mep-c .ed-cartes-une { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.ed-mep-c .ed-cartes-une .ed-article-carte { border: 0; border-top: 3px solid var(--k-encre); border-radius: 0; background: transparent; padding: .7rem 0 0; gap: .4rem; }
body.ed-mep-c .ed-cartes-une .ed-article-carte > * { margin-inline: 0; }
body.ed-mep-c .ed-cartes-une .ed-article-carte > .ed-cocon-titre:first-child { margin-top: 0; }
body.ed-mep-c .ed-cartes-une .ed-cocon-titre { font-family: var(--k-serif); font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: var(--k-encre); text-decoration: none; }
body.ed-mep-c .ed-carte-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; font-size: .76rem; color: var(--k-encre-douce); }
body.ed-mep-c .ed-carte-meta .ed-cocon-rub { color: var(--k-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
@media (min-width: 720px) {
  body.ed-mep-c .ed-cartes-une .ed-carte-a-la-une { grid-column: 1 / -1; border-top-color: var(--k-accent); padding-bottom: .4rem; }
  body.ed-mep-c .ed-cartes-une .ed-carte-a-la-une:has(> .ed-article-visuel) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 1.4rem; align-content: start; }
  body.ed-mep-c .ed-cartes-une .ed-carte-a-la-une > .ed-article-visuel { grid-row: 1 / span 2; }
  body.ed-mep-c .ed-cartes-une .ed-carte-a-la-une .ed-cocon-titre { font-size: 1.7rem; line-height: 1.2; align-self: end; max-width: 34ch; }
}

/* Rubriques (si le module est gardé) : liste à barre latérale */
body.ed-mep-c .ed-tuiles-rubriques .ed-tuile { border: 0; border-left: 4px solid var(--k-accent); border-radius: 0; background: var(--k-papier); }

/* Piliers de cocon : trois colonnes au large */
@media (min-width: 1000px) { body.ed-mep-c .ed-cocon-cartes { grid-template-columns: repeat(3, 1fr); } }
body.ed-mep-c .ed-cocon-carte { border-radius: 0; border-top: 3px solid var(--k-accent); }

/* Billet : titre aligné, filet d'accent à gauche */
body.ed-mep-c.single-post .entry-title { border-left: 5px solid var(--k-accent); padding-left: .8rem; }
