/* @override 
	https://3f5e-237318def8cb.wptiger.fr/wp-content/themes/idelson-architecture/assets/css/main.css?*
	https://idelson-architecture.com/wp-content/themes/idelson-architecture/assets/css/main.css?* */

/* =========================================================================
   Idelson Architecture — main.css
   Design system + reset + composants + pages.
   Référence maquette : Site-IDELSON-2026.pdf (1920×1080, InDesign 28/04/2026).
   ========================================================================= */

/* ----- 1. @font-face Neutraface 2 Text ----- */.page-id-2978 a.iac-mentions-link {display: none;}

@font-face {
	font-family: 'Neutraface 2 Text';
	src: url('../fonts/neutraface-text-book.woff2') format('woff2'),
	     url('../fonts/neutraface-text-book.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Neutraface 2 Text';
	src: url('../fonts/neutraface-text-book-italic.woff2') format('woff2'),
	     url('../fonts/neutraface-text-book-italic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Neutraface 2 Text';
	src: url('../fonts/neutraface-text-bold.woff2') format('woff2'),
	     url('../fonts/neutraface-text-bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ----- 2. Tokens (variables CSS) ----- */

:root {
	/* Couleurs */
	--c-black: #000000;
	--c-white: #FFFFFF;
	--c-gray-700: #4A4A4A;
	--c-gray-500: #7A7A7A;
	--c-gray-300: #C9C9C9;
	--c-gray-100: #F2F2F2;

	/* Typo */
	--font-sans: 'Neutraface 2 Text', 'Helvetica Neue', Arial, sans-serif;

	/* Échelle typographique — référence desktop 1920px */
	--fs-hero-title: clamp(1.5rem, 1.9vw, 2.25rem);    /* ~36px @ 1920 */
	--fs-hero-meta: clamp(0.75rem, 0.78vw, 0.875rem);  /* ~14px */
	--fs-section: clamp(0.875rem, 0.94vw, 1.125rem);   /* ~18px */
	--fs-card-title: clamp(0.9375rem, 1vw, 1.125rem);  /* ~18px */
	--fs-card-meta: clamp(0.75rem, 0.78vw, 0.875rem);  /* ~14px */
	--fs-body: clamp(0.8125rem, 0.78vw, 0.9375rem);    /* ~14-15px */
	--fs-body-small: clamp(0.75rem, 0.73vw, 0.875rem); /* ~13-14px */
	--fs-badge: clamp(0.6875rem, 0.68vw, 0.8125rem);   /* ~12-13px */
	--fs-nav: clamp(0.8125rem, 0.83vw, 0.9375rem);     /* ~16px */

	/* Espacement (échelle 4) */
	--sp-2: 0.5rem;    /* 8px */
	--sp-3: 0.75rem;   /* 12px */
	--sp-4: 1rem;      /* 16px */
	--sp-5: 1.25rem;   /* 20px */
	--sp-6: 1.5rem;    /* 24px */
	--sp-8: 2rem;      /* 32px */
	--sp-10: 2.5rem;   /* 40px */
	--sp-12: 3rem;     /* 48px */
	--sp-16: 4rem;     /* 64px */
	--sp-20: 5rem;     /* 80px */
	--sp-24: 6rem;     /* 96px */
	--sp-32: 8rem;     /* 128px */

	/* Layout */
	--container-padding: clamp(1.5rem, 4vw, 5rem);
	--container-max: 1800px;

	/* Header */
	--header-height: 100px;
	--logo-width: clamp(180px, 14vw, 260px);
	--hamburger-size: 50px;

	/* Tracking (letter-spacing) typique de Neutraface */
	--tracking-tight: -0.01em;
	--tracking-normal: 0;
	--tracking-wide: 0.05em;
	--tracking-wider: 0.1em;

	/* Transitions */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--dur-fast: 150ms;
	--dur-base: 250ms;
	--dur-slow: 400ms;
}

/* ----- 3. Reset minimal ----- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: var(--fs-body);
	line-height: 1.3;
	color: var(--c-black);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 var(--sp-4); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ----- 4. Utilities ----- */

.iac-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.iac-sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- 5. Header + Nav (hamburger dropdown) ----- */

.iac-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-6) var(--container-padding);
	pointer-events: none; /* enfants ré-activent */
	background: transparent;
	transition: padding 250ms var(--ease), background-color 250ms var(--ease);
}

/* Pages internes : header borné à --container-max (1800px) centré
   → logo et burger alignés exactement avec le contenu. */
body:not(.home) .iac-site-header {
	max-width: var(--container-max);
	width: 100%;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

/* Décale tous les éléments fixed quand la barre admin WP est visible (utilisateur connecté). */
body.admin-bar .iac-site-header,
body.admin-bar .iac-page-fade,
body.admin-bar .iac-mentions-link,
body.admin-bar .iac-back-to-top {
	margin-top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .iac-site-header,
	body.admin-bar .iac-page-fade,
	body.admin-bar .iac-mentions-link,
	body.admin-bar .iac-back-to-top {
		margin-top: 46px;
	}
}

/* Single-projet : tech sheet placée à GAUCHE quand pas de description longue */
.iac-projet__techsheet--left { grid-column: 1; }
.iac-projet__intro--no-desc { display: block !important; }
.iac-projet__intro--no-desc .iac-projet__techsheet { max-width: 600px; }

/* Au scroll (pages internes) : background blanc + shrink vertical ~50%
   Le logo réduit aussi pour aligner visuellement. */
body.iac-is-scrolled .iac-site-header {
	padding-top: var(--sp-3);
	padding-bottom: var(--sp-3);
	background: rgba(255, 255, 255, 1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}.iac-site-header:after {	height: 0px;	bottom: 0px;
}body.iac-is-scrolled .iac-site-header:after {
	content: '';	width: 100%;	position: absolute;	height: 30px;	background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);	bottom: -30px;	left: 0;		transition: all 0.6s ease-out 0s;
}
body.iac-is-scrolled .iac-logo {
	width: calc(var(--logo-width) * 0.65);
	transition: width 250ms var(--ease);
}
.iac-logo {
	transition: width 250ms var(--ease);
}

.iac-site-header > * { pointer-events: auto; }

.iac-logo {
	display: block;
	width: var(--logo-width);
}

.iac-logo img,
.iac-logo svg {
	width: 100%;
	height: auto;
}

.iac-nav-wrap {
	position: relative;
}

.iac-nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hamburger-size);
	height: 50px;
}

.iac-nav-toggle__bars {
	display: block;
	width: 100%;
	height: 5px;
	background: var(--c-black);
	position: relative;
	border-radius: 100px;
}
.iac-nav-toggle__bars::before,
.iac-nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--c-black);
	border-radius: 100px;
}
.iac-nav-toggle__bars::before { top: -10px; }
.iac-nav-toggle__bars::after  { top: 10px; }

