/*
 * Thème AssurTalent : feuille de style principale.
 * Tokens issus de la planche de fondations v6 (validée le 22/07/2026).
 * Monochrome bleu sur blanc. Les couleurs d'état sont réservées aux statuts AFA.
 */

/* ---------- Polices (auto-hébergées, variables, subset latin) ---------- */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/montserrat-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/figtree-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
	--bleu: #1E73B8;
	--bleu-2: #14548C;
	--nuit: #0C2E4A;
	--ciel: #E9F2FA;
	--ciel-vif: #7AB4E4;
	--encre: #1E2A36;
	--muet: #5F7182;
	--fond: #FBFCFE;
	--surface: #FFFFFF;
	--ligne: #E4EBF2;
	--ok: #1F8A5D;
	--ok-bg: #E4F3EC;
	--attente: #9A6708;
	--attente-bg: #FCF0DA;
	--anomalie: #B03A2E;
	--anomalie-bg: #F9E5E2;
	--neutre-bg: #EDF1F5;
	--ombre: 0 1px 2px rgba(12, 46, 74, .06), 0 8px 24px rgba(12, 46, 74, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--fond);
	color: var(--encre);
	font: 400 16px/1.65 'Figtree', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
	font-family: 'Montserrat', sans-serif;
	color: var(--encre);
	text-wrap: balance;
	margin: 0;
}
p { margin: 0; }
a { color: var(--bleu); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ciel-vif); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.at-conteneur { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.at-eyebrow {
	font: 600 12px/1 'Montserrat', sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bleu);
}
.at-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--nuit);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.at-skip:focus { left: 0; }

