/* ============================================================
   LEGEND 66 — Légende du Rock Maillot
   Feuille de style principale
   ------------------------------------------------------------
   Sommaire :
     1.  Variables & réglages globaux
     2.  Typographie & utilitaires
     3.  Boutons
     4.  Section Héros
     5.  Section Histoire
     6.  Section Spécifications
     7.  Section Drop (un par mois)
     8.  Section Mythe / IYKYK
     9.  Section Commande + Liste d'attente
     10. Footer
     11. Animations (apparition au scroll)
     12. Responsive (mobile / tablette)
   ============================================================ */

/* ---------- 1. VARIABLES & RÉGLAGES GLOBAUX ---------- */
:root {
  --noir: #0e0e0e;
  --charbon: #1c1c1c;
  --charbon-lave: #2a2a2a;
  --laiton: #c4a77d;
  --laiton-clair: #e3c89b;
  --cuir: #8b5a2b;
  --argent: #c9c9ce;
  --cyan: #1fb6c9;            /* l'accent "secret" IYKYK */
  --texte: #dcd6cc;
  --texte-doux: #9a948a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Conteneur centré réutilisable */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Grain vintage léger sur toute la page (décoratif, peu coûteux) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. TYPOGRAPHIE & UTILITAIRES ---------- */
.overline {
  font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  font-size: .72rem; color: var(--laiton);
}
h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; color: #f3ede2;
}
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: #f0e9dd; margin-bottom: .4rem; }
p { color: var(--texte-doux); font-size: 1.02rem; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--laiton); color: #1a1407; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Masqué visuellement mais lu par les lecteurs d'écran */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  font-family: var(--sans); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .82rem;
  color: #1a1407; cursor: pointer; border: none;
  padding: 18px 38px; border-radius: 3px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e3c89b 0%, #c4a77d 45%, #9c8154 100%);
  box-shadow: 0 10px 30px rgba(196,167,125,.25), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(196,167,125,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-block { width: 100%; margin-top: 8px; }

/* Reflet laiton qui balaye le bouton */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}

/* Variante "fantôme" (contour) */
.btn-ghost {
  background: transparent; color: var(--laiton);
  border: 1px solid var(--laiton); box-shadow: none;
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: rgba(196,167,125,.08); color: var(--laiton-clair); transform: translateY(-2px); }

/* ---------- 4. SECTION HÉROS ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.05); transition: transform 8s ease; filter: saturate(.95) contrast(1.03);
}
.hero:hover .hero-bg img { transform: scale(1.12); }

/* Dégradé sombre par-dessus l'image pour rendre le texte lisible */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.15) 100%),
    linear-gradient(0deg, rgba(10,10,10,.85) 0%, transparent 40%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-inner .overline { opacity: 0; animation: rise .9s .2s forwards; }
.hero h1 {
  font-family: var(--serif); font-weight: 900; color: #f6f0e4;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; margin: .5rem 0 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.6); max-width: 14ch;
  opacity: 0; animation: rise .9s .35s forwards;
}
.hero h1 em { font-style: italic; color: var(--laiton); }
.hero-sub { max-width: 42ch; color: #cfc7b8; font-size: 1.05rem; margin-bottom: 2rem; opacity: 0; animation: rise .9s .5s forwards; }
.hero-cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; opacity: 0; animation: rise .9s .65s forwards; }
.hero-price { font-family: var(--serif); font-size: 1.5rem; color: #f3ede2; }
.hero-price span { font-size: .8rem; color: var(--texte-doux); font-family: var(--sans); letter-spacing: .1em; }

.hero-badge {
  position: absolute; top: 34px; right: 34px; z-index: 2;
  width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--laiton); color: var(--laiton);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: rgba(14,14,14,.55); backdrop-filter: blur(3px);
  font-size: .55rem; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase;
}
.hero-badge b { font-family: var(--serif); font-size: .82rem; letter-spacing: .02em; color: var(--laiton-clair); }

/* ---------- 5. SECTION HISTOIRE ---------- */
.histoire {
  padding: 120px 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(139,90,43,.10), transparent 55%), var(--noir);
}
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.histoire h2 { margin: .6rem 0 1.6rem; }
.histoire .lead { color: var(--texte); font-size: 1.12rem; margin-bottom: 1.4rem; }
.histoire .blocks { margin-top: 2rem; display: grid; gap: 1.4rem; }
.block { border-left: 2px solid var(--laiton); padding-left: 1.2rem; }

