/* ============================================================
   AutoCentro — Édition luxe automobile, fond clair, accents noir/rouge.
   Inspiration : MJ Paris Rolls Royce, Avis Prestige, Hertz Dream Collection.
   ============================================================ */

:root {
	/* === Palette === */
	--c-bg:        #FFFFFF;        /* fond principal blanc */
	--c-bg-2:      #F7F5F2;        /* alt sections, ivoire chaud */
	--c-bg-3:      #EFEBE5;        /* hover/séparateurs */
	--c-paper:     #FFFFFF;

	--c-ink:       #0A0A0A;        /* noir profond */
	--c-ink-2:     #1F1F1F;
	--c-ink-3:     #404040;
	--c-mute:      #6B6B6B;
	--c-mute-2:    #9A9A9A;

	--c-line:      #E8E4DE;
	--c-line-2:    #D4CFC6;

	--c-red:       #E30613;        /* rouge carte de visite — accent principal */
	--c-red-2:     #B0050F;
	--c-red-soft:  rgba(227, 6, 19, 0.08);

	/* Anciennement "gold" — désormais aligné sur le rouge pour cohérence du theme. */
	--c-gold:      var(--c-red);
	--c-gold-soft: var(--c-red-soft);

	--c-ok:        #15803D;

	/* Aliases (compat) */
	--c-bg-alt:       var(--c-bg-2);
	--c-bg-dim:       var(--c-bg-3);
	--c-ink-soft:     var(--c-ink-2);
	--c-ink-mute:     var(--c-mute);
	--c-line-soft:    var(--c-line);
	--c-line-strong:  var(--c-line-2);
	--c-primary:      var(--c-red);
	--c-primary-dark: var(--c-red-2);
	--c-primary-light: #FF1A2D;
	--c-black:        var(--c-ink);
	--c-night:        var(--c-ink);
	--c-text:         var(--c-ink-2);
	--c-text-soft:    var(--c-ink-3);
	--c-text-muted:   var(--c-mute);
	--c-border:       var(--c-line);
	--c-border-strong: var(--c-line-2);
	--c-bg-soft:      var(--c-bg-2);
	--c-bg-mute:      var(--c-bg-3);
	--c-bg-dark:      var(--c-ink);
	--c-success:      var(--c-ok);
	--c-warning:      #D97706;
	--c-danger:       #DC2626;
	--c-info:         #2563EB;
	--c-terracotta:      var(--c-red);
	--c-terracotta-dark: var(--c-red-2);
	--c-terracotta-soft: var(--c-red-soft);
	--c-terracotta-glow: rgba(227, 6, 19, 0.18);
	--c-cream:           var(--c-bg);
	--c-cream-warm:      var(--c-bg-2);
	--c-cream-deep:      var(--c-bg-3);
	--c-ink-line:        var(--c-line);
	--c-ink-line-soft:   var(--c-line);
	--c-ocre:            var(--c-gold);
	--c-ocre-dark:       #9A7A37;
	--c-ocre-soft:       var(--c-gold-soft);
	--c-riad:            var(--c-ok);
	--c-riad-dark:       #15803D;
	--c-riad-soft:       #DCFCE7;

	/* === Typo === */
	--ff-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
	--ff-body:    'Inter', system-ui, -apple-system, sans-serif;
	--ff-accent:  'Inter', sans-serif;
	--ff-heading: var(--ff-display);
	--ff:         var(--ff-body);

	--fs-xs:   0.75rem;
	--fs-sm:   0.8125rem;
	--fs-base: 1rem;
	--fs-md:   1.125rem;
	--fs-lg:   1.25rem;
	--fs-xl:   1.5rem;
	--fs-2xl:  2rem;
	--fs-3xl:  2.75rem;
	--fs-4xl:  3.5rem;
	--fs-5xl:  4.75rem;
	--fs-6xl:  6.5rem;
	--fs-7xl:  8.5rem;

	/* === Layout === */
	--container:        1320px;
	--container-wide:   1480px;
	--container-narrow: 920px;

	--space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
	--space-5: 1.5rem;  --space-6: 2rem;   --space-7: 2.5rem;  --space-8: 3rem;
	--space-10: 4rem;   --space-12: 5rem;  --space-14: 6rem;
	--space-16: 8rem;   --space-20: 10rem;

	/* === UI === */
	--radius-sm: 2px;
	--radius-md: 4px;
	--radius-lg: 8px;
	--radius-xl: 14px;
	--radius-pill: 999px;

	--shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
	--shadow-sm: 0 4px 12px rgba(10, 10, 10, 0.06);
	--shadow-md: 0 14px 36px rgba(10, 10, 10, 0.08);
	--shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.14);

	--ease:     cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--t-fast:   0.2s var(--ease);
	--t-base:   0.4s var(--ease);
	--t-slow:   0.7s var(--ease-out);

	--header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--space-7) 0; }
