/* ==========================================================================
   Dulbu - feuille de style unique
   Palette et typographies reprises de la charte de l'agence.
   ========================================================================== */

/* --------------------------------------------------------------- Polices */

@font-face {
	font-family: 'Urbanist';
	src: url('../fonts/urbanist-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Urbanist';
	src: url('../fonts/urbanist-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Roboto';
	src: url('../fonts/roboto-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Roboto';
	src: url('../fonts/roboto-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------- Charte */

:root {
	--bleu: #0048ff;
	--fond: #f8f8f8;
	--texte: #2e2e2e;
	--blanc: #ffffff;
	--ligne: #ececec;
	--gris: #706f6f;
	--bordure: #d6d5d5;

	--titre: 'Urbanist', sans-serif;
	--corps: 'Roboto', sans-serif;

	--rayon: 8px;
	--rayon-pilule: 30px;

	--largeur: 1240px;
	--gouttiere: 16px;

	--pas: 24px;
	--section: clamp(56px, 8vw, 96px);
}

/* --------------------------------------------------------------- Bases */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--fond);
	color: var(--texte);
	font-family: var(--corps);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--titre);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--texte);
}

h1 {
	font-size: clamp(32px, 5vw, 48px);
}

h2 {
	font-size: clamp(26px, 3.4vw, 34px);
}

h3 {
	font-size: 18px;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-color: var(--bordure);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--bleu);
}

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

strong,
b {
	font-weight: 500;
}

ul,
ol {
	padding-left: 1.2em;
}

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

/* --------------------------------------------------------------- Trame */

.enveloppe {
	width: 90%;
	max-width: var(--largeur);
	margin-inline: auto;
}

.section {
	padding-block: var(--section);
}

.section--serree {
	padding-block: calc(var(--section) * 0.6);
}

.evitement {
	position: absolute;
	left: -9999px;
	top: 0;
}

.evitement:focus {
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
	z-index: 100;
	background: var(--texte);
	color: var(--blanc);
	padding: 10px 18px;
	border-radius: var(--rayon);
	text-decoration: none;
}

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

.bouton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--rayon);
	border: 1px solid transparent;
	font-family: var(--corps);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.bouton--plein {
	background: var(--texte);
	color: var(--blanc);
}

.bouton--plein:hover {
	background: var(--bleu);
}

.bouton--vide {
	background: var(--blanc);
	color: var(--texte);
	border-color: var(--bordure);
}

.bouton--vide:hover {
	border-color: var(--texte);
}

.bouton svg {
	width: 15px;
	height: 15px;
	flex: none;
}

/* --------------------------------------------------------------- Entete */

.entete {
	padding-top: var(--gouttiere);
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--fond);
	padding-bottom: var(--gouttiere);
}

.entete__barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pas);
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: 12px 16px 12px 20px;
}

.entete__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex: none;
}

.entete__logo svg,
.entete__logo img {
	height: 26px;
	width: auto;
}

.entete__nav {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.entete__nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.entete__nav a {
	font-size: 14px;
	text-decoration: none;
	color: var(--texte);
}

.entete__nav a:hover {
	color: var(--bleu);
}

/* --------------------------------------------------------------- Hero */

.hero {
	text-align: center;
	padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.etiquette {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon-pilule);
	padding: 6px 16px;
	font-family: var(--titre);
	font-size: 13px;
	font-weight: 400;
	margin-bottom: 22px;
}

.etiquette::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bleu);
	flex: none;
}

.hero__titre {
	max-width: 20ch;
	margin-inline: auto;
	margin-bottom: 20px;
	text-wrap: balance;
}

.hero__titre .marque {
	display: inline-block;
	vertical-align: -0.12em;
}

.hero__titre .marque svg {
	height: 0.72em;
	width: auto;
	display: inline-block;
}

.hero__accroche {
	font-family: var(--titre);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 600;
	color: var(--bleu);
	margin-bottom: 18px;
}

.hero__chapeau {
	max-width: 60ch;
	margin-inline: auto;
	margin-bottom: 28px;
	color: var(--texte);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* --------------------------------------------------------------- Confiance */

.confiance__titre {
	text-align: center;
	font-family: var(--titre);
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 26px;
}

.confiance__liste {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ligne);
	border-bottom: 1px solid var(--ligne);
}

.confiance__liste li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 16px;
	border-right: 1px solid var(--ligne);
}

