/*
Theme Name: Esaad
Theme URI: https://essad-dz.com
Author: algoria
Author URI: https://algoria.dev
Description: Thème sur mesure du Centre Médical de Diagnostic ESSAAD (Birkhadem, Alger) — analyses, imagerie et consultations spécialisées. Conçu d'après la maquette « Centre Medical Essad ».
Version: 1.3.1
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esaad
Tags: medical, clinic, one-column, custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--e-ink: #0d1136;
	--e-ink-2: #1d2352;
	--e-body: #4c5372;
	--e-muted: #6b7290;
	--e-muted-2: #8189a8;
	--e-nav: #3b4260;
	--e-primary: #353ed7;
	--e-primary-dark: #2a32b5;
	--e-accent: #4b9af9;
	--e-accent-soft: #7f8cff;
	--e-line: #e6e9f5;
	--e-line-2: #dde2f2;
	--e-tint: #eef1ff;
	--e-surface: #f6f8fd;
	--e-dark: #0d1136;
	--e-darker: #080c22;
	--e-hero: #0a0e2a;
	--e-footer-text: #8d96c0;
	--e-success: #0f8a5f;
	--e-success-bg: #e6f7ef;
	--e-success-line: #b6e6d1;

	--e-font-head: Sora, system-ui, -apple-system, "Segoe UI", sans-serif;
	--e-font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

	--e-wrap: 1240px;
	--e-gutter: 32px;
	--e-radius: 20px;
	--e-radius-lg: 24px;
	--e-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: #fff;
	color: var(--e-ink);
	font-family: var(--e-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

a {
	color: var(--e-primary);
	text-decoration: none;
	transition: color .25s ease;
}

a:hover,
a:focus-visible {
	color: var(--e-accent);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--e-font-head);
	margin: 0;
	letter-spacing: -0.02em;
	text-wrap: balance;
	font-weight: 600;
}

p {
	text-wrap: pretty;
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

input, textarea, select, button {
	font-family: var(--e-font-body);
	font-size: 15px;
}

::selection {
	background: var(--e-primary);
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--e-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.e-screen-reader-text,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.e-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 30px -12px rgba(13, 17, 54, .5);
	font-weight: 700;
}

.e-wrap {
	max-width: var(--e-wrap);
	margin: 0 auto;
	padding-inline: var(--e-gutter);
}

/* Conteneur centré, sans gouttière : la section porte déjà son padding. */
.e-inner {
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-kicker {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--e-primary);
	font-weight: 700;
	margin-bottom: 18px;
}

.e-title {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
	font-weight: 700;
}

.e-lead {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--e-body);
	margin: 0;
}

.e-eyebrow {
	font-size: 11.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--e-muted-2);
	font-weight: 700;
	margin-bottom: 6px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.e-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	padding: 15px 28px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.e-btn--primary {
	background: var(--e-primary);
	color: #fff;
	box-shadow: 0 12px 28px -10px rgba(53, 62, 215, .6);
}

.e-btn--primary:hover,
.e-btn--primary:focus-visible {
	background: var(--e-primary-dark);
	color: #fff;
	transform: translateY(-2px);
}

.e-btn--light {
	background: #fff;
	color: var(--e-ink-2);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.e-btn--light:hover,
.e-btn--light:focus-visible {
	background: var(--e-tint);
	color: var(--e-ink-2);
}

.e-btn--ghost {
	border: 1px solid rgba(255, 255, 255, .4);
	color: #fff;
	background: transparent;
}

.e-btn--ghost:hover,
.e-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.e-btn--accent {
	background: var(--e-accent);
	color: #06103a;
}

.e-btn--accent:hover,
.e-btn--accent:focus-visible {
	background: #6fb0fc;
	color: #06103a;
}

.e-link-arrow {
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.e-link-arrow svg {
	transition: transform .3s var(--e-ease);
}

.e-link-arrow:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.e-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 90;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--e-line);
}

.e-header--sticky {
	position: sticky;
	top: 0;
	inset-inline: auto;
	background: rgba(255, 255, 255, .94);
}

.e-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: var(--e-wrap);
	margin: 0 auto;
	padding: 14px var(--e-gutter);
}

.e-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.e-brand__mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--e-primary), var(--e-accent));
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--e-font-head);
	font-weight: 700;
	font-size: 18px;
	flex-shrink: 0;
}

.e-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.e-brand__name {
	font-family: var(--e-font-head);
	font-weight: 700;
	font-size: 17px;
	color: var(--e-ink);
	letter-spacing: -0.01em;
}

.e-brand__tagline {
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e-muted);
	font-weight: 600;
}

.e-brand__logo img {
	display: block;
	max-height: 52px;
	width: auto;
}

.e-header__right {
	display: flex;
	align-items: center;
	gap: 34px;
}

.e-nav ul {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
}

.e-nav a {
	color: var(--e-nav);
}

.e-nav a:hover,
.e-nav .current-menu-item > a,
.e-nav .current_page_item > a,
.e-nav .current-menu-ancestor > a,
.e-nav .current-post-ancestor > a,
.e-nav .e-nav__link--active {
	color: var(--e-primary);
}

.e-nav .sub-menu {
	display: none;
}

.e-header__phone {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--e-primary);
	color: #fff;
	padding: 11px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(53, 62, 215, .28);
}

.e-header__phone:hover,
.e-header__phone:focus-visible {
	background: var(--e-primary-dark);
	color: #fff;
}

