/* ==========================================================================
   ELTA DIAG Blog — styles principaux
   Identité reprise de eltadiag.fr
   ========================================================================== */

:root {
	/* Couleurs relevées sur le site principal */
	--ed-ink: #1d1d1b;        /* en-tête au défilement, boutons pleins, texte du logo */
	--ed-heading: #263237;    /* titres */
	--ed-text: #212529;       /* texte courant */
	--ed-slate: #5e6b73;      /* sur-titres, cercle des boutons */
	--ed-steel: #9fb4c0;      /* pied de page, bouton téléphone */
	--ed-steel-soft: rgba(159, 180, 192, .2);
	--ed-navy: #1b2e5f;       /* texte du bouton téléphone, liens */
	--ed-bg: #f8f8f8;         /* fond de page */
	--ed-line: #d9d9d9;
	--ed-muted: #6c757d;
	--ed-footer-link: #444;
	--ed-white: #fff;

	--ed-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ed-radius: 20px;
	--ed-radius-sm: 10px;
	--ed-max: 1240px;
	--ed-gutter: 16px;
	--ed-header-h: 96px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ed-bg);
	color: var(--ed-text);
	font-family: var(--ed-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ed-navy); text-underline-offset: 3px; }
a:hover { color: var(--ed-slate); }
:focus-visible { outline: 2px solid var(--ed-navy); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--ed-font); font-weight: 700; color: var(--ed-heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(34px, 4vw, 50px); }
h2 { font-size: clamp(26px, 2.6vw, 32px); }
h3 { font-size: clamp(21px, 2vw, 24px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: 12px; z-index: 1000; padding: 12px 18px; background: #fff; color: var(--ed-ink); border-radius: 8px; }

.container { width: 100%; max-width: var(--ed-max); margin: 0 auto; padding: 0 var(--ed-gutter); }
.container--narrow { max-width: 860px; }

/* --- Sur-titre avec pictogramme (« PRESTATIONS ») ------------------------- */
.sub-title {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
	color: var(--ed-slate); margin-bottom: 14px;
}
.sub-title::before { content: ""; width: 16px; height: 35px; flex-shrink: 0; background: url("../images/deco.svg") no-repeat center / contain; }
.sub-title--light { color: var(--ed-steel); }
.sub-title--light::before { background-image: url("../images/deco-white.svg"); }

/* --- Boutons ----------------------------------------------------------------- */
.btn-arrow { display: inline-flex; align-items: center; gap: 14px; min-height: 50px; text-decoration: none; font-size: 18px; font-weight: 700; color: var(--ed-ink); }
.btn-arrow__circle {
	width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--ed-slate); color: var(--ed-white);
	transition: background-color .25s ease, transform .25s ease;
}
.btn-arrow__circle svg { width: 20px; height: 20px; }
.btn-arrow:hover { color: var(--ed-ink); }
.btn-arrow:hover .btn-arrow__circle { background: var(--ed-ink); transform: translateX(4px); }
.btn-arrow--light, .btn-arrow--light:hover { color: var(--ed-white); }
.btn-arrow--light:hover .btn-arrow__circle { background: var(--ed-steel); color: var(--ed-ink); }

.btn, .wp-block-button__link, input[type="submit"], .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 24px; border: 0; border-radius: 26px;
	background: var(--ed-ink); color: var(--ed-white);
	font-family: var(--ed-font); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: background-color .2s ease;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--ed-slate); color: var(--ed-white); }

.btn-phone {
	display: inline-flex; align-items: center; gap: 10px;
	height: 50px; padding: 0 20px; border-radius: var(--ed-radius-sm);
	background: var(--ed-steel); color: var(--ed-navy);
	font-size: 15px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; font-weight: 600;
}
.btn-phone svg { width: 18px; height: 18px; }
.btn-phone:hover { background: var(--ed-white); color: var(--ed-navy); }

