/* ADB — Site V1 · styles des blocs (les couleurs se changent ici) */
:root {
	--adb-navy: #0b1f3a;
	--adb-blue: #1f5fd1;
	--adb-teal: #14a3a3;
	--adb-ink: #1c2533;
	--adb-muted: #5b6676;
	--adb-line: #dfe5ee;
	--adb-soft: #f2f6fb;
	--adb-radius: 10px;
}

/* Accroche */
.adb-hero { padding: clamp(32px, 6vw, 72px) 0 32px; }
.adb-hero h1 { color: var(--adb-navy); font-size: clamp(32px, 4.5vw, 51.2px); line-height: 1.12; margin: .3em 0 .4em; }
.adb-eyebrow { color: var(--adb-teal); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13.6px; margin: 0; }
.adb-lead { font-size: 18.9px; line-height: 1.6; color: var(--adb-ink); max-width: 736px; }
.adb-muted { color: var(--adb-muted); font-size: 14.7px; }

/* Boutons */
.entry-content .wp-block-button__link,
.adb-submit {
	background: var(--adb-blue); color: #fff; border-radius: 8px; padding: .8em 1.4em;
	font-weight: 600; text-decoration: none; border: 2px solid var(--adb-blue); cursor: pointer;
}
.entry-content .wp-block-button__link:hover, .adb-submit:hover { background: var(--adb-navy); border-color: var(--adb-navy); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--adb-blue); }

/* Logos / preuves */
.adb-logos { border-top: 1px solid var(--adb-line); border-bottom: 1px solid var(--adb-line); padding: 19.2px 0; text-align: center; margin: 24px 0 48px; }
.adb-logos p { margin: 4.8px 0; }

/* Cartes (colonnes) */
.adb-cards { gap: 20px; margin: 24px 0 32px; }
.adb-cards > .wp-block-column {
	background: var(--adb-soft); border: 1px solid var(--adb-line); border-radius: var(--adb-radius);
	padding: 22.4px 24px;
}
.adb-cards h3 { color: var(--adb-navy); font-size: 18.4px; margin-top: 0; }
.adb-cards .wp-block-quote { border-left: 3px solid var(--adb-teal); margin: 0; padding-left: 16px; }

/* Bandeau socle / définition */
.adb-band, .adb-definition {
	border-left: 4px solid var(--adb-teal); background: var(--adb-soft);
	padding: 17.6px 22.4px; border-radius: 0 var(--adb-radius) var(--adb-radius) 0; margin: 24px 0;
}
.adb-definition p { font-size: 17.3px; margin: 0; }

