/* Capwise — feuille de style unique. Pas de framework, pas de build. */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--navy: #0a264e;          /* couleur du logo */
	--navy-900: #061a37;
	--navy-700: #1d3a66;
	--ink: #16202e;
	--muted: #556070;
	--line: #e2e6ec;
	--bg: #ffffff;
	--bg-soft: #f2f4f8;
	--accent: #9cffe7;        /* aquamarine Capwise */
	--accent-soft: #e3fbf5;
	--on-dark: #c3cfe0;

	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Archivo", "Inter", system-ui, sans-serif;

	--container: 1180px;
	--gutter: clamp(1.25rem, 4vw, 2rem);
	--section: clamp(4rem, 9vw, 6.5rem);
	--radius: 16px;
	--header-h: 4.75rem;
	--shadow: 0 1px 2px rgba(10, 38, 78, .06), 0 18px 40px -16px rgba(10, 38, 78, .25);
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 85%;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--navy);
	margin: 0 0 .55em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 100%; line-height: 1.2; letter-spacing: -0.005em; }
/* Mots surlignés (*texte* dans un titre) : sur fond clair, bleu nuit souligné d'un marqueur aquamarine ; sur fond sombre, aquamarine */
h1 em, h2 em {
	font-style: normal; color: var(--navy); padding: 0 .08em;
	background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 94%, transparent 94%);
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero h1 em, .hero h2:not(.hero-card-title) em, .cta-band h2 em { color: var(--accent); background: none; padding: 0; }

p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-700); }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