/* --- En-tête ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ed-white);
	transition: background-color .3s ease, box-shadow .3s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.is-scrolled .site-header { background: var(--ed-ink); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }

.site-header__inner {
	max-width: 1440px; margin: 0 auto; padding: 0 28px;
	height: var(--ed-header-h);
	display: flex; align-items: center; gap: 32px;
	transition: height .3s ease;
}
.is-scrolled .site-header__inner { height: 72px; }

.site-logo { position: relative; display: block; width: 180px; flex-shrink: 0; transition: width .3s ease; }
.site-logo img { width: 100%; height: auto; transition: opacity .3s ease; }
.site-logo__light { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .site-logo { width: 140px; }
.is-scrolled .site-logo__dark { opacity: 0; }
.is-scrolled .site-logo__light { opacity: 1; }
.site-header__brand .custom-logo { width: 180px; height: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav .menu > li { position: relative; }
.site-nav a { color: var(--ed-ink); text-decoration: none; font-size: 17px; transition: color .2s ease; }
.site-nav .menu > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 12px; }
.site-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.site-nav .menu > li > a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { color: var(--ed-slate); }
.site-nav .current-menu-item > a { font-weight: 700; }
.is-scrolled .site-nav a, .is-scrolled .site-nav__client { color: var(--ed-white); }
.is-scrolled .site-nav .menu > li > a:hover, .is-scrolled .site-nav .current-menu-item > a { color: var(--ed-steel); }
.is-scrolled .site-nav .sub-menu a { color: var(--ed-ink); }

.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px 0;
	position: absolute; left: 0; top: 100%; min-width: 260px;
	background: var(--ed-white); border-radius: var(--ed-radius-sm); box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-nav .sub-menu a { display: block; padding: 9px 22px; font-size: 16px; }
.site-nav .sub-menu a:hover { background: var(--ed-bg); color: var(--ed-slate); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.site-nav__client { display: inline-flex; align-items: center; gap: 8px; padding-left: 24px; border-left: 1px solid var(--ed-line); }
.site-nav__client svg { width: 24px; height: 24px; }
.is-scrolled .site-nav__client { border-color: rgba(255, 255, 255, .2); }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; padding: 12px 8px;
	background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; align-items: flex-end;
}
.nav-toggle__bar { display: block; height: 2px; width: 28px; background: var(--ed-ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background .3s; }
.nav-toggle__bar:nth-child(2) { width: 20px; }
.is-scrolled .nav-toggle__bar { background: var(--ed-white); }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1100px) {
	:root { --ed-header-h: 80px; }
	.site-header__inner { padding: 0 var(--ed-gutter); }
	.site-logo { width: 140px; }
	.nav-toggle { display: flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--ed-gutter) 24px; background: var(--ed-white);
		max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 16px 30px rgba(0, 0, 0, .1);
	}
	.is-scrolled .site-nav { background: var(--ed-ink); }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li > a { padding: 14px 0; border-bottom: 1px solid var(--ed-line); justify-content: space-between; }
	.is-scrolled .site-nav .menu > li > a { border-color: rgba(255, 255, 255, .12); }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 4px 0 8px 14px; min-width: 0; }
	.is-scrolled .site-nav .sub-menu a { color: rgba(255, 255, 255, .8); }
	.site-nav .sub-menu a { padding: 7px 0; }
	.site-nav__client { border-left: 0; padding: 18px 0 0; }
}

/* --- En-tête de page ------------------------------------------------------------ */
.hero { padding: 28px var(--ed-gutter) 36px; }
.hero__inner { max-width: var(--ed-max); margin: 0 auto; }
.hero__title { font-size: clamp(34px, 4vw, 50px); line-height: 1.2; margin: 0; max-width: 980px; }
.hero__subtitle { max-width: 720px; margin-top: 18px; font-size: 18px; color: var(--ed-slate); }
.hero__subtitle p { margin: 0; }
.hero .sub-title { margin-top: 18px; }
.hero__line { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ed-text); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ed-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ed-slate); text-decoration: underline; }
.breadcrumbs__sep { color: var(--ed-slate); }
.breadcrumbs__current { color: var(--ed-slate); max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero--post { padding-bottom: 40px; }
.hero--post .hero__title { font-size: clamp(30px, 3.4vw, 46px); margin-top: 14px; }
.hero--post .post-meta { margin-top: 18px; }

/* --- Liste d'articles ---------------------------------------------------------- */
.site-main { padding-top: 8px; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
	display: inline-block; padding: 9px 18px; border-radius: 999px;
	background: var(--ed-white); border: 1px solid var(--ed-line); color: var(--ed-ink);
	font-size: 15px; text-decoration: none; transition: all .2s ease;
}
.chip:hover { border-color: var(--ed-slate); color: var(--ed-ink); }
.chip.is-active { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-white); }

