/*
Theme Name: Électricien Bruno (electricien-bruno.fr)
Theme URI: https://electricien-bruno.fr/
Description: Thème bloc enfant de Twenty Twenty-Five pour electricien-bruno.fr (maquette « Tableau électrique » validée) : fond #F3F3F1, encre #16181C, jaune #F5C518 ; une seule famille, Archivo (400, 500, 600), auto-hébergée (OFL) ; aucune italique. Nécessite les extensions Bruno Socle et Électricien Bruno — Blocs.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
Author: Joseph
License: GPL-2.0-or-later
Text Domain: electricien-bruno-theme
*/

/* Contenu courant : colonne de lecture, marges latérales sur mobile. */
.eb-contenu.is-layout-constrained > :not(.alignfull):not(.alignwide) {
	max-width: min(var(--wp--style--global--content-size, 760px), calc(100% - 40px));
	margin-left: auto !important;
	margin-right: auto !important;
}
.eb-contenu > * + * { margin-block-start: 1.1em; }
.eb-contenu > .alignfull + *, .eb-contenu > * + .alignfull { margin-block-start: 0; }
.eb-contenu > .bruno-corps:first-child { margin-top: 64px; }
.eb-contenu > :last-child:not(.alignfull) { margin-bottom: 88px; }
.eb-contenu > .bruno-faq { margin-top: 72px; }
.eb-pleine > * { margin-top: 0; margin-bottom: 0; }
.eb-principal { overflow-x: clip; background: var(--wp--preset--color--fond); }
img { height: auto; }
:where(.wp-site-blocks) > * + * { margin-block-start: 0; }
:focus-visible { outline: 2px solid #F5C518; outline-offset: 2px; }
body { font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; }

/* Aucune italique nulle part (em, cite, blockquote, légendes, SVG) ; la mise en valeur passe par la couleur. */
html body *, html body *::before, html body *::after { font-style: normal !important; }
body { font-synthesis: none; }
em, i { font-weight: 600; }

/* Texte long (bloc de corps du socle) aux couleurs du site. */
.bruno-corps h2 { font-weight: 600; letter-spacing: -0.02em; border-top: 3px solid #16181C; padding-top: 18px; }
.bruno-corps .bruno-num { display: table; margin-bottom: 10px; color: #16181C; background: #F5C518; padding: 0 6px; letter-spacing: .08em; font-weight: 600; }
.eb-texte .bruno-corps .bruno-num { display: none; }
.bruno-corps h3 { font-weight: 600; letter-spacing: -0.01em; }
.bruno-corps p.chapo { font-size: 20px; line-height: 1.55; color: #16181C; padding: 0 0 24px; border-bottom: 1px solid #DCDDD9; }
.bruno-corps a { color: #16181C; text-decoration-color: #F5C518; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bruno-corps a:hover { background: #FFF3BF; }
.bruno-corps .bruno-tel { font-weight: 600; white-space: nowrap; background: #F5C518; padding: 1px 6px; text-decoration: none; }
.bruno-corps table { width: 100%; border-collapse: collapse; }
.bruno-corps th { font-weight: 600; text-align: left; border-bottom: 3px solid #16181C; padding: 10px 12px 10px 0; vertical-align: top; }
.bruno-corps td { border-bottom: 1px solid #DCDDD9; padding: 12px 12px 12px 0; vertical-align: top; }
.bruno-corps .wp-block-table { overflow-x: auto; }
.bruno-corps ol { padding-left: 1.4em; }
.bruno-corps ol li::marker { font-weight: 600; }
.bruno-corps ul li::marker { color: #16181C; }
.bruno-corps p.appel { font-size: 21px; line-height: 1.45; font-weight: 500; border-left: 6px solid #F5C518; padding-left: 16px; }
.bruno-faq summary { font-size: 19px; font-weight: 600; }
.bruno-faq__titre { font-weight: 600; letter-spacing: -0.02em; }
.eb-faq-accueil { max-width: min(860px, calc(100% - 40px)); margin: 0 auto !important; padding: 88px 0 96px; }
.eb-faq-accueil > .bruno-faq { margin: 0; }

/* Tableaux du bloc de corps : filets horizontaux seulement. */
.bruno-corps .wp-block-table table, .bruno-corps .wp-block-table th, .bruno-corps .wp-block-table td, .bruno-corps .wp-block-table thead, .bruno-corps .wp-block-table tfoot { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.bruno-corps .wp-block-table thead { border-bottom: 0 !important; }
.bruno-corps .wp-block-table th { border-bottom: 3px solid #16181C !important; }
.bruno-corps .wp-block-table td { border-bottom: 1px solid #DCDDD9 !important; }
.eb-texte--sombre .bruno-corps h2 { border-top-color: #F5C518; }
.eb-texte--sombre .bruno-corps .bruno-tel { color: #16181C; }
.bruno-encart-appel { background: #FFFFFF; border-top: 3px solid #F5C518 !important; }
.bruno-encart-appel__bouton { background: #F5C518 !important; color: #16181C !important; }
.bruno-encart-appel__bouton:hover { background: #FFD43B !important; }
.bruno-encart-appel > p.chapo { border-bottom: 0; padding-bottom: 0; }
.eb-contenu > .bruno-corps + .eb-devis { margin-top: 72px !important; }

/* Hubs départementaux : la liste des communes (paragraphe de liens) en colonnes lisibles. */
.gabarit-departement .bruno-corps p:has(> a + a + a + a + a) { line-height: 2.1; }
.gabarit-departement .bruno-corps p:has(> a + a + a + a + a) a { white-space: nowrap; }
.bruno-editeur { line-height: 1.8; }
.bruno-corps th, .bruno-corps td { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 781px) { .bruno-corps table { font-size: 15px; } }

/* bruno-socle 0.3.6 : couleurs du H1 (filet et « en urgence ») */
h1 { --bruno-h1-filet: #f5c518; --bruno-h1-urgence: #f5c518; }
h1.eb-titre-page__h1 { --bruno-h1-filet: #f5c518; --bruno-h1-urgence: #f5c518; }
h1.eb-hero__titre { --bruno-h1-filet: #f5c518; --bruno-h1-urgence: #f5c518; }
/* fin bruno-socle 0.3.6 */

/* bruno-socle 0.3.7 : mise en page en sections (couleurs, frise et dessin du site) */
.bruno-corps--sections, .bruno-corps--sections ~ .bruno-faq { --bruno-s-accent: #F5C518; --bruno-s-accent-texte: #16181C; --bruno-s-sur-accent: #16181C; --bruno-s-panneau: #fff; --bruno-s-teinte: #FBF3CF; --bruno-s-sombre: #16181C; --bruno-s-rayon: 2px; --bruno-s-frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='16' viewBox='0 0 70 16'%3E%3Cpath d='M0 16V8h14V2h14v6h14V2h14v6h14v8z'/%3E%3C/svg%3E"); --bruno-s-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 150' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M70 10 24 84h30l-8 56 50-78H64z'/%3E%3C/svg%3E"); }
/* fin bruno-socle 0.3.7 */
