/* ==========================================================================
   ROLCE — Design tokens & base
   Palette issue du logo ROLCE MCW : marine profond, bleu roi, cyan, violet.
   Typo : Cormorant Garamond (titres, serif) + Jost (corps, sans-serif).
   Les fichiers .woff2 sont auto-hébergés dans assets/fonts/ (RGPD : pas de
   requête vers les serveurs Google depuis le navigateur du visiteur).

   Toutes les couleurs du site descendent de ce bloc. Pour changer la charte,
   il n'y a que ces lignes à modifier : rien n'est écrit en dur ailleurs.
   ========================================================================== */

:root {
	/* --- Palette du logo ------------------------------------------------ */
	--rolce-marine: #0a2540;   /* titres, texte principal, aplats sombres */
	--rolce-roi: #2e5cb8;      /* boutons, liens */
	--rolce-cyan: #1ba1e8;     /* accents, survols */
	--rolce-violet: #7b4fb5;   /* accents secondaires, mises en garde */
	--rolce-ardoise: #1d3a6e;  /* texte secondaire */

	/* Variantes dérivées, jamais des couleurs nouvelles. */
	--rolce-marine-doux: #123253;
	--rolce-roi-fonce: #24488f;
	--rolce-ardoise-tenue: #6b84ad;

	/* --- Fonds ---------------------------------------------------------- */
	--rolce-blanc: #ffffff;
	--rolce-fond: #f8fafc;      /* fond principal, blanc très légèrement bleuté */
	--rolce-fond-alt: #edf2f9;  /* sections alternées */
	--rolce-brume: #dce5f2;     /* aplats en attente d'image */

	/* --- Rôles ---------------------------------------------------------- */
	--rolce-texte: var(--rolce-marine);
	--rolce-texte-doux: var(--rolce-ardoise);
	--rolce-bordure: rgba(10, 37, 64, 0.12);
	--rolce-bordure-douce: rgba(10, 37, 64, 0.08);
	--rolce-ombre: rgba(10, 37, 64, 0.12);

	/* --rolce-ardoise-tenue n'atteint que 3,6:1 sur fond clair : réservée aux
	   filets et aux aplats, jamais au texte courant. */

	/* Rouge fonctionnel : signale une erreur, ne fait pas partie de la charte. */
	--rolce-erreur: #b3261e;

	/* Typographie */
	--rolce-font-titre: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--rolce-font-corps: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	/* Échelle typographique fluide (mobile-first) */
	--rolce-t-hero: clamp(2.5rem, 8vw, 5.5rem);
	--rolce-t-h1: clamp(2rem, 5.5vw, 3.75rem);
	--rolce-t-h2: clamp(1.6rem, 4vw, 2.75rem);
	--rolce-t-h3: clamp(1.25rem, 2.6vw, 1.75rem);
	--rolce-t-corps: clamp(1rem, 1.1vw, 1.0625rem);
	--rolce-t-petit: 0.875rem;
	--rolce-t-eyebrow: 0.75rem;

	/* Rythme vertical & espacement */
	--rolce-esp-xs: 0.5rem;
	--rolce-esp-s: 1rem;
	--rolce-esp-m: 2rem;
	--rolce-esp-l: clamp(3rem, 6vw, 5rem);
	--rolce-esp-xl: clamp(4.5rem, 10vw, 9rem);

	/* Mise en page */
	--rolce-largeur-max: 1440px;
	--rolce-largeur-texte: 62ch;
	--rolce-gouttiere: clamp(1.25rem, 4vw, 3.5rem);

	/* Mouvement — discret */
	--rolce-transition: 480ms cubic-bezier(0.22, 1, 0.36, 1);
	--rolce-transition-rapide: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Auto-hébergement des polices ------------------------------------- */
/* Les .woff2 seront déposés dans assets/fonts/ à l'étape 3.
   En leur absence, les repli système ci-dessus s'appliquent sans casser la page. */

/* --- Reset ciblé ------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--rolce-fond);
	color: var(--rolce-marine);
	font-family: var(--rolce-font-corps);
	font-size: var(--rolce-t-corps);
	font-weight: 300;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
	font-family: var(--rolce-font-titre);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 var(--rolce-esp-s);
}

h1 { font-size: var(--rolce-t-h1); }
h2 { font-size: var(--rolce-t-h2); }
h3 { font-size: var(--rolce-t-h3); }

p { margin: 0 0 var(--rolce-esp-s); }

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

/* --- Utilitaires ------------------------------------------------------- */

.rolce-conteneur {
	width: 100%;
	max-width: var(--rolce-largeur-max);
	margin-inline: auto;
	padding-inline: var(--rolce-gouttiere);
}

.rolce-eyebrow {
	font-size: var(--rolce-t-eyebrow);
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rolce-roi);
	margin: 0 0 var(--rolce-esp-s);
}

.rolce-lien-souligne {
	display: inline-block;
	font-size: var(--rolce-t-petit);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	transition: opacity var(--rolce-transition-rapide);
}

.rolce-lien-souligne:hover {
	opacity: 0.6;
}

/* Accessibilité : lien d'évitement + texte réservé aux lecteurs d'écran */
.rolce-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rolce-skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1.25rem;
	background: var(--rolce-marine);
	color: var(--rolce-fond-alt);
}

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

/* --- Respect des préférences de mouvement ------------------------------ */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