.confiance__liste li:last-child {
	border-right: 0;
}

.confiance__liste img {
	width: 100%;
	height: 26px;
	object-fit: contain;
	opacity: 0.55;
	filter: grayscale(1);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.confiance__liste li:hover img {
	opacity: 1;
	filter: none;
}

/* --------------------------------------------------------------- Intro de section */

.intro {
	text-align: center;
	max-width: 62ch;
	margin-inline: auto;
	margin-bottom: 36px;
}

.intro p {
	color: var(--gris);
}

/* --------------------------------------------------------------- Grille des offres */

.offres {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gouttiere);
}

.carte {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: var(--pas);
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: border-color 0.18s ease;
}

.carte:hover {
	border-color: var(--bordure);
}

.carte__entete {
	display: flex;
	align-items: center;
	gap: 10px;
}

.carte__entete svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.carte__entete h3 {
	margin: 0;
}

.carte__texte {
	color: var(--gris);
	margin: 0;
}

.carte__lien {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--texte);
	padding-top: 6px;
}

.carte__lien:hover {
	color: var(--bleu);
}

.carte__lien svg {
	width: 13px;
	height: 13px;
}

/* Les photos sont panoramiques : elles ferment la carte en bandeau. */
.carte__image {
	margin: 12px calc(var(--pas) * -1) calc(var(--pas) * -1);
	height: 132px;
	overflow: hidden;
}

.carte__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carte--photo .carte__lien {
	margin-bottom: 0;
}

/* Carte haute a fond photo */
.carte--haute {
	grid-column: span 3;
	grid-row: span 2;
	justify-content: flex-end;
	color: var(--blanc);
	border: 0;
	min-height: 320px;
	isolation: isolate;
}

.carte--haute::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(46, 46, 46, 0.15) 0%, rgba(46, 46, 46, 0.85) 62%);
	z-index: -1;
}

.carte--haute img.fond {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.carte--haute h3,
.carte--haute .carte__texte,
.carte--haute .carte__lien {
	color: var(--blanc);
}

.carte--haute .carte__lien {
	margin-top: 4px;
}

.carte--haute .carte__lien:hover {
	color: var(--blanc);
	text-decoration: underline;
}

/* Repartition sur douze colonnes : 3+5+4, 3+4+5, 7+5 */
.carte--c4 {
	grid-column: span 4;
}

.carte--c5 {
	grid-column: span 5;
}

.carte--c7 {
	grid-column: span 7;
}

.carte--photo {
	padding-bottom: 0;
}

/* --------------------------------------------------------------- Arguments */

.arguments {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: var(--pas);
}

.arguments__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: var(--gouttiere);
}

.argument {
	background: var(--fond);
	border-radius: var(--rayon);
	padding: var(--pas);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.argument__visuel {
	background: var(--blanc);
	border-radius: var(--rayon);
	overflow: hidden;
	margin-bottom: 8px;
}

.argument__visuel svg {
	width: 100%;
	height: auto;
	display: block;
}

.argument h3 {
	margin: 0;
}

.argument p {
	color: var(--gris);
	margin: 0;
}

.argument__chute {
	font-weight: 500;
	color: var(--texte);
}

/* --------------------------------------------------------------- Appel final */

.appel {
	background: var(--texte);
	color: var(--blanc);
	border-radius: var(--rayon);
	padding: clamp(32px, 5vw, 56px) var(--pas);
	text-align: center;
}

.appel h2 {
	color: var(--blanc);
	max-width: 22ch;
	margin-inline: auto;
}

.appel p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 54ch;
	margin-inline: auto;
	margin-bottom: 24px;
}

.appel .bouton--plein {
	background: var(--blanc);
	color: var(--texte);
}

.appel .bouton--plein:hover {
	background: var(--bleu);
	color: var(--blanc);
}

/* --------------------------------------------------------------- Contenu editorial */

/* Colonne editoriale : le texte reste lisible, les composants prennent large.
   La largeur est en pixels et non en ch : une mesure en ch suit la taille de
   police de l'element, donc un titre de 36 px deborderait de moitie. */
.prose {
	--colonne: 620px;
	max-width: none;
}

.prose > p,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > .exergue {
	max-width: var(--colonne);
	margin-inline: auto;
}

.prose > .encart,
.prose > figure {
	max-width: 720px;
	margin-inline: auto;
}

.prose h2 {
	margin-top: 1.4em;
}

