/* ==========================================================================
   SOMAPROM – feuille de style principale
   ========================================================================== */
:root {
	--green-950: #062417;
	--green-900: #0a3320;
	--green-800: #0e4a2c;
	--green-700: #156038;
	--green-100: #e3efe7;
	--gold: #f2b31b;
	--gold-600: #d99a00;
	--ink: #16201b;
	--muted: #59645d;
	--bg: #f5f4ef;
	--card: #ffffff;
	--line: #e3e1d8;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(10, 51, 32, .08);
	--shadow-lg: 0 18px 44px rgba(10, 51, 32, .16);
	--font-head: "Montserrat", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--header-h: 84px;
	--gutter: 20px;
	/* Fond de repli quand aucune image n'est choisie */
	--placeholder: linear-gradient(135deg, rgba(242, 179, 27, .18), transparent 55%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px), linear-gradient(160deg, var(--green-800), var(--green-950));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4, .h1, .h3, .h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; color: var(--green-900); letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
.h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--green-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.is-center { text-align: center; }
.is-placeholder { color: #b36b00; font-style: italic; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: #ecebe4; }

/* ---------- Typo utilitaire ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-size: .8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em; color: var(--green-700);
	margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.eyebrow-light { color: var(--gold); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.lead-dark { font-size: 1.1rem; color: var(--muted); }
.bar { display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 0 0 18px; }
.bar-sm { width: 40px; height: 3px; margin: 10px 0 12px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #ffc43a; color: var(--green-950); box-shadow: 0 8px 20px rgba(242, 179, 27, .35); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: #fff; }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--font-head); font-size: .9rem; color: var(--green-800); text-decoration: none; }
.link-more .icon { transition: transform .2s; width: 1.1em; }
.link-more:hover .icon { transform: translateX(4px); }
.link-light { color: var(--gold); }
.link-light:hover { color: #ffd36b; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--green-900); color: #fff;
	box-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; flex-shrink: 0; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .75rem; opacity: .85; }

.primary-nav { display: flex; align-items: center; gap: 14px; }
.primary-nav .menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu a { display: block; padding: 10px 10px; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-menu-parent > a,
.primary-nav .menu > .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); }
.submenu-toggle { background: none; border: 0; color: inherit; padding: 4px; margin-left: -8px; cursor: pointer; display: inline-flex; }
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu,
.primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--ink); border: 0; border-radius: 6px; white-space: normal; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--green-100); color: var(--green-900); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Bannière d'accueil ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 720px); background: var(--green-950); color: #fff; overflow: hidden; isolation: isolate; }
.hero-slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	background: var(--placeholder); background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero-slide::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease-out; z-index: -2; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 36, 23, .92) 0%, rgba(6, 36, 23, .65) 45%, rgba(6, 36, 23, .15) 100%); z-index: -1; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-active::before { transform: scale(1); }
.hero-inner { padding-top: 64px; padding-bottom: 120px; }
.hero-content { max-width: 640px; }
.hero h1, .hero .h1 { color: #fff; }
.hero-badges-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: flex-end; pointer-events: none; }
.hero-badges {
	pointer-events: auto; list-style: none; margin: 0; padding: 22px; width: 250px;
	background: rgba(6, 36, 23, .55); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badges li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; font-size: .92rem; }
.hero-badges li + li { border-top: 1px solid rgba(255, 255, 255, .15); }
.hero-badges .icon { width: 36px; height: 36px; padding: 6px; color: var(--gold); border: 2px solid var(--gold); border-radius: 50%; }
.hero-dots { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; transition: .2s; }
.hero-dots button.is-active { background: var(--gold); border-color: var(--gold); width: 30px; border-radius: 6px; }

/* ---------- Bannière des pages intérieures ---------- */
.page-hero {
	position: relative; color: #fff; isolation: isolate;
	background: var(--placeholder); background-size: cover; background-position: center;
	padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 10vw, 120px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 36, 23, .92), rgba(6, 36, 23, .55) 60%, rgba(6, 36, 23, .25)); z-index: -1; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--bg); clip-path: polygon(0 100%, 100% 100%, 100% 0, 60% 70%, 0 30%); }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .bar { margin-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 18px; color: rgba(255, 255, 255, .8); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--card); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--placeholder); background-size: cover; background-position: center; }