.iac-nav-menu {
	position: absolute;
	top: calc(100%);
	right: -20px;
	background: transparent;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--dur-base) var(--ease),
	            transform var(--dur-base) var(--ease),
	            visibility var(--dur-base) var(--ease);				z-index: 999;
}

.iac-nav-menu__primary,
.iac-nav-menu__secondary {
	background: var(--c-white);
	padding: var(--sp-4) var(--sp-5);
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);	text-align: right;	line-height: 1.3em;}

.iac-nav-menu__divider {
	display: none;
}

.iac-nav-wrap:hover .iac-nav-menu,
.iac-nav-wrap:focus-within .iac-nav-menu,
.iac-nav-wrap.is-open .iac-nav-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iac-nav-menu a {
	font-size: 20px;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-black);
}
.iac-nav-menu__primary a { font-weight: 700; }
.iac-nav-menu__secondary a { font-weight: 400; font-size: 18px; }
.iac-nav-menu a:hover {
	opacity: 0.6;
}

/* ----- 6. Footer minimal ----- */

.iac-site-footer {
	padding: var(--sp-8) var(--container-padding);
	font-size: var(--fs-body-small);
	color: var(--c-gray-500);
}

/* Footer : en bas de page, hauteur minimale, lien aligné à droite */
.iac-site-footer {
	display: flex;
	justify-content: flex-end;
	padding: var(--sp-6) var(--container-padding) var(--sp-6);
	max-width: var(--container-max);
	margin: 0 auto;
}

.iac-mentions-link {
	font-size: 16px;
	line-height: 1.2;
	color: #706f6f;
}

/* Home : pas de footer in-flow. display: contents fait disparaitre la box du
   footer mais ses enfants restent rendus → le lien garde son position:fixed. */
body.home .iac-site-footer {
	display: contents;
}
body.home .iac-mentions-link {
	position: fixed;
	right: var(--container-padding);
	bottom: var(--sp-6);
	color: var(--c-white);
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
	z-index: 50;
}

/* Bouton retour en haut : fixed bottom-right, apparait après 100vh de scroll */
.iac-back-to-top {
	position: fixed;
	right: 0;
	bottom: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-white);
	color: var(--c-black);
	border-top: 1px solid var(--c-white);	border-left: 1px solid var(--c-white);
	padding: 0;
	cursor: pointer;
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transition: all 220ms ease;
	transform: translateY(8px);
}
.iac-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.iac-back-to-top:hover { background: var(--c-black);color: var(--c-white); transition: all 220ms ease;}
.iac-back-to-top:focus-visible { outline: 2px solid var(--c-black); outline-offset: 3px; }
.iac-back-to-top svg { display: block; }
[hidden] { display: none !important; }