.visual-card {
  position: relative; border: 1px solid rgba(196,167,125,.25); border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, #222, #121212); padding: 48px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.visual-card img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); transition: transform .6s ease; }
.visual-card:hover img { transform: scale(1.06) rotate(-1deg); }
.visual-card .corner { position: absolute; bottom: 18px; left: 18px; font-size: .62rem; letter-spacing: .3em; color: var(--texte-doux); text-transform: uppercase; }

/* ---------- 6. SECTION SPÉCIFICATIONS ---------- */
.specs { padding: 110px 0; background: var(--charbon); }
.specs-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.specs-head h2 { margin-top: .6rem; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec {
  background: linear-gradient(160deg, #242424, #171717);
  border: 1px solid rgba(255,255,255,.05); border-radius: 6px; padding: 34px 26px;
  transition: border-color .3s ease, transform .3s ease;
}
.spec:hover { border-color: rgba(196,167,125,.5); transform: translateY(-6px); }
.spec .ico { width: 46px; height: 46px; color: var(--laiton); margin-bottom: 20px; transition: transform .5s ease; }
.spec:hover .ico { transform: rotate(-8deg) scale(1.1); }
.spec h3 { font-size: 1.05rem; }
.spec p { font-size: .92rem; }
.spec .tag { display: block; margin-top: 14px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); }

.specsheet { margin-top: 64px; border: 1px solid rgba(196,167,125,.2); border-radius: 6px; overflow: hidden; }
.specsheet img { width: 100%; }

/* ---------- 7. SECTION DROP (un par mois) ---------- */
.drop {
  padding: 120px 0; text-align: center;
  background: radial-gradient(70% 60% at 50% 0%, rgba(196,167,125,.08), transparent), var(--noir);
}
.drop h2 { margin: .6rem auto 1.4rem; }
.drop-intro { max-width: 60ch; margin: 0 auto 3.5rem; color: var(--texte); font-size: 1.08rem; }
.drop-intro strong { color: var(--laiton-clair); font-weight: 500; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.step {
  position: relative; padding: 36px 28px;
  border: 1px solid rgba(255,255,255,.06); border-radius: 6px;
  background: linear-gradient(160deg, #1d1d1d, #141414);
}
.step-num { font-family: var(--serif); font-size: 2.4rem; color: var(--laiton); opacity: .55; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .95rem; }

/* ---------- 8. SECTION MYTHE / IYKYK ---------- */
.mythe {
  padding: 140px 0; text-align: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(31,182,201,.06), transparent), var(--noir);
}
.mythe .overline { color: var(--cyan); }
.mythe blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.25; color: #f1ebdf;
  max-width: 18ch; margin: 1.4rem auto;
}
.mythe .small { max-width: 46ch; margin: 0 auto; color: var(--texte-doux); }
.iykyk {
  margin-top: 48px; display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(31,182,201,.4); border-radius: 40px; padding: 10px 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }

/* ---------- 9. SECTION COMMANDE + LISTE D'ATTENTE ---------- */
.order { padding: 120px 0; background: linear-gradient(180deg, var(--charbon), var(--noir)); }
.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }

.order-visual { position: relative; border: 1px solid rgba(196,167,125,.25); border-radius: 8px; overflow: hidden; margin: 0; }
.order-visual img { width: 100%; height: 560px; object-fit: cover; object-position: center; transition: transform .8s ease; }
.order-visual:hover img { transform: scale(1.05); }
.order-visual .ribbon {
  position: absolute; top: 18px; left: 18px; background: rgba(14,14,14,.8); border: 1px solid var(--laiton);
  color: var(--laiton); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; padding: 7px 14px; border-radius: 3px;
}
.order h2 { margin: .6rem 0 1rem; }

/* Formulaire d'achat */
.form { display: grid; gap: 18px; margin-top: 28px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texte-doux); display: block; margin-bottom: 8px; }
input, select {
  width: 100%; background: #161616; border: 1px solid rgba(255,255,255,.1); color: var(--texte);
  padding: 14px 16px; border-radius: 4px; font-family: var(--sans); font-size: .95rem; transition: border-color .25s;
}
input:focus, select:focus { outline: none; border-color: var(--laiton); }

.reassure { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-size: .78rem; color: var(--texte-doux); }
.reassure li { display: flex; align-items: center; gap: .5rem; }
.reassure svg { width: 16px; height: 16px; color: var(--laiton); }

/* Bloc liste d'attente */
.waitlist {
  margin-top: 72px; padding: 40px; border-radius: 8px;
  border: 1px solid rgba(31,182,201,.25);
  background: radial-gradient(80% 120% at 0% 0%, rgba(31,182,201,.08), transparent), #141414;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.waitlist-text h3 { color: #eef4f5; }
.waitlist-form { display: flex; gap: 12px; }
.waitlist-form input { flex: 1; }
.waitlist-status { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--cyan); min-height: 1.2em; }

/* ---------- 9b. SECTION ÉQUIPE ---------- */
.team { padding: 120px 0; background: var(--charbon); }
.team-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.team-head h2 { margin-top: .6rem; }
.team-intro { color: var(--texte); }
.team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team-photo { margin: 0; position: relative; border: 1px solid rgba(196,167,125,.25); border-radius: 8px; overflow: hidden; }
.team-photo img { width: 100%; height: auto; display: block; object-fit: cover; filter: contrast(1.05); }
.team-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton);
  background: linear-gradient(0deg, rgba(10,10,10,.85), transparent);
}
.team-bios { display: grid; gap: 28px; }
.bio { border-left: 2px solid var(--laiton); padding-left: 1.4rem; }
.bio h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.member-role { color: var(--laiton); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.bio p { font-size: .96rem; }

/* ---------- 10. FOOTER ---------- */
footer { padding: 50px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.06); background: var(--noir); }
footer img { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .8; border-radius: 4px; }
footer p { font-size: .78rem; color: var(--texte-doux); letter-spacing: .05em; }
footer .legal { font-size: .68rem; margin-top: 10px; opacity: .6; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- 11. ANIMATIONS ---------- */
@keyframes shine { 0%, 60% { left: -120%; } 80%, 100% { left: 140%; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/*
   Apparition au scroll :
   les éléments .reveal ne sont masqués QUE si le JavaScript est actif
   (la classe .js est ajoutée par main.js). Sans JS, tout reste visible.
*/
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Respecte le réglage système "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 880px) {
  .grid2, .order-grid { grid-template-columns: 1fr; gap: 40px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .team-layout { grid-template-columns: 1fr; gap: 32px; }
  .team-photo { order: -1; }
  .waitlist { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .waitlist-form { justify-content: center; }
  .order-visual { order: -1; }
  .hero { align-items: flex-end; padding-bottom: 80px; }
  .hero-bg::before { background: linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.25) 100%); }
  .hero-badge { width: 78px; height: 78px; top: 20px; right: 20px; }
}

@media (max-width: 520px) {
  .specs-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .reassure { gap: 14px; }
}