.card-media.is-empty { color: rgba(242, 179, 27, .5); }
.card-media-icon { width: 72px; height: 72px; }
.card-body { position: relative; padding: 36px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--green-700); }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body .link-more { margin-top: auto; }
.card .meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.service-card .icon-badge { position: absolute; top: -28px; left: 26px; }
.icon-badge {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
	background: var(--green-800); color: #fff; box-shadow: 0 6px 16px rgba(10, 51, 32, .25); margin-bottom: 18px;
}
.icon-badge .icon { width: 28px; height: 28px; }
.icon-badge-lg { width: 72px; height: 72px; }
.icon-badge-lg .icon { width: 36px; height: 36px; }

.panel { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.panel p { color: var(--muted); }
.panel-sub { font-weight: 600; color: var(--green-700) !important; margin-top: -6px; }
.panel-row { display: flex; gap: 20px; align-items: flex-start; }
.panel-row .icon-badge { margin: 0; }

.box { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.box > p { color: var(--muted); }
.box-green { background: var(--green-900); color: #fff; border: 0; margin-top: 24px; }
.box-green h2 { color: #fff; }
.box-green p { color: rgba(255, 255, 255, .85); }
.box-green > .icon { color: var(--gold); width: 36px; height: 36px; margin-bottom: 12px; }

/* ---------- À propos (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-media { min-height: 420px; height: 100%; border-radius: var(--radius); background: var(--placeholder); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.split-content > p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 32px; }
.pillar { padding: 0 18px; }
.pillar:first-child { padding-left: 0; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .icon { width: 38px; height: 38px; color: var(--gold-600); margin-bottom: 10px; }
.pillar h3 { font-size: 1rem; margin-bottom: 6px; }
.pillar p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Bandeau HSE ---------- */
.hse-band { position: relative; background: var(--green-900); color: #fff; overflow: hidden; isolation: isolate; }
.hse-band-media { position: absolute; inset: 0 55% 0 0; background: var(--placeholder); background-size: cover; background-position: center; z-index: -1; }
.hse-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--green-900)); }
.hse-band-inner { display: flex; justify-content: flex-end; }
.hse-band-content { width: 58%; padding: clamp(48px, 7vw, 80px) 0; }
.hse-band h2 { color: #fff; }
.hse-band p { color: rgba(255, 255, 255, .85); }
.hse-items { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hse-items li { display: flex; gap: 12px; align-items: center; padding: 0 16px; }
.hse-items li:first-child { padding-left: 0; }
.hse-items li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.hse-items .icon { width: 40px; height: 40px; color: var(--gold); }
.hse-items strong { display: block; font-family: var(--font-head); }
.hse-items small { color: rgba(255, 255, 255, .75); }

/* ---------- Appel à l'action ---------- */
.cta-band { background: linear-gradient(90deg, #ecebe4, #f7f6f1); padding: 56px 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; gap: 32px; }
.cta-icon { color: var(--gold-600); flex: none; }
.cta-icon .icon { width: 64px; height: 64px; }
.cta-text { flex: 1; }
.cta-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.cta-text p { color: var(--muted); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; padding-left: 32px; border-left: 2px solid var(--gold); min-width: 260px; }

/* ---------- Opérations ---------- */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats li { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 30px 20px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.1; }
.stats span { font-size: .92rem; opacity: .9; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- À propos : listes ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.check-list .icon { color: var(--green-700); margin-top: 3px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.values li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-900); }
.values .icon { width: 40px; height: 40px; color: var(--gold-600); }

/* ---------- Service : détail ---------- */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.service-content { background: var(--card); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.aside-list a:hover, .aside-list .is-current a { background: var(--green-100); color: var(--green-900); }
.aside-list .icon { color: var(--green-700); }

/* ---------- Contenu libre de l'éditeur ---------- */
.entry-content > * + * { margin-top: 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: .5em 1.2em; color: var(--muted); font-style: italic; }
.content-after { margin-top: 48px; }

/* ---------- Contact ---------- */
.section-people { padding-top: 24px; }
.person { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.person-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .icon { width: 56px; height: 56px; }
.person-info { border-left: 2px solid var(--gold); padding-left: 18px; min-width: 0; }
.person-info h3 { margin-bottom: 2px; }
.person-role { font-size: .9rem; color: var(--muted); margin: 0; }
.person-info a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; margin-top: 6px; overflow-wrap: anywhere; }
.person-info a:hover { color: var(--green-700); }
.person-info .icon { color: var(--green-800); width: 1.1em; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid #cfd4cf; border-radius: var(--radius-sm);
	font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(21, 96, 56, .18); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: .85rem; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-800); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.notice-success { background: #e3f4e8; color: #11592e; border: 1px solid #a9d8b7; }
.notice-error { background: #fdecea; color: #8a1f17; border: 1px solid #f3b8b1; }
.contact-form button[disabled] { opacity: .7; cursor: wait; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; background: var(--green-100); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-900); color: #fff; }
.footer-contact { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 0; padding-top: 48px; padding-bottom: 48px; align-items: start; }
.footer-title { color: #fff; font-size: 1.6rem; margin: 0; padding-right: 32px; position: relative; padding-top: 16px; }
.footer-title::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--gold); border-radius: 2px; }
.footer-item { display: flex; gap: 14px; padding: 0 24px; border-left: 1px solid rgba(242, 179, 27, .5); font-size: .9rem; }
.footer-item .icon { color: var(--gold); width: 28px; height: 28px; }
.footer-item strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.footer-item span, .footer-item a { display: block; color: rgba(255, 255, 255, .85); text-decoration: none; overflow-wrap: anywhere; }
.footer-item a:hover { color: var(--gold); }
.footer-bottom { background: var(--green-950); font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex: 1 1 360px; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-brand p { margin: 0; color: rgba(255, 255, 255, .75); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a, .footer-social a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 16px; }
.copyright { margin: 0; color: rgba(255, 255, 255, .6); width: 100%; }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); background: #fff; text-decoration: none; box-shadow: var(--shadow); }
.nav-links .current { background: var(--green-800); color: #fff; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.primary-nav .menu a { padding: 10px 8px; font-size: .84rem; }
	.header-cta { display: none; }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.nav-toggle { display: inline-flex; }
	.nav-open .nav-toggle .icon-open { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.primary-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
		flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
		background: var(--green-900); overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.primary-nav .menu > li > a { flex: 1; padding: 16px 4px; font-size: 1rem; border: 0; }
	.submenu-toggle { margin: 0; padding: 12px; }
	.submenu-toggle .icon { width: 20px; height: 20px; }
	.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.primary-nav .sub-menu {
		position: static; width: 100%; min-width: 0; box-shadow: none; background: rgba(255, 255, 255, .06);
		opacity: 1; visibility: visible; transform: none; display: none; margin-bottom: 12px;
	}
	.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu { display: none; }
	.primary-nav .menu > li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: #fff; }
	.primary-nav .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: var(--gold); }
	.header-cta { display: inline-flex; margin-top: 24px; }

	.hero-badges-wrap { display: none; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.split-media { min-height: 300px; order: -1; }
	.hse-band-media { inset: 0; opacity: .3; }
	.hse-band-media::after { background: linear-gradient(180deg, transparent, var(--green-900)); }
	.hse-band-content { width: 100%; }
	.cta-inner { flex-wrap: wrap; }
	.cta-actions { flex-direction: row; flex-wrap: wrap; padding-left: 0; border-left: 0; min-width: 0; width: 100%; }
	.stats, .steps { grid-template-columns: repeat(2, 1fr); }
	.service-layout, .contact-grid { grid-template-columns: 1fr; }
	.footer-contact { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
	.footer-title { grid-column: 1 / -1; }
	.footer-item:nth-of-type(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
	:root { --gutter: 16px; }
	body { font-size: 15.5px; }
	.brand-logo { width: 46px; height: 46px; }
	.brand-text strong { font-size: 1rem; }
	.brand-text small { font-size: .7rem; }
	.grid-2, .grid-3, .form-row, .stats, .steps { grid-template-columns: 1fr; }
	.form-row { gap: 0; }
	.pillars, .hse-items { grid-template-columns: 1fr; gap: 18px; }
	.pillar, .pillar:first-child { padding: 0; }
	.pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
	.hse-items li, .hse-items li:first-child { padding: 0; }
	.hse-items li + li { border-left: 0; }
	.hero-inner { padding-bottom: 90px; }
	.btn-row .btn, .cta-actions .btn { width: 100%; }
	.panel, .box { padding: 24px 20px; }
	.panel-row { flex-direction: column; }
	.person { flex-direction: column; text-align: center; }
	.person-info { border-left: 0; padding-left: 0; }
	.person-info .bar-sm { margin-left: auto; margin-right: auto; }
	.person-info a { justify-content: center; }
	.cta-inner { text-align: center; justify-content: center; }
	.footer-contact { grid-template-columns: 1fr; }
	.footer-item { border-left: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