/* Popup Mapbox : police du site, padding interne 30px, sobre */.iac-map-popup  {position: relative;top: -15px!important;}
.iac-map-popup .mapboxgl-popup-content {
	padding: 34px 20px 20px;
	border-radius: 0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	font-family: 'Neutraface 2 Text', 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.3;
	color: var(--c-black);
}
.iac-map-popup .mapboxgl-popup-content strong { font-weight: 700; }
.iac-map-popup .mapboxgl-popup-close-button {
	font-size: 40px;
	color: var(--c-black);
	padding: 4px 8px;
	font-family: inherit;
	line-height: 25px;
	background: transparent;
	border: 0;
	outline: none;
	box-shadow: none;
	cursor: pointer;
}
.iac-map-popup .mapboxgl-popup-close-button:hover {
	background: none;
	opacity: 0.5;
}
.iac-map-popup .mapboxgl-popup-close-button:focus,
.iac-map-popup .mapboxgl-popup-close-button:focus-visible,
.iac-map-popup .mapboxgl-popup-close-button:active {
	background: transparent;
	outline: none;
	box-shadow: none;
	border: 0;
}
.iac-map-popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
	border-top-color: var(--c-white);
}

/* Masque le badge Google reCAPTCHA v3 (fixed bottom-right).
   Conformité Google : un disclaimer doit être présent près des formulaires (cf. iac-contact-form). */
.grecaptcha-badge {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ----- 7. Badge catégorie ----- */

.iac-category-badge {
	display: inline-block;
	background: var(--c-black);
	color: var(--c-white);
	padding: 5px 10px 3px;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;	text-align: center;	line-height: 1em;
    text-wrap: balance;}

/* ----- 8. Carte projet (grille + connexes) ----- */

.iac-card {
	display: block;
	color: inherit;
}

.iac-card__image {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--c-gray-100);
}

.iac-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease-out 0s!important;
}

.iac-card:hover .iac-card__image img {
	transform: scale(1.03);	transition: all 0.5s ease-out 0s!important;
}

.iac-card__title {
	margin-top: var(--sp-4);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: var(--tracking-tight);
	text-align: center;	line-height: 1em;
}

.iac-card__location {
	margin-bottom: 0;
	font-weight: 400;
	font-size: 20px;
	color: var(--c-black);
	text-align: center;	line-height: 1em;	margin-top: 0.2em;
}

.iac-card__badge {
	display: flex;
	justify-content: center;
	margin-top: var(--sp-2);
}

/* ----- 9. Page fiche projet ----- */

.iac-projet {
	padding-top: var(--header-height);
}

.iac-projet__header {
	text-align: center;
	padding: var(--sp-10) var(--container-padding) var(--sp-10);
	max-width: 1400px;
	margin: 0 auto;
}

/* Titre H1 conservé pour SEO/a11y mais caché visuellement */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.iac-projet__title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}

.iac-projet__meta {
	margin: 5px 0 0;
	font-size: 20px;
	line-height: 1.2;
	color: var(--c-black);
}

.iac-projet__meta-date {
	display: none;
	margin-top: 3px;
	font-size: 20px;
	line-height: 1.2;
	color: #706f6f;
}

.iac-projet__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-12);
	max-width: 1400px;
	margin: 0 auto;	margin-top: 40px;
	padding: 0 var(--container-padding) var(--sp-12);
}

.iac-projet__description {
	font-size: 16px;
	line-height: 1.3;	text-align: justify;}

.iac-projet__techsheet {
	font-size: 16px;
	line-height: 1.3;
}

.iac-projet__techsheet dl {
	margin: 0;
	display: grid;
	gap: 0;
}

.iac-projet__techsheet dt {
	font-weight: 700;
	display: inline;
}

.iac-projet__techsheet dd {
	margin: 0;
	display: inline;
}

.iac-projet__techsheet .iac-row {
	display: block;
}

.iac-projet__gallery {
	display: flex;
	flex-direction: column;
	gap: var(--sp-12);
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.iac-projet__gallery-item {
	margin: 0;
}

.iac-projet__gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}.iac-projet__description ul,
.iac-projet__description ol {
	margin: 0 0 var(--sp-4);
	padding-left: 1em;
}
.iac-projet__description ul { list-style: disc; }
.iac-projet__description ol { list-style: decimal; }
.iac-projet__description li { margin-bottom: 0em; }
.iac-projet__description li::marker { color: var(--c-black); }
/* ----- Fade-in-up au scroll (IntersectionObserver) ----- */

.iac-fade-in-up {
	opacity: 0;
	transform: translateY(28px);
	transition: all 700ms var(--ease), transform 700ms var(--ease);
	/* Par défaut : juste le stagger (80ms par frère). Pour les éléments scrollés,
	   on ne veut pas attendre 1s à chaque entrée dans le viewport. */
	transition-delay: calc(var(--iac-stagger, 0) * 80ms);
	will-change: opacity, transform;
}

/* Éléments visibles AU CHARGEMENT : léger delay 300ms + stagger 80ms par frère. */
.iac-fade-in-up.iac-fade-initial {
	transition-delay: calc(300ms + var(--iac-stagger, 0) * 80ms);
}

