/*
Theme Name: ADM Consulting
Theme URI: https://example.com/
Author: ADM Consulting
Description: Thème sur mesure d'ADM Consulting : conseil, hébergement, infogérance et sécurité. Thème à blocs, polices hébergées localement.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adm-consulting
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main { margin: 0; }
.adm-section { scroll-margin-top: 90px; margin: 0 !important; }
.wp-block-post-content > * { margin-block-start: 0; }

.adm-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 96px 24px;
	box-sizing: border-box;
}
.adm-inner > * + * { margin-block-start: 0; }

.adm-section h2 {
	font-size: clamp(2rem, 3.5vw, 2.6rem);
	margin: 0 0 48px;
	max-width: 760px;
}
.adm-section h3 { margin: 0; font-size: 1.35rem; }
.adm-section p { margin: 0; }

.adm-eyebrow {
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #555B64;
	margin: 0 0 14px !important;
}

/* Couleurs de fond des sections */
.adm-light { background: #F3F3F2; }
.adm-white { background: #FFFFFF; }
.adm-dark { background: #1E2126; color: #FFFFFF; }
.adm-dark h1, .adm-dark h2, .adm-dark h3 { color: #FFFFFF; }
.adm-dark .adm-eyebrow { color: #B8BDC5; }
.adm-dark p { color: #D3D6DB; }

/* ---------- En-tête ---------- */
.adm-header {
	background: #FFFFFF;
	border-bottom: 1px solid #E5E6E8;
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .adm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .adm-header { top: 46px; } }
.adm-header-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 14px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
}
.adm-header-inner > * { margin: 0 !important; }
.adm-logo { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; line-height: 1; }
.adm-logo svg { display: block; overflow: visible; }
.adm-logo-sub {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.34em;
	color: #2B2F36;
}
.adm-footer .adm-logo-sub { color: #FFFFFF; font-size: 10px; }

.adm-nav { font-size: 15px; font-weight: 500; gap: 8px 28px; }
.adm-nav .wp-block-navigation-item__content { padding: 10px 0; text-decoration: none; }
.adm-nav .wp-block-navigation-item__content:hover { color: #B91C22; }
.adm-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.adm-header-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.adm-header-actions > * { margin: 0 !important; }

/* ---------- Accroche ---------- */
.adm-hero .adm-inner {
	padding-top: 96px;
	padding-bottom: 104px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}
.adm-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.adm-hero-text > * { margin: 0 !important; }
.adm-hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
}
.adm-hero-lead { font-size: 1.2rem; max-width: 600px; }
.adm-hero-visual { flex: 1 1 280px; display: flex; justify-content: center; }
.adm-hero-visual svg { width: 100%; max-width: 300px; height: auto; }
.adm-hero .wp-block-buttons { gap: 14px; margin-top: 8px !important; }
.adm-btn-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid #5A616B;
	color: #FFFFFF;
}
.adm-btn-outline .wp-block-button__link:hover { background: #2A2E34; color: #FFFFFF; }

/* ---------- Grilles et cartes ---------- */
.adm-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.adm-grid > * { margin: 0 !important; }
.adm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.adm-grid-6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }

.adm-card {
	background: #FFFFFF;
	border: 1px solid #E5E6E8;
	border-radius: 14px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.adm-card > * { margin: 0 !important; }
.adm-card p { color: #555B64; }
.adm-card svg { display: block; }
.adm-dark .adm-card { background: #2A2E34; border-color: #2A2E34; }
.adm-dark .adm-card p { color: #D3D6DB; }
.adm-card-soft { background: #F3F3F2; border-color: #F3F3F2; }

.adm-step { border-top: 2px solid #2B2F36; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.adm-step > * { margin: 0 !important; }
.adm-step-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: #B91C22; }
.adm-step p:not(.adm-step-num) { color: #555B64; }

.adm-intro-row { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.adm-intro-row > * { margin: 0 !important; }
.adm-intro-row h2 { margin: 0; flex: 1 1 520px; }
.adm-intro-row p { flex: 0 1 420px; color: #555B64; }

.adm-logo-slot {
	height: 96px;
	border: 1px dashed #C9CBD0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #555B64;
	text-align: center;
	padding: 8px;
}
.adm-logo-slot img { max-height: 56px; width: auto; }

.adm-partner-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-partner-head > * { margin: 0 !important; }
.adm-partner-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; }
.adm-badge-slot { padding: 10px 14px; border: 1px dashed #A8ACB3; border-radius: 8px; font-size: 12px; font-weight: 600; color: #555B64; }
.adm-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: #B91C22; text-transform: uppercase; }
.adm-block-gap { margin-top: 72px !important; }

/* ---------- Contact ---------- */
.adm-contact-row { display: flex; flex-wrap: wrap; gap: 56px; }
.adm-contact-row > * { margin: 0 !important; }
.adm-contact-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.adm-contact-info > * { margin: 0 !important; }
.adm-contact-info h2 { margin: 0; }
.adm-contact-info p { color: #555B64; }
.adm-contact-info .adm-coord { color: #2B2F36; }
.adm-contact-form-wrap { flex: 1.4 1 420px; min-width: 0; }

.adm-form {
	background: #FFFFFF;
	border: 1px solid #E5E6E8;
	border-radius: 14px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.adm-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.adm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.adm-form input[type="text"],
.adm-form input[type="email"],
.adm-form input[type="tel"],
.adm-form textarea {
	font: inherit;
	font-weight: 400;
	padding: 12px 14px;
	border: 1px solid #A8ACB3;
	border-radius: 8px;
	background: #FFFFFF;
	color: #2B2F36;
}
.adm-form input:focus, .adm-form textarea:focus { outline: 2px solid #2B2F36; outline-offset: 1px; }
.adm-form textarea { resize: vertical; min-height: 130px; }
.adm-form .adm-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: #555B64; }
.adm-form .adm-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.adm-form .adm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adm-form button {
	align-self: flex-start;
	font: inherit;
	font-weight: 600;
	padding: 14px 28px;
	min-height: 48px;
	background: #C81E23;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}
.adm-form button:hover { background: #A9181D; }
.adm-notice { padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.adm-notice-ok { background: #E7F5EC; color: #14532D; }
.adm-notice-err { background: #FDECEC; color: #8A1116; }

/* ---------- Pied de page ---------- */
.adm-footer { background: #1E2126; color: #B8BDC5; }
.adm-footer-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 40px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 14px;
}
.adm-footer-inner > * { margin: 0 !important; }
.adm-footer a { color: #D3D6DB; }
.adm-footer a:hover { color: #FFFFFF; }

/* ---------- Pages simples ---------- */
.adm-page { max-width: 760px; margin-inline: auto; padding: 72px 24px 96px; box-sizing: border-box; }
.adm-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 32px; }
.adm-page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.adm-page p, .adm-page li { color: #2B2F36; }

@media (max-width: 600px) {
	.adm-inner { padding: 72px 20px; }
	.adm-hero .adm-inner { padding-top: 64px; padding-bottom: 72px; }
	.adm-card, .adm-form { padding: 24px; }
	.adm-hero-visual svg { max-width: 180px; }
}

/* Références clients (noms) */
.adm-client {
	min-height: 88px;
	margin: 0 !important;
	padding: 10px 14px;
	border: 1px solid #E5E6E8;
	border-radius: 12px;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.25;
	color: #2B2F36;
}
.adm-client img { max-height: 56px; width: auto; }

/* Logos clients : ajustement à la case et grille centrée */
.adm-grid-6 { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.adm-grid-6 > .adm-client { flex: 0 0 calc((100% - 5 * 16px) / 6); box-sizing: border-box; }
.adm-client img { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .adm-grid-6 > .adm-client { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 560px)  { .adm-grid-6 > .adm-client { flex-basis: calc((100% - 16px) / 2); } }