/* Appel à l'action final */
.adb-cta {
	background: var(--adb-navy); color: #fff; border-radius: var(--adb-radius);
	padding: clamp(25.6px, 4vw, 44.8px); margin: 48px 0 16px;
}
.adb-cta h2, .adb-cta h3, .adb-cta p, .adb-cta label { color: #fff; }
.adb-cta .adb-muted, .adb-cta .adb-muted a { color: #c9d4e3; }
.adb-cta .wp-block-button__link { background: var(--adb-teal); border-color: var(--adb-teal); }

/* Tableaux */
.entry-content .wp-block-table table { border-collapse: collapse; width: 100%; }
.entry-content .wp-block-table th { background: var(--adb-navy); color: #fff; text-align: left; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 1px solid var(--adb-line); padding: 9.6px 12.8px; vertical-align: top; }

/* Repères « à fournir » : visibles pour ne rien oublier avant publication */
.adb-todo { background: #fff3b0; color: #6b4e00; padding: 0 .25em; border-radius: 3px; }

/* Formulaires */
.adb-form { display: grid; gap: 3.2px 19.2px; grid-template-columns: 1fr 1fr; }
.adb-form .adb-field:has(textarea), .adb-form > p:last-child { grid-column: 1 / -1; }
.adb-field label { display: block; font-weight: 600; margin-bottom: 4.8px; }
.adb-field input, .adb-field select, .adb-field textarea {
	width: 100%; padding: 10.4px 12px; border: 1px solid var(--adb-line); border-radius: 6px;
	font: inherit; background: #fff; color: var(--adb-ink); box-sizing: border-box;
}
.adb-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.adb-form-ok, .adb-form-error { padding: 16px 19.2px; border-radius: 8px; margin: 16px 0; font-weight: 600; }
.adb-form-ok { background: #e3f6f1; color: #0d5c4f; }
.adb-form-error { background: #fde8e8; color: #8a1c1c; }

/* Bouton Diagnostic dans le menu */
.adb-menu-cta > a { background: var(--adb-blue); color: #fff !important; border-radius: 6px; padding: .45em 1em !important; }

@media (max-width: 781px) {
	.adb-form { grid-template-columns: 1fr; }
}

/* ---- V1.1 ---- */
/* Bandeau de preuve sous le titre */
.adb-proof { margin-top: 19.2px; color: var(--adb-muted); font-size: 15.2px; }

/* Chiffres clés des études de cas */
.adb-proof-grid .adb-cards > .wp-block-column { text-align: center; }
.adb-proof-grid .adb-cards > .wp-block-column p:first-child { font-size: 30.4px; font-weight: 700; color: var(--adb-navy); margin: 0 0 3.2px; }

/* Calendly */
.adb-calendly { min-width: 300px; height: 720px; margin: 24px 0; }

/* Test de visibilité IA */
.adb-test-q { border: 1px solid var(--adb-line); border-radius: var(--adb-radius); padding: 16px 19.2px; margin: 0 0 16px; }
.adb-test-q legend { font-weight: 600; padding: 0 4.8px; color: var(--adb-ink); }
.adb-test-n { display: inline-block; min-width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%; background: var(--adb-teal); color: #fff; font-size: 13.6px; margin-right: 4.8px; }
.adb-test-q label { display: inline-flex; align-items: center; gap: 5.6px; margin: 8px 22.4px 0 0; cursor: pointer; }
.adb-test-missing { color: #8a1c1c; font-weight: 600; }
.adb-test-result { margin-top: 32px; }
.adb-test-score { font-size: 54.4px; font-weight: 700; color: var(--adb-navy); margin: 0; line-height: 1; }
.adb-test-score small { font-size: 19.2px; color: var(--adb-muted); font-weight: 400; }
.adb-cta .adb-form label { color: #fff; }

/* Titre du thème masqué sur les pages ADB (elles ont leur propre H1) */
body.adb-page .wp-block-post-title, body.adb-page .entry-title, body.adb-page .page-title { display: none; }
/* Texte des cartes à taille de lecture */
.adb-cards > .wp-block-column p, .adb-cards li { font-size: 16px; line-height: 1.5; }
.adb-cards > .wp-block-column .adb-muted { font-size: 14.1px; }

/* ---- Compatibilité thèmes classiques (testé avec Axacus 3.1) ---- */
/* Bandeau de titre du thème masqué : les pages ADB ont leur propre H1 */
body.adb-page .tm-titlebar-wrapper { display: none; }
/* Lisibilité du texte courant et hiérarchie des titres */
body.adb-page .entry-content p, body.adb-page .entry-content li { color: var(--adb-muted); }
body.adb-page .entry-content h1, body.adb-page .entry-content h2, body.adb-page .entry-content h3 { color: var(--adb-navy); }
body.adb-page .entry-content h3 { font-size: 20px; line-height: 1.35; }
body.adb-page .adb-cards h3 { font-size: 18px; }
body.adb-page .adb-cta p, body.adb-page .adb-cta h2, body.adb-page .adb-cta h3 { color: #fff; }
/* Bouton « Réserver 30 min » dans un menu à grande hauteur de ligne */
.adb-menu-cta > a {
	display: inline-block !important; line-height: 1.2 !important; height: auto !important;
	vertical-align: middle; margin-left: 8px;
}
/* Axacus : la hauteur du menu est imposée par un sélecteur très spécifique */
#site-header-menu #site-navigation div.nav-menu > ul > li.adb-menu-cta > a,
header .is_stuck #site-header-menu #site-navigation div.nav-menu > ul > li.adb-menu-cta > a,
body .is_stuck #site-header-menu #site-navigation div.nav-menu > ul > li.adb-menu-cta > a {
	line-height: 1.2 !important; height: auto !important; padding: 12px 18px !important; margin-left: 8px;
	background: var(--adb-blue); color: #fff !important; border-radius: 6px;
}
body.adb-page .entry-content p.adb-eyebrow { color: var(--adb-teal); }
body.adb-page .entry-content p.adb-lead { color: var(--adb-ink); }
.adb-cta .is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff; }

/* Résultat du test : ne pas passer sous un en-tête collant */
.adb-test-result { scroll-margin-top: 140px; }

/* ---- V1.2 ---- */
/* Bloc « En bref » */
.adb-tldr { border: 1px solid var(--adb-line); border-left: 4px solid var(--adb-blue); background: #fff; border-radius: 0 var(--adb-radius) var(--adb-radius) 0; padding: 14px 22px; margin: 24px 0; }
body.adb-page .entry-content .adb-tldr p.adb-tldr-title, .adb-tldr-title { color: var(--adb-blue); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.adb-tldr ul { margin: 0; padding-left: 20px; }
body.adb-page .entry-content .adb-tldr li { color: var(--adb-ink); margin: 4px 0; }
/* Check-list 16 points */
.adb-test-group { margin: 28px 0 12px; font-size: 18px; }
.adb-crit { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.adb-crit-2 { background: #fde2e2; color: #8a1c1c; }
.adb-crit-1 { background: #fff3cd; color: #6b4e00; }
.adb-test-level { font-size: 22px; font-weight: 700; color: var(--adb-blue); margin: 6px 0; }
/* Accroche d'accueil : moins d'espace sous l'en-tête (le thème ajoute déjà une marge) */
.adb-hero { padding-top: 8px; }
/* Menu de pied de page (si fourni par l'extension ADB) */
.adb-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.adb-footer-menu a { color: #fff; text-decoration: none; }
.adb-footer-menu a:hover { color: #c9d4e3; }
@media (max-width: 781px) { .adb-footer-menu ul { justify-content: center; } }

/* Résultats d'étude de cas : trois visuels côte à côte */
.adb-results { gap: 24px; margin: 16px 0 24px; }
.adb-results .wp-block-image { margin: 12px 0; }
.adb-results .wp-block-image img { width: 100%; height: auto; border-radius: var(--adb-radius); box-shadow: 0 2px 10px rgba(11, 31, 58, .08); }
body.adb-page .adb-results h3 { font-size: 18px; margin: 0 0 4px; }
body.adb-page .entry-content .adb-results p { font-size: 15px; }
@media (min-width: 782px) { body.adb-page .entry-content .adb-results p.adb-muted { min-height: 52px; } }

/* Fondateur : photo + présentation */
.adb-founder { align-items: center; gap: 40px; }
.adb-founder > .wp-block-column:first-child { flex-basis: 38% !important; flex-grow: 0; }
.adb-founder .wp-block-image img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 24px rgba(11, 31, 58, .14); }
/* Avatar rond dans les cartes */
.adb-avatar .wp-block-image { margin: 0 0 12px; }
.adb-avatar img { width: 88px !important; height: 88px !important; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11, 31, 58, .15); }

/* Visuel d'accueil : exemple de suivi de visibilité */
.adb-showcase { margin: 8px 0 40px; }
.adb-showcase .wp-block-image { margin: 0; }
.adb-showcase .wp-block-image img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 34px rgba(11, 31, 58, .22); }
.adb-showcase figcaption, .adb-showcase .wp-element-caption { font-size: 13px !important; line-height: 1.45 !important; color: var(--adb-muted) !important; text-align: center; margin: 10px auto 0 !important; padding: 0 12px; }

/* Encart « des ventes, pas des clics » : deux tableaux de bord côte à côte */
.adb-dash-pair { gap: 20px; margin: 16px 0 8px; }
.adb-dash-pair .wp-block-image { margin: 0; }
.adb-dash-pair .wp-block-image img { width: 100%; height: auto; border-radius: var(--adb-radius); box-shadow: 0 4px 16px rgba(11, 31, 58, .12); }
.adb-dash-pair figcaption, .adb-dash-pair .wp-element-caption { font-size: 14px !important; color: var(--adb-ink) !important; font-weight: 600; text-align: center; margin: 8px 0 0 !important; }
