/* Design tokens — extraits du fichier Figma Auchan CI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ─── Couleurs ─────────────────────────────────────────── */
  --color-primary:       #e0001a; /* Rouge Auchan */
  --color-primary-dark:  #b80015;
  --color-accent-green:  #00a850;
  --color-accent-magenta:#c2006e;
  --color-accent-orange: #f37021;
  --color-accent-blue:   #0057a8;

  --color-bg:            #f7f7fa; /* Fond de page neutre et propre */
  --color-surface:       #ffffff;
  --color-card:          #ffffff;
  --color-footer-dark:   #111217;
  --color-footer-black:  #090a0d;

  --color-border:        #e5e7eb;
  --color-text:          #0f172a; /* Slate 900 */
  --color-text-body:     #334155; /* Slate 700 — WCAG AA on white */
  --color-text-muted:    #475569; /* Slate 600 — stronger contrast than 500 */

  /* ─── Typographie ──────────────────────────────────────── */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extrabold: 800;

  /* ─── Border radius ─────────────────────────────────────── */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* ─── Ombres ────────────────────────────────────────────── */
  --shadow-sm:  0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.03), 0 8px 10px -6px rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.02);

  /* ─── Espacements ───────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ─── Conteneur ─────────────────────────────────────────── */
  --container-max: 1240px;
  --container-pad: var(--space-6);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Utilitaires globaux ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-family: var(--font-title);
  font-size: var(--text-sm);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(224, 0, 26, 0.2);
}
.btn-primary:active {
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(224, 0, 26, 0.12);
}

/* Premium Badge */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(224, 0, 26, 0.06);
  color: var(--color-primary);
  border: 1px solid rgba(224, 0, 26, 0.12);
}

/* Premium Section Headers */
.section-header-wrap {
  margin-bottom: var(--space-10);
  max-width: 700px;
}
.section-eyebrow {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.section-title {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-body);
  margin-top: var(--space-2);
  line-height: 1.6;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
  :root {
    --container-pad: var(--space-8);
  }
}

/* ─── Premium Cards ────────────────────────────────────── */
.premium-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.premium-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Type badge — muted surface + small accent dot */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}
.type-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-accent, var(--color-primary));
  flex-shrink: 0;
}

/* ─── Unified Page Hero Banner ─────────────────────────── */
.page-hero-banner {
  color: #fff;
  padding: var(--space-16) 0 var(--space-20);
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.page-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(224, 0, 26, 0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}
.page-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}
.page-hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 40rem;
}
.page-hero-banner-label {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.page-hero-banner-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.page-hero-banner-sub {
  font-size: var(--text-lg);
  max-width: 36rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Form Styling */
.premium-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.premium-form-group label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.premium-form-group input,
.premium-form-group select,
.premium-form-group textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-family: inherit;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.premium-form-group input:focus,
.premium-form-group select:focus,
.premium-form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 0, 26, 0.12);
}
