/* =====================================================================
   bp2954 — Pages éditoriales, carnet de sélection et salons, direction « Lignées »
   (templates/public/production/page.html.twig, carnet_index.html.twig, carnet_article.html.twig, salons.html.twig)
   Chargée après home_lignees.css et production_lignees.css.
   - premier écran : sous .hl (classes « ed- ») ;
   - contenu : zone .ed-body, HORS de .hl, parce que les textes écrits dans l'intranet emploient des classes Bootstrap
     (alert, btn, row, card, table, float-md-…). Les règles .article-body et .prod-salons étaient dans la feuille du thème
     (main.css) : elles sont reprises ici, aux couleurs de la charte.
   ===================================================================== */

/* ---------- premier écran ---------- */
.hl .ed-hero{position:relative;background:var(--nuit);color:var(--clair);padding:112px 0 56px;overflow:hidden}
.hl .ed-hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.4s ease-out;pointer-events:none}
.hl .ed-hero canvas.hl-on{opacity:1}
.hl .ed-hero .hl-wrap{position:relative}
.hl .ed-back a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--sage);font-size:15px;text-decoration:none}
.hl .ed-back a:hover{color:#fff}
.hl .ed-h1{font-weight:800;font-size:clamp(32px,4vw,58px);line-height:1.04;letter-spacing:-.03em;margin-top:6px;max-width:22ch;overflow-wrap:anywhere}
.hl .ed-lead{margin-top:18px;max-width:62ch;font-size:clamp(17px,1.35vw,20px);color:#d7e5db}
.hl .ed-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:18px;font-size:15px;color:#cfe0d4}
.hl .ed-meta a{color:#fff;text-underline-offset:3px}
.hl .ed-badge{display:inline-block;padding:3px 10px;border-radius:6px;background:var(--vert);color:#fff;font-size:13.5px;font-weight:700}
@media(max-width:1000px){.hl .ed-hero{padding:96px 0 44px}}

/* ---------- contenu ---------- */
.ed-body{--bs-body-font-family:Figtree,system-ui,sans-serif;--bs-link-color:#0f5d2d;--bs-link-color-rgb:15,93,45;--bs-link-hover-color:#103a23;--bs-link-hover-color-rgb:16,58,35;
  padding:clamp(36px,5vw,72px) 0 clamp(40px,5vw,72px);font-size:17px;line-height:1.65;color:#22362a}
.ed-body .rp-data-sig{display:flex;gap:14px;align-items:flex-start;max-width:860px;margin:0 0 28px;padding:16px 18px;border-radius:14px;background:#fff;border-left:4px solid #16823f}
.ed-body .rp-data-sig>i{font-size:22px;line-height:1;color:#16823f;margin-top:2px}
.ed-body .rp-data-sig strong{display:block;color:#0f5d2d}
.ed-body .rp-data-sig p{font-size:15px;color:#3d5446}
.ed-body .rp-data-sig-more{display:inline-block;margin-top:6px;font-size:15px;font-weight:700}

/* texte écrit dans l'intranet : colonne de lecture */
.ed-prose{max-width:860px;background:#fff;border:1px solid #e2ece5;border-radius:18px;padding:clamp(20px,3.4vw,48px)}
.ed-prose::after{content:"";display:block;clear:both}
.ed-prose h2,.ed-prose h3{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;color:#13271b}
.ed-prose h2{font-size:clamp(22px,2.2vw,28px);line-height:1.15;margin:2rem 0 .75rem}
.ed-prose h3{font-size:20px;margin:1.4rem 0 .5rem}
.ed-prose>h2:first-child,.ed-prose>p:first-child{margin-top:0}
/* bp2956 — html porte déjà scroll-padding-top (72 px) : 20 px de marge suffisent (92 px laissaient un vide au-dessus de l'ancre) */
.ed-prose [id]{scroll-margin-top:20px}
/* un texte de l'intranet peut porter sa propre police en ligne (page Salons) : la charte l'emporte */
.ed-prose [style*="font-family"]{font-family:inherit!important}
.ed-prose p{margin-bottom:1rem}
.ed-prose ul,.ed-prose ol{margin-bottom:1rem;padding-left:1.3rem}
.ed-prose li{margin-bottom:.35rem}
.ed-prose a{text-underline-offset:3px}
.ed-prose a:focus-visible,.ed-art a:focus-visible{outline:3px solid #16823f;outline-offset:2px;border-radius:4px}
.ed-prose .alert-light{background:#f4f8f5;border-color:#d5e3da!important;color:#22362a;border-radius:14px}
.ed-prose .btn{min-height:44px;display:inline-flex;align-items:center;border-radius:999px;padding:.5rem 1.2rem;font-weight:700;text-decoration:none}
.ed-prose .btn-success{background:#16823f;border-color:#16823f;color:#fff}
.ed-prose .btn-success:hover,.ed-prose .btn-success:focus{background:#0f5d2d;border-color:#0f5d2d;color:#fff}
.ed-prose .btn-dark{background:#103a23;border-color:#103a23;color:#fff}
.ed-prose .btn-dark:hover,.ed-prose .btn-dark:focus{background:#0b2a19;border-color:#0b2a19;color:#fff}
.ed-prose .text-muted{color:#4d6356!important}
.ed-prose .border-success{border-color:#16823f!important}
.ed-prose .card{border-color:#e2ece5;border-radius:14px}
.ed-prose .table-light{--bs-table-bg:#f4f8f5}

/* article du carnet (règles .article-body de l'ancien thème) */
.ed-article .lead{font-size:1.2rem;color:#0f5d2d}
.ed-article img{max-width:100%;height:auto;border-radius:10px}
.ed-article figure{margin:1.25rem 0}
.ed-article figure img{display:block;width:100%}
.ed-article figure figcaption{margin-top:.35rem}
.ed-article figure.float-md-end,.ed-article figure.float-md-start{max-width:340px}
.ed-article figure.w-25{max-width:220px}
.ed-article figure.w-50{max-width:420px}
@media(max-width:767.98px){
  .ed-article figure.float-md-end,.ed-article figure.float-md-start,.ed-article figure.w-25,.ed-article figure.w-50{float:none!important;max-width:100%;width:100%;margin-inline:0}
}
.ed-article blockquote{font-style:italic}
.ed-article hr{margin:2rem 0;opacity:.15}

/* ---------- carnet : liste des articles ---------- */
.ed-cat{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-weight:800;font-size:clamp(22px,2.2vw,28px);letter-spacing:-.02em;color:#13271b;margin:2.2rem 0 1rem}
.ed-cat:first-child{margin-top:0}
.ed-arts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.ed-art{background:#fff;border:1px solid #e2ece5;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:8px}
.ed-art h3{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-weight:800;font-size:21px;line-height:1.2;letter-spacing:-.01em;margin:0}
.ed-art h3 a{color:#13271b;text-decoration:none}
.ed-art h3 a:hover{color:#0f5d2d;text-decoration:underline;text-underline-offset:3px}
.ed-art-meta{font-size:14px;color:#4d6356}
.ed-art p{margin:0;flex:1}
.ed-art-more{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;text-decoration:none}
.ed-art-more:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){.ed-arts{grid-template-columns:1fr}}

/* ---------- salons : tableau généré depuis l'intranet (bp2085) ---------- */
.ed-body .ed-prose+.prod-salons{margin-top:28px}
.ed-body .prod-salons{max-width:860px;overflow-x:auto;border-radius:14px;border:1px solid #e2ece5;background:#fff}
.ed-body .prod-salons table{width:100%;min-width:720px;border-collapse:collapse}
.ed-body .prod-salons thead th{background:#0f5d2d;color:#fff;text-align:left;padding:10px 12px;font-size:13px;font-weight:700}
.ed-body .prod-salons tbody td{padding:9px 12px;border-bottom:1px solid #eef3ef;font-size:14.5px;color:#3f5347;vertical-align:top}
.ed-body .prod-salons tbody tr.prod-salons-alt td{background:#f7faf8}
.ed-body .prod-salons td.prod-salons-name{font-weight:700;color:#0f5d2d;white-space:nowrap}
.ed-body .prod-salons td.prod-salons-nowrap{white-space:nowrap}
.ed-body .prod-salons tbody td a{color:#0f5d2d;font-weight:600;text-decoration:none}
.ed-body .prod-salons tbody td a:hover{text-decoration:underline}
.ed-body .prod-salons tr.prod-salons-band td{font-weight:700;text-align:center;padding:8px 10px;font-size:13.5px}
.ed-body .prod-salons tr.prod-salons-band-regular td{background:#16823f;color:#fff}
.ed-body .prod-salons tr.prod-salons-band-first_done td{background:#c79327;color:#231a06}
.ed-body .prod-salons tr.prod-salons-band-first_upcoming td{background:#eaf3ec;color:#0f5d2d}
.ed-body .prod-salons tr.prod-salons-band-considered td{background:#f1f3f5;color:#4d6356}
