/**
 * Buro Dyo — Conseils.
 * Les blocs réutilisent les classes globales Elementor V4 du site (bd-card,
 * bd-card-num, bd-card-title, bd-body, bd-offers-grid, bd-sd-block,
 * bd-arrow-item, bd-breadcrumb, bd-eyebrow…). Ce fichier ne contient que ce
 * qu'elles ne prévoient pas. Préfixe « bdc- ».
 */

/* Cartes cliquables (bd-card posée sur un lien) */
.elementor a.bdc-card-link { color: inherit; text-decoration: none; height: 100%; }
.elementor a.bdc-card-link .bd-card-title,
.elementor a.bdc-card-link .bd-body { cursor: pointer; }
.elementor a.bdc-card-link .bd-btn-outline { margin-top: auto; align-self: flex-start; }
.elementor a.bdc-card-link:hover .bd-btn-outline { color: var(--navy); border-color: var(--navy); }

/* Grilles : 3 colonnes / 1 colonne (bd-offers-grid en prévoit 2) */
.elementor .bd-offers-grid.bdc-cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Nombre de cartes variable : pas de fond gris dans les cellules vides. */
.elementor .bd-offers-grid.bdc-cols-3 { background: transparent; border: 0; gap: 24px; }
.elementor .bd-offers-grid.bdc-cols-3 > .bd-card { border: 1.5px solid var(--border); }
.elementor .bd-offers-grid.bdc-cols-1 { grid-template-columns: 1fr; }
@media (max-width: 1024px) {
	.elementor .bd-offers-grid.bdc-cols-3 { grid-template-columns: 1fr; }
}

/* FAQ en accordéon (details / summary) */
.elementor .bdc-faq .bd-section-title { margin-bottom: 32px; }
.elementor .bdc-faq-item { gap: 0; padding-block: 24px; }
.elementor .bdc-faq-item summary {
	list-style: none; cursor: pointer; position: relative; padding-right: 32px;
}
.elementor .bdc-faq-item summary::-webkit-details-marker { display: none; }
.elementor .bdc-faq-item summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--blue);
}
.elementor .bdc-faq-item[open] summary::after { content: "−"; }
.elementor .bdc-faq-item .bd-body { margin-top: 14px; }
.elementor .bdc-faq-item .bd-body p { margin: 0 0 .8em; }
.elementor .bdc-faq-item .bd-body p:last-child { margin-bottom: 0; }

/* En bref, sommaire */
.elementor .bdc-en-bref { border-left-color: var(--blue); background: var(--blue-pale); }
.elementor .bdc-sommaire .bd-arrow-item a { color: inherit; text-decoration: none; }
.elementor .bdc-sommaire .bd-arrow-item a:hover { color: var(--blue); }

/* Voisins */
.elementor .bdc-voisins .bd-eyebrow { margin-bottom: 24px; }

/* Badge « Brouillon » (visible des rédacteurs seulement) */
.bdc-badge {
	display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px;
	font: 500 .6rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase;
	color: var(--text-muted); background: var(--blue-light); border-radius: 2px;
}

/* Ancres du sommaire : ne pas passer sous l'en-tête fixe */
.elementor h2[id] { scroll-margin-top: 120px; }