/* ---------- Boutons ---------- */
.at-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: 600 14px/1 'Montserrat', sans-serif;
	border-radius: 10px;
	padding: 12px 20px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.at-btn-primaire { background: var(--bleu); color: #fff; }
.at-btn-primaire:hover { background: var(--bleu-2); }
.at-btn-ghost { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.at-btn-ghost:hover { background: var(--bleu); color: #fff; }
.at-btn-nuit { background: var(--nuit); color: #fff; }
.at-btn-nuit:hover { background: #123A5C; }
.at-btn-blanc { background: #fff; color: var(--nuit); }
.at-btn-blanc:hover { background: #DCE9F5; }
.at-btn-ghost-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.at-btn-ghost-clair:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.at-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Badges AFA (statuts, jamais décoratifs) ---------- */
.at-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 600 12.5px/1 'Figtree', sans-serif;
	border-radius: 999px;
	padding: 7px 12px;
}
.at-badge-ok { background: var(--ok-bg); color: var(--ok); }
.at-badge-attente { background: var(--attente-bg); color: var(--attente); }
.at-badge-neutre { background: var(--neutre-bg); color: var(--muet); }
.at-badge-anomalie { background: var(--anomalie-bg); color: var(--anomalie); }

/* ---------- Header ---------- */
.at-header {
	background: var(--surface);
	border-bottom: 1px solid var(--ligne);
	position: sticky;
	top: 0;
	z-index: 50;
}
.at-header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.at-wordmark {
	font: 800 21px/1 'Montserrat', sans-serif;
	color: var(--encre);
	text-decoration: none;
	white-space: nowrap;
}
.at-wordmark b { color: var(--bleu); }
.at-wordmark i { color: var(--ciel-vif); font-style: normal; }
.at-wordmark-clair { color: #fff; }
.at-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.at-nav a {
	font: 600 14px/1 'Figtree', sans-serif;
	color: var(--encre);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.at-nav a:hover { color: var(--bleu); }
.at-header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.at-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.at-burger span { display: block; width: 22px; height: 2px; background: var(--encre); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Héros ---------- */
.at-hero { position: relative; overflow: hidden; background: var(--ciel); }
.at-hero-visuel { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.at-hero-visuel img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 12%;
	width: 88%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
}
.at-hero-visuel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #E9F2FA 0%, #E9F2FA 10%, rgba(233, 242, 250, .85) 20%, rgba(233, 242, 250, .25) 48%, rgba(233, 242, 250, 0) 75%);
}
.at-hero-contenu { position: relative; z-index: 1; max-width: 560px; padding: 64px 0 68px; }
.at-hero h1 {
	color: var(--nuit);
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	max-width: 21ch;
	margin: 14px 0 16px;
}
.at-hero-texte { color: #3D566E; max-width: 58ch; font-size: 17px; }
.at-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.at-hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid rgba(12, 46, 74, .14);
}
.at-hero-trust span { font: 600 13px/1.4 'Figtree', sans-serif; color: #5F7182; }
.at-hero-trust b { color: var(--nuit); font-weight: 600; }

/* ---------- Sections ---------- */
.at-section { padding: 72px 0; }
.at-section-ciel { background: var(--ciel); }
.at-section-nuit { background: linear-gradient(135deg, var(--nuit), #123A5C); }
.at-section-titre { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 34px; }

.at-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.at-chiffre {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 26px 22px;
	box-shadow: var(--ombre);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.at-chiffre-valeur { font: 800 34px/1 'Montserrat', sans-serif; color: var(--bleu); font-variant-numeric: tabular-nums; }
.at-chiffre-legende { color: var(--muet); font-size: 14.5px; }

.at-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.at-process-colonne {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 26px 24px;
	box-shadow: var(--ombre);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.at-process-colonne h3 { font: 600 18px/1.3 'Montserrat', sans-serif; }
.at-process-colonne ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muet); }
.at-process-colonne .at-btn { align-self: flex-start; }

.at-cta-finale { text-align: center; max-width: 720px; }
.at-cta-finale h2 { color: #fff; font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin-bottom: 14px; }
.at-cta-finale p { color: #B9CBDC; margin-bottom: 6px; }
.at-cta-finale .at-hero-cta { justify-content: center; }

.at-contenu-riche { max-width: 68ch; }
.at-contenu-riche h2 { margin: 28px 0 12px; font-size: 22px; }
.at-contenu-riche h3 { margin: 22px 0 10px; font-size: 18px; }
.at-contenu-riche p { margin-bottom: 14px; }
.at-contenu-riche ul, .at-contenu-riche ol { margin: 0 0 14px; padding-left: 22px; }

/* ---------- Héros de page intérieure ---------- */
.at-page-hero { background: var(--ciel); padding: 52px 0 46px; }
.at-page-hero h1 { color: var(--nuit); font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 12px 0 0; }
.at-page-chapo { color: #3D566E; max-width: 62ch; font-size: 17px; margin-top: 14px; }
.at-page-hero .at-hero-cta { margin-top: 22px; }

/* ---------- Cartes génériques ---------- */
.at-carte-simple {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 24px 22px;
	box-shadow: var(--ombre);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.at-carte-simple h3 { font: 600 16.5px/1.35 'Montserrat', sans-serif; }
.at-carte-simple p { color: var(--muet); font-size: 14.5px; }
.at-carte-simple .at-btn { align-self: flex-start; margin-top: 4px; }
.at-atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* Listes de cartes cliquables (offres, actualités). */
.at-cartes-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.at-carte-lien {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 16px;
	padding: 22px;
	box-shadow: var(--ombre);
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: var(--encre);
	transition: transform .15s, border-color .15s;
}
.at-carte-lien:hover { transform: translateY(-3px); border-color: var(--bleu); }
.at-carte-lien h3 { font: 600 16.5px/1.35 'Montserrat', sans-serif; color: var(--bleu); }
.at-carte-lien p { color: var(--muet); font-size: 14.5px; }
.at-carte-meta { font: 600 12px/1 'Figtree', sans-serif; color: var(--muet); margin-top: auto; }

.at-section-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.at-section-entete .at-section-titre { margin-bottom: 0; }
.at-vide { color: var(--muet); max-width: 60ch; }

/* ---------- Étapes numérotées (page Recruteurs) ---------- */
.at-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.at-etape-numero {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bleu);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 800 15px/1 'Montserrat', sans-serif;
}

/* ---------- Carte tarif ---------- */
.at-tarif {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 18px;
	padding: 30px 28px;
	box-shadow: var(--ombre);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.at-tarif-prix { font: 800 40px/1 'Montserrat', sans-serif; color: var(--nuit); }
.at-tarif-prix span { font: 600 15px/1 'Figtree', sans-serif; color: var(--muet); }
.at-tarif ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.at-tarif li { padding-left: 26px; position: relative; color: var(--encre); font-size: 15px; }
.at-tarif li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.at-tarif .at-btn { align-self: flex-start; }
.at-tarif-mention { font-size: 13px; color: var(--muet); }

/* ---------- FAQ ---------- */
.at-faq { display: flex; flex-direction: column; gap: 10px; }
.at-faq details {
	background: var(--surface);
	border: 1px solid var(--ligne);
	border-radius: 12px;
	padding: 0 20px;
	box-shadow: var(--ombre);
}
.at-faq summary {
	font: 600 15.5px/1.4 'Montserrat', sans-serif;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 30px;
}
.at-faq summary::-webkit-details-marker { display: none; }
.at-faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; color: var(--bleu); font: 700 20px/1 'Figtree', sans-serif; }
.at-faq details[open] summary::after { content: '\2212'; }
.at-faq details p { color: var(--muet); padding: 0 0 18px; max-width: 70ch; }

/* ---------- Pagination ---------- */
.at-pagination { margin-top: 34px; }
.at-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.at-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border: 1px solid var(--ligne);
	border-radius: 8px;
	background: var(--surface);
	color: var(--encre);
	text-decoration: none;
	font: 600 13.5px/1 'Figtree', sans-serif;
}
.at-pagination .page-numbers.current { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.at-pagination .page-numbers:hover:not(.current) { border-color: var(--bleu); color: var(--bleu); }

/* ---------- Pied de page ---------- */
.at-footer { background: var(--nuit); color: #B9CBDC; padding: 48px 0 28px; }
.at-footer-inner { display: flex; flex-direction: column; gap: 26px; }
.at-footer-marque p { margin-top: 10px; font-size: 14.5px; }
.at-footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.at-footer-nav a { color: #B9CBDC; font-size: 14px; text-decoration: none; }
.at-footer-nav a:hover { color: #fff; }
.at-footer-copy { font-size: 13px; color: rgba(185, 203, 220, .7); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.at-burger { display: block; margin-left: auto; }
	.at-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--ligne);
		flex-direction: column;
		gap: 0;
		padding: 10px 24px 16px;
	}
	.at-nav a { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
	.at-header.nav-ouverte .at-nav { display: flex; }
	.at-header-actions { margin-left: 0; }
	.at-hero-visuel { width: 100%; opacity: .22; }
	.at-hero-contenu { max-width: 100%; }
}
@media (max-width: 560px) {
	.at-header-actions .at-btn-ghost { display: none; }
}