::selection { background: var(--c-ink); color: #fff; }

/* Body */
body {
	font-family: var(--ff-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-ink-2);
	background: var(--c-bg);
}

/* Headings — Cormorant serif élégant */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-display);
	font-weight: 500;
	color: var(--c-ink);
	line-height: 1.05;
	letter-spacing: -0.005em;
}
h1 {
	font-size: clamp(2.75rem, 8vw, var(--fs-6xl));
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 0.98;
}
h2 {
	font-size: clamp(2rem, 5vw, var(--fs-4xl));
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.05;
}
h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.005em; }
h4 { font-size: var(--fs-lg); font-weight: 500; }

em.serif, .serif-italic, h1 em, h2 em, h3 em {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 400;
	color: inherit; /* H2 noir sur fond clair / blanc sur fond sombre — pas d'accent rouge */
}

a { color: var(--c-ink); transition: color var(--t-fast); }
a:hover { color: var(--c-red); }

p + p { margin-top: var(--space-4); }

/* Eyebrow — sobre, gold accent */
.eyebrow,
.section-head__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--ff-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--c-gold);
	margin-bottom: var(--space-5);
}
.eyebrow::before,
.section-head__eyebrow::before {
	content: "";
	width: 30px;
	height: 1px;
	background: var(--c-gold);
}

/* Accessibilité */
.skip-link {
	position: absolute;
	top: -100px; left: 0;
	background: var(--c-ink);
	color: #fff;
	padding: 0.75rem 1rem;
	z-index: 9999;
}
.skip-link:focus { top: 0; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
}

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

/* Prose */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { margin-top: var(--space-10); margin-bottom: var(--space-5); }
.prose h3 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose p, .prose ul, .prose ol { margin-block: var(--space-4); font-size: 1.0625rem; line-height: 1.7; color: var(--c-ink-3); }
.prose ul, .prose ol { padding-left: 1.5rem; list-style: revert; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--c-red); }
.prose img { border-radius: var(--radius-md); margin-block: var(--space-7); }
.prose blockquote {
	border-left: 2px solid var(--c-gold);
	padding: var(--space-3) var(--space-6);
	font-family: var(--ff-display);
	font-size: 1.5rem;
	font-style: italic;
	color: var(--c-ink);
	margin-block: var(--space-8);
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.4;
}

/* Reveal au scroll */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Lien arrow */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ff-body);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-ink);
	padding-bottom: 4px;
	border-bottom: 1px solid var(--c-ink);
	transition: gap var(--t-base), color var(--t-base), border-color var(--t-base);
}
.link-arrow::after {
	content: "→";
	transition: transform var(--t-base);
	display: inline-block;
}
.link-arrow:hover {
	color: var(--c-red);
	border-color: var(--c-red);
	gap: 14px;
}
.link-arrow:hover::after { transform: translateX(2px); }

/* Bandeau de séparation gold */
.divider-gold {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-block: var(--space-7);
}
.divider-gold::before, .divider-gold::after {
	content: "";
	flex: 1;
	max-width: 80px;
	height: 1px;
	background: var(--c-gold);
}
.divider-gold span {
	font-family: var(--ff-display);
	font-style: italic;
	color: var(--c-gold);
	font-size: 1rem;
}