.e-header__phone-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7ef0c0;
	display: inline-block;
	flex-shrink: 0;
}

.e-burger {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--e-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	place-items: center;
}

.e-burger span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--e-ink);
	position: relative;
	transition: background .2s ease;
}

.e-burger span::before,
.e-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--e-ink);
	transition: transform .3s var(--e-ease);
}

.e-burger span::before { top: -6px; }
.e-burger span::after { top: 6px; }

.e-burger[aria-expanded="true"] span { background: transparent; }
.e-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.e-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.e-progress {
	height: 3px;
	background: var(--e-tint);
}

.e-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--e-primary), var(--e-accent));
	transition: width .12s linear;
}

/* Offset for the fixed header used on the front page. */
.e-header-offset {
	height: 71px;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.e-hero {
	position: relative;
	height: 94vh;
	min-height: 640px;
	overflow: hidden;
	background: var(--e-hero);
}

.e-hero__bg {
	position: absolute;
	inset: -12% 0;
}

.e-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.e-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.4s ease, transform 9s linear;
}

.e-hero__slide.is-active {
	opacity: 1;
	transform: scale(1.06);
}

.e-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.e-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(9, 13, 45, .92) 0%, rgba(13, 17, 54, .78) 42%, rgba(53, 62, 215, .35) 100%);
}

.e-hero__inner {
	position: relative;
	height: 100%;
	max-width: var(--e-wrap);
	margin: 0 auto;
	padding: 0 var(--e-gutter);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.e-hero__content {
	max-width: 720px;
	padding-top: 40px;
}

.e-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: #cfd6ff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 26px;
	background: rgba(255, 255, 255, .06);
}

.e-ping {
	position: relative;
	width: 8px;
	height: 8px;
	flex-shrink: 0;
}

.e-ping span {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--e-accent);
}

.e-ping span:last-child {
	animation: esaadPulse 2.4s ease-out infinite;
}

.e-hero__title {
	font-size: clamp(38px, 5.2vw, 68px);
	line-height: 1.04;
	font-weight: 700;
	color: #fff;
	margin-bottom: 22px;
}

.e-hero__text {
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.65;
	color: #d5dbf5;
	margin: 0 0 36px;
	max-width: 560px;
}

.e-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.e-hero__actions .e-btn {
	padding: 16px 30px;
}

.e-hero__foot {
	position: absolute;
	left: var(--e-gutter);
	right: var(--e-gutter);
	bottom: 42px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.e-hero__dots {
	display: flex;
	gap: 10px;
	align-items: center;
}

.e-hero__dot {
	width: 12px;
	height: 5px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, .35);
	transition: width .5s var(--e-ease), background .4s ease;
}

.e-hero__dot.is-active {
	width: 40px;
	background: var(--e-accent);
}

.e-hero__scroll {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.e-hero__scroll i {
	display: block;
	width: 1px;
	height: 46px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
}

@keyframes esaadPulse {
	0%, 100% { transform: scale(1); opacity: .55; }
	50% { transform: scale(1.35); opacity: 0; }
}

@keyframes esaadFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* ==========================================================================
   6. Info strip
   ========================================================================== */

.e-strip {
	position: relative;
	z-index: 5;
	max-width: var(--e-wrap);
	margin: -66px auto 0;
	padding: 0 var(--e-gutter);
}

.e-strip__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--e-line);
	border-radius: var(--e-radius);
	overflow: hidden;
	box-shadow: 0 26px 60px -24px rgba(13, 17, 54, .34);
	border: 1px solid var(--e-line);
}

.e-strip__item {
	background: #fff;
	padding: 28px 30px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.e-icon-box {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--e-tint);
	color: var(--e-primary);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.e-strip__value {
	font-family: var(--e-font-head);
	font-size: 17px;
	font-weight: 600;
}

.e-strip__note {
	font-size: 13.5px;
	color: var(--e-muted);
	margin-top: 2px;
}

/* ==========================================================================
   7. About
   ========================================================================== */

.e-about {
	padding: 128px var(--e-gutter) 110px;
}

.e-about__grid {
	max-width: var(--e-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 84px;
	align-items: center;
}

.e-about__text p {
	font-size: 16.5px;
	line-height: 1.78;
	color: var(--e-body);
	margin: 0 0 20px;
}

.e-about__title {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
	font-weight: 700;
	margin-bottom: 26px;
}

.e-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 30px;
	padding-top: 34px;
	margin-top: 18px;
	border-top: 1px solid var(--e-line);
}

.e-check {
	display: flex;
	gap: 13px;
	align-items: flex-start;
}

.e-check__icon {
	color: var(--e-accent);
	margin-top: 2px;
	flex-shrink: 0;
	display: block;
}

.e-check__title {
	font-family: var(--e-font-head);
	font-weight: 600;
	font-size: 15.5px;
	margin-bottom: 4px;
}

.e-check__text {
	font-size: 14px;
	color: var(--e-muted);
	line-height: 1.55;
}

.e-about__media {
	position: relative;
}

.e-about__photo {
	border-radius: var(--e-radius-lg);
	overflow: hidden;
	box-shadow: 0 34px 70px -30px rgba(13, 17, 54, .4);
}

.e-about__photo img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	display: block;
}

