/* ============================================
   DESIGN SYSTEM — Solutions Électroniques Orgue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --c-bg:        #0f0e0d;
  --c-surface:   #1a1917;
  --c-surface2:  #242220;
  --c-border:    #2e2c29;
  --c-gold:      #c8a84b;
  --c-gold-dim:  #8a7132;
  --c-ivory:     #f0ead8;
  --c-muted:     #8a8680;
  --c-white:     #ffffff;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;

  --radius: 4px;
  --transition: 0.22s ease;

  --max-w: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-ivory); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: clamp(0.9rem, 1.5vw, 1rem); color: var(--c-muted); }
p strong { color: var(--c-ivory); }

/* --- Layout helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section { padding: clamp(3rem, 8vw, 7rem) 0; }
.section--light { background: var(--c-surface); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ivory);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__logo span { color: var(--c-gold); }
.nav__logo::before {
  content: '';
  width: 3px;
  height: 26px;
  background: var(--c-gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  color: var(--c-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--c-ivory); }
.nav__cta {
  background: var(--c-gold);
  color: var(--c-bg) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--c-ivory); color: var(--c-bg) !important; }

/* Burger menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--c-ivory);
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 1.5rem;
  z-index: 99;
}
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.nav__mobile a { color: var(--c-ivory); font-size: 1.05rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(200, 168, 75, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200, 168, 75, 0.04) 0%, transparent 60%);
}
/* Signature: tuyaux verticaux décoratifs */
.hero::after {
  content: '';
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--c-gold-dim) 30%, var(--c-gold) 50%, var(--c-gold-dim) 70%, transparent);
  opacity: 0.4;
}
.hero__pipes {
  position: absolute;
  right: clamp(4rem, 10vw, 10rem);
  top: 0; bottom: 0;
  display: flex;
  gap: 18px;
  align-items: stretch;
  pointer-events: none;
}
.hero__pipe {
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--c-gold-dim) 20%, rgba(200,168,75,0.15) 50%, var(--c-gold-dim) 80%, transparent 100%);
}
.hero__pipe:nth-child(2) { opacity: 0.4; margin-top: 10%; margin-bottom: -5%; }
.hero__pipe:nth-child(3) { opacity: 0.2; margin-top: -8%; margin-bottom: 15%; }

.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__eyebrow {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--c-gold);
}
.hero__title { margin-bottom: 1.5rem; }
.hero__title em {
  font-style: italic;
  color: var(--c-gold);
}
.hero__desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__desc strong { color: var(--c-ivory); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--c-gold);
  color: var(--c-bg);
}
.btn--primary:hover { background: var(--c-ivory); color: var(--c-bg); }
.btn--outline {
  background: transparent;
  color: var(--c-ivory);
  border: 1px solid var(--c-border);
}
.btn--outline:hover { border-color: var(--c-gold); color: var(--c-gold); }

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 2rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stats__number {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-gold);
  display: block;
}
.stats__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

/* ============================================
   BRANCHES (3 grandes catégories)
   ============================================ */
.branches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.branch-card {
  background: var(--c-surface);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background var(--transition);
  position: relative;
}
.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--c-gold);
  transition: height 0.4s ease;
}
.branch-card:hover { background: var(--c-surface2); }
.branch-card:hover::before { height: 100%; }
.branch-card__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.branch-card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-gold);
  font-weight: 600;
}
.branch-card h3 { font-size: 1.3rem; color: var(--c-ivory); }
.branch-card p { font-size: 0.88rem; line-height: 1.7; }
.branch-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}
.branch-card__list li {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.branch-card__list li::before {
  content: '—';
  color: var(--c-gold-dim);
  flex-shrink: 0;
}
.branch-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-gold);
  margin-top: 1rem;
}
.branch-card__link:hover { color: var(--c-ivory); }
.branch-card__link::after { content: '→'; transition: transform var(--transition); }
.branch-card:hover .branch-card__link::after { transform: translateX(4px); }

/* ============================================
   SECTION TITRE générique
   ============================================ */
.section-header { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-header__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-header__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-gold);
}
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { max-width: 560px; }

/* ============================================
   PRODUIT CARDS (pages sous-catégories)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.product-card {
  background: var(--c-surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition);
}
.product-card:hover { background: var(--c-surface2); }
.product-card__img {
  aspect-ratio: 4/3;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-border);
  font-size: 0.75rem;
  font-family: var(--f-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__ref {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.product-card h3 { font-size: 1.1rem; color: var(--c-ivory); }
.product-card p { font-size: 0.85rem; }
.product-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}
.product-card__specs li {
  font-size: 0.78rem;
  color: var(--c-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.product-card__specs li::before { content: '·'; color: var(--c-gold); }

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--f-display);
  font-size: 4rem;
  color: var(--c-gold-dim);
  line-height: 1;
  opacity: 0.4;
}
.testimonial p { font-size: 0.9rem; color: var(--c-ivory); margin-bottom: 1.2rem; }
.testimonial__author { font-size: 0.8rem; color: var(--c-gold); font-weight: 600; }
.testimonial__location { font-size: 0.75rem; color: var(--c-muted); }

/* ============================================
   CTA BANDE
   ============================================ */
.cta-band {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.cta-band__text p { font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-ivory); margin-bottom: 1rem; }
.footer__brand span { color: var(--c-gold); }
.footer__desc { font-size: 0.85rem; color: var(--c-muted); max-width: 280px; }
.footer__col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-ivory); margin-bottom: 1rem; font-family: var(--f-body); font-weight: 600; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul a { font-size: 0.85rem; color: var(--c-muted); }
.footer__col ul a:hover { color: var(--c-ivory); }
.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--c-muted);
}

/* ============================================
   PAGE INTÉRIEURE — hero compact
   ============================================ */
.page-hero {
  padding: calc(64px + 4rem) 0 3rem;
  border-bottom: 1px solid var(--c-border);
}
.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-hero__eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--c-gold); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1rem; max-width: 600px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero::after { display: none; }
  .hero__pipes { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .branches__grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }


/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}