/* ==========================================================================
   Orbite : styles de base.
   Règle : aucune couleur, police ou arrondi écrit en dur ici.
   Tout passe par les variables générées depuis identite.json
   (--couleur-*, --role-*, --police-*, --arrondi-*).
   Écrit « mobile d'abord » : les règles de base visent le téléphone,
   les @media (min-width: …) ajoutent ce qui change sur grand écran.
   ========================================================================== */

/* ---------- Remise à zéro légère ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--role-fond, #120812);
	color: var(--role-texte, #F2E6E1);
	font-family: var(--police-texte, system-ui, sans-serif);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--role-accent-2); }

:focus-visible {
	outline: 2px solid var(--role-accent-2);
	outline-offset: 3px;
}

/* ---------- Mise en page ---------- */
.conteneur {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 16px;
}

.contenu { flex: 1; }

.section { padding-block: 48px; }

/* ---------- Typographie ---------- */
.titre,
h1, h2, h3 {
	font-family: var(--police-titres);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.02;
	letter-spacing: .01em;
	margin: 0 0 .5em;
}

h1, .titre { font-size: clamp(2.4rem, 11vw, 5rem); }
h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

.surtitre {
	font-family: var(--police-titres);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .85rem;
	color: var(--role-accent);
	margin: 0 0 .75em;
}

.voix {
	font-family: var(--police-voix);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.25rem, 5vw, 1.75rem);
	color: var(--couleur-rose-poudre, var(--role-texte));
	margin: 0 0 1em;
}

p { margin: 0 0 1em; }

.texte-secondaire { color: var(--role-texte-secondaire); }

/* ---------- Cartes ---------- */
.carte {
	background: var(--role-fond-carte);
	border: 1px solid color-mix(in srgb, var(--role-texte) 13%, transparent);
	border-radius: var(--arrondi-grand);
	padding: 24px 20px;
}

/* ---------- Boutons ---------- */
.groupe-boutons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px; /* taille de doigt confortable sur téléphone */
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--arrondi-pilule);
	background: var(--role-bouton-fond);
	color: var(--role-bouton-texte);
	font-family: var(--police-texte);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); opacity: .85; }

.bouton[disabled],
.bouton[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.bouton--secondaire {
	background: transparent;
	color: var(--role-texte);
	border-color: color-mix(in srgb, var(--role-texte) 35%, transparent);
}

/* ---------- En-tête et pied de page ---------- */
.entete { padding-block: 16px; }

.entete__ligne { display: flex; align-items: center; justify-content: space-between; }

.entete__logo { color: var(--role-texte); text-decoration: none; }

.logo--texte {
	font-family: var(--police-titres);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 1.25rem;
}

.logo { max-height: 40px; width: auto; }

.pied {
	padding-block: 24px;
	color: var(--role-texte-secondaire);
	font-size: .875rem;
}

.pied__mentions { margin: 0; }

/* ---------- Accessibilité ---------- */
.lien-evitement {
	position: absolute;
	left: -9999px;
	top: 0;
}

.lien-evitement:focus {
	left: 16px;
	top: 16px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--role-texte);
	color: var(--role-fond);
	border-radius: var(--arrondi-petit);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
	.section { padding-block: 80px; }
	.carte { padding: 40px; }
	.groupe-boutons { flex-direction: row; flex-wrap: wrap; }
}