.e-about__inset {
	position: absolute;
	right: -34px;
	bottom: -46px;
	width: 240px;
	border-radius: var(--e-radius);
	overflow: hidden;
	border: 7px solid #fff;
	box-shadow: 0 22px 44px -18px rgba(13, 17, 54, .34);
}

.e-about__inset img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}

.e-about__badge {
	position: absolute;
	left: -30px;
	top: 40px;
	background: #fff;
	border-radius: 18px;
	padding: 20px 24px;
	box-shadow: 0 20px 40px -16px rgba(13, 17, 54, .28);
	border: 1px solid #eceffa;
	animation: esaadFloat 6s ease-in-out infinite;
}

.e-about__badge-num {
	font-family: var(--e-font-head);
	font-size: 30px;
	font-weight: 700;
	color: var(--e-primary);
	line-height: 1;
}

.e-about__badge-label {
	font-size: 13px;
	color: var(--e-muted);
	margin-top: 6px;
	font-weight: 600;
}

/* ==========================================================================
   8. Services
   ========================================================================== */

.e-services {
	background: var(--e-surface);
	padding: 110px var(--e-gutter);
	position: relative;
}

.e-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	margin-bottom: 56px;
}

.e-section-head__text {
	max-width: 640px;
}

.e-section-head .e-btn,
.e-section-head .e-link-arrow {
	flex-shrink: 0;
}

.e-section-head__note {
	font-size: 14.5px;
	color: var(--e-muted);
	max-width: 300px;
	margin: 0;
	line-height: 1.6;
}

.e-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* Cinq cartes : 3 au-dessus, 2 centrées en dessous. */
.e-services__grid--5 {
	grid-template-columns: repeat(6, 1fr);
}

.e-services__grid--5 > * {
	grid-column: span 2;
}

.e-services__grid--5 > :nth-child(4) {
	grid-column: 2 / span 2;
}

.e-services__grid--5 > :nth-child(5) {
	grid-column: 4 / span 2;
}

.e-service {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	padding: 34px 32px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform .45s var(--e-ease), box-shadow .45s ease, border-color .45s ease;
}

.e-service:hover {
	transform: translateY(-7px);
	box-shadow: 0 26px 50px -26px rgba(13, 17, 54, .34);
	border-color: #c9d3f7;
}

.e-service__num {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: linear-gradient(140deg, var(--e-tint), #dfe9ff);
	color: var(--e-primary);
	display: grid;
	place-items: center;
	font-family: var(--e-font-head);
	font-weight: 700;
	font-size: 15px;
}

.e-service h3 {
	font-size: 20px;
}

.e-service p {
	font-size: 14.8px;
	line-height: 1.65;
	color: var(--e-muted);
	margin: 0;
	flex: 1;
}

.e-poles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 22px;
}

.e-pole {
	position: relative;
	border-radius: var(--e-radius);
	overflow: hidden;
	min-height: 300px;
	background: var(--e-ink);
}

.e-pole img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .5;
}

.e-pole__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(15deg, rgba(13, 17, 54, .94), rgba(53, 62, 215, .5));
}

.e-pole--imagerie .e-pole__veil {
	background: linear-gradient(15deg, rgba(13, 17, 54, .94), rgba(75, 154, 249, .45));
}

.e-pole__body {
	position: relative;
	padding: 40px 38px;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: flex-end;
	gap: 12px;
}

.e-pole__body h3 {
	font-size: 26px;
	color: #fff;
}

.e-pole__body p {
	font-size: 15px;
	line-height: 1.65;
	color: #d5dbf5;
	margin: 0;
	max-width: 420px;
}

/* ==========================================================================
   9. Equipment
   ========================================================================== */

.e-equipment {
	padding: 110px var(--e-gutter);
	background: #fff;
}

.e-equipment__intro {
	max-width: 640px;
	margin-bottom: 54px;
}

.e-equipment__intro h2 {
	margin-bottom: 20px;
}

.e-equipment__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.e-equip {
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow .45s ease, transform .45s var(--e-ease);
}

.e-equip:hover {
	box-shadow: 0 24px 46px -24px rgba(13, 17, 54, .3);
	transform: translateY(-5px);
}

.e-equip__media {
	height: 190px;
	overflow: hidden;
	background: var(--e-tint);
}

.e-equip__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.e-equip__body {
	padding: 24px 24px 28px;
}

.e-equip__body h3 {
	font-size: 17.5px;
	margin-bottom: 8px;
}

.e-equip__body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--e-muted);
	margin: 0;
}

.e-equip__tag {
	font-size: 11px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--e-muted-2);
	font-weight: 700;
	margin-bottom: 8px;
}

/* ==========================================================================
   10. Gallery + lightbox
   ========================================================================== */

.e-gallery {
	padding: 0 0 110px;
	background: #fff;
}

.e-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: 16px;
}

.e-gallery__item {
	border: 0;
	padding: 0;
	cursor: zoom-in;
	border-radius: 16px;
	overflow: hidden;
	background: var(--e-tint);
	display: block;
}

.e-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .8s var(--e-ease);
}

.e-gallery__item:hover img {
	transform: scale(1.07);
}

.e-gallery__item--wide { grid-column: span 2; }
.e-gallery__item--tall { grid-row: span 2; }
.e-gallery__item--big { grid-column: span 2; grid-row: span 2; }

.e-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(6, 9, 28, .94);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 72px 88px;
	cursor: zoom-out;
}

.e-lightbox[hidden] {
	display: none;
}