/* Accueil Conseils : introduction + liste compacte des thèmes, côte à côte */
.elementor .e-div-block-base:has(> .elementor-widget-shortcode .bdc-themes-nav) {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start;
}
@media (max-width: 1024px) {
	.elementor .e-div-block-base:has(> .elementor-widget-shortcode .bdc-themes-nav) { grid-template-columns: 1fr; gap: 40px; }
}
.elementor .bdc-themes-nav { border-left: 1.5px solid var(--border); padding-left: 32px; }
@media (max-width: 1024px) {
	.elementor .bdc-themes-nav { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--border); padding-top: 24px; }
}
.elementor .bdc-themes-nav .bd-eyebrow { margin: 0 0 8px; }
.elementor .bdc-themes-nav ul { list-style: none; margin: 0; padding: 0; }
.elementor .bdc-themes-nav li { border-bottom: 1px solid var(--border); }
.elementor .bdc-themes-nav li:last-child { border-bottom: 0; }
.elementor .bdc-themes-nav a {
	display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
	padding: 14px 0; color: inherit; text-decoration: none;
}
.elementor .bdc-themes-nav .bd-card-num { grid-column: 1; margin: 0 0 4px; }
.elementor .bdc-themes-nav-title {
	grid-column: 1; font-family: var(--sans); font-weight: 600; font-size: .95rem;
	letter-spacing: .04em; text-transform: uppercase; color: var(--navy); transition: color .2s;
}
.elementor .bdc-themes-nav-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--blue); transition: transform .2s; }
.elementor .bdc-themes-nav a:hover .bdc-themes-nav-title { color: var(--blue); }
.elementor .bdc-themes-nav a:hover .bdc-themes-nav-arrow { transform: translateX(4px); }

/* Contact : encart en fin d'article (formulaire court) */
.elementor .bdc-contact {
	margin-top: 64px; padding: 40px; background: #fff;
	border: 1.5px solid var(--border); border-top: 3px solid var(--blue);
}
.elementor .bdc-contact .bd-eyebrow { margin: 0 0 12px; }
.elementor .bdc-contact .bd-block-title { margin: 0 0 12px; }
.elementor .bdc-contact > .bd-body { margin: 0 0 28px; }
.elementor .bdc-contact .bdc-contact-form .e-con { padding: 0; }
@media (max-width: 767px) { .elementor .bdc-contact { padding: 28px 20px; } }
.elementor #contact-conseil { scroll-margin-top: 120px; }

/* Contact : rappel dans la colonne des articles */
.elementor a.bdc-contact-rappel {
	display: block; margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--border);
	color: inherit; text-decoration: none;
}
.elementor a.bdc-contact-rappel .bd-eyebrow { margin: 0 0 8px; }
.elementor a.bdc-contact-rappel .bd-arrow-item { margin: 0; transition: color .2s; }
.elementor a.bdc-contact-rappel:hover .bd-arrow-item { color: var(--blue); }

/* Bouton d'envoi du formulaire court = bd-btn-primary */
.elementor .bdc-contact .elementor-form .elementor-button {
	background: var(--blue); color: #fff; border: 0; border-radius: 2px; padding: 14px 32px;
	font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: .82rem;
	letter-spacing: .14em; text-transform: uppercase; transition: background .2s;
}
.elementor .bdc-contact .elementor-form .elementor-button:hover { background: var(--navy); }

/* Colonne des articles (sommaire + rappel de contact) : un peu plus près de
   l'en-tête fixe, pour que le rappel reste visible. Ordinateur seulement. */
@media (min-width: 1025px) {
	.elementor .e-div-block-base:has(> .e-div-block-base > .elementor-widget-shortcode .bdc-contact-rappel) { top: 104px; }
}

/* Espacements verticaux des pages Conseils divisés par deux (modèles
   1326 accueil, 1327 thème, 1328 article). Le reste du site ne change pas. */
:is(.elementor-1326, .elementor-1327, .elementor-1328).elementor > .e-con.e-con { padding-bottom: 48px; }
:is(.elementor-1326, .elementor-1327, .elementor-1328).elementor > .e-con.e-con:not(:first-child) { padding-top: 48px; }
@media (max-width: 767px) {
	:is(.elementor-1326, .elementor-1327, .elementor-1328).elementor > .e-con.e-con { padding-bottom: 32px; }
	:is(.elementor-1326, .elementor-1327, .elementor-1328).elementor > .e-con.e-con:not(:first-child) { padding-top: 32px; }
}
.elementor.elementor-1328 .e-div-block-base:has(> .e-div-block-base > .elementor-widget-shortcode .bdc-en-bref) { row-gap: 24px; }
.elementor.elementor-1328 .e-div-block-base:has(> .e-div-block-base > .e-div-block-base > .elementor-widget-shortcode .bdc-en-bref) { row-gap: 32px; }
.elementor .bdc-contact { margin-top: 32px; }