.eyebrow, .kicker {
	font-family: var(--font-display);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0 0 1.25rem;
}
.eyebrow em {
	font-style: normal;
	background: var(--accent);
	color: var(--navy);
	padding: .12em .45em;
	border-radius: 5px;
}

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

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .85rem 1.5rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn::after { content: "→"; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: #c9d1dc; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-sm::after { content: none; }

/* Boutons sur fond sombre */
.hero .btn-primary, .cta-band .btn-primary, .site-header .btn-primary { background: var(--accent); color: var(--navy); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .site-header .btn-primary:hover { background: #c4fff1; color: var(--navy); }
.hero .btn-secondary, .cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover, .cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #082042;      /* entre --navy et --navy-900 : se détache légèrement du hero */
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.header-inner { display: flex; align-items: center; gap: 2.25rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand-logo { height: 36px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .925rem; font-weight: 500; color: var(--on-dark); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: .3rem; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { display: block; padding: .3rem .65rem; border-radius: 999px; line-height: 1; color: var(--on-dark); text-decoration: none; }
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch .lang-current { background: var(--accent); color: var(--navy); }

/* Menu mobile (<details>) : masqué sur grand écran */
.mobile-menu { display: none; }
.nav-toggle {
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, background .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-menu[open] .nav-toggle span { background: transparent; }
.mobile-menu[open] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel {
	position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 60;
	max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
	background: #082042; border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
	box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .5);
}
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li a {
	display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
	font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; font-stretch: 90%; color: #fff; text-decoration: none;
}
.mobile-panel li a[aria-current] { color: var(--accent); }
.mobile-panel .actions .btn { width: 100%; justify-content: center; background: var(--accent); color: var(--navy); }
.mobile-lang { margin: 1.25rem 0 0; text-align: center; }
.mobile-lang a { color: var(--on-dark); font-size: .95rem; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 780px; margin: 0 auto 3.25rem; text-align: center; }
.section-head h2 { margin: 0; }
.section-head h2 + p { margin-top: 1rem; }
.section-head p:last-child { margin-bottom: 0; }
.band { background: var(--bg-soft); }

/* Hero — fond bleu nuit, quadrillage discret, lion en filigrane */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--on-dark);
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(156, 255, 231, .16), transparent 60%),
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
		var(--navy);
	padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero-lion {
	position: absolute;
	right: -6rem;
	bottom: -9rem;
	width: clamp(22rem, 42vw, 36rem);
	height: auto;
	opacity: .05;
	pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--accent); }
.hero .eyebrow { color: #fff; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid.has-aside { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.hero-main > p:not(.eyebrow):not(.actions) { font-size: 1.2rem; max-width: 40rem; }
.hero-card {
	position: relative;
	background: #fff;
	color: var(--muted);
	border-radius: var(--radius);
	padding: 2.25rem 2rem 2rem;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
	border-top: 5px solid var(--accent);
}
.hero-card + .hero-card { margin-top: 1rem; }
.hero-card-title { font-size: 1.6rem; color: var(--navy); }
.hero .hero-card .btn-primary { background: var(--navy); color: #fff; }
.hero .hero-card .btn-primary:hover { background: var(--navy-700); }
.hero-badge { margin: 2rem 0 0; }
.hero-badge img { width: 96px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.hero-aside .hero-badge { position: relative; z-index: 1; margin: 0 1.5rem -2.5rem 0; text-align: right; }   /* posé sur le haut de l'encart */
.hero-aside .hero-badge img { display: inline-block; width: 120px; }
.quote figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); }
.quote figcaption a:hover { color: var(--navy); border-bottom-width: 2px; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); margin-inline: auto; }

/* Logos clients */
.logos-intro { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); font-size: 1rem; }
.logos-intro p { margin: 0; }
.logo-wall {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.25rem 2.5rem; align-items: center;
}
.logo-wall li { display: flex; justify-content: center; }
.logo-wall img {
	max-height: 36px; width: auto; max-width: 100%;
	filter: grayscale(1); opacity: .6; mix-blend-mode: multiply;
	transition: filter .2s, opacity .2s;
}
.logo-wall img:hover { filter: none; opacity: 1; }

/* Logos en défilement continu (::: logos scroll) : deux copies de la liste translatées de leur largeur, bords fondus */
.logo-marquee {
	display: flex; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
	flex: none; display: flex; align-items: center; gap: 3.5rem; padding: .5rem 1.75rem; margin: 0; list-style: none;
	animation: logo-scroll 45s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li { flex: none; }
.logo-track img {
	height: 34px; width: auto; max-width: 150px; object-fit: contain;
	filter: grayscale(1); opacity: .6; mix-blend-mode: multiply; transition: filter .2s, opacity .2s;
}
.logo-track img:hover { filter: none; opacity: 1; }
@keyframes logo-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.logo-marquee { overflow-x: auto; }
	.logo-track { animation: none; }
	.logo-track[aria-hidden] { display: none; }
}

/* Cartes */
.cards-section { background: var(--bg-soft); }
.cards-section + .cards-section { background: var(--bg); }                       /* blocs de cartes consécutifs : fonds alternés */
.cards-section + .cards-section + .cards-section { background: var(--bg-soft); }
.section-head .actions { justify-content: center; margin-top: 1.25rem; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.cards-2, .cards-4 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem;
	transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 1.25rem;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--navy);
}
.card-icon .icon { width: 26px; height: 26px; }
/* En-tête de carte : icône (ou numéro) et titre sur une ligne ; sur mobile, toucher le titre déplie le texte */
.card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; list-style: none; cursor: default; }
.card-head::-webkit-details-marker { display: none; }
.card-head .card-icon, .card-head .card-num { flex: none; margin: 0; }
.card-head h3 { margin: 0; }
.cards-collapsible .card-head { cursor: pointer; margin-bottom: 0; }
.cards-collapsible .card-head::after { content: "+"; margin-left: auto; flex: none; font-size: 1.5rem; line-height: 1; color: var(--navy); transition: transform .2s; }
.cards-collapsible .card[open] .card-head::after { transform: rotate(45deg); }
.cards-collapsible .card[open] .card-body { margin-top: 1rem; }
.card-num {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--navy); color: var(--accent);
	font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}