.e-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	cursor: default;
}

.e-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100vh - 168px);
	width: auto;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
	opacity: 1;
	transition: opacity .28s ease;
}

.e-lightbox.is-loading .e-lightbox__figure img {
	opacity: .35;
}

.e-lightbox__caption {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #cfd6ff;
	font-size: 14.5px;
	font-weight: 600;
	text-align: center;
	text-wrap: balance;
}

.e-lightbox__count {
	color: #7f88b8;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.e-lightbox__nav,
.e-lightbox__close {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease, transform .25s var(--e-ease), opacity .25s ease;
}

.e-lightbox__nav {
	width: 54px;
	height: 54px;
}

.e-lightbox__nav:hover,
.e-lightbox__close:hover {
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .45);
}

.e-lightbox__nav:active {
	transform: scale(.94);
}

.e-lightbox__nav[disabled] {
	opacity: .25;
	cursor: default;
}

.e-lightbox__nav[disabled]:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
}

.e-lightbox__close {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 46px;
	height: 46px;
}

@media (max-width: 860px) {
	.e-lightbox {
		padding: 64px 16px 92px;
		gap: 0;
	}

	.e-lightbox__figure img {
		max-height: calc(100vh - 200px);
	}

	/* Sur mobile les flèches passent sous la photo, le balayage prend le relais. */
	.e-lightbox__nav {
		position: absolute;
		bottom: 24px;
		width: 48px;
		height: 48px;
	}

	.e-lightbox__nav--prev { left: calc(50% - 60px); }
	.e-lightbox__nav--next { right: calc(50% - 60px); }

	.e-lightbox__caption {
		flex-direction: column;
		gap: 4px;
		font-size: 13.5px;
	}
}

/* ==========================================================================
   11. News teaser (front page)
   ========================================================================== */

.e-news {
	background: var(--e-surface);
	padding: 108px var(--e-gutter);
}

.e-news__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 26px;
}

.e-news__lead {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 22px;
	overflow: hidden;
	display: block;
	color: inherit;
	transition: box-shadow .45s ease;
}

.e-news__lead:hover {
	box-shadow: 0 28px 54px -26px rgba(13, 17, 54, .32);
	color: inherit;
}

.e-news__lead-media {
	height: 300px;
	overflow: hidden;
	background: var(--e-tint);
}

.e-news__lead-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.e-news__lead-body {
	padding: 32px 34px 36px;
}

.e-news__lead-body h3 {
	font-size: 27px;
	line-height: 1.22;
	margin-bottom: 14px;
	color: var(--e-ink);
}

.e-news__lead-body p {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--e-muted);
	margin: 0;
}

.e-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.e-pill {
	background: var(--e-tint);
	color: var(--e-primary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.e-pill--solid {
	background: var(--e-primary);
	color: #fff;
	padding: 6px 13px;
}

.e-date {
	font-size: 13px;
	color: var(--e-muted-2);
	font-weight: 600;
}

.e-news__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.e-news__item {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 18px;
	padding: 18px;
	display: flex;
	gap: 18px;
	align-items: center;
	flex: 1;
	color: inherit;
	transition: border-color .4s ease, transform .4s var(--e-ease);
}

.e-news__item:hover {
	border-color: #c9d3f7;
	transform: translateX(4px);
	color: inherit;
}

.e-news__item-media {
	width: 108px;
	height: 92px;
	border-radius: 13px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--e-tint);
}

.e-news__item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.e-news__item h3 {
	font-size: 16.5px;
	line-height: 1.35;
	color: var(--e-ink);
}

.e-news__item .e-date {
	display: block;
	font-size: 12.5px;
	margin-bottom: 7px;
}

/* ==========================================================================
   12. Contact section (dark)
   ========================================================================== */

.e-contact {
	position: relative;
	background: var(--e-dark);
	color: #fff;
	padding: 108px var(--e-gutter);
	overflow: hidden;
}

.e-contact__glow {
	position: absolute;
	top: -20%;
	right: -6%;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(53, 62, 215, .55), transparent 68%);
	pointer-events: none;
}

.e-contact__grid {
	position: relative;
	max-width: var(--e-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}

.e-contact .e-kicker {
	color: var(--e-accent-soft);
}

.e-contact h2 {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	margin-bottom: 22px;
}

.e-contact__lead {
	font-size: 16.5px;
	line-height: 1.75;
	color: #b9c1e6;
	margin: 0 0 40px;
	max-width: 500px;
}

.e-contact__list {
	display: grid;
	gap: 26px;
	margin-bottom: 42px;
}

.e-contact__row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.e-contact__icon {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .1);
	color: #9fb4ff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.e-contact__label {
	font-size: 11.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #7f88b8;
	font-weight: 700;
	margin-bottom: 6px;
}

.e-contact__value,
.e-contact__value a {
	font-size: 16px;
	line-height: 1.6;
	color: #e8ebfa;
}

.e-contact__value a:hover {
	color: #9fb4ff;
}

.e-contact__map {
	border-radius: var(--e-radius-lg);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .6);
	background: #131a4a;
}