/* 1.0.18 : résumé des cartes d'articles et de thèmes réduit à 0,85 em, comme le carrousel de la page Rénover (19/11/2026). */
.elementor .bdc-card-link .bd-body { font-size: 0.85em; }

/* -----------------------------------------------------------------------
   1.0.19 : notes façon Wikipédia, liste « Sources », tableaux du texte rédigé.
   ----------------------------------------------------------------------- */

/* Appels de note [n] : exposant discret, cliquable */
.burodyo-prose sup.bd-note { font-size: .68em; line-height: 0; vertical-align: super; margin-left: 1px; white-space: nowrap; }
.burodyo-prose sup.bd-note a {
	font-family: var(--sans); font-weight: 500; color: var(--blue);
	border-bottom: 0; text-decoration: none; padding: 0 1px;
}
.burodyo-prose sup.bd-note a:hover { text-decoration: underline; }
.burodyo-prose sup.bd-note:target a { background: var(--blue-light); }

/* Liste « Sources » : plus petite que le texte, URL longues coupées */
.burodyo-prose ol.bd-sources li {
	font-size: .85rem; line-height: 1.65; overflow-wrap: anywhere;
	scroll-margin-top: 120px; transition: background-color .3s;
}
.burodyo-prose ol.bd-sources li:target { background: var(--blue-pale); box-shadow: -8px 0 0 var(--blue-pale), 8px 0 0 var(--blue-pale); }
.burodyo-prose .bdc-note-back {
	font-family: var(--sans); font-weight: 500; font-size: .8em; color: var(--blue);
	border-bottom: 0; text-decoration: none; margin-right: 2px;
}
.burodyo-prose a.bdc-note-back + a.bdc-note-back { margin-left: 4px; }
.burodyo-prose span.bdc-note-back ~ a.bdc-note-back { vertical-align: super; font-size: .68em; }
.burodyo-prose a.bdc-note-back:hover { text-decoration: underline; }
.burodyo-prose sup.bd-note[id] { scroll-margin-top: 140px; }

/* Tableaux : lignes fines, en-tête façon « eyebrow », chiffres alignés à droite.
   Sur petit écran, le tableau défile horizontalement dans sa figure. */
.burodyo-prose .wp-block-table { margin: 2rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.burodyo-prose table {
	width: 100%; border-collapse: collapse; border: 0; margin: 0;
	font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}
.burodyo-prose .wp-block-table table thead { border-bottom: 0; }
.burodyo-prose table th,
.burodyo-prose table td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; text-align: left; vertical-align: top; }
.burodyo-prose table th:first-child,
.burodyo-prose table td:first-child { padding-left: 0; }
.burodyo-prose table th:last-child,
.burodyo-prose table td:last-child { padding-right: 0; }
.burodyo-prose table thead th {
	font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--navy); border-bottom: 1.5px solid var(--navy); vertical-align: bottom;
}
/* Le thème (reset Hello) raye les lignes impaires en gris et les survole : on neutralise. */
.burodyo-prose table tbody tr:nth-child(n) > td,
.burodyo-prose table tbody tr:nth-child(n):hover > td,
.burodyo-prose table tbody tr:nth-child(n) > th { background-color: transparent; }
.burodyo-prose table tbody td:first-child { color: var(--navy); font-weight: 400; min-width: 9em; }
.burodyo-prose table .bdc-num { text-align: right; }
.burodyo-prose table td.bdc-num { white-space: nowrap; }
.burodyo-prose table tbody tr:last-child td { border-bottom: 1.5px solid var(--border); }
.burodyo-prose .wp-block-table figcaption { margin-top: .8rem; }
@media (max-width: 767px) {
	.burodyo-prose table { font-size: .85rem; }
	.burodyo-prose table th, .burodyo-prose table td { padding: 10px 12px; }
}
