/* ==========================================================================
   Pirsoum — refonte 2026
   Feuille de style unique. Aucune dépendance externe : pas de CDN, pas de
   Google Fonts (conformité RGPD et performance).
   ========================================================================== */

/* --- Jetons de design ---------------------------------------------------- */

:root {
	--brand-700: #0057B8;
	--brand-600: #0A6FE8;
	--brand-500: #0A84FF;
	--brand-400: #3BA5FF;
	--brand-300: #7CC6FF;
	--brand-100: #E3F1FF;
	--brand-050: #F2F8FF;

	--cyan-500: #00C8F0;
	--cyan-400: #22D9FF;

	--navy-950: #050B16;
	--navy-900: #08111F;
	--navy-800: #0D1A2E;
	--navy-700: #16273F;
	--navy-600: #22384F;

	--ink: #0E1726;
	--body: #40506A;
	--muted: #6A7C96;
	--line: #E2E9F3;
	--line-soft: #EEF3F9;

	--bg: #FFFFFF;
	--bg-soft: #F5F9FD;

	--success: #12B76A;
	--danger: #E5484D;

	--gradient: linear-gradient(135deg, var(--brand-500) 0%, var(--cyan-400) 100%);
	--gradient-deep: linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 45%, #123457 100%);

	--radius-s: 10px;
	--radius: 16px;
	--radius-l: 24px;
	--radius-xl: 32px;

	--shadow-s: 0 1px 2px rgba(14, 23, 38, .06), 0 2px 8px rgba(14, 23, 38, .04);
	--shadow: 0 4px 12px rgba(14, 23, 38, .07), 0 12px 32px rgba(14, 23, 38, .06);
	--shadow-l: 0 12px 28px rgba(10, 132, 255, .10), 0 32px 64px rgba(14, 23, 38, .12);

	--wrap: 1180px;
	--gutter: clamp(20px, 5vw, 40px);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
	        Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Réinitialisation ---------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.15em; }
figure { margin: 0; }

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -.022em;
	margin: 0 0 .6em;
	font-weight: 800;
	text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

/* --- Utilitaires --------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.section--dark {
	background: var(--gradient-deep);
	color: #B9C9DE;
	position: relative;
	overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--brand-300); }

.section--dark::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto -10%;
	height: 620px;
	background: radial-gradient(48% 52% at 22% 30%, rgba(10, 132, 255, .40) 0%, transparent 70%),
	            radial-gradient(38% 46% at 82% 18%, rgba(34, 217, 255, .26) 0%, transparent 70%);
	pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand-600);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--gradient);
}
.section--dark .eyebrow { color: var(--brand-300); }

.lead {
	font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
	line-height: 1.6;
	color: var(--muted);
}
.section--dark .lead { color: #A9BDD6; }

.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.text-center { text-align: center; }
.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.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;
}

.skip-link {
	position: absolute; top: -60px; left: 16px; z-index: 200;
	background: var(--ink); color: #fff;
	padding: 12px 20px; border-radius: 0 0 10px 10px;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- Boutons ------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -.01em;
	cursor: pointer;
	text-decoration: none;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
	white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: var(--gradient);
	color: #fff;
	box-shadow: 0 6px 18px rgba(10, 132, 255, .30);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(10, 132, 255, .38); }

.btn--ghost {
	background: rgba(255, 255, 255, .07);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

.btn--outline {
	background: #fff;
	color: var(--brand-600);
	border: 1.5px solid var(--line);
	box-shadow: var(--shadow-s);
}
.btn--outline:hover { border-color: var(--brand-300); }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}
.btn-row--center { justify-content: center; }

/* --- En-tête ------------------------------------------------------------- */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 2px 16px rgba(14, 23, 38, .05);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 74px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; }
.nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__link {
	display: block;
	padding: 10px 15px;
	border-radius: 10px;
	color: var(--ink);
	font-size: .97rem;
	font-weight: 600;
	transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: var(--brand-050); color: var(--brand-600); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand-600); background: var(--brand-050); }

