/* =========================================================================
   theme.css — Fondations : jetons de design, reset, typographie, primitives.
   Palette stricte : blanc casse / noir profond / orange signature.
   ========================================================================= */

:root {
  /* --- Couleurs ------------------------------------------------------- */
  --white: #ffffff;
  --paper: #f9f9f9;          /* fond general */
  --paper-2: #f2f0ec;        /* aplats secondaires */
  --ink: #111111;            /* texte principal */
  --ink-70: rgba(17, 17, 17, 0.7);
  --ink-50: rgba(17, 17, 17, 0.5);
  --ink-30: rgba(17, 17, 17, 0.3);
  --ink-12: rgba(17, 17, 17, 0.12);
  --ink-06: rgba(17, 17, 17, 0.06);
  --accent: #ff6600;         /* orange signature */
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 102, 0, 0.1);
  --accent-deep: #e25400;
  --success: #0f7a4a;
  --danger: #c0392b;

  /* --- Rythme ---------------------------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --line: 1px solid var(--ink-12);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow: 0 8px 30px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 24px 70px rgba(17, 17, 17, 0.14);

  /* --- Mouvement (doux, jamais spectaculaire) --------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms var(--ease);
  --slow: 420ms var(--ease);

  --header-h: 64px;
  --banner-h: 34px;
  --max: 1320px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

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

/* Une regle d'auteur `display: grid|flex` l'emporte sur le `[hidden]` du
   navigateur : sans ce garde-fou, un element masque en JS resterait visible. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
}
p { margin: 0; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* --------------------------- Echelle typographique ---------------------- */

.display  { font-size: clamp(34px, 6.2vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
.title-1  { font-size: clamp(24px, 3.4vw, 38px); }
.title-2  { font-size: clamp(19px, 2.2vw, 24px); }
.body-lg  { font-size: 16.5px; line-height: 1.65; color: var(--ink-70); }
.muted    { color: var(--ink-50); }

/* Micro-label en capitales espacees : signature « quiet luxury ». */
.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow--accent { color: var(--accent); }

/* -------------------------------- Layout -------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
/* Icone posee directement dans une rangee : sans dimension propre, un SVG
   s'etirerait a toute la largeur disponible. On la contraint ici, une fois. */
.row > svg {
  flex: 0 0 17px;
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
}
.hairline { height: 1px; background: var(--ink-12); border: 0; margin: 0; }

/* -------------------------------- Boutons -------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: 0 var(--sp-5);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--fast), background var(--fast), opacity var(--fast), box-shadow var(--fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: var(--accent-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--quiet { --btn-bg: var(--white); --btn-fg: var(--ink); border: var(--line); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 var(--sp-4); font-size: 13px; }

/* --------------------------------- Champs -------------------------------- */

.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-70);
}
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-30); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink-06);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 5px; font-size: 12px; color: var(--danger); min-height: 1em; }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--accent { background: var(--accent); }
.badge--soft { background: var(--paper-2); color: var(--ink-70); }
.badge--out { background: var(--ink-12); color: var(--ink-50); }

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

.skeleton {
  background: linear-gradient(90deg, var(--ink-06) 25%, rgba(17,17,17,0.03) 37%, var(--ink-06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Apparition progressive au defilement (IntersectionObserver). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow), transform var(--slow); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
