/**
 * Gabarit « Formations v2 ».
 *
 * Ne style que l'habillage éditorial de la page. Le calendrier, la liste et le
 * panneau d'inscription ont leur propre feuille, livrée par le plugin.
 * Tout est préfixé .fv2- et vit sous #formations_v2.
 */

#formations_v2 {
	--fv2-ambre: #eca73f;
	--fv2-ambre-fonce: #a9750f;
	--fv2-ink: #000;
	--fv2-ink-doux: #212529;
	--fv2-muted: #6c757d;
	--fv2-line: #dedede;

	--fv2-titre: "Archivo Black", "Arial Black", Impact, sans-serif;
	--fv2-texte: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;

	--fv2-wrap: 1220px;

	font-family: var(--fv2-texte);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fv2-ink-doux);
	background: #fff;
	overflow-x: hidden;
}

#formations_v2 h1,
#formations_v2 h2,
#formations_v2 h3,
#formations_v2 h4 {
	font-family: var(--fv2-titre);
	font-weight: 400;
	letter-spacing: 0;
	margin: 0;
	line-height: 1.1;
	color: var(--fv2-ink);
	text-wrap: balance;
}

#formations_v2 p { margin: 0; }

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

.fv2-eyebrow {
	font-size: .7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--fv2-ambre-fonce);
	margin-bottom: .7rem;
}

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