/* Fonctionnalités */
.feature:not(.has-kicker) { padding-top: 0; }
.feature .kicker {
	display: flex; width: fit-content; align-items: center; gap: .65rem;
	margin: 0 auto 3rem; padding: .55rem 1.15rem;
	border-radius: 999px; background: var(--navy); color: #fff; font-size: .9rem;
}
.feature .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-reverse .feature-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feature-reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
.feature-text p:not(.actions) { color: var(--muted); }
.feature-media { margin: 0; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Étapes */
.steps-section { background: var(--bg-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.step {
	counter-increment: step;
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.75rem;
}
.step::before {
	content: counter(step);
	display: grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--navy); color: var(--accent);
	font-family: var(--font-display); font-weight: 800;
}
.step-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-stretch: 85%; margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }

/* Texte en deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); }
.split-head h2 { position: relative; padding-top: 1.5rem; }
.split-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 5px; border-radius: 3px; background: var(--accent); }
.split-body p:not(.actions), .split-body li { color: var(--muted); }
.split-body ul { padding-left: 1.2rem; }
.split-section + .cards-section { padding-top: var(--section); }

/* Citation */
.quote-section { text-align: center; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 2rem; position: relative; }
.quote blockquote::before {
	content: "“";
	display: block;
	font-family: var(--font-display); font-weight: 800; font-size: 6rem; line-height: .7;
	color: var(--accent);
	-webkit-text-stroke: 2px var(--navy);
	margin-bottom: 1rem;
}
.quote blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 600; line-height: 1.35; color: var(--navy); }
.quote figcaption { display: inline-flex; align-items: center; gap: 1rem; text-align: left; font-size: .95rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
.quote-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.quote-section .actions { justify-content: center; }

/* Témoignages */
.testimonials-section { background: var(--bg-soft); }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial {
	margin: 0; padding: 2rem;
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; font-size: 1.02rem; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial figcaption strong { color: var(--navy); }

/* Profil du visiteur (::: audience) : « Vous êtes… ? », onglets en pilules, un panneau par profil */
.logos + .audience-section { padding-top: 1rem; }
/* Mise en avant façon encart du hero : carte blanche, liseré aquamarine, ombre portée */
.audience-card {
	position: relative; max-width: 980px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
	background: #fff; border-radius: var(--radius); border-top: 5px solid var(--accent);
	box-shadow: 0 30px 60px -24px rgba(10, 38, 78, .35), 0 0 0 1px var(--line);
}
.audience-section .section-head { margin-bottom: 2rem; }
.audience-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.audience-tab {
	display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: 999px;
	border: 1.5px solid #c9d1dc; background: #fff; color: var(--navy); font: 600 1rem/1.2 var(--font-sans); cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.audience-tab .icon { width: 22px; height: 22px; }
.audience-tab:hover { border-color: var(--navy); }
.audience-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.audience-tab[aria-selected="true"] .icon { color: var(--accent); }
.audience-panel {
	max-width: 860px; margin: 0 auto; background: var(--bg-soft); border-radius: var(--radius);
	border-top: 5px solid var(--accent); padding: 2rem 2.25rem;
}
.audience-card .audience-panel { border-top: 0; }
.audience:not(.is-interactive) .audience-panel + .audience-panel { margin-top: 1.25rem; }
.audience.is-interactive .audience-title { display: none; }   /* le titre est déjà sur l'onglet */
.audience-panel > p:first-of-type:not(.actions) { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; font-stretch: 90%; line-height: 1.25; color: var(--navy); }
.audience-panel ul { padding-left: 1.2rem; }
.audience-panel li { color: var(--muted); margin-bottom: .5rem; }
.audience-panel li strong { color: var(--ink); }

/* Volets repliables (::: split fold) : titre + résumé, détail au clic */
.fold-item { border-top: 1px solid var(--line); }
.fold-item:last-child { border-bottom: 1px solid var(--line); }
.fold-head { position: relative; display: block; padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; list-style: none; }
.fold-head::-webkit-details-marker { display: none; }
.fold-head::after {
	content: "+"; position: absolute; right: .25rem; top: 1.05rem; font-size: 1.6rem; line-height: 1; color: var(--navy); transition: transform .2s;
}
.fold-item[open] > .fold-head::after { transform: rotate(45deg); }
.split-body .fold-head h3 { margin: 0; font-size: 1.2rem; }
.split-body .fold-head:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.fold-teaser { margin: .35rem 0 0; font-size: .95rem; }
.fold-item[open] .fold-teaser { display: none; }   /* déplié : le texte complet reprend la phrase */
.fold-body { padding: 0 0 1.25rem; }
.fold-body > :last-child { margin-bottom: 0; }

/* Questions fréquentes (::: faq) : accordéon <details> */
.faq-section { background: var(--bg-soft); }
.cards-section + .faq-section { background: var(--bg); }   /* deux sections grises consécutives : la FAQ passe sur blanc */
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--navy); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; }
.faq-answer { padding: 0 1.35rem 1.25rem; }
.faq-answer p, .faq-answer li { color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }

/* Bandeau d'appel à l'action */
.cta-band {
	position: relative;
	overflow: hidden;
	color: var(--on-dark);
	background: radial-gradient(50rem 24rem at 15% 120%, rgba(156, 255, 231, .18), transparent 60%), var(--navy);
	padding: var(--section) 0;
	text-align: center;
}
.cta-lion { position: absolute; left: -5rem; top: -4rem; width: 26rem; height: auto; opacity: .05; pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p:not(.actions) { font-size: 1.15rem; }
.cta-band .actions { justify-content: center; }

/* Texte éditorial (pages légales) */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 2rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.75rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p, .prose li { color: #2f3a49; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }

/* Bandeau de version (CGUV et autres documents versionnés) */
.version-notice { padding-top: 2.5rem; }
.version-notice + .prose-section { padding-top: 2.5rem; }
.version-box {
	max-width: 780px;
	border: 1px solid var(--line); border-left: 5px solid var(--navy);
	border-radius: 10px; background: var(--bg-soft);
	padding: 1rem 1.25rem; font-size: .95rem;
}
.is-archived .version-box { border-left-color: #c2410c; background: #fff7ed; }
.version-box p { margin: 0 0 .4rem; }
.version-box details { margin: .4rem 0; }
.version-box summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.version-box ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.version-url { color: var(--muted); font-size: .85rem; }
.version-url code { font-size: .85rem; word-break: break-all; }

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

.site-footer { background: var(--navy-900); color: #a9b6c9; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-logo { height: 28px; width: auto; margin-bottom: 1.25rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #dbe3ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; padding-bottom: 2rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

/* Carrousel (::: carousel) : défilement natif avec accroche, flèches ajoutées en JS */
.carousel-section .section-head { max-width: 1040px; margin-bottom: 2rem; }   /* intro étalée : le carrousel apparaît plus vite */
.carousel { position: relative; }
.carousel-nav { display: flex; justify-content: flex-end; gap: .5rem; margin: -1.5rem 0 1.25rem; }
.carousel-btn {
	width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #c9d1dc; background: #fff;
	color: var(--navy); font-size: 1.1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--navy); background: var(--accent-soft); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); column-gap: 1.5rem;
	list-style: none; margin: 0; padding: .25rem .25rem 1.5rem; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; scrollbar-width: thin;
}
.slide {
	scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.slide-media { aspect-ratio: 16 / 10; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.carousel-track.is-auto { scroll-snap-type: none; }   /* défilement continu (JS) : pas d'accroche */
a.slide-media { position: relative; display: block; cursor: zoom-in; }
.slide-zoom {
	position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
	border-radius: 50%; background: var(--navy); color: var(--accent); box-shadow: 0 6px 16px -6px rgba(10, 38, 78, .5);
	opacity: .9; transition: transform .15s, opacity .15s;
}
.slide-zoom .icon { width: 18px; height: 18px; }
a.slide-media:hover .slide-zoom, a.slide-media:focus-visible .slide-zoom { opacity: 1; transform: scale(1.08); }

/* Pop-in de la capture (<dialog>) : la capture en grand, le texte de la diapositive dessous */
.media-modal {
	width: min(1100px, 94vw); max-height: 92dvh; padding: 0; border: 0; border-radius: var(--radius);
	background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.media-modal::backdrop { background: rgba(6, 26, 55, .82); }
.media-modal-media { background: var(--bg-soft); }
.media-modal-media video, .media-modal-media img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; }
.media-modal-body { padding: 1.5rem 2rem 2rem; }
.media-modal-body h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.media-modal-body p { color: var(--muted); }
.media-modal-body p:last-child { margin-bottom: 0; }
.media-modal-body strong { color: var(--ink); }
.media-modal-close {
	position: sticky; top: .75rem; float: right; z-index: 2; margin: .75rem .75rem -3.25rem 0;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--navy); color: #fff;
	font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.media-modal-close:hover { background: var(--navy-700); }

.slide-media img, .slide-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.slide-media.is-icon { position: relative; display: grid; place-items: center; color: var(--accent); background: var(--navy); }
.slide-media.is-icon::after {
	content: ""; position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; opacity: .06;
	background: url("../img/common/lion-white.svg") no-repeat center / contain;
}
.slide-media.is-icon .icon { width: 64px; height: 64px; position: relative; }
.slide-body { padding: 1.5rem 1.6rem 1.75rem; }
.slide-body h3 { margin-bottom: .75rem; }
.slide-body p { color: var(--muted); font-size: .95rem; margin-bottom: .75em; }
.slide-body p:last-child { margin-bottom: 0; }
.slide-body strong { color: var(--ink); }

@media (max-width: 960px) {
	.carousel-track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 960px) {
	.hero-grid.has-aside, .feature-grid, .feature-reverse .feature-grid, .split { grid-template-columns: 1fr; }
	.feature-reverse .feature-text { order: 0; }
	.cards { grid-template-columns: 1fr 1fr; }
	.logo-wall { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

/* Tablette et mobile : menu burger au lieu de la navigation en ligne */
@media (max-width: 1024px) {
	.main-nav { display: none; }
	.header-inner { justify-content: space-between; gap: 1rem; }
	.mobile-menu { display: block; }
	.header-actions { gap: .75rem; }
}

/* Mobile : version dédiée (barre d'action fixe, boutons pleine largeur, typographie resserrée) */
@media (max-width: 720px) {
	:root { --header-h: 4rem; --section: 3.5rem; }
	body { font-size: 1rem; }
	html.menu-open { overflow: hidden; }
	h1 { font-size: clamp(2.15rem, 9vw, 2.6rem); }
	h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
	.brand-logo { height: 28px; }
	.header-cta { display: none; }
	.hero { padding: 3rem 0 3.5rem; }
	.hero-main > p:not(.eyebrow):not(.actions) { font-size: 1.05rem; }
	.hero-lion { width: 18rem; right: -5rem; bottom: -5rem; }
	.hero-grid { gap: 2rem; }
	.actions { flex-direction: column; align-items: stretch; }
	.actions .btn { justify-content: center; }
	.section-head { margin-bottom: 2rem; text-align: left; }
	.section-head .actions { justify-content: flex-start; }
	.cards, .cards-2, .cards-4, .testimonials { grid-template-columns: 1fr; gap: 1rem; }
	.logo-wall { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
	.logo-track { gap: 2.25rem; padding-inline: 1.125rem; animation-duration: 35s; }
	.logo-track img { height: 26px; max-width: 110px; }
	.hero-card, .card, .testimonial { padding: 1.5rem; }
	.hero-card-title { font-size: 1.35rem; }
	.card-icon { margin-bottom: 1rem; }
	.card-head .card-icon { width: 44px; height: 44px; }
	.card { padding: 1.1rem 1.25rem; }
	.split { gap: 1.25rem; }
	.split-body li { margin-bottom: .5rem; }
	.steps { grid-template-columns: 1fr; gap: .75rem; }
	.step { display: grid; grid-template-columns: 40px 1fr; column-gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
	.step::before { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
	.step-title { font-size: 1.3rem; margin: 0; }
	.quote blockquote p { font-size: 1.3rem; }
	.audience-tabs { display: grid; grid-template-columns: 1fr; gap: .5rem; }
	.audience-tab { justify-content: center; }
	.audience-panel { padding: 1.5rem 1.25rem; }
	.audience-panel > p:first-of-type:not(.actions) { font-size: 1.2rem; }
	.quote figcaption { flex-direction: column; text-align: center; }
	.cta-band p:not(.actions) { font-size: 1.05rem; }
	.cta-band .actions { align-items: stretch; }
	.carousel-nav { display: none; }
	.carousel-track { grid-auto-columns: 86%; column-gap: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
	.carousel-track::-webkit-scrollbar { display: none; }
	.slide-body { padding: 1.25rem 1.25rem 1.5rem; }
	.site-footer li { margin-bottom: 0; }
	.site-footer li a { display: inline-block; padding: .4rem 0; }
	.footer-grid { padding-top: 3rem; }
}

@media (max-width: 420px) {
	.footer-grid { grid-template-columns: 1fr; }
	.lang-switch a, .lang-switch span { padding: .3rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