.iac-fade-in-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ----- Page transition : fondu blanc + loader élégant ----- */
.iac-page-fade {
	position: fixed;
	inset: 0;
	background: #fff;
	opacity: 0;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 600ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* État visible : pendant le chargement initial OU au click sur un lien interne */
.iac-page-fade.is-loading,
.iac-page-fade.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Le loader (picto) n'est visible QUE pendant le chargement initial.
   Pendant .is-active (transition sortie vers une autre page), on cache le picto :
   sinon on verrait le picto de la page sortante encore rempli à 100%. */
.iac-page-fade .iac-page-loader { opacity: 0; transition: opacity 180ms ease; }
.iac-page-fade.is-loading .iac-page-loader { opacity: 1; }

/* Loader : favicon SVG masqué, se remplit en noir depuis le bas */
.iac-page-loader {
	width: 100px;
	height: 100px;
	position: relative;
	-webkit-mask: url('../images/loader-mark.svg') no-repeat center / contain;
	mask: url('../images/loader-mark.svg') no-repeat center / contain;
	background: rgba(0, 0, 0, 0.12);
}
/* Fill via SPAN enfant (vrai DOM) — JS pilote transform: scaleY(progress) en inline-style.
   État initial CSS : scaleY(0) = vide, donc pas de flash "rempli" avant que JS prenne le relais. */
.iac-page-loader__fill {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--c-black);
	transform-origin: bottom;
	transform: scaleY(0);
	transition: transform 220ms ease-out;
}

/* Blur progressif sur images lazy (skeleton placeholder léger) */
img[loading="lazy"] {
	transition: filter 400ms ease, opacity 400ms ease;
}
img[loading="lazy"]:not(.iac-img-loaded) {
	filter: blur(8px);
	opacity: 0.85;
}
img[loading="lazy"].iac-img-loaded {
	filter: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.iac-fade-in-up {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.iac-projet__related {
	padding: var(--sp-20) var(--container-padding) var(--sp-12);
	max-width: 1400px;
	margin: 0 auto;
}

.iac-projet__related-title {
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	margin-bottom: var(--sp-8);
	padding-top: var(--sp-8);
	border-top: 1px solid var(--c-black);
}

/* Vignettes connexes : sizes plus petites que l'archive principale */
.iac-projet__related .iac-card__title {
	font-size: 20px;
}
.iac-projet__related .iac-card__location {
	font-size: 18px;
}
.iac-projet__related .iac-category-badge {
	font-size: 16px;
}

.iac-projet__related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-8);
}

/* ----- 10. Hero slider (front-page) ----- */

.iac-main--front {
	margin: 0;
	padding: 0;
}

.iac-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	background: var(--c-black);
}

.iac-hero__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.iac-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1000ms var(--ease), visibility 1000ms var(--ease);
}

.iac-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

/* Le lien hero ne wrap plus que le bloc titre/sous-titre (caption).
   Pas de width/height 100% sinon le link s'étendrait sur toute la slide
   et l'image deviendrait cliquable. */
.iac-hero__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.iac-hero__image {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.iac-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: transform;
	/* Pas de transition CSS sur transform — la gestion du "freeze" du transform
	   pendant le fade-out est faite côté JS (capture inline avant retrait de .is-active). */
}

/* Ken Burns alterné :
   - slides impaires (1, 3, 5) zoom-in (scale 1 → 1.08)
   - slides paires (2, 4, 6) zoom-out (scale 1.08 → 1)
   Durée 6s = 1s fade-in + 4s plein + 1s fade-out. Crossfade géré via opacity 1s ci-dessus.
   Autoplay JS tick = 5000ms = swap au moment où l'ancien slide commence son fade-out. */

@keyframes iacKenBurnsIn {
	0%   { transform: scale(1) translate(0, 0); }
	100% { transform: scale(1.08) translate(-1.5%, -1.5%); }
}

@keyframes iacKenBurnsOut {
	0%   { transform: scale(1.08) translate(-1.5%, -1.5%); }
	100% { transform: scale(1) translate(0, 0); }
}

/* Initial state CSS = keyframe 0% pour chaque type de slide.
   Évite le saut au moment où .is-active est posée (animation démarre déjà au bon scale). */
.iac-hero__slide:nth-child(odd) .iac-hero__image img {
	transform: scale(1) translate(0, 0);
}

.iac-hero__slide:nth-child(even) .iac-hero__image img {
	transform: scale(1.08) translate(-1.5%, -1.5%);
}

/* Démarrage immédiat du Ken Burns (en parallèle du fade-in).
   Le saut au démarrage est masqué : initial state CSS = keyframe 0%, donc l'animation
   démarre à la même valeur que l'état initial → aucun saut visible. */
.iac-hero__slide:nth-child(odd).is-active .iac-hero__image img {
	animation: iacKenBurnsIn 10s ease-out forwards;
}

