/* Balises : série C sur Avada (second calque, au-dessus de balises-design.css).
   Actif seulement avec body.bal-serie (mu-plugin balises-serie.php). Retour arrière : option balises_serie_public = 0, ou supprimer ce fichier.
   Fichier généré depuis theme/maquettes-src/donnees/serie.tpl.css par exporter_serie.py : ne pas l'éditer ici.
   Hors périmètre ici (demande le thème léger) : police Archivo, portail à pistes, pages de domaine. */

/* ---- Police : Archivo variable (OFL), hébergée avec le thème, sous-ensemble latin. Voir fonts/LISEZMOI.md ---- */
@font-face {
  font-family: "Archivo Balises"; src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 62% 100%; font-style: normal; font-display: swap;
}

/* ---- Jetons : mêmes valeurs que la direction C (DESIGN.md) ---- */
html:root:has(body.bal-serie) {
  --bal-encre: #101820;
  --bal-texte: #2f3b47;
  --bal-texte-2: #46515c;
  --bal-orange: #101820;       /* décor (filets, puces) : encre, sauf sur une page de domaine */
  --bal-lien: #101820;
  --bal-bleu: #101820;
  --bal-nuit: #101820;
  --bal-doux: #eceff1;
  --bal-filet: #b9c2c9;
  --bal-focus: #101820;
  --link_color: #101820;
  --link_color-8a: rgba(16, 24, 32, .8);
  --link_hover_color: #101820;
  --button_accent_color: #fff;
  --button_accent_hover_color: #fff;
  --form_focus_border_color: #101820;
  --bal-face: "Archivo Balises", Arial, Helvetica, sans-serif;
  --body_typography-font-family: var(--bal-face);
  --nav_typography-font-family: var(--bal-face);
  --mobile_menu_typography-font-family: var(--bal-face);
  --footer_headings_typography-font-family: var(--bal-face);
  --button_typography-font-family: var(--bal-face);
  --faq_accordion_title_typography-font-family: var(--bal-face);
  --faq_accordion_content_typography-font-family: var(--bal-face);
  --h1_typography-font-family: var(--bal-face);
  --h2_typography-font-family: var(--bal-face);
  --h3_typography-font-family: var(--bal-face);
  --h4_typography-font-family: var(--bal-face);
  --h5_typography-font-family: var(--bal-face);
  --h6_typography-font-family: var(--bal-face);
  --post_title_typography-font-family: var(--bal-face);
  --post_titles_extras_typography-font-family: var(--bal-face);
  --h1_typography-font-weight: 800;
  --h2_typography-font-weight: 800;
  --h3_typography-font-weight: 800;
  --h4_typography-font-weight: 700;
}
/* titres resserrés, comme la direction C */
.bal-serie :is(h1, h2, h3, h4, h5, h6), .bal-serie .fusion-page-title-bar .entry-title { font-stretch: 76%; letter-spacing: -.01em; word-spacing: .09em; }
.bal-serie .fusion-page-title-bar h1, .bal-serie .fusion-page-title-bar .entry-title {
  font-size: clamp(2.3rem, 4.4vw + .6rem, 3.75rem) !important; line-height: 1 !important; letter-spacing: -.02em !important;
}
.bal-serie .fusion-logo-link::after { font: 800 31px/1 var(--bal-face); font-stretch: 78%; letter-spacing: -.01em; }
.bal-serie .fusion-main-menu .fusion-menu > li > a .menu-text { font-weight: 600; font-stretch: 90%; }
.bal-serie #sidebar .widget h4, .bal-serie .sidebar .widget h4 { font-family: var(--bal-face); font-stretch: 80%; font-weight: 800; }
.bal-serie .bal-intro h1 { font-stretch: 76%; font-size: clamp(2.4rem, 5vw + .5rem, 4rem); }
.bal-serie .fusion-button, .bal-serie .fusion-button .fusion-button-text { font-family: var(--bal-face); }
html:root:has(body.bal-d-art)    { --bal-orange: #c50e00; --bal-lien: #c50e00; --link_color: #c50e00; --link_color-8a: rgba(197, 14, 0, .8); }
html:root:has(body.bal-d-design) { --bal-orange: #1745c2; --bal-lien: #1745c2; --link_color: #1745c2; --link_color-8a: rgba(23, 69, 194, .8); }
/* le jaune du numérique ne passe pas en texte sur fond clair : liens à l'encre, décor en jaune */
html:root:has(body.bal-d-num)    { --bal-orange: #101820; }

body.bal-serie { --dom: #101820; --on: #eceff1; --ray: rgb(255 255 255 / .12); --f1: #c50e00; --f2: #1745c2; --f3: #e7e824; background: #eceff1; }
body.bal-d-art    { --dom: #c50e00; --on: #fff; --ray: rgb(255 255 255 / .16); --f2: #101820; --f3: #101820; }
body.bal-d-design { --dom: #1745c2; --on: #fff; --ray: rgb(255 255 255 / .16); --f1: #101820; --f3: #101820; }
body.bal-d-num    { --dom: #e7e824; --on: #101820; --ray: rgb(16 24 32 / .12); --f1: #101820; --f2: #101820; }
.bal-serie #wrapper, .bal-serie #main, .bal-serie #sliders-container { background: #eceff1; }
.bal-serie ::selection { background: #101820; color: #eceff1; }
.bal-serie.bal-d-num ::selection { color: #e7e824; }
.bal-serie { --bal-filet: #b9c2c9; }

/* ---- Bandeau : encre, mot en clair, filet de trois couleurs ---- */
.bal-serie .fusion-header-wrapper .fusion-header,
.bal-serie .fusion-header { background: #101820 !important; border-bottom: 0 !important; }
.bal-serie .fusion-header-wrapper::after {
  content: ""; display: block; height: 8px;
  background: linear-gradient(90deg, var(--f1) 0 33.34%, var(--f2) 0 66.67%, var(--f3) 0);
}
.bal-serie .fusion-logo-link::after { color: #eceff1; font-weight: 800; }
.bal-serie .fusion-main-menu .fusion-menu > li > a,
.bal-serie .fusion-main-menu .fusion-menu > li > a .menu-text { color: #eceff1 !important; }
.bal-serie .fusion-main-menu .fusion-menu > li:hover > a .menu-text,
.bal-serie .fusion-main-menu .fusion-menu > li.current-menu-item > a .menu-text,
.bal-serie .fusion-main-menu .fusion-menu > li.current-menu-ancestor > a .menu-text { color: #fff !important; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }
.bal-serie .fusion-main-menu .sub-menu, .bal-serie .fusion-main-menu .sub-menu li a { background: #fff !important; color: #101820 !important; }
.bal-serie .fusion-main-menu .sub-menu li a:hover { background: #eceff1 !important; }
.bal-serie .fusion-mobile-menu-icons a, .bal-serie .fusion-mobile-menu-icons a::before { color: #eceff1 !important; }
.bal-serie .fusion-mobile-nav-holder, .bal-serie .fusion-mobile-nav-holder a { background: #fff; color: #101820 !important; }
.bal-serie .fusion-header :focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 6px #101820 !important; }

/* ---- Barre de titre : champ de couleur du domaine, coin biseauté, rayons, pictogramme ---- */
.bal-serie .fusion-page-title-bar {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dom) !important; color: var(--on);
  padding: 34px 30px 46px !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 3rem 100%, 0 calc(100% - 3rem));
}
.bal-serie .fusion-page-title-bar::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: min(70%, 60rem); height: 100%;
  background: repeating-conic-gradient(at 100% 0, var(--ray) 0 2.2deg, transparent 2.2deg 6.6deg);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 80%); mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 80%);
}
.bal-serie .fusion-page-title-bar::after {
  content: ""; position: absolute; z-index: -1; right: clamp(1rem, 4vw, 3rem); bottom: 1.2rem; width: clamp(3.5rem, 7vw, 6rem); aspect-ratio: 1;
  background: var(--picto, none) center / contain no-repeat;
}
body.bal-d-art    { --picto: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-4 -4 104 104%22 style=%22color:%23ffffff%22%3E%3Cg fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%226%22 stroke-linecap=%22butt%22 stroke-linejoin=%22miter%22%3E%3Crect x=%2210%22 y=%2214%22 width=%2276%22 height=%2268%22/%3E%3Cpath d=%22M10 66 34 42 50 58 62 46 86 70%22/%3E%3Ccircle fill=%22currentColor%22 stroke=%22none%22 cx=%2266%22 cy=%2234%22 r=%227%22/%3E%3C/g%3E%3C/svg%3E"); }
body.bal-d-design { --picto: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-4 -4 104 104%22 style=%22color:%23ffffff%22%3E%3Cg fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%226%22 stroke-linecap=%22butt%22 stroke-linejoin=%22miter%22%3E%3Cpath d=%22M16 72A32 32 0 0 1 48 40A32 32 0 0 0 80 8%22/%3E%3Cpath d=%22M16 72H40M56 8H80%22/%3E%3Ccircle fill=%22currentColor%22 stroke=%22none%22 cx=%2243%22 cy=%2272%22 r=%226%22/%3E%3Ccircle fill=%22currentColor%22 stroke=%22none%22 cx=%2253%22 cy=%228%22 r=%226%22/%3E%3Crect fill=%22currentColor%22 stroke=%22none%22 x=%228%22 y=%2264%22 width=%2216%22 height=%2216%22/%3E%3Crect fill=%22currentColor%22 stroke=%22none%22 x=%2272%22 y=%220%22 width=%2216%22 height=%2216%22/%3E%3C/g%3E%3C/svg%3E"); }
body.bal-d-num    { --picto: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-4 -4 104 104%22 style=%22color:%23101820%22%3E%3Cg fill=%22none%22 stroke=%22%23101820%22 stroke-width=%226%22 stroke-linecap=%22butt%22 stroke-linejoin=%22miter%22%3E%3Crect x=%2226%22 y=%2226%22 width=%2244%22 height=%2244%22/%3E%3Cpath d=%22M38 26V10M58 26V10M38 86V70M58 86V70M26 38H10M26 58H10M86 38H70M86 58H70%22/%3E%3Ccircle fill=%22currentColor%22 stroke=%22none%22 cx=%2248%22 cy=%2248%22 r=%229%22/%3E%3C/g%3E%3C/svg%3E"); }
.bal-serie .fusion-page-title-bar h1, .bal-serie .fusion-page-title-bar .entry-title { color: var(--on) !important; font-weight: 800; }
.bal-serie .fusion-page-title-bar .fusion-breadcrumbs,
.bal-serie .fusion-page-title-bar .fusion-breadcrumbs a,
.bal-serie .fusion-page-title-bar .fusion-breadcrumbs span { color: var(--on) !important; }
.bal-serie .fusion-page-title-bar :focus-visible { outline-color: var(--on) !important; box-shadow: none !important; }

/* ---- Contenu ---- */
.bal-serie .fusion-text h2, .bal-serie .post-content h2 { border-top: 3px solid var(--bal-orange); padding-top: .5em; }
.bal-serie .fusion-content-boxes .content-box-column:hover .heading h2 { text-decoration-color: #101820; }
.bal-serie .bal-intro h1 { font-weight: 800; }
.bal-serie .fusion-button, .bal-serie .fusion-button.button-default {
  background: #101820 !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, .8rem 100%, 0 calc(100% - .8rem)); transition: background .25s;
}
.bal-serie .fusion-button:hover { background: var(--dom) !important; color: var(--on) !important; }
.bal-serie.bal-d-num .fusion-button:hover { background: #46515c !important; color: #fff !important; }
.bal-serie .epyt-video-wrapper, .bal-serie .epyt-facade { background: #101820; }

/* survols de l'accueil : plus d'orange d'origine, tout en encre */
.bal-serie .fusion-content-boxes .content-box-column:hover .icon span,
.bal-serie .fusion-content-boxes .content-box-column:hover .icon .fontawesome-icon { background-color: #101820 !important; border-color: #101820 !important; color: #fff !important; }
.bal-serie .fusion-content-boxes .content-box-column:hover .heading h2,
.bal-serie .fusion-content-boxes .content-box-column:hover .heading h2 a { color: #101820 !important; }
/* encadré « Pour aller plus loin » (balises-embeds.php) : filet haut, plus de bordure latérale */
body.bal-serie .bal-wiki { border-left: 0; border-top: 3px solid var(--bal-orange); background: #fff; }
body.bal-serie .bal-wiki__label { color: var(--bal-texte-2); }

/* ---- Pied : encre, filet de trois couleurs ---- */
.bal-serie #footer, .bal-serie .fusion-footer-copyright-area {
  background: linear-gradient(90deg, var(--f1) 0 33.34%, var(--f2) 0 66.67%, var(--f3) 0) top / 100% 8px no-repeat, #101820 !important;
  border-top: 0 !important;
}
.bal-serie .fusion-footer-copyright-area, .bal-serie .fusion-footer-copyright-area a,
.bal-serie .fusion-copyright-notice, .bal-serie .fusion-copyright-notice a { color: #eceff1 !important; }
.bal-serie .fusion-footer-copyright-area { padding: 36px 0 28px !important; }

@media (max-width: 800px) {
  .bal-serie .fusion-page-title-bar { padding: 26px 20px 40px !important; clip-path: polygon(0 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem)); }
  .bal-serie .fusion-page-title-bar::after { display: none; }
}