.e-contact__map iframe {
	width: 100%;
	height: 480px;
	border: 0;
	display: block;
	filter: grayscale(.2);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.e-footer {
	background: var(--e-darker);
	color: var(--e-footer-text);
	padding: 62px var(--e-gutter) 34px;
}

.e-footer a {
	color: var(--e-footer-text);
}

.e-footer a:hover {
	color: #fff;
}

.e-footer__container {
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 44px;
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.e-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.e-footer__brand .e-brand__mark {
	width: 40px;
	height: 40px;
}

.e-footer__brand span {
	font-family: var(--e-font-head);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

/* Logo du pied de page. La variante « plate » pose le logo standard sur un
   fond clair : sans elle, un logo à encre foncée disparaît sur le bleu nuit. */
.e-footer__logo {
	display: inline-block;
	margin-bottom: 18px;
	max-width: 260px;
}

.e-footer__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 46px;
}

.e-footer__logo--plate {
	background: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8);
}

.e-footer--slim .e-footer__logo {
	margin-bottom: 0;
	flex-shrink: 0;
}

.e-footer--slim .e-footer__logo img {
	max-height: 40px;
}

.e-footer--slim .e-footer__brand {
	margin-bottom: 0;
}

.e-footer__about {
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
	max-width: 300px;
}

.e-footer__heading {
	font-size: 11.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 700;
	margin-bottom: 16px;
}

.e-footer__list {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.e-footer__bottom {
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-size: 13px;
	flex-wrap: wrap;
}

/* Compact footer used on inner pages. */
.e-footer--slim {
	padding: 54px var(--e-gutter) 30px;
}

.e-footer--slim .e-footer__inner {
	max-width: var(--e-wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.e-footer--slim .e-footer__id {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.e-footer--slim nav {
	display: flex;
	gap: 26px;
	font-size: 14px;
	flex-wrap: wrap;
}

/* ==========================================================================
   14. Actualité (blog index / archives)
   ========================================================================== */

.e-page-head {
	padding: 74px var(--e-gutter) 40px;
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-page-head h1 {
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.06;
	font-weight: 700;
	max-width: 720px;
	margin-bottom: 18px;
}

.e-page-head p {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--e-body);
	max-width: 560px;
	margin: 0 0 34px;
}

.e-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.e-chip {
	border: 1px solid var(--e-line);
	background: #fff;
	color: var(--e-body);
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	transition: all .25s ease;
}

.e-chip:hover {
	border-color: #c9d3f7;
	color: var(--e-primary);
}

.e-chip.is-active {
	border-color: var(--e-primary);
	background: var(--e-primary);
	color: #fff;
}

.e-feature {
	padding: 0 var(--e-gutter) 34px;
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-feature__link {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	background: var(--e-surface);
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius-lg);
	overflow: hidden;
	transition: box-shadow .45s ease;
	color: inherit;
}

.e-feature__link:hover {
	box-shadow: 0 30px 60px -28px rgba(13, 17, 54, .32);
	color: inherit;
}

.e-feature__media {
	min-height: 380px;
	overflow: hidden;
	background: var(--e-tint);
}

.e-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .9s var(--e-ease);
}

.e-feature__link:hover .e-feature__media img {
	transform: scale(1.05);
}

.e-feature__body {
	padding: 52px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.e-feature__body h2 {
	font-size: clamp(24px, 2.4vw, 33px);
	line-height: 1.18;
	margin-bottom: 16px;
	color: var(--e-ink);
}

.e-feature__body p {
	font-size: 15.8px;
	line-height: 1.72;
	color: #5b6280;
	margin: 0 0 26px;
}

.e-posts {
	padding: 30px var(--e-gutter) 100px;
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.e-card {
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	color: inherit;
	transition: transform .45s var(--e-ease), box-shadow .45s ease;
}

.e-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px -26px rgba(13, 17, 54, .3);
	color: inherit;
}

.e-card__media {
	height: 210px;
	overflow: hidden;
	background: var(--e-tint);
}

.e-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.e-card__body {
	padding: 26px 26px 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.e-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 600;
	flex-wrap: wrap;
}

.e-card__meta .e-pill {
	font-size: 11px;
	padding: 5px 11px;
	letter-spacing: .06em;
}

.e-card__meta .e-date {
	color: var(--e-muted-2);
}

.e-card h3 {
	font-size: 19px;
	line-height: 1.3;
	color: var(--e-ink);
}

.e-card p {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--e-muted);
	margin: 0;
	flex: 1;
}

.e-card__more {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--e-primary);
}

.e-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	font-weight: 600;
	font-size: 14px;
}

.e-pagination .page-numbers {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 11px;
	border: 1px solid var(--e-line);
	color: var(--e-body);
	display: grid;
	place-items: center;
}

.e-pagination .page-numbers.current {
	background: var(--e-primary);
	border-color: var(--e-primary);
	color: #fff;
	font-weight: 700;
}

.e-pagination .page-numbers:hover:not(.current) {
	border-color: #c9d3f7;
	color: var(--e-primary);
}

.e-pagination .page-numbers.dots {
	border-color: transparent;
}

.e-cta-band {
	background: var(--e-dark);
	color: #fff;
	padding: 76px var(--e-gutter);
}

.e-cta-band__inner {
	max-width: var(--e-wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	flex-wrap: wrap;
}

.e-cta-band h2 {
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.15;
	font-weight: 700;
	margin-bottom: 12px;
}

.e-cta-band p {
	font-size: 16px;
	color: #b9c1e6;
	margin: 0;
}

.e-cta-band__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.e-empty {
	padding: 40px 0 80px;
	color: var(--e-muted);
	font-size: 16px;
}

/* ==========================================================================
   15. Single article
   ========================================================================== */

.e-article-head {
	max-width: 820px;
	margin: 0 auto;
	padding: 62px var(--e-gutter) 20px;
}

.e-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--e-muted-2);
	font-weight: 600;
	margin-bottom: 26px;
	flex-wrap: wrap;
}

.e-article-head h1 {
	font-size: clamp(30px, 3.8vw, 48px);
	line-height: 1.08;
	font-weight: 700;
	margin-bottom: 24px;
}

.e-article-head__excerpt {
	font-size: 19px;
	line-height: 1.65;
	color: var(--e-body);
	margin: 0 0 32px;
}

.e-byline {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--e-line);
}