.iac-hero__slide:nth-child(even).is-active .iac-hero__image img {
	animation: iacKenBurnsOut 10s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
	.iac-hero__slide.is-active .iac-hero__image img {
		animation: none;
	}
}

.iac-hero__caption {
	position: absolute;
	left: 50%;
	bottom: 110px;
	transform: translateX(-50%);
	text-align: center;
	color: var(--c-white);
	text-shadow: 0 2px 8px rgba(0,0,0,0.45);
	width: 90%;
}

.iac-hero__title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	margin: 0;	line-height: 1em;
}

.iac-hero__location {
	font-size: 24px;
	letter-spacing: var(--tracking-wide);		line-height: 1.1em;	margin-top: 5px;	margin-bottom: 0;
}

/* Barres de progression du hero (remplacent les bullets) */

.iac-hero {
	--iac-hero-duration: 5000ms;
}

.iac-hero__dots {
	position: absolute;
	bottom: var(--sp-6);
	left: var(--container-padding);
	display: flex;
	gap: var(--sp-3);
	align-items: center;
	z-index: 10;
}

/* Bullet 6×6 carré au repos, hitbox 28px de haut pour clicabilité */
.iac-hero__dot {
	position: relative;
	width: 6px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: width 300ms var(--ease);
}

/* Track visible (carré 6×6 par défaut) */
.iac-hero__dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 6px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.4);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: background-color 200ms var(--ease);	border-radius: 1px;
}

/* Hover : non-actifs s'allument en blanc plein */
.iac-hero__dot:hover::before {
	background: rgba(255, 255, 255, 1);
}

/* Fill : <span> enfant, plein blanc instantané quand actif (pas d'animation de remplissage) */
.iac-hero__dot-fill {
	position: absolute;
	top: 50%;
	left: 0;
	height: 6px;
	width: 0;
	transform: translateY(-50%);
	background: var(--c-white);
	pointer-events: none;
	transition: width 250ms var(--ease);
}

.iac-hero__dot.is-active {
	width: 36px;
}

.iac-hero__dot.is-active .iac-hero__dot-fill {
	width: 100%;
}

.iac-hero__dot.is-active::before {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


.iac-hero__empty {
	color: var(--c-white);
	text-align: center;
	padding-top: 40vh;
}

/* ----- 11. Archive — Grille projets ----- */

.iac-main--archive {
	padding-top: var(--header-height);
}

.iac-archive-header {
	text-align: center;
	padding: var(--sp-12) var(--container-padding) var(--sp-8);
}

.iac-archive-title {
	font-size: clamp(1.25rem, 1.45vw, 1.75rem);
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

.iac-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-12) var(--sp-24);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--sp-6) var(--container-padding) var(--sp-20);
}

/* ----- 12. Page Agence ----- */

.iac-main--agence {
	padding-top: var(--header-height);
}

.iac-agence {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--sp-12);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--sp-12) var(--container-padding);	padding-bottom: 0;
	font-size: 16px;
	line-height: 1.3;
}

/* Force 18px partout dans Agence (paragraphes, listes, liens, items) */
.iac-agence p,
.iac-agence li,
.iac-agence a,
.iac-agence strong,
.iac-agence em,
.iac-section-body,
.iac-section-body p,
.iac-section-body ul,
.iac-section-body li,
.iac-agence__bio,
.iac-agence__bio p {
	font-size: 16px;
	line-height: 1.3;
}

.iac-agence__block {
	margin-bottom: var(--sp-10);
}

.iac-agence__portrait {
	margin-bottom: var(--sp-8);
}

.iac-agence__portrait img {
	width: 100%;
	height: auto;
	margin: 0 0 var(--sp-4);
	display: block;
}

.iac-agence__bio {
	text-align: left;
}.iac-agence__bio h2 {	margin-bottom: 10px;	margin-top: 25px;	font-size: 24px;}

.iac-section-title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	margin-bottom: var(--sp-3);
}

.iac-section-body { font-size: 16px; line-height: 1.3; }
.iac-section-body p { margin-bottom: var(--sp-3); }
.iac-section-body ul { margin: 0 0 var(--sp-3); padding-left: var(--sp-4); list-style: disc; }
.iac-section-body li { margin-bottom: var(--sp-1, 4px); }

.iac-list-plain { list-style: none; padding: 0; margin: 0; }
.iac-list-plain li {
	padding: 2px 0;
	font-size: 16px;
	line-height: 1.3;
}

/* TOUS LES PROJETS (section bas page Agence) */

.iac-all-projects {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding) var(--sp-20);
}
/* Séparateur noir : ::before en flow → respecte le padding latéral du conteneur
   donc largeur = largeur du contenu (pas full container). */
.iac-all-projects::before {
	content: '';
	display: block;
	height: 1px;
	background: var(--c-black);
	margin: var(--sp-16) 0;
}

.iac-all-projects__title {
	text-align: center;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	margin-bottom: var(--sp-12);
}