.prose h3 {
	margin-top: 1.4em;
	font-size: 17px;
}

.prose img {
	border-radius: var(--rayon);
}

.prose li {
	margin-bottom: 0.4em;
}

.page__entete {
	text-align: center;
	margin-bottom: 32px;
}

.page__entete p {
	color: var(--gris);
	max-width: 58ch;
	margin-inline: auto;
}

/* --------------------------------------------------------------- Pied */

.pied {
	padding-bottom: var(--gouttiere);
}

.pied__bloc {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: var(--pas);
}

.pied__haut {
	display: grid;
	grid-template-columns: 1.6fr minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--pas);
}

.pied__logo svg,
.pied__logo img {
	height: 26px;
	width: auto;
	margin-bottom: 12px;
}

.pied__texte {
	color: var(--gris);
	max-width: 40ch;
}

.pied__titre {
	font-family: var(--titre);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gris);
	margin-bottom: 10px;
}

.pied ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.pied ul a {
	font-size: 14px;
	text-decoration: none;
	color: var(--texte);
}

.pied ul a:hover {
	color: var(--bleu);
}

.pied__bas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--ligne);
	margin-top: var(--pas);
	padding-top: 16px;
	font-size: 13px;
	color: var(--gris);
}

.pied__reseaux {
	display: flex;
	gap: 10px;
}

.pied__reseaux a {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	color: var(--texte);
}

.pied__reseaux a:hover {
	border-color: var(--bleu);
	color: var(--bleu);
}