.e-byline__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--e-tint);
	color: var(--e-primary);
	display: grid;
	place-items: center;
	font-family: var(--e-font-head);
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
	overflow: hidden;
}

.e-byline__avatar img {
	border-radius: 50%;
}

.e-byline__meta {
	font-size: 14px;
	line-height: 1.5;
}

.e-byline__name {
	font-weight: 700;
}

.e-byline__sub {
	color: var(--e-muted-2);
}

.e-article-figure {
	max-width: 1100px;
	margin: 34px auto 0;
	padding: 0 var(--e-gutter);
}

.e-article-figure__frame {
	border-radius: var(--e-radius-lg);
	overflow: hidden;
	box-shadow: 0 30px 64px -34px rgba(13, 17, 54, .4);
}

.e-article-figure img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	display: block;
}

.e-article-figure figcaption {
	font-size: 13px;
	color: var(--e-muted-2);
	margin-top: 12px;
	text-align: center;
}

.e-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px var(--e-gutter) 80px;
	font-size: 17px;
	line-height: 1.8;
	color: var(--e-nav);
}

.e-prose > * {
	margin: 0 0 26px;
}

.e-prose h2 {
	font-size: 27px;
	margin: 46px 0 18px;
	color: var(--e-ink);
}

.e-prose h3 {
	font-size: 22px;
	margin: 38px 0 14px;
	color: var(--e-ink);
}

.e-prose ul,
.e-prose ol {
	padding-left: 22px;
	display: grid;
	gap: 12px;
}

.e-prose img,
.e-prose figure img {
	border-radius: 16px;
}

.e-prose blockquote {
	background: var(--e-surface);
	border-left: 3px solid var(--e-primary);
	border-radius: 0 16px 16px 0;
	padding: 26px 30px;
	margin: 34px 0;
	font-size: 16.5px;
	line-height: 1.7;
	color: #2b3157;
}

.e-prose blockquote p:last-child {
	margin-bottom: 0;
}

.e-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.e-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.e-prose th,
.e-prose td {
	border: 1px solid var(--e-line);
	padding: 10px 14px;
	text-align: left;
}

.e-article-cta {
	background: linear-gradient(135deg, var(--e-primary), var(--e-accent));
	border-radius: 22px;
	padding: 40px 38px;
	color: #fff;
	margin-top: 46px;
}

.e-article-cta h3 {
	font-size: 24px;
	margin-bottom: 12px;
	color: #fff;
}

.e-article-cta p {
	font-size: 15.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .9);
	margin: 0 0 24px;
	max-width: 460px;
}

.e-article-cta__actions {
	display: flex;
	gap: 13px;
	flex-wrap: wrap;
}

.e-article-cta .e-btn--ghost {
	border-color: rgba(255, 255, 255, .55);
}

.e-related {
	background: var(--e-surface);
	padding: 78px var(--e-gutter) 96px;
}

.e-related h2 {
	font-size: 28px;
	margin-bottom: 34px;
}

.e-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.e-related .e-card__media {
	height: 180px;
}

.e-related .e-card__body {
	padding: 24px 24px 28px;
	gap: 10px;
}

.e-related .e-card h3 {
	font-size: 18px;
	line-height: 1.32;
}

/* ==========================================================================
   16. Contact page
   ========================================================================== */

.e-hero-band {
	position: relative;
	background: var(--e-dark);
	color: #fff;
	padding: 96px var(--e-gutter) 88px;
	overflow: hidden;
}

.e-hero-band__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .28;
}

.e-hero-band__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(13, 17, 54, .92), rgba(53, 62, 215, .55));
}

.e-hero-band__inner {
	position: relative;
	max-width: var(--e-wrap);
	margin: 0 auto;
}

.e-hero-band .e-kicker {
	color: #a8b4ff;
	font-size: 12.5px;
}

.e-hero-band h1 {
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.06;
	font-weight: 700;
	max-width: 760px;
	margin-bottom: 20px;
	color: #fff;
}

.e-hero-band p {
	font-size: 17px;
	line-height: 1.7;
	color: #cfd6ff;
	max-width: 560px;
	margin: 0;
}

.e-facts {
	max-width: var(--e-wrap);
	margin: -48px auto 0;
	padding: 0 var(--e-gutter);
	position: relative;
	z-index: 3;
}

.e-facts__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--e-line);
	border: 1px solid var(--e-line);
	border-radius: var(--e-radius);
	overflow: hidden;
	box-shadow: 0 26px 60px -26px rgba(13, 17, 54, .32);
}

.e-fact {
	background: #fff;
	padding: 28px 26px;
}

.e-fact__label {
	font-size: 11.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--e-muted-2);
	font-weight: 700;
	margin-bottom: 10px;
}

