/* ============================================================
   style.css — CSS global du site Peyrieux
   Contient : variables, reset, typographie, layout,
              composants partagés (boutons, badges, chips,
              lamp stage, nav, footer).
   Les styles spécifiques à chaque page sont dans leurs
   propres fichiers (home.css, collection.css, etc.).
   ============================================================ */


/* ============================================================
   Variables CSS
   ============================================================ */

:root {
  /* Texte */
  --ink:        #1a1a1a;
  --ink-soft:   #333333;
  --ink-mute:   #6b6b6b;
  --muted:      #8a8a8a;

  /* Fonds */
  --paper:      #ffffff;
  --paper-alt:  #fafafa;
  --paper-deep: #f3f1ec;

  /* Séparateurs */
  --rule:       #e7e5e0;
  --rule-soft:  #efedea;

  /* Accent — rouille, couleur signature de la boutique */
  --rust:       #a8421f;
  --rust-deep:  #7d2f15;
  --accent:     var(--rust);
  --accent-deep: var(--rust-deep);
  --logo-brown: #76451d;   /* couleur exacte du mark AP (fichier logo_mark.svg) */

  /* Scènes produits — fond coloré derrière les silhouettes SVG */
  --st-teal:     #1f4f56;
  --st-rust:     #a8421f;
  --st-ochre:    #c08a2a;
  --st-plum:     #4a2d4a;
  --st-sage:     #4f5e3a;
  --st-cobalt:   #1c2f5c;
  --st-terra:    #b6624a;
  --st-charcoal: #2a2e36;

  /* Typographie */
  --font-display: 'Tenor Sans', 'Optima', 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Tailles (responsive via clamp) */
  --fs-h1:      clamp(32px, 3.4vw, 48px);
  --fs-h2:      clamp(24px, 2.4vw, 34px);
  --fs-h3:      clamp(20px, 1.6vw, 24px);
  --fs-lede:    clamp(15px, 1.1vw, 17px);
  --fs-body:    15px;
  --fs-sm:      13px;
  --fs-xs:      12px;
  --fs-eyebrow: 11px;

  /* Layout */
  --container: 1280px;
  --gutter:    clamp(20px, 3vw, 40px);
  --section:   clamp(56px, 7vw, 96px);

  /* Motion */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:      220ms;
  --dur-slow: 480ms;
}


/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

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


/* ============================================================
   Utilitaires typographie
   ============================================================ */

/* Titres en Tenor Sans */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Étiquette en petites capitales espacées */
.t-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ============================================================
   Layout
   ============================================================ */

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

/* Séparateur horizontal */
.rule    { height: 1px; background: var(--rule); border: 0; margin: 0; }
/* Padding vertical standard pour les sections */
.section { padding-block: var(--section); }


/* ============================================================
   Boutons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

/* Flèche optionnelle à droite — se déplace au hover */
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Fond noir, texte blanc */
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* Contour seul → fond noir au hover */
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Sans bordure ni fond — juste le texte */
.btn-ghost { border-color: transparent; padding-inline: 0; }
.btn-ghost:hover { color: var(--accent-deep); }

/* Lien souligné (ex. "En savoir plus") */
.link-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-edit:hover { color: var(--accent-deep); border-color: var(--accent-deep); }


/* ============================================================
   Badges
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}

/* Fond blanc, bordure noire */
.badge-unique {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

/* Fond noir, texte blanc */
.badge-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}


/* ============================================================
   Chips (filtres catalogue)
   ============================================================ */

.chip {
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  display: inline-block;
}
.chip:hover { border-color: var(--ink); }
/* Chip actif — fond noir */
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Compteur optionnel à côté du label */
.chip .n { margin-left: 6px; opacity: 0.55; font-weight: 400; }


/* ============================================================
   Lamp stage — fond coloré avec silhouette SVG
   ============================================================ */

.lamp-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  /* La couleur est passée via style="background: var(--st-xxx)" */
  isolation: isolate;
}

/* Dégradé doux en haut de la scène (wash de lumière) */
.lamp-stage-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--stage-light, #ffffff) 28%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Conteneur du SVG — centré et cadré en bas */
.lamp-stage-lamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10% 10% 0;
  z-index: 2;
}
.lamp-stage-lamp svg {
  width: auto;
  max-width: 72%;
  height: 86%;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22));
}

/* Variante large (ex. hero) */
.lamp-stage.wide .lamp-stage-lamp svg { max-width: 88%; }
/* Variante détail produit (plus de marge haute) */
.lamp-stage.detail .lamp-stage-lamp { padding: 14% 14% 0; }
/* Variante compacte */
.lamp-stage.tight .lamp-stage-lamp svg { height: 76%; max-width: 56%; }

/* Ligne de sol — fondu sombre en bas */
.lamp-stage-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
  pointer-events: none;
  z-index: 1;
}

/* Badge en haut à gauche de la scène */
.lamp-stage-pin {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 4;
}
/* Badge sur fond coloré — semi-transparent blanc */
.lamp-stage-pin .badge {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}
.lamp-stage-pin .badge.badge-dark {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.4);
}


/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: clamp(20px, 4vw, 48px);
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-link:hover    { color: var(--accent-deep); }
.nav-link.is-active { color: var(--accent-deep); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
}
.nav-actions .sep { color: var(--rule); }

/* Logo — Mark AP + texte stacké */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
  line-height: 1;
}
.wordmark-mark {
  display: block;
  height: 38px;
  width: 44px;
  flex-shrink: 0;
  color: var(--logo-brown);
}
.wordmark-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
}
.wordmark-tagline {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logo-brown);
  margin-top: 3px;
  font-weight: 500;
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  padding-block: 56px 24px;
}
/* 4 colonnes : description large + 3 colonnes de liens */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer ul  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer li a { font-size: 13px; color: var(--ink-mute); transition: color var(--dur) var(--ease); }
.footer li a:hover { color: var(--ink); }
.footer p   { color: var(--ink-mute); font-size: 13px; line-height: 1.6; margin: 0 0 8px; }

/* Barre de bas de page — copyright */
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
  /* Liens de nav masqués — hamburger à implémenter si besoin */
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; height: 60px; }
  .wordmark-mark { height: 30px; width: 35px; }
  .wordmark-name { font-size: 10.5px; letter-spacing: 0.12em; }
  .wordmark-tagline { font-size: 8px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
