/*
 * CEI Solutions : styles du theme.
 * Charte : voir CHARTE.md (et CEI Solutions > Charte graphique dans le back-office).
 *
 * Sommaire
 * 1. Police et variables
 * 2. Base
 * 3. Utilitaires et mise en page
 * 4. Boutons, liens, pastilles
 * 5. En-tete et navigation
 * 6. En-tetes de page (hero)
 * 7. Sections
 * 8. Cartes et composants
 * 9. Formulaires
 * 10. Pages (service, contact, devis, glossaire, realisation, mentions)
 * 11. Bandeau d'appel, pied de page, actions mobiles, fenetre
 * 12. Contenus editoriaux (prose) et transition Elementor
 * 13. Charte graphique (page de reference)
 * 14. Mouvement reduit, impression
 */

/* 1. Police et variables ------------------------------------------------ */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Couleurs */
	--orange: #EA571F;
	--orange-600: #D9480F;
	--orange-50: #FDEEE7;
	--braise: #C2410C;
	--ink: #14181F;
	--ink-2: #1D232D;
	--slate: #2B313B;
	--muted: #5B6472;
	--line: #E3E6EB;
	--line-dark: rgba(255, 255, 255, .12);
	--mist: #F4F5F7;
	--sand: #FBF3EE;
	--white: #FFFFFF;
	--success: #15803D;
	--danger: #B91C1C;

	/* Typographie */
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1rem;
	--fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
	--fs-h3: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
	--fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
	--fs-h1: clamp(2.125rem, 1.5rem + 2.8vw, 4rem);

	/* Espacements */
	--space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
	--gutter: clamp(1.25rem, .75rem + 2vw, 2rem);
	--container: 1240px;
	--radius: 14px;
	--radius-sm: 8px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 1px 3px rgba(20, 24, 31, .08);
	--shadow: 0 10px 30px -12px rgba(20, 24, 31, .18), 0 2px 6px rgba(20, 24, 31, .06);
	--shadow-lg: 0 30px 60px -20px rgba(20, 24, 31, .35);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--slate);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	color: var(--ink);
	text-wrap: balance;
}
h3, h4 { font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--braise); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--orange); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 1rem; left: 1rem; z-index: 1000;
	width: auto; height: auto; clip: auto; margin: 0;
	padding: .75rem 1.25rem;
	background: var(--ink); color: var(--white);
	border-radius: var(--radius-sm);
}

/* 3. Utilitaires et mise en page ---------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--space-section); }
.section--compact { padding-block: calc(var(--space-section) * .6); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--mist); }
.section--dark { background: var(--ink); color: #C9CED6; }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section + .section--tint,
.section--tint + .section:not(.section--tint):not(.section--dark) { border-top: 0; }

.grid { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid--tight { gap: 1rem; margin-top: 1.5rem; }

.split {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.split { grid-template-columns: 1.05fr .95fr; }
	.split--single { grid-template-columns: 1fr; max-width: 820px; }
}
.split__link { margin-top: 2rem; }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Cadre "viseur" : coins orange sur les photos (signature de la charte). */
.frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--mist);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--corners { overflow: visible; }
.frame--corners img { border-radius: var(--radius); }
.frame--corners::before,
.frame--corners::after {
	content: "";
	position: absolute;
	width: 44px; height: 44px;
	border: 3px solid var(--orange);
	pointer-events: none;
}
.frame--corners::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.frame--corners::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

/* 4. Boutons, liens, pastilles ------------------------------------------ */

.btn {
	--btn-bg: var(--white);
	--btn-fg: var(--ink);
	--btn-bd: var(--line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 48px;
	padding: .75rem 1.35rem;
	border: 1.5px solid var(--btn-bd);
	border-radius: var(--radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 700 var(--fs-sm)/1.2 var(--font);
	letter-spacing: .005em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
	white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: .9rem 1.7rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); color: var(--white); }
.section--dark .btn--primary:hover,
.hero .btn--primary:hover,
.aside-card--dark .btn--primary:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); color: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--ink:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); color: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { --btn-bd: var(--white); --btn-bg: rgba(255, 255, 255, .08); color: var(--white); }
.btn--outline-ink { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(20, 24, 31, .35); }
.btn--outline-ink:hover { --btn-bd: var(--ink); color: var(--ink); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 700;
	font-size: var(--fs-sm);
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid var(--orange);
	padding-bottom: .15em;
	white-space: nowrap;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--braise); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--sm { font-size: var(--fs-xs); border-bottom-width: 1px; margin-top: .4rem; }
