/**
 * AKOA — Global CSS
 * Design System V4.1 — source de vérité : DS_AKOA_DESIGN_SYSTEM.html
 * Breakpoints : 960px / 680px / 480px
 */

/* ── TOKENS DS V4.1 ─────────────────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --navy:       #08152A;
  --or:         #C4A76B;
  --or-dark:    #A8885A;
  --ivoire:     #F5F3EF;
  --white:      #FFFFFF;
  --anthracite: #2D2D2D;
  --gris-clair: #E8E6E1;
  --gris-texte: #5A5A5A;
  --succes:     #2D7D46;
  --erreur:     #C0392B;

  /* Typographie */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Échelle typo */
  --t-xs:   0.75rem;   /* 12px */
  --t-sm:   0.875rem;  /* 14px */
  --t-base: 1rem;      /* 16px */
  --t-md:   1.125rem;  /* 18px */
  --t-lg:   1.25rem;   /* 20px */
  --t-xl:   1.5rem;    /* 24px */
  --t-2xl:  1.875rem;  /* 30px */
  --t-3xl:  2.25rem;   /* 36px */
  --t-4xl:  3rem;      /* 48px */
  --t-5xl:  3.75rem;   /* 60px */

  /* Layout */
  --mw:         1240px;
  --mw-text:    760px;
  --px:         clamp(1rem, 4vw, 2rem);   /* padding horizontal global */
  --section-py: clamp(3rem, 6vw, 5rem);   /* padding vertical sections */

  /* Espacements */
  --gap-xs:  0.25rem;
  --gap-sm:  0.5rem;
  --gap-md:  1rem;
  --gap-lg:  1.5rem;
  --gap-xl:  2rem;
  --gap-2xl: 3rem;
  --gap-3xl: 4rem;

  /* Rayons */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(8,21,42,0.08);
  --shadow-md: 0 4px 16px rgba(8,21,42,0.12);
  --shadow-lg: 0 8px 32px rgba(8,21,42,0.16);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;
}

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

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

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHIE ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl)); }
h2 { font-size: clamp(var(--t-2xl), 3.5vw, var(--t-4xl)); }
h3 { font-size: clamp(var(--t-xl), 2.5vw, var(--t-3xl)); }
h4 { font-size: var(--t-xl); }
h5, h6 {
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 600;
}

p {
  font-size: var(--t-base);
  line-height: 1.7;
  margin-bottom: var(--gap-md);
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--or);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--or-dark); }

strong { font-weight: 700; }
em { font-style: italic; }

/* ── UTILITAIRES ────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: var(--px);
}

.container--text {
  max-width: var(--mw-text);
}

/* ── BOUTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--or);
  color: var(--navy);
  border-color: var(--or);
}

.btn--primary:hover {
  background-color: var(--or-dark);
  border-color: var(--or-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--or);
  border-color: var(--or);
}

.btn--outline:hover {
  background-color: var(--or);
  color: var(--navy);
}

.btn--ghost {
  background-color: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--or);
}

.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: var(--t-md);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--t-sm);
}

/* ── SECTIONS ───────────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
}

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--ivoire {
  background-color: var(--ivoire);
}

.section--anthracite {
  background-color: var(--anthracite);
  color: var(--white);
}

/* ── IMAGES ─────────────────────────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── FORMULAIRES ────────────────────────────────────────────────────────────── */
input, select, textarea {
  font-family: var(--sans);
  font-size: var(--t-base);
}

/* ── ACCESSIBILITÉ ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

/* Lien skip navigation */
.skip-link {
  position: absolute;
  top: -999px;
  left: var(--gap-md);
  z-index: 9999;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--or);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.skip-link:focus {
  top: 0;
}

/* Skip target — ancre de réception du skip link (PATCH 073 · ANO-09a) */
.skip-target {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────────────────── */
.breadcrumb {
  padding-block: var(--gap-md);
  font-size: var(--t-sm);
  color: var(--gris-texte);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-xs);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: var(--px);
}

.breadcrumb li::after {
  content: '›';
  margin-inline-start: var(--gap-xs);
  color: var(--gris-clair);
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
  color: var(--gris-texte);
}

.breadcrumb a:hover {
  color: var(--or);
}

/* ── BADGES / TAGS ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 0.25rem 0.75rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

.badge--or {
  background-color: rgba(196, 167, 107, 0.15);
  color: var(--or-dark);
  border: 1px solid rgba(196, 167, 107, 0.4);
}

.badge--navy {
  background-color: var(--navy);
  color: var(--white);
}
