/* ═══════════════════════════════════════════════════════════════
   COLOUR ADAPT — Charte graphique principale
   ═══════════════════════════════════════════════════════════════ */

:root {
  --disc-d: #C0392B;
  --disc-i: #F1C40F;
  --disc-s: #27AE60;
  --disc-c: #2980B9;

  --bg-primary: #1A1A2E;
  --bg-secondary: #16213E;
  --bg-card: #0F3460;
  --bg-overlay: rgba(26, 26, 46, 0.95);

  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #A0A0B0;

  --accent-gradient: linear-gradient(135deg, #C0392B, #F1C40F, #27AE60, #2980B9);
  --accent-gold: #F1C40F;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-family: Verdana, Geneva, Tahoma, sans-serif;
  --transition: 0.3s ease;
  --border-radius: 12px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-family); }

/* ─── Typographie ───────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; color: var(--text-primary); }
h3 { font-size: 1.3rem; font-weight: 700; color: var(--accent-gold); }
h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
p  { color: var(--text-secondary); line-height: 1.7; }

.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--accent-gold); }
.text-center { text-align: center; }

/* ─── Barre de lecture ──────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Header / Navigation ───────────────────────────────────── */
#site-header {
  position: fixed;
  top: 3px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 88px;
  width: auto;
}
.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

/* ─── Nav item (avec ou sans dropdown) ──────────────────────── */
.nav-item {
  position: relative;
}

.nav-item-inner {
  display: flex;
  align-items: center;
}

.nav-item-link {
  padding: 6px 10px;
  color: #3a3a5c;
  font-size: 1.05rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-item-link:hover,
.nav-item-link.active {
  color: #1A1A2E;
  background: rgba(0, 0, 0, 0.06);
}

/* Bouton chevron ▾ */
.nav-toggle {
  background: none;
  border: none;
  color: #888;
  font-size: 0.7rem;
  padding: 6px 4px;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}
.nav-toggle:hover { color: #1A1A2E; }
.nav-item.open > .nav-item-inner .nav-toggle,
.nav-item:hover > .nav-item-inner .nav-toggle {
  color: #1A1A2E;
  transform: rotate(180deg);
}

/* ─── Dropdown ───────────────────────────────────────────────── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 0 8px;
  min-width: 230px;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  z-index: 200;
  list-style: none;
}

/* Desktop : hover suffit */
@media (min-width: 1025px) {
  .nav-item:hover > .nav-dropdown { display: block; }
}
/* JS ajoute .open pour mobile + clavier */
.nav-item.open > .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.83rem;
  color: #555;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border-radius: 0;
}
.nav-dropdown a:hover {
  color: #1A1A2E;
  background: rgba(0,0,0,.05);
}

/* Ancien sélecteur conservé pour pages qui ont des <a> directs */
.nav-links > li > a {
  padding: 6px 10px;
  color: #3a3a5c;
  font-size: 1.05rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #1A1A2E;
  background: rgba(0, 0, 0, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-shop {
  background: var(--accent-gold);
  color: #1A1A2E;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-shop:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(241, 196, 15, 0.4); }

.btn-account {
  background: rgba(0, 0, 0, 0.06);
  color: #3a3a5c;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid #ddd;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-account:hover { background: rgba(0, 0, 0, 0.10); color: #1A1A2E; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: #555;
  font-size: 1.3rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.cart-btn:hover { color: #1A1A2E; background: rgba(0, 0, 0, 0.06); }
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--disc-d);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  display: none;
}
.cart-count.visible { display: flex; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #1A1A2E;
  font-size: 1.5rem;
  padding: 8px;
}

/* ─── Mobile menu ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 91px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 0 24px;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: calc(100vh - 91px);
  }
  .nav-links.open { display: flex; }

  /* Items mobile */
  .nav-item { width: 100%; }
  .nav-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
  }
  .nav-item-link {
    padding: 12px 0;
    font-size: 1rem;
    flex: 1;
  }
  .nav-toggle {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
  .nav-links > li > a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
  }

  /* Dropdown mobile : statique, indenté */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-subtle);
    border-radius: 0;
    backdrop-filter: none;
    background: transparent;
    padding: 4px 0 4px 12px;
    margin: 0 0 4px 32px;
    min-width: unset;
  }
  .nav-dropdown a {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: normal;
  }

  .hamburger { display: block; }
  .nav-logo-text { display: none; }
}