.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__actions .btn { padding: 11px 22px; font-size: .95rem; }

.burger {
	display: none;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	background: none; border: 1px solid var(--line);
	border-radius: 12px; cursor: pointer;
	color: var(--ink);
}

@media (max-width: 1080px) {
	.burger { display: inline-flex; margin-left: auto; }
	.nav {
		position: fixed;
		inset: 74px 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 12px var(--gutter) 24px;
		margin: 0;
		display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav__link { padding: 14px 12px; font-size: 1.05rem; }
	/* « Connexion » quitte la barre, faute de place, mais reste accessible :
	   il réapparaît comme rubrique du menu déroulant (voir .nav__mobile). */
	.header__actions .btn--outline { display: none; }
	.nav__mobile { display: block; }
	.nav__mobile .nav__link {
		color: var(--brand-600);
		font-weight: 700;
	}
}

/* Rubrique réservée au menu mobile. */
.nav__mobile { display: none; }

/* Sur écran étroit, un intitulé long doit pouvoir passer à la ligne
   plutôt que déborder. */
@media (max-width: 420px) {
	.btn { white-space: normal; text-align: center; }
	.btn--lg { padding: 16px 24px; font-size: 1rem; }
}

/* Les compteurs à trois colonnes deviennent illisibles sous 520 px :
   libellés coupés en trois lignes, chiffres tronqués. */
@media (max-width: 520px) {
	.stat-row { grid-template-columns: 1fr 1fr; }
	.stat-row > :last-child { grid-column: 1 / -1; }
	.stat__value { font-size: 1.35rem; }
}

/* La modale centrée verticalement se retrouve rognée en haut dès que le
   formulaire dépasse la hauteur de l'écran : sur mobile, on l'aligne en haut. */
@media (max-height: 760px), (max-width: 640px) {
	.modal { place-items: start center; padding-block: 16px; }
	.modal__panel { max-height: none; }
}

/* --- Héros --------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--gradient-deep);
	color: #B9C9DE;
	padding: clamp(64px, 9vw, 124px) 0 clamp(72px, 10vw, 132px);
}
.hero::before {
	content: "";
	position: absolute;
	inset: -30% -20% auto -20%;
	height: 780px;
	background: radial-gradient(42% 48% at 20% 26%, rgba(10, 132, 255, .48) 0%, transparent 68%),
	            radial-gradient(36% 44% at 84% 14%, rgba(34, 217, 255, .30) 0%, transparent 68%),
	            radial-gradient(30% 40% at 62% 82%, rgba(0, 87, 184, .30) 0%, transparent 70%);
	pointer-events: none;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 62px 62px;
	mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 78%);
	pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead {
	font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem);
	color: #AFC3DB;
	max-width: 620px;
	margin-bottom: 34px;
}
.hero--center { text-align: center; }
.hero--center .hero__lead { margin-inline: auto; }

.hero__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px 7px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #CFE0F3;
	font-size: .85rem;
	font-weight: 600;
	margin-bottom: 22px;
	backdrop-filter: blur(6px);
}
.badge__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #22D9FF;
	box-shadow: 0 0 0 4px rgba(34, 217, 255, .18);
}

.hero__note {
	margin-top: 20px;
	font-size: .9rem;
	color: #8FA6C2;
}

/* --- Visuel « console » -------------------------------------------------- */

.console {
	border-radius: var(--radius-l);
	background: rgba(255, 255, 255, .055);
	border: 1px solid rgba(255, 255, 255, .13);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
	backdrop-filter: blur(14px);
	overflow: hidden;
}
.console__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 13px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .10);
	background: rgba(255, 255, 255, .04);
}
.console__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.console__title {
	margin-left: 10px;
	font-size: .8rem;
	color: #8FA6C2;
	letter-spacing: .02em;
}
.console__body { padding: 20px; display: grid; gap: 12px; }

.stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.stat {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: var(--radius-s);
	padding: 14px;
}
.stat__value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.stat__label {
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #8FA6C2;
	margin-top: 4px;
}

