/* BM-online-services.com
   Une seule feuille, sans police ni ressource externe (rapidité, aucun pistage). */

:root {
	--encre: #0e1726;
	--texte: #2a3648;
	--gris: #5d6a7c;
	--fond: #ffffff;
	--fond-doux: #f3f6fb;
	--bordure: #e2e8f0;
	--bleu: #0a6cff;
	--bleu-fonce: #0853c4;
	--bleu-pale: #e8f1ff;
	--jaune: #f6b93b;
	--rouge: #c62828;
	--rayon: 14px;
	--largeur: 1120px;
	--ombre: 0 1px 2px rgba(14, 23, 38, .05), 0 8px 24px rgba(14, 23, 38, .06);
}

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

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

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--texte);
	background: var(--fond);
}

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

h1, h2, h3 {
	color: var(--encre);
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }

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

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

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

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

.evitement {
	position: absolute; left: -999px; top: 0;
	background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.evitement:focus { left: 0; }

.icone { flex: none; }

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

.entete {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bordure);
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.logo {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em;
	color: var(--encre); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: var(--encre); }
.logo i { font-style: normal; color: var(--bleu); }
.logo small { font-size: 1em; color: var(--gris); font-weight: 600; }

.menu { display: flex; align-items: center; gap: 1.75rem; }
.menu a:not(.bouton) {
	color: var(--texte); text-decoration: none; font-weight: 500; font-size: 1rem;
	padding: .4rem 0; border-bottom: 2px solid transparent;
}
.menu a:not(.bouton):hover { color: var(--bleu-fonce); }
.menu a:not(.bouton)[aria-current="page"] { color: var(--bleu-fonce); border-bottom-color: var(--bleu); }

.menu-bouton {
	display: none; width: 44px; height: 44px; padding: 11px 10px;
	background: none; border: 1px solid var(--bordure); border-radius: 10px; cursor: pointer;
}
.menu-bouton span { display: block; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-bouton span + span { margin-top: 6px; }
.menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
	.menu-bouton { display: block; }
	.menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--bordure);
		padding: .5rem 1.25rem 1.25rem; box-shadow: var(--ombre);
	}
	.menu.ouvert { display: flex; }
	.menu a:not(.bouton) { padding: .9rem 0; border-bottom: 1px solid var(--bordure); }
	.menu a:not(.bouton)[aria-current="page"] { border-bottom-color: var(--bordure); }
	.menu .bouton { margin-top: 1rem; justify-content: center; }
}
@media (max-width: 380px) {
	.logo { font-size: 1rem; }
	.logo img { width: 28px; height: 28px; }
}

/* ---------- Boutons et liens ---------- */

.bouton {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--bleu); color: #fff; text-decoration: none;
	font: inherit; font-weight: 600; line-height: 1.2;
	padding: .85rem 1.4rem; border: 2px solid var(--bleu); border-radius: 999px;
	cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton .icone { width: 18px; height: 18px; }
.bouton-petit { padding: .55rem 1.1rem; font-size: .98rem; }
.bouton-clair { background: transparent; color: var(--encre); border-color: var(--bordure); }
.bouton-clair:hover { background: var(--fond-doux); border-color: var(--encre); color: var(--encre); }

.lien-fleche {
	display: inline-flex; align-items: center; gap: .35rem;
	font-weight: 600; text-decoration: none; margin-top: auto;
}
.lien-fleche .icone { width: 18px; height: 18px; transition: transform .15s; }
.lien-fleche:hover .icone { transform: translateX(3px); }

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

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-douce { background: var(--fond-doux); }

.surtitre {
	display: block; margin-bottom: .9rem;
	font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bleu-fonce);
}
.chapeau { font-size: 1.15rem; color: var(--gris); max-width: 62ch; }
.section-tete { max-width: 62ch; margin-bottom: 2.5rem; }

/* ---------- Accueil ---------- */