/* Grid 2 colonnes ordonnées : col gauche TERTIAIRE/LOGEMENT, col droite
   RÉNOVATION ÉNERGÉTIQUE/CULTURE/ENSEIGNEMENT/ÉQUIPEMENTS. Les titres des 2
   colonnes sont alignés sur le haut (align-items: start). */
.iac-all-projects__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-12);
	align-items: start;
}
.iac-all-projects__column {
	display: flex;
	flex-direction: column;
	gap: var(--sp-8);
}
.iac-all-projects__group {
	margin: 0;
}

.iac-all-projects__cat {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	margin-bottom: var(--sp-6);
}

.iac-all-projects__list { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: 50px;}

.iac-all-projects__link {
	display: grid;
	grid-template-columns: 160px 70px 1fr;
	gap: var(--sp-5);
	align-items: start;
}

.iac-all-projects__thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--c-gray-100);
	overflow: hidden;
}

.iac-all-projects__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Zoom smooth : courbe douce + durée plus longue pour effet feutré */
	transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Bloc flèche : au repos, légèrement décalé du coin avec fond blanc 50%.
   Au hover, vient se coller au coin haut-droit avec fond blanc 100%. */
.iac-all-projects__arrow {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.5);
	color: var(--c-black);
	overflow: hidden;
	pointer-events: none;
	transition: top 250ms var(--ease), right 250ms var(--ease), background-color 250ms var(--ease);
}
.iac-all-projects__arrow svg {
	display: block;
	transition: transform 350ms var(--ease);
}

/* Hover : flèche se colle au coin (top/right 0) + fond blanc plein + zoom image */
.iac-all-projects__item:not(.iac-all-projects__item--liste) .iac-all-projects__link:hover .iac-all-projects__thumb img {
	transform: scale(1.04);
}
.iac-all-projects__item:not(.iac-all-projects__item--liste) .iac-all-projects__link:hover .iac-all-projects__arrow {
	top: 0;
	right: 0;
	background: var(--c-white);
}
.iac-all-projects__item:not(.iac-all-projects__item--liste) .iac-all-projects__link:hover .iac-all-projects__arrow svg {
	transform: translate(4px, -4px);
}

/* Placeholder gris quand pas de featured image */
.iac-all-projects__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--c-gray-300, #c9c9c9);
	color: var(--c-gray-500, #7a7a7a);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;	display: none;
}

.iac-all-projects__year {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1;
	text-align: center;
}

.iac-all-projects__body {
	display: block;
	font-size: 16px;
	line-height: 1.1;
}

.iac-all-projects__name {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.1;
	display: block;
}
.iac-all-projects__texte {
	font-size: 16px;
	color: #999999;
	font-weight: 400;
	line-height: 1.1;
	display: block;
	margin: 0;
}
.iac-all-projects__texte > * { margin: 0; font-weight: 400; line-height: 1.1; }
.iac-all-projects__texte p { margin: 0; font-weight: 400; line-height: 1.1; }
.iac-all-projects__texte strong,
.iac-all-projects__texte b { font-weight: 400; }

/* Projets en statut "liste" : pas de hover effect */
.iac-all-projects__item--liste .iac-all-projects__link {
	cursor: default;
}
.iac-all-projects__item--liste .iac-all-projects__link:hover {
	opacity: 1;
}

/* ----- 13. Page Contact ----- */

.iac-main--contact {
	padding-top: var(--header-height);
}

.iac-contact {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: var(--sp-10);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--sp-12) var(--container-padding) var(--sp-20);
	align-items: start;
}

/* Col gauche (texte) alignée sur le top de la carte ; formulaire centré verticalement */
.iac-contact__col--info { align-self: start; }
.iac-contact__col--form { align-self: center; }

.iac-contact__heading {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 var(--sp-4);
}

.iac-contact__brand {
	font-size: 16px;
	line-height: 1.3;
	margin-bottom: var(--sp-4);
}

.iac-contact__brand em { font-style: italic; }

.iac-contact__telmail {
	font-size: 16px;
	line-height: 1.3;
}

.iac-contact__telmail a { border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease); }
.iac-contact__telmail a:hover { border-bottom-color: var(--c-black); }

/* Mapbox */

.iac-map {
	width: 100%;
	height: 700px;
	background: var(--c-white);
	position: relative;
}

.iac-map--fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--sp-3);
	text-align: center;
	font-size: var(--fs-body-small);
	border: 1px solid var(--c-gray-300);
}

.iac-map--fallback img { width: 40px; height: auto; }

.iac-map .mapboxgl-canvas { width: 100% !important; height: 100% !important;}

.iac-map__marker {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 200ms var(--ease);
}
.iac-map__marker:hover { transform: scale(1.08); }
.iac-map__marker:focus { outline: 2px solid var(--c-black); outline-offset: 2px; }

.iac-map__marker img {
	width: 100%;
	height: auto;
	display: block;
}

