/* ============================================================
   DBCAS Hairstyles — fondations
   Palette derivee des numeros de couleur de meches utilises en salon :
   1B (off-black), 27 (honey blonde), 30 (auburn). Le vert vient du
   sweatshirt que porte Dorcas sur son portrait.
   ============================================================ */

/* Les @font-face vivent dans fonts.css, charge avant celui-ci.
   Les polices y sont integrees en base64 pour que le site s'affiche
   correctement meme ouvert par double-clic (voir l'en-tete de fonts.css). */

:root {
  /* Couleurs */
  --ink: #1a1714;          /* 1B */
  --ink-2: #4a423a;
  --ink-3: #7d7367;
  --honey: #b8823c;        /* 27 */
  --copper: #a24a26;       /* 30 */
  --forest: #244038;
  --forest-2: #16302a;
  --ivory: #f8f3ea;
  --sand: #efe6d8;
  --paper: #fffdf9;
  --line: rgba(26, 23, 20, 0.13);
  --line-strong: rgba(26, 23, 20, 0.28);

  /* Typographie */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --step-xl: clamp(2.9rem, 8.5vw, 6.4rem);
  --step-l: clamp(2.1rem, 4.6vw, 3.6rem);
  --step-m: clamp(1.5rem, 2.8vw, 2.2rem);
  --step-s: clamp(1.15rem, 1.7vw, 1.4rem);

  /* Rythme */
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --shell: 1240px;
  --pad-x: clamp(1.15rem, 4vw, 3.5rem);

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */

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

/* Toute regle `display` (grid, flex…) ecrase le display:none implicite de
   [hidden]. Sans ceci, un champ masque par JS reste visible a l'ecran. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  font-variation-settings: 'opsz' 100, 'SOFT' 30;
}

h1 { font-size: var(--step-xl); }
h2 { font-size: var(--step-l); }
h3 { font-size: var(--step-m); }

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

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-color: var(--copper); }

/* Sur-titre : sert a nommer la section, jamais a decorer */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1.1rem;
  display: block;
}

.lede {
  font-size: var(--step-s);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

.muted { color: var(--ink-3); }

.serif-num {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Accessibilite ---------- */

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--paper);
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

@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;
  }
}