.badge {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	background: var(--ed-steel-soft); color: var(--ed-navy);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.badge:hover { background: var(--ed-steel); color: var(--ed-navy); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ed-slate); font-size: 14px; }
.post-meta svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.post-meta__read { display: inline-flex; align-items: center; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } }

.card {
	display: flex; flex-direction: column; padding: 12px;
	background: var(--ed-white); border-radius: var(--ed-radius);
	transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 50, 55, .1); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--ed-radius-sm); background: var(--ed-steel-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #fff, var(--ed-steel-soft)); }
.card__placeholder img { width: 45%; height: auto; object-fit: contain; }
.card:hover .card__placeholder img { transform: none; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 12px 12px; flex: 1; }
.card__body .badge { align-self: flex-start; }
.card__title { font-size: 20px; line-height: 1.3; margin: 0; }
.card__title a { color: var(--ed-heading); text-decoration: none; }
.card__title a:hover { color: var(--ed-slate); }
.card__body .post-meta { margin-top: auto; padding-top: 6px; }

.featured-row { margin-bottom: 28px; }
.card--featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.card--featured .card__media { aspect-ratio: auto; min-height: 400px; }
.card--featured .card__body { justify-content: center; padding: 32px 36px; gap: 16px; }
.card--featured .card__title { font-size: clamp(26px, 2.4vw, 32px); }
.card__excerpt { color: var(--ed-slate); margin: 0; }
@media (max-width: 860px) {
	.card--featured { grid-template-columns: 1fr; }
	.card--featured .card__media { min-height: 0; aspect-ratio: 3 / 2; }
	.card--featured .card__body { padding: 20px 12px 12px; }
}

.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers {
	width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--ed-white); color: var(--ed-ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers svg { width: 20px; height: 20px; }
.pagination .page-numbers.current { background: var(--ed-ink); color: var(--ed-white); }
.pagination a.page-numbers:hover { background: var(--ed-slate); color: var(--ed-white); }

.empty-state { text-align: center; padding: 40px 0; }
.empty-state .search-form { margin: 24px auto; }
.big-404 { font-size: clamp(90px, 16vw, 160px); font-weight: 800; line-height: 1; margin: 0 0 8px; color: var(--ed-steel); }

/* --- Article ------------------------------------------------------------------ */
.container--post { max-width: 860px; }
.container--post.has-sidebar { max-width: var(--ed-max); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 1000px) { .container--post.has-sidebar { grid-template-columns: 1fr; } }

.entry { background: var(--ed-white); border-radius: var(--ed-radius); padding: 12px 12px 40px; }
.entry__thumb { margin: 0 0 40px; border-radius: var(--ed-radius-sm); overflow: hidden; }
.entry__thumb img { width: 100%; }
.entry__content, .entry__tags, .author-box, .post-nav, .entry .comments { margin-left: 36px; margin-right: 36px; }
.entry > .entry__content:first-child { padding-top: 28px; }
@media (max-width: 640px) {
	.entry__content, .entry__tags, .author-box, .post-nav, .entry .comments { margin-left: 8px; margin-right: 8px; }
}

.entry__content { font-size: 18px; line-height: 1.7; color: var(--ed-text); }
.entry__content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry__content h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.7em; margin-bottom: .6em; }
.entry__content h3 { font-size: clamp(20px, 2vw, 23px); margin-top: 1.5em; margin-bottom: .5em; }
.entry__content h4 { font-size: 19px; margin-top: 1.4em; }
.entry__content a { color: var(--ed-navy); font-weight: 600; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .45em; }
.entry__content ul li::marker { color: var(--ed-slate); }
.entry__content ol li::marker { color: var(--ed-slate); font-weight: 700; }
.entry__content img { border-radius: var(--ed-radius-sm); }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption, .wp-element-caption { font-size: 14px; color: var(--ed-muted); text-align: center; margin-top: 8px; }
.entry__content blockquote, .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 24px 28px;
	background: var(--ed-steel-soft); border-left: 4px solid var(--ed-steel); border-radius: 0 var(--ed-radius-sm) var(--ed-radius-sm) 0;
	font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--ed-heading);
}
.entry__content blockquote p:last-child { margin-bottom: 0; }
.entry__content blockquote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; font-weight: 400; color: var(--ed-slate); }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry__content th, .entry__content td { padding: 12px 14px; border-bottom: 1px solid var(--ed-line); text-align: left; }
.entry__content th { background: var(--ed-ink); color: var(--ed-white); font-weight: 600; }
.entry__content tr:nth-child(even) td { background: var(--ed-bg); }
.entry__content hr { border: 0; border-top: 1px solid var(--ed-line); margin: 2.5em 0; }
.entry__content code { background: var(--ed-bg); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry__content .wp-block-button__link { color: var(--ed-white); }
.entry__content .alignfull, .entry__content .alignwide { margin-left: 0; margin-right: 0; }
.entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.entry__content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry__content .alignright { float: right; margin: .3em 0 1em 1.5em; }

.has-ink-color { color: #1d1d1b !important; } .has-ink-background-color { background-color: #1d1d1b !important; }
.has-heading-color { color: #263237 !important; } .has-heading-background-color { background-color: #263237 !important; }
.has-slate-color { color: #5e6b73 !important; } .has-slate-background-color { background-color: #5e6b73 !important; }
.has-steel-color { color: #9fb4c0 !important; } .has-steel-background-color { background-color: #9fb4c0 !important; }
.has-navy-color { color: #1b2e5f !important; } .has-navy-background-color { background-color: #1b2e5f !important; }
.has-light-color { color: #f8f8f8 !important; } .has-light-background-color { background-color: #f8f8f8 !important; }
.has-white-color { color: #fff !important; } .has-white-background-color { background-color: #fff !important; }

.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; margin-bottom: 32px; }

.author-box { display: flex; gap: 18px; align-items: center; margin-top: 40px; margin-bottom: 32px; padding: 24px; border-radius: var(--ed-radius); background: var(--ed-bg); }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 0; }
.author-box__label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ed-slate); font-weight: 700; }
.author-box__name { font-size: 20px; font-weight: 700; color: var(--ed-heading); }
.author-box__bio { margin-top: 6px !important; color: var(--ed-slate); font-size: 15px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav > div:last-child { text-align: right; }
.post-nav a { display: block; height: 100%; padding: 18px 20px; border-radius: var(--ed-radius-sm); border: 1px solid var(--ed-line); text-decoration: none; color: var(--ed-heading); font-weight: 700; line-height: 1.35; transition: border-color .2s ease, background .2s ease; }
.post-nav a:hover { border-color: var(--ed-steel); background: var(--ed-bg); color: var(--ed-heading); }
.post-nav a span { display: block; font-size: 13px; font-weight: 400; color: var(--ed-slate); margin-bottom: 4px; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav > div:last-child { text-align: left; } }

.related { padding: 72px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-title { margin: 0; }

/* Barre latérale */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.sidebar .widget { padding: 26px; border-radius: var(--ed-radius); background: var(--ed-white); }
.widget-title, .sidebar h2, .sidebar .wp-block-heading { font-size: 20px; margin-bottom: 14px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 9px 0; border-bottom: 1px solid var(--ed-line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ed-ink); text-decoration: none; }
.sidebar a:hover { color: var(--ed-slate); }
.sidebar .wp-block-search__label { display: block; font-size: 20px; font-weight: 700; color: var(--ed-heading); margin-bottom: 12px; }
.sidebar .wp-block-search__inside-wrapper { display: flex; border: 1px solid var(--ed-line); border-radius: 26px; overflow: hidden; background: var(--ed-white); }
.sidebar .wp-block-search__input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; background: transparent; }
.sidebar .wp-block-search__button { border: 0; margin: 0; padding: 0 18px; background: var(--ed-ink); color: var(--ed-white); font: inherit; font-weight: 700; cursor: pointer; }

/* Recherche */
.search-form { display: flex; max-width: 480px; border-radius: 26px; overflow: hidden; border: 1px solid var(--ed-line); background: var(--ed-white); }
.search-form__input { flex: 1; min-width: 0; border: 0; padding: 14px 22px; font: inherit; background: transparent; }
.search-form__input:focus { outline: none; }
.search-form:focus-within { border-color: var(--ed-slate); }
.search-form__btn { border: 0; background: var(--ed-ink); color: var(--ed-white); width: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-form__btn svg { width: 20px; height: 20px; }

/* Commentaires */
.comments { margin-top: 48px; }
.comments__title, .comment-reply-title { font-size: 26px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--ed-line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 4px 0 10px; }
.comment-metadata a { color: var(--ed-muted); text-decoration: none; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 13px 18px; border: 1px solid var(--ed-line); border-radius: var(--ed-radius-sm); font: inherit; background: var(--ed-white);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ed-slate); }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* --- Encart devis --------------------------------------------------------------- */
.cta { padding: 80px var(--ed-gutter) 24px; }
.cta__box {
	position: relative; overflow: hidden;
	max-width: var(--ed-max); margin: 0 auto; padding: 56px 56px;
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
	background: var(--ed-ink); color: var(--ed-white); border-radius: var(--ed-radius);
}
.cta__box::after {
	content: ""; position: absolute; right: -30px; bottom: -60px; width: 220px; height: 480px;
	background: url("../images/deco-white.svg") no-repeat center / contain; opacity: .07; pointer-events: none;
}
.cta__title { color: var(--ed-white); font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta__text { color: rgba(255, 255, 255, .8); margin: 0; max-width: 560px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta__box { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; } }

/* --- Pré-pied « Contactez-nous » ------------------------------------------------- */
.prefooter { padding: 56px var(--ed-gutter) 64px; }
.prefooter__inner { max-width: var(--ed-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.prefooter__title { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; color: var(--ed-heading); margin: 0 0 12px; line-height: 1.2; }
.prefooter__hours { margin: 0; }
.prefooter__col--links { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: inline-flex; align-items: center; gap: 14px; color: var(--ed-ink); text-decoration: none; font-size: 17px; }
.contact-line svg { width: 22px; height: 22px; color: var(--ed-slate); }
.contact-line:hover { color: var(--ed-slate); }
@media (max-width: 760px) { .prefooter__inner { grid-template-columns: 1fr; gap: 24px; } }

/* --- Pied de page ------------------------------------------------------------------ */
.site-footer { background: var(--ed-steel); color: var(--ed-ink); }
.site-footer__inner {
	max-width: var(--ed-max); margin: 0 auto; padding: 64px var(--ed-gutter) 48px;
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.site-logo--footer { width: 170px; }
.site-footer__title { font-size: 22px; color: var(--ed-ink); margin-bottom: 18px; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-menu li { margin-bottom: 8px; break-inside: avoid; }
.footer-menu a { color: var(--ed-footer-link); text-decoration: none; }
.footer-menu a:hover { color: var(--ed-ink); text-decoration: underline; }
.site-footer__col p { color: var(--ed-footer-link); }
.site-footer__bottom { border-top: 1px solid rgba(29, 29, 27, .15); padding: 18px var(--ed-gutter); text-align: center; font-size: 14px; }
.site-footer__bottom p { margin: 0; color: var(--ed-ink); }
.site-footer__bottom a { color: var(--ed-ink); text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Alignement des blocs sans marge interne sur la grille du contenu */
.hero__inner, .prefooter__inner, .cta__box { max-width: calc(var(--ed-max) - 2 * var(--ed-gutter)); }