.iac-map__marker svg {
	width: 24px;
	height: 24px;
}

/* Formulaire */

.iac-contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-3) var(--sp-4);
}

.iac-field { display: flex; flex-direction: column; gap: var(--sp-1, 4px); }
.iac-field--full { grid-column: 1 / -1; }
.iac-field--half { grid-column: span 1; }

.iac-field--honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Labels visuellement masqués (a11y conservée) — l'info est en placeholder */
.iac-field__label {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
}

.iac-contact-form textarea,
.iac-contact-form input[type="text"],
.iac-contact-form input[type="email"] {
	width: 100%;
	border: 1px solid var(--c-black);
	background: var(--c-white);
	padding: var(--sp-3);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	color: var(--c-black);
	border-radius: 0;
	transition: border-color var(--dur-base) var(--ease);
}

.iac-contact-form ::placeholder {
	color: var(--c-gray-500);
	font-size: 16px;
	opacity: 1;
}
.iac-contact-form :-ms-input-placeholder { color: var(--c-gray-500); font-size: 16px; }
.iac-contact-form ::-ms-input-placeholder { color: var(--c-gray-500); font-size: 16px; }

.iac-contact-form textarea:focus,
.iac-contact-form input:focus {
	outline: none;
	border-color: var(--c-black);
	box-shadow: inset 0 0 0 1px var(--c-black);
}

.iac-contact-form textarea {
	resize: vertical;
	min-height: 140px;
}

.iac-field--submit {
	grid-column: 1 / -1;
	margin-top: var(--sp-3);
}

/* Bouton submit du form contact : hauteur identique aux inputs textes */
.iac-contact-form .iac-btn {
	width: 100%;
	padding: var(--sp-3);
	font-size: 16px;
	line-height: 1.3;
	border-radius: 0;
	border: 1px solid var(--c-black);
	background: var(--c-black);
	color: var(--c-white);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	font-weight: 700;
	cursor: pointer;
}
.iac-contact-form .iac-btn:hover {
	background: var(--c-white);
	color: var(--c-black);
}

.iac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-3) var(--sp-6);
	background: var(--c-black);
	color: var(--c-white);
	font-weight: 700;
	font-size: var(--fs-body-small);
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	border: 1px solid var(--c-black);
	transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

.iac-btn:hover {
	background: var(--c-white);
	color: var(--c-black);
}

.iac-btn--ghost {
	background: transparent;
	color: var(--c-black);
}

.iac-btn--ghost:hover {
	background: var(--c-black);
	color: var(--c-white);
}

.iac-form-status {
	grid-column: 1 / -1;
	padding: var(--sp-3) var(--sp-4);
	margin-bottom: var(--sp-4);
	font-size: var(--fs-body-small);
	border: 1px solid var(--c-black);
}

.iac-form-status--success {
	background: var(--c-black);
	color: var(--c-white);
}

.iac-form-status--error {
	background: var(--c-gray-100);
	color: var(--c-black);
}

/* ----- 14. Page Mentions légales ----- */

.iac-main--mentions {
	padding-top: var(--header-height);
}

.iac-mentions-header {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--sp-12) var(--container-padding) var(--sp-6);
}

.iac-mentions-title {
	font-size: 24px;
	font-weight: 700;
}

.iac-mentions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--sp-12);
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding) var(--sp-20);	padding-right: 30%;
	font-size: 16px;
	line-height: 1.3;
}

.iac-mentions__heading {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	margin: var(--sp-4) 0 var(--sp-1);
}

.iac-mentions__heading:first-child {
	margin-top: 0;
}

/* ----- 15. 404 ----- */

.iac-main--404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--header-height) var(--container-padding) var(--sp-12);
}

.iac-404 {
	text-align: center;
	max-width: 540px;
}

.iac-404__code {
	font-size: clamp(4rem, 8vw, 8rem);
	font-weight: 700;
	letter-spacing: var(--tracking-tight);
	line-height: 1;
}

.iac-404__message {
	margin: var(--sp-6) 0 var(--sp-8);
	font-size: var(--fs-body);
}

.iac-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	justify-content: center;
}

/* ----- 16. index (fallback) ----- */

.iac-main--default {
	padding-top: var(--header-height);
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.iac-page-header {
	padding: var(--sp-12) 0 var(--sp-8);
}

.iac-page-title {
	font-size: var(--fs-section);
	font-weight: 700;
}

.iac-post {
	padding: var(--sp-6) 0;
	border-bottom: 1px solid var(--c-gray-300);
}

.iac-post__title {
	font-size: var(--fs-body);
	font-weight: 700;
	margin-bottom: var(--sp-3);
}

/* ----- 17. Responsive ----- */

@media (max-width: 1199px) {
	/* Tablette : col texte 1/3 + col carte 2/3, formulaire passe en row 2 full-width */
	.iac-contact {
		grid-template-columns: 1fr 2fr;
		gap: var(--sp-8);
	}
	.iac-contact__col--info { grid-column: 1; grid-row: 1; align-self: start; }
	.iac-contact__col--map  { grid-column: 2; grid-row: 1; align-self: start; }
	.iac-contact__col--form {
		grid-column: 1 / -1;
		grid-row: 2;
		align-self: stretch;
	}		.iac-archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}	.iac-site-footer {
	justify-content: flex-start;
}

}