/* Zone tactile elargie (44 px) sans changer la mise en page. */
.link-arrow { position: relative; }
.link-arrow::before { content: ""; position: absolute; inset: -.5rem -.25rem; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	margin: 0 0 1rem;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--braise);
}
.kicker::before {
	content: "";
	width: 10px; height: 10px;
	background: var(--orange);
	border-radius: 2px;
	flex-shrink: 0;
}
.kicker .icon { width: 1.25rem; height: 1.25rem; color: var(--orange); }
.kicker:has(.icon)::before { display: none; }
.kicker--light { color: #FFC4A8; }
.kicker--ink { color: var(--ink); }
.kicker--ink::before { background: var(--ink); }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chips li {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding: .3rem .7rem;
	border-radius: var(--radius-pill);
	background: var(--mist);
	color: var(--slate);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.3;
}
.chips--light li { background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(255, 255, 255, .14); }
.chips .icon { width: 1em; height: 1em; color: var(--orange); }

.checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink); }
.checklist .icon { color: var(--success); margin-top: .1em; }

/* 5. En-tete et navigation ---------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.topbar {
	background: var(--ink);
	color: #AEB4BE;
	font-size: var(--fs-xs);
	transition: margin-top .25s var(--ease);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__info { display: flex; gap: 1.5rem; margin: 0; }
.topbar__info span,
.topbar__mail { display: inline-flex; align-items: center; gap: .45em; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--orange); }
.topbar__mail { color: #DDE1E7; text-decoration: none; }
.topbar__mail:hover { color: var(--white); }
.site-header.is-scrolled .topbar { margin-top: -38px; }
@media (max-width: 899px) { .topbar { display: none; } }

.navbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--ink); }
.logo__img { width: auto; height: 44px; }
.logo__text { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.logo__accent { color: var(--orange); }
.logo--light .logo__text { color: var(--white); }
.logo--light .logo__img { height: 42px; }

.nav { margin-left: auto; }
.nav .menu { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav .menu > li { position: relative; }
.nav .menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	padding: .6rem .8rem;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	transition: color .15s, background-color .15s;
}
.nav .menu > li > a:hover,
.nav .menu > .current-menu-item > a,
.nav .menu > .current-menu-ancestor > a,
.nav .menu > .current_page_item > a,
.nav .menu > .current_page_ancestor > a { color: var(--braise); }
.nav .menu-item-has-children > a::after {
	content: "";
	width: .45em; height: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	margin-left: .25em;
	opacity: .6;
}
.nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: -1rem;
	min-width: 290px;
	margin: 0;
	padding: .6rem;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu,
.nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a {
	display: block;
	padding: .55rem .8rem;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
}
.nav .sub-menu a:hover,
.nav .sub-menu .current-menu-item > a,
.nav .sub-menu .current_page_item > a { background: var(--orange-50); color: var(--braise); }
.nav__mobile-actions { display: none; }

.navbar__actions { display: flex; align-items: center; gap: 1rem; }
.navbar__phone { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: var(--fs-sm); line-height: 1.15; }
.navbar__phone small { display: block; font-size: .6875rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.navbar__phone .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--orange-50); color: var(--braise); }
.navbar__phone:hover { color: var(--braise); }
.navbar__toggle {
	display: none;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}
.navbar__toggle .icon-close { display: none; }

@media (max-width: 1180px) {
	.navbar__phone span { display: none; }
}
@media (max-width: 1023px) {
	:root { --header-h: 68px; }
	.navbar__toggle { display: inline-flex; }
	.navbar__cta { display: none; }
	/* Le menu passe en panneau fixe : il ne pousse plus les actions a droite. */
	.navbar__actions { margin-left: auto; }
	.nav {
		/* L'en-tete a un backdrop-filter : il devient le bloc conteneur des
		   elements fixes. On ancre donc le panneau sous l'en-tete et on lui
		   donne une hauteur explicite (sinon il ne fait que 56 px). */
		position: fixed;
		inset: 100% 0 auto;
		height: calc(100vh - var(--header-h));
		height: calc(100dvh - var(--header-h));
		z-index: 99;
		margin: 0;
		padding: 1.5rem var(--gutter) 2rem;
		background: var(--white);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	}
	.admin-bar .nav { height: calc(100dvh - var(--header-h) - 46px); }
	.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
	.menu-open .navbar__toggle .icon-open { display: none; }
	.menu-open .navbar__toggle .icon-close { display: block; }
	.menu-open { overflow: hidden; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { border-bottom: 1px solid var(--line); }
	.nav .menu > li > a { display: flex; justify-content: space-between; padding: 1rem 0; font-size: 1.125rem; }
	.nav .sub-menu { position: static; min-width: 0; padding: 0 0 .75rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.nav .sub-menu a { padding: .55rem .75rem; font-size: var(--fs-base); }
	.nav__mobile-actions { display: grid; gap: .75rem; margin-top: 2rem; }
}

/* 6. En-tetes de page (hero) -------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ink);
	color: #C9CED6;
}
.hero::after {
	/* Trame fine, rappel de grille technique. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-image .hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(20, 24, 31, .94) 0%, rgba(20, 24, 31, .82) 45%, rgba(20, 24, 31, .45) 100%);
}
.hero__inner { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__content { max-width: 760px; }
.hero__title { color: var(--white); font-size: var(--fs-h1); margin-bottom: 1.25rem; }
.hero__text { font-size: var(--fs-lead); line-height: 1.6; max-width: 640px; margin-bottom: 2rem; color: #D5D9DF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .chips { margin: -0.5rem 0 2rem; }
.hero .crumbs { margin-bottom: 2rem; }

.hero--home .hero__inner { padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero--home .hero__content { max-width: 820px; }
.hero--home .hero__title { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem); }
.hero--compact .hero__inner { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(5rem, 4rem + 4vw, 7rem); }
.hero--service .hero__title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; }
.stats__item { display: flex; flex-direction: column-reverse; padding: 1.25rem 1.5rem; }
.stats__value { margin: 0; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats__label { margin-top: .5rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stats--hero {
	margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
	background: var(--line-dark);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	overflow: hidden;
}
.stats--hero .stats__item { background: rgba(20, 24, 31, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stats--hero .stats__value { color: var(--orange); }
.stats--hero .stats__label { color: #AEB4BE; }

/* Fil d'Ariane */
.crumbs { font-size: var(--fs-xs); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--braise); text-decoration: underline; }
.crumbs .separator { opacity: .5; margin: 0 .35rem; }
.hero .crumbs { color: #9AA2AE; }
.hero .crumbs a:hover { color: var(--white); }
.hero .crumbs [aria-current],
.hero .crumbs .last { color: #D5D9DF; }

/* En-tete simple (pages editoriales) */
.page-header { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-header .crumbs { margin-bottom: 1.5rem; }
.page-header__title { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); margin-bottom: .75rem; }

/* 7. Sections ------------------------------------------------------------ */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.section-head__text { max-width: 720px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--center .kicker { justify-content: center; }
.section-title { font-size: var(--fs-h2); margin-bottom: 0; }
.section-title--sm { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: 3rem 0 0; }
.section-head .section-lead { margin-top: 1rem; }
.section-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 680px; }
.section-lead--intro { margin-bottom: 2.5rem; }
.section--dark .section-lead { color: #AEB4BE; }
.section--dark .kicker { color: #FFC4A8; }

/* Secteurs */
.sectors {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
	gap: 1rem;
	margin: 0; padding: 0; list-style: none;
}
.sectors__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .9rem;
	padding: 1.75rem 1rem;
	border-radius: var(--radius);
	background: var(--white);
	border: 1px solid var(--line);
	text-align: center;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.sectors__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.sectors__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--orange-50); color: var(--braise); }
.sectors__icon .icon { width: 28px; height: 28px; }
.sectors__title { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); line-height: 1.35; }

/* Types de clients */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.segments__item { padding: 2rem 1.75rem 2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
	.segments__item { padding: 2.25rem 2rem; border-right: 1px solid var(--line); }
	.segments__item:first-child { padding-left: 0; }
	.segments__item:last-child { border-right: 0; }
}
.segments__num { display: block; margin-bottom: 1.25rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; color: var(--orange); }
.segments__title { margin-bottom: .75rem; }
.segments__item p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.25rem; }