.e-fact__value,
.e-fact__value a {
	font-size: 15px;
	line-height: 1.7;
	color: #2b3157;
}

.e-fact__value a:hover {
	color: var(--e-primary);
}

.e-fact__note {
	font-size: 13.5px;
	color: var(--e-muted);
	margin-top: 10px;
	line-height: 1.55;
}

.e-badge-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--e-success);
	background: var(--e-success-bg);
	padding: 5px 11px;
	border-radius: 999px;
}

.e-badge-live i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #14b87c;
	display: block;
}

.e-contact-page {
	padding: 96px var(--e-gutter) 104px;
}

.e-contact-page__grid {
	max-width: var(--e-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 68px;
	align-items: start;
}

.e-contact-page h2 {
	font-size: clamp(26px, 2.8vw, 38px);
	line-height: 1.12;
	font-weight: 700;
	margin-bottom: 16px;
}

.e-contact-page__intro {
	font-size: 16px;
	line-height: 1.7;
	color: var(--e-body);
	margin: 0 0 34px;
	max-width: 520px;
}

.e-form {
	display: grid;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 22px;
	padding: 34px;
	box-shadow: 0 22px 50px -30px rgba(13, 17, 54, .28);
}

.e-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.e-form label {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--e-body);
}

.e-form input[type="text"],
.e-form input[type="tel"],
.e-form input[type="email"],
.e-form select,
.e-form textarea {
	padding: 13px 15px;
	border: 1px solid var(--e-line-2);
	border-radius: 11px;
	background: #fbfcff;
	color: var(--e-ink);
	width: 100%;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.e-form textarea {
	resize: vertical;
	line-height: 1.6;
}

.e-form input:focus,
.e-form select:focus,
.e-form textarea:focus {
	outline: none;
	border-color: var(--e-primary);
	box-shadow: 0 0 0 4px rgba(53, 62, 215, .12);
}

.e-form__consent {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--e-muted);
	line-height: 1.55;
	font-weight: 400;
}

.e-form__consent input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--e-primary);
	flex-shrink: 0;
}

.e-form button[type="submit"] {
	justify-self: start;
}

.e-form__hp {
	position: absolute !important;
	left: -9999px;
}