/* ─── Layout général ────────────────────────────────────────── */
main { padding-top: 113px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ─── Séparateur dégradé DISC ───────────────────────────────── */
.disc-separator {
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 16px 0 40px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: transform var(--transition);
}
.card-glass:hover { transform: translateY(-3px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* ─── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-gold);
  color: #1A1A2E;
  box-shadow: 0 4px 20px rgba(241, 196, 15, 0.3);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(241, 196, 15, 0.5); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }

.btn-disc-d { background: var(--disc-d); color: #fff; }
.btn-disc-c { background: var(--disc-c); color: #fff; }
.btn-disc-s { background: var(--disc-s); color: #fff; }

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

.btn-loading { opacity: 0.7; pointer-events: none; }

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(15,52,96,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero h1 { max-width: 720px; margin-bottom: 24px; }
.hero p  { max-width: 580px; font-size: 1.15rem; margin-bottom: 40px; color: var(--text-secondary); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Badge DISC ─────────────────────────────────────────────── */
.disc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.disc-badge.d { background: var(--disc-d); }
.disc-badge.i { background: var(--disc-i); color: #1A1A2E; }
.disc-badge.s { background: var(--disc-s); }
.disc-badge.c { background: var(--disc-c); }

/* ─── Card couleur DISC ──────────────────────────────────────── */
.card-disc-d { border-top: 3px solid var(--disc-d); }
.card-disc-i { border-top: 3px solid var(--disc-i); }
.card-disc-s { border-top: 3px solid var(--disc-s); }
.card-disc-c { border-top: 3px solid var(--disc-c); }

/* ─── Section alternée ───────────────────────────────────────── */
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-primary); }

/* ─── Stat / chiffre clé ─────────────────────────────────────── */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ─── Formulaires ────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--disc-c);
  background: rgba(255, 255, 255, 0.09);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-error {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid var(--disc-d);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid var(--disc-s);
  color: #55efc4;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.form-success.visible { display: block; }

/* ─── Panier ─────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.qty-btn:hover { background: rgba(255,255,255,0.15); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--text-secondary);
}
.cart-total-row.grand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 2px solid var(--border-subtle);
  margin-top: 12px;
}

/* ─── Prix produit ───────────────────────────────────────────── */
.price-ht {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.price-ttc {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7ab8d4;
  margin-top: 4px;
}
.price-tag {
  display: inline-block;
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.3);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
}

/* ─── Témoignages placeholder ────────────────────────────────── */
.testimonial-placeholder {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--text-muted);
}
.testimonial-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ─── Badge "NOUVEAU" ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-new { background: var(--disc-s); color: #fff; }
.badge-promo { background: var(--disc-d); color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 48px; mix-blend-mode: lighten; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { margin-bottom: 20px; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ─── Cookie Banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  z-index: 999;
  display: none;
}
#cookie-banner.visible { display: block; }
#cookie-banner p { font-size: 0.9rem; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Dashboard ──────────────────────────────────────────────── */
.order-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 16px;
}
.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-paid    { background: rgba(39,174,96,.2); color: #27AE60; }
.status-pending { background: rgba(241,196,15,.2); color: #F1C40F; }
.status-proforma { background: rgba(41,128,185,.2); color: #2980B9; }

/* ─── Checkout steps ─────────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 8px;
}
.step.active:not(:last-child)::after { background: var(--disc-c); }
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step.active .step-number { background: var(--disc-c); color: #fff; }
.step.done .step-number { background: var(--disc-s); color: #fff; }
.step-label { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--text-primary); font-weight: 600; }

/* ─── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--disc-s); }
.toast.error   { border-left: 3px solid var(--disc-d); }
.toast.info    { border-left: 3px solid var(--disc-c); }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ─── Focus visible (accessibilité) ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--disc-c);
  outline-offset: 3px;
}

/* ─── Utilitaires ────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.mobile-only { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Overrides mobiles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Grand écran intermédiaire (≤ 1200px) ───────────────────── */
@media (max-width: 1200px) {
  .ressources-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ─── Tablette paysage (≤ 900px) ─────────────────────────────── */
@media (max-width: 900px) {
  .ressources-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── Tablette (≤ 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-inner { height: 88px; }
  .nav-logo img { height: 64px; }
  main { padding-top: 91px; }

  /* Mobile menu vertical position aligned with nav */
  .nav-links { top: 91px; max-height: calc(100vh - 91px); }

  /* Espace client masqué sur tablette/mobile (accessible via hamburger) */
  #nav-account-link { display: none; }
  .mobile-only { display: block; }
  .btn-shop { font-size: 0.9rem; padding: 8px 18px; }
}

/* ─── Mobile (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Toutes les grilles inline en 1 colonne */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Sections-héros avec grand padding inline */
  section[style*="padding:140px"] {
    padding-top: 100px !important;
    padding-bottom: 48px !important;
  }

  /* Sections CTA avec padding inline 100px */
  section[style*="padding:100px"] {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Hero principal */
  .hero-content { padding: 60px 20px; }

  /* Boutons hero empilés */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Statistiques hero */
  .stat-number { font-size: 2rem !important; }

  /* Réduire les gaps larges définis inline */
  [style*="gap:64px"] { gap: 32px !important; }
  [style*="gap:48px"] { gap: 24px !important; }

  /* Boutique — lignes variantes empilées */
  .variant-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .variant-row > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* En-tête produit boutique */
  .product-family-header [style*="justify-content:space-between"] {
    flex-direction: column;
  }
  .product-family-header [style*="text-align:right"] {
    text-align: left !important;
  }

  /* Timeline kit */
  .timeline-item { padding-left: 28px; }

  /* Contact — colonnes empilées (géré par grid override) */

  /* Marges des sections "Pour qui" (kit.html) */
  [style*="margin-bottom:64px"] { margin-bottom: 32px !important; }
  [style*="padding-bottom:64px"] { padding-bottom: 32px !important; }

  /* Nav */
  .nav-inner { height: 80px; }
  .nav-logo img { height: 56px; }
  main { padding-top: 83px; }
  .nav-links { top: 83px; max-height: calc(100vh - 83px); }
}

/* ─── Petit mobile (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .price-ht { font-size: 2rem; }
  .card { padding: 20px !important; }
  .card-glass { padding: 20px !important; }

  /* Étapes tunnel — labels masqués sur petit mobile */
  .step-label { display: none; }
  .step-number { width: 30px; height: 30px; font-size: 0.8rem; }

  /* Stat containers — labels plus lisibles */
  [style*="max-width:80px"] { max-width: 110px !important; }

  /* Boutons côte-à-côte → empilés */
  [style*="display:flex"][style*="gap:16px"] {
    flex-wrap: wrap;
  }
}

/* ─── Panier — articles en colonne sur mobile ─────────────────── */
@media (max-width: 600px) {
  .cart-item {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .cart-item > div:first-child {
    width: 100%;
    flex: none;
  }
}