/* Approche / engagements (fond sombre) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.features__item { padding: 2rem 1.75rem; background: var(--ink); }
.features__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.5rem; border-radius: 12px; background: rgba(234, 87, 31, .14); color: var(--orange); }
.features__title { margin-bottom: .5rem; font-size: var(--fs-h3); }
.features__item p { font-size: var(--fs-sm); color: #AEB4BE; }
.features--light { background: var(--line); border-color: var(--line); margin-bottom: 4rem; }
.features--light .features__item { background: var(--white); }
.features--light .features__item p { color: var(--muted); }

/* Deroule d'un chantier */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.process__step { position: relative; padding-top: 3.75rem; counter-increment: step; }
.process__step::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 0; left: 0;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-weight: 800;
	font-size: var(--fs-sm);
}
.process__step::after { content: ""; position: absolute; top: 22px; left: 56px; right: -1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); }
.process__step:last-child::after { display: none; }
.process__title { margin-bottom: .4rem; font-size: 1.0625rem; }
.process__step p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 640px) { .process__step::after { display: none; } }

/* Logos des references */
.references { overflow: hidden; }
.logos {
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track { display: flex; align-items: center; gap: 3.5rem; margin: 0; padding: 0 1.75rem; list-style: none; flex-shrink: 0; animation: marquee 50s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__item img { width: auto; max-width: 150px; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logos__item a:hover img,
.logos__item img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Certifications */
.certs { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.certs__item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem .6rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.certs__logo { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: var(--braise); }
.certs__logo img { max-width: 44px; max-height: 44px; object-fit: contain; }
.certs__text { display: flex; flex-direction: column; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); }
.certs__text strong { font-size: var(--fs-sm); color: var(--ink); }
.certs__text small { font-size: var(--fs-xs); }
.certs--stack { flex-direction: column; margin-top: 1.5rem; }
.certs--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 0; }
.certs--cards .certs__item { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.certs--cards .certs__logo { width: 72px; height: 72px; }
.certs--cards .certs__logo img { max-width: 72px; max-height: 72px; }

/* 8. Cartes et composants ------------------------------------------------ */

.card-service {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-service::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); z-index: 2; }
.card-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-service:hover::before { transform: scaleX(1); }
.card-service__media { aspect-ratio: 16 / 10; border-radius: 0; }
.card-service__media img { transition: transform .6s var(--ease); }
.card-service:hover .card-service__media img { transform: scale(1.04); }
.card-service__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-service__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--orange-50); color: var(--braise); }
.card-service__icon .icon { width: 26px; height: 26px; }
.card-service.has-image .card-service__icon { margin-top: calc(-1.5rem - 26px); position: relative; z-index: 2; background: var(--orange); color: var(--ink); box-shadow: 0 0 0 5px var(--white); }
.card-service__title { margin-bottom: .5rem; font-size: 1.1875rem; }
.card-service__title a { color: var(--ink); text-decoration: none; }
.card-service__text { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.1rem; }
.card-service .chips { margin-bottom: 1.25rem; }
.card-service__more { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.card-service__more .icon { width: 1em; height: 1em; color: var(--orange); transition: transform .2s var(--ease); }
.card-service:hover .card-service__more .icon { transform: translateX(4px); }

.card-real { position: relative; display: flex; flex-direction: column; }
.card-real__media { aspect-ratio: 4 / 3; margin-bottom: 1.1rem; }
.card-real__media img { transition: transform .6s var(--ease); }
.card-real:hover .card-real__media img { transform: scale(1.04); }
.card-real__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-real__placeholder .icon { width: 48px; height: 48px; }
.card-real__meta { margin-bottom: .35rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--braise); }
.card-real__title { margin-bottom: .4rem; font-size: 1.1875rem; }
.card-real__title a { color: var(--ink); text-decoration: none; }
.card-real:hover .card-real__title a { color: var(--braise); }
.card-real__text { font-size: var(--fs-sm); color: var(--muted); }