@media (max-width: 1023px) {
	.iac-projet__intro {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}

	.iac-agence {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}



	.iac-all-projects__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}

	.iac-mentions {
		grid-template-columns: 1fr;
		gap: var(--sp-6);		padding-right: var(--sp-20);		max-width: 740px;		margin: 0;
	}		.iac-projet__related {
	padding-top: 20px;

}
}

@media (max-width: 767px) {
	:root {
		--header-height: 80px;
		--logo-width: 140px;
		--hamburger-size: 35px;
		--container-padding: 1.25rem;
	}


	.iac-nav-toggle__bars,
	.iac-nav-toggle__bars::before,
	.iac-nav-toggle__bars::after {
		height: 4px;
	}
	.iac-nav-toggle__bars::before { top: -8px; }
	.iac-nav-toggle__bars::after  { top: 8px; }

	.iac-projet__related-grid {
		grid-template-columns: 1fr;
		gap: var(--sp-6);
	}

	.iac-projet__header {
		padding-top: var(--sp-8);
	}

	.iac-archive-grid {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}

	/* Mobile : 1 colonne, ordre INFO → FORMULAIRE → CARTE */
	.iac-contact {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}
	.iac-contact__col--info { grid-column: 1; grid-row: auto; order: 1; }
	.iac-contact__col--form { grid-column: 1; grid-row: auto; order: 2; align-self: stretch; }
	.iac-contact__col--map  { grid-column: 1; grid-row: auto; order: 3; }

	/* Form : flex column avec ordre Nom → Email → Société → Message → Submit */
	.iac-contact-form {
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
	}
	.iac-field--nom     { order: 1; }
	.iac-field--email   { order: 2; }
	.iac-field--societe { order: 3; }
	.iac-field--message { order: 4; }
	.iac-field--honeypot { order: 98; }
	.iac-field--submit  { order: 99; }

	.iac-field--half {
		width: 100%;
	}

	.iac-map {
		height: 400px;
	}

	/* Liste agence : 1 colonne stack (image → année → titre + description) */
	.iac-all-projects__link {
		display: flex;
		flex-direction: column;
		gap: var(--sp-2);
	}
	.iac-all-projects__thumb {
		width: 100%;
		aspect-ratio: 16 / 10;
	}
	.iac-all-projects__year {
		text-align: left;
		font-size: 16px;
		line-height: 1.2;
	}
	.iac-all-projects__body {
		font-size: 16px;
		line-height: 1.3;
	}
	.iac-all-projects__name { font-size: 16px; }
	.iac-all-projects__texte { font-size: 16px; }

	.iac-nav-menu {
	right: 0px;
}

	/* Hero mobile : hauteur dynamique stricte (dvh) + body home overflow hidden
	   pour empêcher tout scroll sous le hero. */
	body.home,
	body.home html {
		overflow: hidden;
	}
	.iac-hero {
		height: 100vh;
		height: 100dvh;
		min-height: 0;
		max-height: 100dvh;
		overflow: hidden;
	}
	body.admin-bar .iac-hero {
		height: calc(100dvh - 46px);
		max-height: calc(100dvh - 46px);
	}
	/* Caption : positionnée plus haut pour laisser la bottom bar (dots gauche,
	   mentions droite) respirer. Taille texte réduite. */
	.iac-hero__caption {
		bottom: 70px;
		width: calc(100% - 2 * var(--container-padding));
		padding: 0;
		max-height: calc(100% - 200px);
		overflow: hidden;
	}
	.iac-hero__title {
		font-size: 24px;
		line-height: 1.15em;
	}
	.iac-hero__location {
		font-size: 20px;

	}
	/* Bottom bar : dots à gauche, mentions à droite, hauteur fixe 40px */
	.iac-hero__dots {
		bottom: var(--sp-4);
	}

}@media (max-width: 480px) {.iac-all-projects__title {
	font-size: 28px;
	font-weight: 700;
}	/* Archive cards sur mobile : sizes cohérentes avec le reste du site (16-20px) */
	.iac-card__title {
		font-size: 20px;
		margin-top: var(--sp-3);
	}
	.iac-card__location {
		font-size: 16px;
	}
	.iac-category-badge {
		font-size: 14px;
		padding: 4px 8px;			width: min-content;
    text-wrap: balance;
	}

	.iac-hero__caption {
		bottom: 65px;
	}

	.iac-projet__gallery {
		gap: 20px;
	}	body.home .iac-mentions-link {
		bottom: 20px;
		font-size: 14px;
	}
}