.msg {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	padding: 13px 15px;
	border-radius: var(--radius-s);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .09);
}
.msg__avatar {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--gradient);
	flex-shrink: 0;
	display: grid; place-items: center;
	color: #fff; font-weight: 700; font-size: .82rem;
}
.msg__text { font-size: .88rem; color: #C3D4E8; line-height: 1.5; }
.msg__meta { font-size: .74rem; color: #7F97B5; margin-top: 3px; }

/* --- Bandeau de confiance ------------------------------------------------ */

.trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 20px;
	padding: 30px 0;
	border-top: 1px solid rgba(255, 255, 255, .10);
	margin-top: clamp(40px, 6vw, 72px);
}
.trust__item { text-align: center; }
.trust__value {
	font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: -.025em;
	line-height: 1.1;
}
.trust__label { font-size: .86rem; color: #8FA6C2; margin-top: 5px; }

/* --- Grilles et cartes --------------------------------------------------- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: clamp(24px, 3vw, 34px);
	box-shadow: var(--shadow-s);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-l);
	border-color: var(--brand-100);
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .98rem; }

.card--feature { position: relative; padding-top: clamp(28px, 3vw, 36px); }

.icon {
	width: 54px; height: 54px;
	border-radius: 15px;
	display: grid; place-items: center;
	background: var(--brand-050);
	color: var(--brand-600);
	margin-bottom: 20px;
	border: 1px solid var(--brand-100);
}
.icon svg { width: 26px; height: 26px; }
.icon--gradient { background: var(--gradient); color: #fff; border: 0; }
.icon--fb { background: #E7F0FE; color: #1877F2; border-color: #D3E3FD; }
.icon--li { background: #E6F1F8; color: #0A66C2; border-color: #CFE3F2; }

.section--dark .card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .11);
	box-shadow: none;
	color: #B9C9DE;
}
.section--dark .icon {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .14);
	color: #7CC6FF;
}

/* --- Cartes secteur (bloc « Pour qui ») ---------------------------------- */

.sectors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
	gap: 18px;
}

.sector {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: 30px 26px 28px;
	overflow: hidden;
	isolation: isolate;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* Filet dégradé qui se déroule au survol */
.sector::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--gradient);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .45s var(--ease);
}

/* Halo diffus, révélé au survol */
.sector::after {
	content: "";
	position: absolute;
	inset: auto -30% -60% -30%;
	height: 180px;
	background: radial-gradient(50% 60% at 50% 100%, rgba(10, 132, 255, .10) 0%, transparent 72%);
	opacity: 0;
	transition: opacity .45s var(--ease);
	z-index: -1;
}

.sector:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-l);
	border-color: var(--brand-100);
}
.sector:hover::before { transform: scaleX(1); }
.sector:hover::after  { opacity: 1; }