.tile { padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.tile__num { display: block; margin-bottom: 1rem; font-size: var(--fs-xs); font-weight: 800; color: var(--orange); letter-spacing: .12em; }
.tile__title { font-size: 1.0625rem; margin-bottom: .4rem; }
.tile p { font-size: var(--fs-sm); color: var(--muted); }

.aside-card { padding: 1.75rem; border-radius: var(--radius); background: var(--sand); border: 1px solid #F3DED2; }
.aside-card__title { font-size: 1.1875rem; font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.aside-card p { font-size: var(--fs-sm); }
.aside-card .btn { margin-top: .75rem; }
.aside-card--dark { background: var(--ink); border-color: var(--ink); color: #C9CED6; }
.aside-card--dark .aside-card__title,
.aside-card--dark .contact-list__big { color: var(--white); }

.panel { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: calc(var(--radius) + 4px); background: var(--white); border: 1px solid var(--line); }
.panel--raised { box-shadow: var(--shadow-lg); border: 0; }
.panel__title { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-bottom: .5rem; }
.panel__text { color: var(--muted); }

.quote-card { margin: 0; padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.quote-card__stars { display: flex; gap: 2px; color: var(--orange); }
.quote-card__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.quote-card blockquote { margin: 0; font-size: var(--fs-base); color: var(--ink); }
.quote-card figcaption { margin-top: auto; font-size: var(--fs-sm); }
.quote-card figcaption strong { display: block; color: var(--ink); }
.quote-card figcaption span { color: var(--muted); }

.faq { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--mist); color: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); background: var(--orange); }
.faq__a { padding: 0 1.5rem 1.5rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters__btn { min-height: 44px; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; transition: all .15s; }
.filters__btn:hover { border-color: var(--ink); }
.filters__btn.is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }
[data-filter-item].is-hidden { display: none; }

.empty-state { display: grid; place-items: center; gap: 1rem; padding: 4rem 1rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-state .icon { width: 40px; height: 40px; color: var(--orange); }

/* 9. Formulaires --------------------------------------------------------- */

.form { position: relative; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .field--half { grid-column: 1 / -1; } }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field__label .req { color: var(--braise); }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: .75rem 1rem;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	font: 400 var(--fs-base)/1.4 var(--font);
	transition: border-color .15s, box-shadow .15s;
	appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	background-size: 18px;
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA2AE; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #C5CAD2; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(234, 87, 31, .15); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.field__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__group legend { margin-bottom: .6rem; padding: 0; }
.field__choices { display: grid; gap: .5rem; }
.field__group--cols .field__choices { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.field__group--pills .field__choices { display: flex; flex-wrap: wrap; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
	display: flex;
	align-items: center;
	gap: .6rem;
	width: 100%;
	padding: .7rem .9rem;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.3;
	transition: border-color .15s, background-color .15s;
}
.choice span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid #B6BCC6; border-radius: 5px; background: var(--white) center / 12px no-repeat; transition: all .15s; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.field__group--pills .choice span { min-height: 44px; padding: .55rem 1rem; border-radius: var(--radius-pill); }
.field__group--pills .choice span::before { display: none; }
.choice:hover span { border-color: #C5CAD2; }
.choice input:checked + span { border-color: var(--orange); background: var(--orange-50); }
.choice input:checked + span::before { border-color: var(--orange); background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.field__group--pills .choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }

.form__consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.5rem 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); cursor: pointer; }
.form__consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--orange); }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.form__actions .btn--primary { flex: 1 1 auto; }
@media (min-width: 640px) { .form__actions .btn--primary { flex: 0 0 auto; } }
.form__error { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.form__error--global { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: #FEF2F2; }
.form__success { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #F0FDF4; color: #14532D; font-weight: 600; }
.form__success .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--success); color: var(--white); }
.form.is-sent .form__step,
.form.is-sent .form__footer,
.form.is-sent .form__progress { display: none; }
.form.is-sending [type="submit"] { opacity: .7; pointer-events: none; }

.form__progress { display: flex; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; counter-reset: none; }
.form__progress li { flex: 1; display: flex; align-items: center; gap: .6rem; padding-top: .75rem; border-top: 3px solid var(--line); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.form__progress li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: .75rem; }
.form__progress li.is-current,
.form__progress li.is-done { border-color: var(--orange); color: var(--ink); }
.form__progress li.is-current span,
.form__progress li.is-done span { background: var(--orange); }
.form__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.form--compact .form__grid { gap: .9rem; }
.form--compact .form__actions .btn { width: 100%; }

/* 10. Pages -------------------------------------------------------------- */

.service-layout { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .service-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.service-layout__aside { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .service-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.service-layout__image { margin: 2.5rem 0 0; aspect-ratio: 16 / 9; }

.contact-layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
.contact-layout__info { display: grid; gap: 1.5rem; }
.contact-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; line-height: 1.5; color: var(--ink); }
.contact-list small { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-list a { color: var(--ink); }
.contact-list__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--orange-50); color: var(--braise); }
.contact-list__big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }

.map { position: relative; height: 420px; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.map__placeholder { display: grid; place-items: center; align-content: center; gap: 1rem; height: 100%; text-align: center; color: var(--ink); font-weight: 600; background-image: radial-gradient(circle at 1px 1px, #D7DBE1 1px, transparent 0); background-size: 22px 22px; }
.map__placeholder .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--orange); color: var(--ink); }

.section--overlap { padding-top: 0; }
.section--overlap .container { margin-top: calc(clamp(5rem, 4rem + 4vw, 7rem) * -1 + 1.5rem); position: relative; z-index: 2; }
.quote-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.quote-layout__aside { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .quote-layout__aside { padding-top: clamp(5rem, 4rem + 4vw, 7rem); } }
.reassurance { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.reassurance li { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.4; }
.reassurance strong { display: block; color: var(--ink); }
.reassurance small { color: var(--muted); font-size: var(--fs-xs); }
.reassurance__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--orange-50); color: var(--braise); }

.glossary-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.search-field { position: relative; display: block; flex: 0 1 420px; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 52px; padding: .75rem 1rem .75rem 2.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font: 400 var(--fs-base)/1.4 var(--font); color: var(--ink); }
.search-field input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(234, 87, 31, .15); }
.alphabet { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 2rem; padding: .75rem 0; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.alphabet a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.alphabet a:hover { background: var(--orange); }
.glossary { display: grid; gap: 2.5rem; }
.glossary__group { display: grid; gap: 1rem; }
@media (min-width: 800px) { .glossary__group { grid-template-columns: 80px 1fr; } }
.glossary__letter { margin: 0; font-size: 2.5rem; color: var(--orange); line-height: 1; }
.glossary__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin: 0; }
.glossary__item { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 5rem); }
.glossary__item:target { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(234, 87, 31, .15); }
.glossary__item dt { font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.glossary__item dt span { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.glossary__item dd { margin: 0; font-size: var(--fs-sm); color: var(--slate); }
.glossary__item dd .link-arrow { display: inline-flex; margin-top: .6rem; }

.page-header--real { padding-bottom: 2rem; }
.real-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .real-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.real-layout__cover { margin: 0 0 2.5rem; aspect-ratio: 16 / 9; }
.real-layout__aside { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .real-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 2.5rem; }
.gallery-grid .frame { aspect-ratio: 4 / 3; }

.legal-list { display: grid; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.legal-list div { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { color: var(--muted); }
.legal-list dd { margin: 0; color: var(--ink); font-weight: 600; }

.hero--404 .hero__inner { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }

/* 11. Bandeau d'appel, pied de page, actions mobiles, fenetre ----------- */

.cta-band { background: var(--orange); color: var(--ink); position: relative; overflow: hidden; }
.cta-band::before {
	content: "";
	position: absolute;
	right: -120px; top: -120px;
	width: 420px; height: 420px;
	border: 60px solid rgba(20, 24, 31, .06);
	border-radius: 50%;
}
.cta-band__inner { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); margin-bottom: .75rem; }
.cta-band__text p { max-width: 620px; color: var(--ink); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.site-footer { background: var(--ink); color: #9AA2AE; font-size: var(--fs-sm); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.site-footer a { color: #DDE1E7; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr .8fr 1.1fr; } }
.site-footer__brand p { margin: 1.25rem 0 1.5rem; max-width: 360px; }
.site-footer__title { margin-bottom: 1.1rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.site-footer__links { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer__contact ul { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.site-footer__contact .icon { color: var(--orange); margin-top: .15em; }
.site-footer__contact a,
.contact-list a { display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
.site-footer__phone { font-size: 1.125rem; font-weight: 800; color: var(--white) !important; }
.site-footer__certs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--line-dark); list-style: none; font-size: var(--fs-xs); font-weight: 600; color: #C9CED6; }
.site-footer__certs li { display: inline-flex; align-items: center; gap: .4rem; }
.site-footer__certs .icon { color: var(--orange); width: 1.1rem; height: 1.1rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.socials { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--white); }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.sticky-actions { display: none; }
@media (max-width: 767px) {
	.sticky-actions {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 1px;
		background: var(--line);
		border-top: 1px solid var(--line);
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow: 0 -8px 24px rgba(20, 24, 31, .1);
		transition: transform .25s var(--ease);
	}
	.sticky-actions.is-hidden { transform: translateY(110%); }
	.sticky-actions__btn { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .65rem .5rem; border: 0; background: var(--white); color: var(--ink); font: 700 .75rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
	.sticky-actions__btn .icon { width: 22px; height: 22px; color: var(--braise); }
	.sticky-actions__btn--primary { background: var(--orange); }
	.sticky-actions__btn--primary .icon { color: var(--ink); }
	body:has(.sticky-actions) { padding-bottom: 64px; }
	.callback-fab { display: none !important; }
}

.callback-fab {
	position: fixed;
	right: 1.25rem; bottom: 1.25rem;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.2rem .8rem .9rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: var(--white);
	font: 700 var(--fs-sm)/1 var(--font);
	box-shadow: var(--shadow-lg);
	cursor: pointer;
	transform: translateY(150%);
	transition: transform .35s var(--ease), background-color .2s;
}
.callback-fab.is-visible { transform: none; }
.callback-fab .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.callback-fab:hover { background: var(--braise); }

.dialog {
	width: min(100% - 2rem, 460px);
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: calc(var(--radius) + 4px);
	background: var(--white);
	color: var(--slate);
	box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(20, 24, 31, .6); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog__inner { position: relative; padding: 2rem; }
.dialog__close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.dialog__title { font-size: 1.5rem; margin-bottom: .5rem; }
.dialog__text { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.5rem; }

/* 12. Contenus editoriaux (prose) et transition Elementor --------------- */

.prose { color: var(--slate); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--orange); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--orange); background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.prose img { border-radius: var(--radius); }
.prose small { color: var(--muted); }
.prose--lead { font-size: var(--fs-lead); line-height: 1.7; }
.prose--lead p:first-child { color: var(--ink); }
.entry-image { margin: 0 0 2.5rem; aspect-ratio: 16 / 9; }

/* Blocs WordPress courants */
.entry-content .wp-block-button__link { border-radius: var(--radius-pill); background: var(--orange); color: var(--ink); font-weight: 700; }
.entry-content .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th,
.entry-content td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; }

/* Pages encore construites avec Elementor : pleine largeur, police du theme. */
.legacy-content { font-family: var(--font); }
.legacy-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container); }

/* 13. Charte graphique --------------------------------------------------- */

.styleguide .section-head { margin-top: 4rem; }
.styleguide .section-head:first-child { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.swatch { display: flex; flex-direction: column; gap: .25rem; font-size: var(--fs-sm); }
.swatch__chip { display: flex; align-items: flex-end; height: 110px; padding: 1rem; margin-bottom: .5rem; border-radius: var(--radius); border: 1px solid var(--line); font-size: 1.75rem; font-weight: 800; }
.swatch code { font-size: var(--fs-xs); color: var(--muted); }
.swatch small { color: var(--muted); line-height: 1.4; }
.type-specimen { display: grid; gap: .75rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.type-specimen__display { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sg-row--dark { padding: 1.5rem; border-radius: var(--radius); background: var(--ink); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.icon-grid li { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.icon-grid .icon { width: 28px; height: 28px; }
.icon-grid code { font-size: .6875rem; color: var(--muted); }
.sg-frame { display: grid; place-items: center; min-height: 180px; padding: 1.5rem; background: var(--mist); text-align: center; font-weight: 700; color: var(--ink); }

/* 14. Mouvement reduit, impression -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.logos { overflow-x: auto; }
}

@media print {
	.site-header,
	.site-footer,
	.cta-band,
	.sticky-actions,
	.callback-fab,
	.dialog { display: none !important; }
	.hero { background: none; color: #000; }
	.hero__title { color: #000; }
}