.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem); background: linear-gradient(180deg, var(--fond-doux), #fff); }
.hero-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero .chapeau { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-image svg { display: block; width: 100%; }

@media (max-width: 820px) {
	.hero-grille { grid-template-columns: 1fr; gap: 2rem; }
	.hero-image { max-width: 440px; }
}

.entete-page { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); background: linear-gradient(180deg, var(--fond-doux), #fff); }
.entete-page h1 { max-width: 20ch; }

.fil { font-size: .92rem; color: var(--gris); margin-bottom: 1.2rem; }
.fil a { color: var(--gris); }
.fil span { margin: 0 .4rem; }

/* ---------- Cartes ---------- */

.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.carte {
	display: flex; flex-direction: column; gap: .2rem;
	background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
	padding: 1.75rem; box-shadow: var(--ombre);
}
.carte p { color: var(--gris); margin-bottom: 1.2rem; }
.carte p:last-child { margin-bottom: 0; }
.carte-icone {
	display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.1rem;
	background: var(--bleu-pale); color: var(--bleu-fonce); border-radius: 12px;
}

/* ---------- Étapes numérotées ---------- */

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 1.25rem; }
.etapes li {
	counter-increment: etape; position: relative;
	padding: 1.6rem 1.6rem 1.6rem 5rem;
	background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
}
.etapes li::before {
	content: counter(etape); position: absolute; left: 1.4rem; top: 1.5rem;
	display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
	background: var(--encre); color: #fff; font-weight: 700; border-radius: 50%;
}
.etapes h3 { margin-bottom: .4rem; }
.etapes p { color: var(--gris); }
@media (max-width: 520px) {
	.etapes li { padding: 4.6rem 1.3rem 1.4rem; }
}

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

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

.encart {
	background: var(--encre); color: #d6deea; border-radius: var(--rayon);
	padding: clamp(1.6rem, 4vw, 2.5rem);
}
.encart h2, .encart h3 { color: #fff; }
.encart .carte-icone { background: rgba(255, 255, 255, .1); color: #fff; }

.liste-coches { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.liste-coches li { display: flex; gap: .6rem; align-items: flex-start; }
.liste-coches .icone { color: var(--bleu); margin-top: .2rem; width: 20px; height: 20px; }

/* ---------- Bande sombre, le mot de Bertrand ---------- */

.bande-sombre { background: var(--encre); color: #d6deea; padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.citation { max-width: 760px; text-align: center; }
.citation img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); margin-bottom: 1.4rem; }
.citation blockquote { margin: 0 0 1.4rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.6; color: #fff; }
.citation-auteur strong { display: block; color: #fff; }
.citation-auteur span { font-size: .92rem; color: #9fb0c7; }

/* ---------- Lieux et formats de formation ---------- */

.lieux { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lieu {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--rayon); aspect-ratio: 4 / 3; background: var(--encre);
	color: #fff; text-decoration: none;
}
.lieu img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .4s, opacity .3s; }
.lieu:hover img { transform: scale(1.05); opacity: .6; }
.lieu span {
	position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1rem;
	font-weight: 700; font-size: 1.15rem; color: #fff;
	background: linear-gradient(180deg, transparent, rgba(14, 23, 38, .85));
}

.puces { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.puces a {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .5rem 1rem; border: 1px solid var(--bordure); border-radius: 999px;
	background: #fff; color: var(--texte); text-decoration: none; font-weight: 500;
}
.puces a:hover { border-color: var(--bleu); color: var(--bleu-fonce); }
.puces .icone { width: 16px; height: 16px; color: var(--bleu); }

.image-large { width: 100%; border-radius: var(--rayon); aspect-ratio: 1100 / 472; object-fit: cover; display: block; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Appel à contact ---------- */

.appel {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
	background: var(--bleu-pale); border-radius: calc(var(--rayon) + 6px);
	padding: clamp(1.8rem, 5vw, 3rem);
}
.appel h2 { margin-bottom: .3em; }
.appel p { max-width: 52ch; }

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

.contact-grille { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grille { grid-template-columns: 1fr; } }

.formulaire { display: grid; gap: 1.1rem; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .rangee { grid-template-columns: 1fr; } }

.champ label { display: block; font-weight: 600; font-size: .95rem; color: var(--encre); margin-bottom: .35rem; }
.champ label small { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
	width: 100%; font: inherit; color: var(--encre);
	padding: .75rem .9rem; background: #fff;
	border: 1.5px solid #cbd5e1; border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 9.5rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
	outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(10, 108, 255, .15);
}
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: var(--rouge); }
.champ .erreur { display: none; margin-top: .35rem; font-size: .9rem; color: var(--rouge); }
.champ.invalide .erreur { display: block; }

/* Petite croix pour vider un champ rempli */
.effacable { position: relative; }
.effacable input, .effacable textarea { padding-right: 2.6rem; }
.effacer {
	position: absolute; right: .5rem; top: .55rem;
	display: none; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0;
	font: inherit; font-size: 1.15rem; line-height: 1; color: var(--gris);
	background: var(--fond-doux); border: 0; border-radius: 50%; cursor: pointer;
}
.effacer:hover { background: var(--bordure); color: var(--encre); }
.effacable.rempli .effacer { display: grid; }

/* Champ piège pour les robots, invisible pour les visiteurs */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.message-etat { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 500; }
.message-ok { background: #e7f6ec; color: #17603a; border: 1px solid #b7e0c5; }
.message-ko { background: #fdecec; color: #8f1d1d; border: 1px solid #f3c0c0; }

.contact-infos { display: grid; gap: 1rem; }
.contact-infos .carte { box-shadow: none; padding: 1.4rem; }
.contact-infos .carte p { margin-bottom: 0; }

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

.pied { background: var(--encre); color: #b9c5d6; font-size: .97rem; padding-top: 3.5rem; }
.pied a { color: #dfe6f0; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.pied-deux-colonnes { grid-template-columns: 1fr 1fr; }
.pied-titre { color: #fff; font-weight: 700; margin-bottom: .8rem; }
.pied-bas {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
	margin-top: 3rem; padding: 1.3rem 0; border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .9rem; color: #8fa0b8;
}
.pied-bas p { margin: 0; }
@media (max-width: 820px) { .pied-colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-colonnes { grid-template-columns: 1fr; gap: 2rem; } }

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