.e-notice {
	border-radius: 18px;
	padding: 32px 30px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.e-notice--ok {
	background: var(--e-success-bg);
	border: 1px solid var(--e-success-line);
}

.e-notice--ok h3 {
	font-size: 19px;
	margin-bottom: 8px;
	color: #0b5c41;
}

.e-notice--ok p {
	font-size: 15px;
	line-height: 1.65;
	color: #21714f;
	margin: 0;
}

.e-notice--ok .e-notice__icon {
	color: var(--e-success);
}

.e-notice--error {
	background: #fdecec;
	border: 1px solid #f6c6c6;
}

.e-notice--error h3 {
	font-size: 19px;
	margin-bottom: 8px;
	color: #8a1b1b;
}

.e-notice--error p {
	font-size: 15px;
	line-height: 1.65;
	color: #a13a3a;
	margin: 0;
}

.e-notice--error .e-notice__icon {
	color: #c53030;
}

.e-notice__icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.e-aside {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.e-map-card {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid var(--e-line);
	box-shadow: 0 22px 50px -30px rgba(13, 17, 54, .3);
	background: #fff;
}

.e-map-card iframe {
	width: 100%;
	height: 380px;
	border: 0;
	display: block;
}

.e-map-card__foot {
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: #fff;
	flex-wrap: wrap;
}

.e-map-card__code {
	font-family: var(--e-font-head);
	font-size: 15.5px;
	font-weight: 600;
}

.e-map-card__note {
	font-size: 13.5px;
	color: var(--e-muted);
	margin-top: 3px;
}

.e-side-card {
	background: var(--e-surface);
	border: 1px solid var(--e-line);
	border-radius: 22px;
	padding: 30px 28px;
}

.e-side-card h3 {
	font-size: 18px;
	margin-bottom: 16px;
}

.e-side-card p {
	font-size: 14.8px;
	line-height: 1.7;
	color: var(--e-body);
	margin: 0 0 18px;
}

/* ==========================================================================
   17. Generic page / 404 / search
   ========================================================================== */

.e-page {
	padding: 60px var(--e-gutter) 96px;
}

.e-page__inner {
	max-width: 820px;
	margin: 0 auto;
}

.e-page h1 {
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.1;
	font-weight: 700;
	margin-bottom: 28px;
}

/* Dans une page simple, l'article et la figure suivent la largeur du conteneur. */
.e-page .e-prose {
	max-width: none;
	padding: 0;
}

.e-page .e-article-figure {
	max-width: none;
	margin: 0 0 32px;
	padding: 0;
}

.e-page .e-article-figure img {
	height: auto;
}

.e-page-links {
	margin: 32px 0 0;
	font-weight: 600;
}

.e-404 {
	max-width: 720px;
	margin: 0 auto;
	padding: 110px var(--e-gutter);
	text-align: center;
}

.e-404__code {
	font-family: var(--e-font-head);
	font-size: clamp(64px, 12vw, 128px);
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(140deg, var(--e-primary), var(--e-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 18px;
}

.e-404 p {
	font-size: 17px;
	color: var(--e-body);
	margin: 0 0 32px;
}

.e-404__actions {
	margin-top: 32px;
}

.e-searchform {
	display: flex;
	gap: 10px;
	max-width: 460px;
	margin: 0 auto;
}

.e-searchform input[type="search"] {
	flex: 1;
	padding: 13px 16px;
	border: 1px solid var(--e-line-2);
	border-radius: 999px;
	background: #fbfcff;
}

.e-searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--e-primary);
	box-shadow: 0 0 0 4px rgba(53, 62, 215, .12);
}

/* WordPress alignment / caption classes. */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption-text,
.wp-element-caption { font-size: 13px; color: var(--e-muted-2); text-align: center; }
.sticky .e-card { border-color: #c9d3f7; }

/* ==========================================================================
   18. Reveal animation
   ========================================================================== */

.e-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .85s var(--e-ease), transform .85s var(--e-ease);
}

.e-reveal--zoom {
	transform: scale(.94);
}

.e-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.e-about__grid { gap: 54px; }
	.e-contact__grid { gap: 48px; }
	.e-equipment__grid { grid-template-columns: repeat(2, 1fr); }
	.e-facts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
	:root { --e-gutter: 24px; }

	.e-burger { display: grid; }
	.e-header__right { gap: 14px; }

	.e-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--e-line);
		box-shadow: 0 24px 40px -28px rgba(13, 17, 54, .5);
		padding: 12px var(--e-gutter) 20px;
		display: none;
	}

	.e-nav.is-open { display: block; }

	.e-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		font-size: 16px;
		white-space: normal;
	}

	.e-nav li + li { border-top: 1px solid var(--e-line); }
	.e-nav a { display: block; padding: 14px 0; }

	.e-header__phone span:not(.e-header__phone-dot) { display: inline; }

	.e-services__grid { grid-template-columns: repeat(2, 1fr); }
	.e-services__grid--5 { grid-template-columns: repeat(2, 1fr); }
	.e-services__grid--5 > *,
	.e-services__grid--5 > :nth-child(4),
	.e-services__grid--5 > :nth-child(5) { grid-column: auto; }
	.e-services__grid--5 > :last-child {
		grid-column: 1 / -1;
		max-width: calc(50% - 11px);
		width: 100%;
		justify-self: center;
	}
	.e-posts__grid,
	.e-related__grid { grid-template-columns: repeat(2, 1fr); }
	.e-news__grid { grid-template-columns: 1fr; }
	.e-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.e-contact-page__grid { grid-template-columns: 1fr; gap: 44px; }
	.e-feature__link { grid-template-columns: 1fr; }
	.e-feature__media { min-height: 280px; }
	.e-feature__body { padding: 36px 32px 40px; }
	.e-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.e-gallery__item--big { grid-column: span 2; grid-row: span 2; }
	.e-gallery__item--wide { grid-column: span 2; }
	.e-gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 860px) {
	.e-about__grid { grid-template-columns: 1fr; }
	.e-about { padding-top: 92px; }
	.e-about__inset { right: 0; bottom: -30px; width: 180px; }
	.e-about__badge { left: 0; }
	.e-about__photo img { height: 380px; }
	.e-contact__grid { grid-template-columns: 1fr; }
	.e-strip__grid { grid-template-columns: 1fr; }
	.e-poles { grid-template-columns: 1fr; }
	.e-section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
	.e-hero { height: auto; min-height: 0; padding: 132px 0 96px; }
	.e-hero__inner { min-height: 0; }
	.e-hero__foot { position: static; margin-top: 42px; }
	.e-hero__scroll { display: none; }
	.e-article-figure img { height: 300px; }
	.e-prose { padding-top: 40px; }
	.e-contact__map iframe { height: 340px; }
}

@media (max-width: 640px) {
	.e-services__grid,
	.e-services__grid--5,
	.e-equipment__grid,
	.e-posts__grid,
	.e-related__grid,
	.e-facts__grid,
	.e-footer__grid,
	.e-checks,
	.e-form__row { grid-template-columns: 1fr; }

	.e-services__grid--5 > *,
	.e-services__grid--5 > :nth-child(4),
	.e-services__grid--5 > :nth-child(5),
	.e-services__grid--5 > :last-child {
		grid-column: auto;
		max-width: none;
	}

	.e-about { padding-bottom: 84px; }
	.e-about__inset,
	.e-about__badge { display: none; }
	.e-services,
	.e-equipment,
	.e-news,
	.e-contact,
	.e-contact-page { padding-block: 72px; }
	.e-gallery { padding-bottom: 72px; }
	.e-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
	.e-gallery__item--big,
	.e-gallery__item--wide { grid-column: span 1; }
	.e-gallery__item--big { grid-row: span 1; }
	.e-strip { margin-top: -40px; }
	.e-brand__tagline { display: none; }
	.e-header__phone { padding: 10px 14px; font-size: 13px; }
	.e-form { padding: 24px 20px; }
	.e-feature__body { padding: 28px 22px 32px; }
	.e-news__lead-body { padding: 24px 22px 28px; }
	.e-news__lead-body h3 { font-size: 22px; }
	.e-news__item { flex-direction: column; align-items: flex-start; }
	.e-news__item-media { width: 100%; height: 160px; }
	.e-footer__bottom { flex-direction: column; gap: 10px; }
	.e-article-cta { padding: 30px 24px; }
	.e-page-head { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.e-reveal { opacity: 1; transform: none; }
	[data-parallax] { transform: none !important; }
}