.fv2-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
	font-weight: 700;
	font-size: .94rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-decoration: none;
	padding: .8rem 1.5rem;
	border: 1px solid transparent;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.fv2-btn-primary { background: var(--fv2-ambre); color: #000; border-color: #000; }
.fv2-btn-primary:hover { background: #f2b65c; color: #000; text-decoration: none; }
.fv2-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.fv2-btn-ghost:hover { border-color: var(--fv2-ambre); color: var(--fv2-ambre); text-decoration: none; }

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

.fv2-hero {
	position: relative;
	background: #000;
	color: #fff;
	display: block;
}

.fv2-hero-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 620px;
	object-fit: cover;
	opacity: .55;
}

.fv2-hero-in {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(2rem, 6vw, 4.5rem);
}

/* Sans image, le hero garde une hauteur propre et le texte reste dans le flux. */
.fv2-hero:not(:has(.fv2-hero-img)) .fv2-hero-in {
	position: static;
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.fv2-hero h1 {
	color: #fff;
	text-transform: uppercase;
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1;
	max-width: 20ch;
}

.fv2-hero .fv2-eyebrow { color: var(--fv2-ambre); }

.fv2-hero-lede {
	color: #dedede;
	margin-top: 1.1rem;
	max-width: 62ch;
	font-size: 1.05rem;
}

.fv2-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 1.8rem;
}

.fv2-rule { height: 6px; background: var(--fv2-ambre); }

@media (max-width: 860px) {
	.fv2-hero-in {
		position: static;
		background: #000;
		padding: 2rem 0 2.5rem;
	}
	.fv2-hero-img { max-height: 320px; }
}

/* ---------- Vidéo ---------- */

.fv2-video { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.fv2-video video { display: block; width: 100%; height: auto; background: #000; }

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

.fv2-sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.fv2-sec-suite { padding-top: 0; }
.fv2-sec-blanc { background: #fff; }

.fv2-sec-noir {
	background: #111;
	color: #dedede;
}

.fv2-sec-noir h2,
.fv2-sec-noir h3 { color: #fff; }
.fv2-sec-noir .fv2-eyebrow { color: var(--fv2-ambre); }
.fv2-sec-noir .fv2-sechead p { color: #9a9a9a; }

.fv2-sechead {
	max-width: 62ch;
	margin-bottom: 2.5rem;
}

.fv2-sechead h2 {
	font-size: clamp(1.55rem, 3.2vw, 2.35rem);
	margin: 0 0 .9rem;
}

.fv2-sechead p { color: var(--fv2-muted); font-size: 1.02rem; }

.fv2-sec-faq {
	border-top: 1px solid #2a2a2a;
}

.fv2-sec-faq .fv2-sechead { max-width: 860px; margin-inline: auto; }

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

.fv2-etapes {
	list-style: none;
	margin: 0 0 2.6rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem 2rem;
}

.fv2-etapes li { padding-top: .9rem; border-top: 2px solid var(--fv2-ambre); }

.fv2-num {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--fv2-ambre-fonce);
	display: block;
	margin-bottom: .35rem;
}

.fv2-etapes h3 { font-size: 1rem; margin-bottom: .3rem; line-height: 1.25; }
.fv2-etapes p { font-size: .9rem; color: var(--fv2-muted); line-height: 1.5; }

@media (max-width: 1000px) {
	.fv2-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.fv2-etapes { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 2rem; }
}

/* ---------- Formateur ---------- */

.fv2-split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

@media (max-width: 860px) {
	.fv2-split { grid-template-columns: 1fr; }
}

.fv2-split h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: .7rem 0 1rem; }
.fv2-prose { max-width: 58ch; color: #9a9a9a; }
.fv2-prose p + p { margin-top: .8rem; }

.fv2-ticks {
	list-style: none;
	padding: 0;
	margin: 1.2rem 0 0;
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.fv2-ticks li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .7rem;
	font-size: .96rem;
	color: #dedede;
}

.fv2-ticks li::before { content: "—"; color: var(--fv2-ambre); }

.fv2-portrait {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #000;
	margin: 0;
}

.fv2-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	display: block;
}

.fv2-portrait figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.4rem 1.1rem .9rem;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
	color: #fff;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.3;
}

.fv2-portrait figcaption small {
	display: block;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fv2-ambre);
	font-weight: 400;
	margin-top: .25rem;
}

/* ---------- Avantages ---------- */

.fv2-avantages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1px;
	background: #2e2e2e;
	border: 1px solid #2e2e2e;
}

.fv2-avantages > div { background: #141414; padding: 1.4rem 1.35rem 1.5rem; }

.fv2-avantages h3 {
	font-size: .95rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .5rem;
	border-bottom: 3px solid var(--fv2-ambre);
	display: inline-block;
	padding-bottom: .25rem;
}

.fv2-avantages p { font-size: .92rem; color: #9a9a9a; }

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

.fv2-faq {
	border-top: 1px solid #2e2e2e;
	max-width: 860px;
	margin-inline: auto;
}

.fv2-faq details { border-bottom: 1px solid #2e2e2e; }

.fv2-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.05rem 2.5rem 1.05rem 0;
	position: relative;
	font-size: 1.02rem;
	font-weight: 500;
	color: #fff;
}

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

.fv2-faq summary::after {
	content: "+";
	position: absolute;
	right: .4rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: var(--fv2-ambre);
	line-height: 1;
}

.fv2-faq details[open] summary::after { content: "–"; }

.fv2-faq-r {
	padding: 0 2.5rem 1.2rem 0;
	color: #9a9a9a;
	font-size: .96rem;
	max-width: 68ch;
}

/* ---------- Appel à l'action ---------- */

.fv2-closing {
	background: #000;
	color: #f6f3ea;
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.fv2-closing h2 {
	font-size: clamp(1.8rem, 4.2vw, 3rem);
	color: #fff;
	margin-top: 1rem;
}

.fv2-closing h2 em { font-style: normal; color: var(--fv2-ambre); }
.fv2-closing .fv2-eyebrow { color: var(--fv2-ambre); }
.fv2-closing-lede { color: #b4ae9e; max-width: 56ch; margin-top: 1rem; }

.fv2-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(246, 243, 234, .16);
}

.fv2-k {
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8c8676;
	display: block;
	margin-bottom: .3rem;
}

.fv2-contacts a { color: var(--fv2-ambre); text-decoration: none; font-size: 1.05rem; }
.fv2-contacts a:hover { text-decoration: underline; }

/* ---------- Avis d'administration ---------- */

.fv2-alerte {
	background: #fcf6e5;
	border-left: 3px solid var(--fv2-ambre-fonce);
	color: #6b4c00;
	padding: 1rem 1.2rem;
	font-size: .95rem;
}

@media (prefers-reduced-motion: reduce) {
	#formations_v2 * {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}