.sector__icon {
	width: 52px;
	height: 52px;
	border-radius: 15px;
	display: grid;
	place-items: center;
	margin-bottom: 20px;
	color: var(--brand-600);
	background: linear-gradient(150deg, var(--brand-050) 0%, var(--brand-100) 100%);
	border: 1px solid rgba(10, 132, 255, .14);
	transition: background .3s var(--ease), color .3s var(--ease),
	            box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.sector__icon svg { width: 24px; height: 24px; display: block; }

.sector:hover .sector__icon {
	background: var(--gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 18px rgba(10, 132, 255, .32);
}

.sector h3 {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -.02em;
	margin-bottom: .5em;
	text-wrap: balance;
}

.sector p {
	font-size: .93rem;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

/* --- Liste à puces cochées ----------------------------------------------- */

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	font-size: 1rem;
}
.checks li::before {
	content: "";
	flex-shrink: 0;
	width: 24px; height: 24px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A84FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--dark .checks li::before {
	background-color: rgba(124, 198, 255, .14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CC6FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --- Étapes -------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
	position: relative;
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 22px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	width: 52px; height: 52px;
	border-radius: 15px;
	display: grid; place-items: center;
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	color: var(--brand-600);
	font-weight: 800;
	font-size: 1rem;
}
.step h3 { margin-bottom: .3em; }
.step p { font-size: .98rem; margin: 0; }
.section--dark .step { border-bottom-color: rgba(255, 255, 255, .09); }
.section--dark .step::before {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(255, 255, 255, .14);
	color: #7CC6FF;
}

/* --- Deux colonnes ------------------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > :first-child { order: 0; } }

/* --- Témoignages --------------------------------------------------------- */

.quote {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: clamp(24px, 3vw, 32px);
	box-shadow: var(--shadow-s);
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
}
.quote__mark {
	font-size: 2.6rem;
	line-height: .8;
	color: var(--brand-300);
	font-weight: 800;
}
.quote p { font-size: 1rem; color: var(--body); margin: 0; flex: 1; }
.quote__author { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--gradient);
	display: grid; place-items: center;
	color: #fff; font-weight: 700; font-size: .92rem;
	flex-shrink: 0;
}
.quote__name { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.quote__role { font-size: .84rem; color: var(--muted); }

/* --- Tableau comparatif -------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: .97rem;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-s);
}
table.data th, table.data td {
	padding: 15px 18px;
	text-align: left;
	border-bottom: 1px solid var(--line-soft);
}
table.data th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }

/* --- Accordéon (FAQ) ----------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 4px 22px;
	box-shadow: var(--shadow-s);
	transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--brand-200, var(--brand-100)); }
.faq summary {
	cursor: pointer;
	padding: 18px 34px 18px 0;
	font-weight: 700;
	color: var(--ink);
	list-style: none;
	position: relative;
	font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	position: absolute;
	right: 2px; top: 50%;
	width: 12px; height: 12px;
	margin-top: -8px;
	border-right: 2.5px solid var(--brand-500);
	border-bottom: 2.5px solid var(--brand-500);
	transform: rotate(45deg);
	transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > p, .faq details > ul { padding-bottom: 20px; margin: 0; font-size: .98rem; }

/* --- Formulaire ---------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .84rem; color: var(--muted); }

.field input, .field select, .field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--brand-400);
	box-shadow: 0 0 0 4px rgba(10, 132, 255, .13);
}
.field textarea { min-height: 132px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field--row { grid-template-columns: 1fr; } }

.field--captcha {
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	border-radius: 14px;
	padding: 16px 18px;
}
.field--captcha label { font-size: .95rem; }
.field--captcha label strong { color: var(--brand-700); font-size: 1.06rem; letter-spacing: .02em; }
.field--captcha input[type="text"] { max-width: 200px; background: #fff; }
.field--captcha .hint { font-size: .82rem; }

.field--consent { display: flex; gap: 11px; align-items: flex-start; }
.field--consent input { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; }
.field--consent label { font-size: .88rem; font-weight: 400; color: var(--muted); line-height: 1.5; }

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

.alert {
	padding: 15px 18px;
	border-radius: 12px;
	font-size: .95rem;
	border: 1px solid;
}
.alert--ok { background: #ECFDF3; border-color: #A6F4C5; color: #05603A; }
.alert--ko { background: #FEF3F2; border-color: #FECDCA; color: #912018; }

/* --- Encart d'appel à l'action ------------------------------------------- */

.cta {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: var(--gradient-deep);
	padding: clamp(38px, 5.5vw, 66px);
	text-align: center;
	color: #B9C9DE;
}
.cta::before {
	content: "";
	position: absolute;
	inset: -60% -20% auto -20%;
	height: 460px;
	background: radial-gradient(46% 54% at 30% 40%, rgba(10, 132, 255, .46) 0%, transparent 70%),
	            radial-gradient(38% 48% at 76% 20%, rgba(34, 217, 255, .28) 0%, transparent 70%);
	pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #A9BDD6; max-width: 620px; margin-inline: auto; }

/* --- Fil d'Ariane -------------------------------------------------------- */

.crumbs {
	font-size: .87rem;
	color: var(--muted);
	padding: 18px 0 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 8px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Contenu légal ------------------------------------------------------- */

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1rem; }
.prose ul { display: grid; gap: 8px; margin-bottom: 1.2em; }
.prose__meta {
	font-size: .9rem;
	color: var(--muted);
	padding: 14px 18px;
	background: var(--bg-soft);
	border-left: 3px solid var(--brand-300);
	border-radius: 0 10px 10px 0;
	margin-bottom: 2em;
}

/* --- Pied de page -------------------------------------------------------- */

.footer {
	background: var(--navy-950);
	color: #8FA6C2;
	padding: clamp(48px, 6vw, 76px) 0 28px;
	font-size: .95rem;
}
.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	padding-bottom: 40px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 {
	color: #fff;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .11em;
	margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer a { color: #8FA6C2; }
.footer a:hover { color: #fff; }
.footer__brand img { width: 172px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer__desc { max-width: 320px; font-size: .93rem; line-height: 1.6; }

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .09);
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	align-items: center;
	font-size: .88rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- Boutons de contact --------------------------------------------------
   Deux actions distinctes, présentées de la même façon :
     .btn-tel   → déclenche un appel (lien tel:)
     .btn-mail  → ouvre la modale de contact
   Les liens doivent se voir comme cliquables, y compris sur mobile.
   ------------------------------------------------------------------------- */

.btn-tel,
.btn-mail {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px 10px 14px;
	border-radius: 999px;
	background: var(--brand-050);
	border: 1.5px solid var(--brand-100);
	color: var(--brand-700);
	font-weight: 700;
	font-size: .97rem;
	letter-spacing: -.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s var(--ease), border-color .2s var(--ease),
	            transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-tel svg,
.btn-mail svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-tel:hover,
.btn-mail:hover {
	text-decoration: none;
	background: #fff;
	border-color: var(--brand-400);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(10, 132, 255, .16);
}

/* Sur fond sombre (héros, sections foncées, pied de page) */
.section--dark .btn-tel,
.hero .btn-tel,
.footer .btn-tel,
.section--dark .btn-mail,
.hero .btn-mail,
.footer .btn-mail,
.cta .btn-mail,
.cta .btn-tel {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .20);
	color: #fff;
}
.section--dark .btn-tel:hover,
.hero .btn-tel:hover,
.footer .btn-tel:hover,
.section--dark .btn-mail:hover,
.hero .btn-mail:hover,
.footer .btn-mail:hover,
.cta .btn-mail:hover,
.cta .btn-tel:hover,
.btn-mail:hover {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .34);
	box-shadow: none;
}

.btn-tel--sm,
.btn-mail--sm { padding: 8px 15px 8px 12px; font-size: .92rem; }

/* --- Modale de contact ---------------------------------------------------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(5, 11, 22, .62);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s var(--ease), visibility .28s var(--ease);
	overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100dvh - 40px);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--radius-l);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
	padding: clamp(26px, 4vw, 38px);
	transform: translateY(16px) scale(.985);
	transition: transform .32s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }

.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--bg-soft);
	color: var(--muted);
	cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--line-soft); color: var(--ink); }
.modal__close svg { width: 19px; height: 19px; }

.modal__head { margin-bottom: 22px; padding-right: 44px; }
.modal__head h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-bottom: .35em; }
.modal__head p  { font-size: .97rem; color: var(--muted); margin: 0; }

.modal__aside {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: .92rem;
	color: var(--muted);
}

body.modal-ouverte { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.modal, .modal__panel { transition: none; }
}

/* --- Page 404 ------------------------------------------------------------ */

.error-page { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.error-page__code {
	font-size: clamp(4.5rem, 3rem + 9vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.05em;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 12px;
}

/* --- Animations ---------------------------------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --- Impression ---------------------------------------------------------- */

@media print {
	.header, .footer, .cta, .btn { display: none !important; }
	body { color: #000; font-size: 12pt; }
	.section { padding: 12pt 0; }
}