.pied__reseaux svg {
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------- Ecrans moyens */

@media (max-width: 1024px) {
	.carte--haute,
	.carte--c4,
	.carte--c5,
	.carte--c7 {
		grid-column: span 6;
	}

	.carte--haute {
		grid-row: auto;
		min-height: 260px;
	}

	.pied__haut {
		grid-template-columns: 1fr 1fr;
	}

	.pied__logo {
		grid-column: 1 / -1;
	}
}

/* --------------------------------------------------------------- Mobile */

@media (max-width: 767px) {
	.entete__nav ul {
		display: none;
	}

	.carte--haute,
	.carte--c4,
	.carte--c5,
	.carte--c7 {
		grid-column: 1 / -1;
	}

	.carte__image {
		height: 150px;
	}

	.confiance__liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.confiance__liste li {
		border-bottom: 1px solid var(--ligne);
	}

	.confiance__liste li:nth-child(2n) {
		border-right: 0;
	}

	.pied__haut {
		grid-template-columns: 1fr;
	}

	.hero__actions .bouton {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* --------------------------------------------------------------- Confort */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

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

.ariane {
	padding-top: 8px;
	font-size: 13px;
	color: var(--gris);
}

.ariane ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ariane li + li::before {
	content: '›';
	margin-right: 8px;
	color: var(--bordure);
}

.ariane a {
	color: var(--gris);
	text-decoration: none;
}

.ariane a:hover {
	color: var(--bleu);
}

.ariane [aria-current] {
	color: var(--texte);
}

/* --------------------------------------------------------------- Blocs de maillage */

.liens {
	display: grid;
	/* 340px force trois colonnes au maximum : cinq cartes tombent en 3 + 2,
	   pas en 4 + 1. */
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: var(--gouttiere);
	list-style: none;
	margin: 0;
	padding: 0;
}

.lien-carte {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: 18px var(--pas);
	text-decoration: none;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.lien-carte:hover {
	border-color: var(--bleu);
	transform: translateY(-1px);
}

.lien-carte__icone {
	display: inline-flex;
	flex: none;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	background: var(--fond);
	border-radius: var(--rayon);
}

.lien-carte__icone svg {
	width: 18px;
	height: 18px;
}

.lien-carte strong {
	display: block;
	font-family: var(--titre);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 2px;
}

.lien-carte__resume {
	display: block;
	font-size: 14px;
	color: var(--gris);
	line-height: 1.5;
}

/* --------------------------------------------------------------- Actions d'entete de page */

.page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

.page__entete .etiquette {
	margin-bottom: 16px;
}

.page__entete h1 {
	text-wrap: balance;
}

/* ==========================================================================
   Pages longues : sommaire, tableau comparatif, FAQ, figures, encadres.
   Tout est en CSS : aucune de ces mecaniques ne demande de JavaScript.
   ========================================================================== */

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

.prose .tableau {
	overflow-x: auto;
	margin: 1.6em auto;
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	min-width: 620px;
}



.prose thead th {
	background: var(--fond);
	font-family: var(--titre);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid var(--ligne);
	white-space: nowrap;
}

.prose tbody th {
	font-family: var(--corps);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	background: var(--fond);
}

.prose td,
.prose tbody th {
	padding: 11px 14px;
	border-bottom: 1px solid var(--ligne);
	vertical-align: top;
	line-height: 1.5;
}

.prose tbody tr:last-child td,
.prose tbody tr:last-child th {
	border-bottom: 0;
}

/* La colonne de l'agence est celle qu'on met en avant. */
.prose td:last-child {
	background: rgba(0, 72, 255, 0.03);
}

.prose thead th:last-child {
	color: var(--bleu);
}

/* --------------------------------------------------------------- FAQ depliable */

.faq {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.faq details {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	overflow: hidden;
}

.faq details[open] {
	border-color: var(--bordure);
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 15px 48px 15px 20px;
	position: relative;
	font-family: var(--titre);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--gris);
	border-bottom: 2px solid var(--gris);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.faq details[open] summary::after {
	transform: rotate(-135deg);
	margin-top: -2px;
	border-color: var(--bleu);
}

.faq summary:hover {
	color: var(--bleu);
}

.faq__reponse {
	padding: 0 20px 18px;
	color: var(--gris);
}

.faq__reponse p {
	margin: 0;
}

/* --------------------------------------------------------------- Figures */

/* margin en raccourci : il faut « auto » ici, sinon il annule le centrage
   pose plus haut par margin-inline. */
.prose figure {
	margin: 2.2em auto;
}

.prose figure img,
.prose figure svg {
	width: 100%;
	height: auto;
	border-radius: var(--rayon);
	border: 1px solid var(--ligne);
	background: var(--blanc);
}

/* Une photo en portrait occuperait un ecran entier : on la recadre. */
.prose .figure--photo img {
	max-height: 420px;
	object-fit: cover;
	object-position: center;
}

.prose figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--gris);
	line-height: 1.5;
}

/* --------------------------------------------------------------- Encadre d'appel */

.encart {
	background: var(--fond);
	border: 1px solid var(--ligne);
	border-left: 3px solid var(--bleu);
	border-radius: var(--rayon);
	padding: 20px var(--pas);
	margin: 2em auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.encart p {
	margin: 0;
	max-width: 46ch;
}

.encart strong {
	display: block;
	font-family: var(--titre);
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 3px;
	text-wrap: balance;
}

/* --------------------------------------------------------------- Listes qualifiantes */

.prose .liste-oui,
.prose .liste-non {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 9px;
}

.prose .liste-oui li,
.prose .liste-non li {
	position: relative;
	padding-left: 28px;
	margin: 0;
}

.prose .liste-oui li::before,
.prose .liste-non li::before {
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.prose .liste-oui li::before {
	content: '✓';
	background: rgba(0, 72, 255, 0.1);
	color: var(--bleu);
}

.prose .liste-non li::before {
	content: '×';
	background: var(--ligne);
	color: var(--gris);
	font-size: 14px;
}

/* --------------------------------------------------------------- Ecrans reduits */

@media (max-width: 767px) {
	.encart {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Composants de rythme : ce qui casse le mur de texte d'une page longue.
   ========================================================================== */

/* Plus d'air avant chaque nouvelle section, et un filet discret. */
.prose h2 {
	margin-top: 2.4em;
	padding-top: 2.2em;
	border-top: 1px solid var(--ligne);
	text-wrap: balance;
}

.prose > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.prose h3 {
	margin-top: 1.8em;
}

/* --------------------------------------------------------------- Exergue */

.prose .exergue {
	font-family: var(--titre);
	font-size: clamp(18px, 2vw, 21px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--texte);
	border-left: 3px solid var(--bleu);
	padding: 4px 0 4px 20px;
	margin: 1.6em auto 0;
	text-wrap: balance;
}

/* --------------------------------------------------------------- Cas vecus */

.prose .cas-grille {
	display: grid;
	/* 380px force deux colonnes sur 1000 : quatre cartes tombent en 2 x 2,
	   et le texte respire au lieu de s'etirer sur vingt lignes. */
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: var(--gouttiere);
	margin: 2em auto 0;
}

.prose .cas {
	background: var(--fond);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cas__icone {
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	color: var(--texte);
}

.cas__icone svg {
	width: 20px;
	height: 20px;
}

.prose .cas h3 {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.3;
	text-wrap: balance;
}

.prose .cas p {
	margin: 0;
	font-size: 14.5px;
	color: var(--gris);
}

.prose .cas__chute {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--ligne);
	font-weight: 500;
	color: var(--texte) !important;
}

/* --------------------------------------------------------------- Etapes */

.prose .etapes {
	list-style: none;
	padding: 0;
	margin: 1.8em auto 0;
	display: grid;
	gap: 0;
}

.prose .etape {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 26px;
	position: relative;
	margin: 0;
}

/* Le trait qui relie les etapes entre elles. */
.prose .etape:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 18px;
	top: 40px;
	bottom: 4px;
	width: 1px;
	background: var(--ligne);
}

.etape__numero {
	display: flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	background: var(--blanc);
	border: 1px solid var(--bordure);
	border-radius: 50%;
	font-family: var(--titre);
	font-size: 15px;
	font-weight: 600;
	color: var(--bleu);
	position: relative;
	z-index: 1;
}

.prose .etape__corps h3 {
	margin: 7px 0 8px;
}

.prose .etape__corps p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- Qualification */

.prose .qualif-duo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: var(--gouttiere);
	margin: 2em auto;
}

.prose .qualif {
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: 20px;
	background: var(--fond);
}

.prose .qualif--oui {
	border-color: rgba(0, 72, 255, 0.28);
	background: rgba(0, 72, 255, 0.03);
}

.prose .qualif h3 {
	margin: 0 0 14px;
	font-size: 16.5px;
}

.prose .qualif ul {
	margin: 0;
	font-size: 14.5px;
}

/* --------------------------------------------------------------- Ecrans reduits */

@media (max-width: 767px) {
	.prose .etape {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 14px;
	}

	.etape__numero {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.prose .etape:not(:last-child)::before {
		left: 15px;
		top: 34px;
	}
}

/* ==========================================================================
   Page longue : une suite de blocs autonomes.
   Une carte blanche unique de quinze mille pixels de haut ne respire pas,
   quel que soit le soin apporte a son contenu.
   ========================================================================== */

/* --------------------------------------------------------------- Entete de page */

.page-hero {
	text-align: center;
	padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px);
}

.page-hero h1 {
	max-width: 18ch;
	margin-inline: auto;
	text-wrap: balance;
}

.page-hero__chapeau {
	max-width: 56ch;
	margin-inline: auto;
	color: var(--gris);
	font-size: 16px;
}

/* --------------------------------------------------------------- Barre de rubriques */

.rubriques {
	position: sticky;
	top: 70px;
	z-index: 30;
	background: var(--blanc);
	border-top: 1px solid var(--ligne);
	border-bottom: 1px solid var(--ligne);
}

.rubriques ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rubriques ul::-webkit-scrollbar {
	display: none;
}

.rubriques li {
	flex: none;
}

.rubriques a {
	display: block;
	padding: 13px 12px;
	font-size: 13.5px;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--gris);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.rubriques a:hover {
	color: var(--texte);
	border-bottom-color: var(--bordure);
}

/* La section visee par l'ancre se marque sans JavaScript. */
.rubriques a:target,
.rubriques a:focus-visible {
	color: var(--bleu);
	border-bottom-color: var(--bleu);
}

/* --------------------------------------------------------------- Blocs */

.bloc {
	padding-block: clamp(44px, 6vw, 76px);
}

.bloc--blanc {
	background: var(--blanc);
}

.bloc--gris {
	background: var(--fond);
}

/* Un bloc blanc qui suit un bloc blanc a besoin d'un filet pour se distinguer. */
.bloc--blanc + .bloc--blanc {
	border-top: 1px solid var(--ligne);
}

/* Le titre de section est centre sur la colonne de lecture, pas sur le bloc. */
.bloc .prose > h2 {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	font-size: clamp(27px, 3.6vw, 36px);
	margin-bottom: 0.7em;
}

.bloc .prose > h3 {
	margin-top: 1.7em;
}

/* Sections a composant large : la grille occupe toute l'enveloppe. */
.bloc--large .prose > .cas-grille,
.bloc--large .prose > .qualif-duo,
.bloc--large .prose > .tableau,
.bloc--large .prose > .faq,
.bloc--large .prose > .etapes {
	max-width: 1000px;
	margin-inline: auto;
}

.bloc--large .prose > .tableau {
	max-width: none;
}

/* Sur fond blanc, les cartes doivent rester visibles. */
.bloc--blanc .cas,
.bloc--blanc .qualif,
.bloc--blanc .argument__visuel {
	background: var(--fond);
}

.bloc--blanc .faq details,
.bloc--blanc .lien-carte {
	background: var(--fond);
}

.bloc--blanc .cas__icone,
.bloc--blanc .etape__numero {
	background: var(--blanc);
}

.bloc--blanc .encart {
	background: var(--blanc);
	border-color: var(--bordure);
}

/* Cible d'ancre : sous l'entete et sous la barre de rubriques. */
.bloc .prose > h2[id] {
	scroll-margin-top: 130px;
}

/* --------------------------------------------------------------- Ecrans reduits */

@media (max-width: 1024px) {
	.rubriques {
		top: 62px;
	}
}

@media (max-width: 767px) {
	.rubriques {
		top: 0;
	}

	.rubriques a {
		padding: 12px 10px;
		font-size: 13px;
	}

	.bloc .prose > h2[id] {
		scroll-margin-top: 110px;
	}
}

/* --------------------------------------------------------------- Contenu court */

/* Les pages sans decoupage en sections (mentions, article, 404) gardent une
   carte unique : sur quelques centaines de mots, elle tient tres bien. */
.contenu {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: clamp(24px, 4vw, 48px);
	max-width: 76ch;
	margin-inline: auto;
}

.contenu > *:first-child {
	margin-top: 0;
}

.contenu h2 {
	margin-top: 1.6em;
}

.contenu h3 {
	margin-top: 1.4em;
	font-size: 17px;
}

.contenu img {
	border-radius: var(--rayon);
}

.contenu li {
	margin-bottom: 0.4em;
}

/* --------------------------------------------------------------- Reperes */

.bloc--reperes {
	padding-block: clamp(26px, 3vw, 36px);
	border-bottom: 1px solid var(--ligne);
}

.reperes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: var(--gouttiere);
	list-style: none;
	margin: 0;
	padding: 0;
}

.reperes li {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 13px;
	align-items: center;
	margin: 0;
}

.reperes__icone {
	grid-row: 1 / 3;
	display: flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: var(--fond);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	color: var(--texte);
}

.reperes__icone svg {
	width: 20px;
	height: 20px;
}

.reperes__valeur {
	font-family: var(--titre);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--texte);
}

.reperes__libelle {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--gris);
}

/* --------------------------------------------------------------- Clients dans la page */

.bloc--clients {
	padding-block: clamp(34px, 4vw, 52px);
}

.bloc--clients .confiance__titre {
	margin-bottom: 22px;
}

.bloc--clients .confiance__liste {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
}

.bloc--clients .confiance__liste li {
	border-bottom: 0;
	padding-block: 22px;
}

/* --------------------------------------------------------------- Bandeaux photo */

/* Une photo d'ancrage local sort de la colonne de lecture : c'est une respiration,
   pas une illustration de paragraphe. */
.prose > .figure--bandeau {
	max-width: 1000px;
	margin-block: 2.6em;
}

.prose .figure--bandeau img {
	max-height: none;
	aspect-ratio: 1400 / 620;
	object-fit: cover;
}

/* --------------------------------------------------------------- Credits photo */

.credit {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--gris);
}

.credit a {
	color: inherit;
	text-decoration-color: var(--bordure);
}

.credit a:hover {
	color: var(--bleu);
}

@media (max-width: 767px) {
	.prose .figure--bandeau img {
		aspect-ratio: 4 / 3;
	}
}

/* --------------------------------------------------------------- Agenda */

.agenda {
	background: var(--fond);
	border: 1px solid var(--ligne);
	border-radius: var(--rayon);
	padding: clamp(10px, 2vw, 20px);
	max-width: 1000px;
	margin-inline: auto;
}

.agenda__cadre {
	width: 100%;
	min-height: 620px;
	overflow: hidden;
	border-radius: var(--rayon);
	background: var(--blanc);
}

/* L'iframe posee par Cal ajuste sa hauteur toute seule. */
.agenda__cadre iframe {
	width: 100% !important;
	border: 0;
	border-radius: var(--rayon);
}

.agenda__repli {
	padding: 40px 20px;
	text-align: center;
	color: var(--gris);
}

@media (max-width: 767px) {
	.agenda__cadre {
		min-height: 560px;
	}
}
