/* ============================================
   M2R PRINTING SYSTEM — Charte graphique B2B
   Palette extraite du logo CMJN + études B2B
   ============================================ */

:root {
  /* — Couleurs principales — */
  --primary:        #1a2332;   /* Navy charcoal — confiance, autorité */
  --primary-light:  #2c3e50;   /* Navy clair — sous-titres, hovers */
  --secondary:      #00a8e8;   /* Cyan logo — technologie, fiabilité */
  --secondary-dark: #0088c2;   /* Cyan foncé — hover liens */
  --secondary-light:#e8f7fc;   /* Cyan très clair — fonds de section */
  --accent:         #e6007e;   /* Magenta logo — CTA, énergie */
  --accent-hover:   #c4006b;   /* Magenta foncé — hover CTA */
  --highlight:      #f5a623;   /* Or/jaune logo — badges, étoiles */

  /* — Neutres — */
  --text:           #2d2d2d;
  --text-light:     #5a6270;
  --bg:             #ffffff;
  --bg-alt:         #f7f8fa;
  --bg-dark:        #1a2332;
  --border:         #e2e5ea;

  /* — Typographie — */
  --font-main:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* — Dimensions — */
  --max-width:      1280px;
  --radius:         6px;
  --shadow:         0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.12);
  --transition:     all 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 6px 0;
  letter-spacing: 0.01em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.topbar a:hover {
  color: var(--highlight);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ===== NAVBAR / MENU ===== */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
  color: var(--secondary);
  background: var(--secondary-light);
}

/* Accent link (Bonnes Affaires) */
.nav-accent {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.nav-accent:hover {
  background: rgba(230,0,126,0.06) !important;
  color: var(--accent-hover) !important;
}

/* ===== MEGA-MENU ===== */
.has-megamenu {
  position: static;
}

.megamenu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  padding: 0;
  z-index: 1001;
}

/* Ouverture via JS — classe .mega-visible */
.megamenu.mega-visible {
  display: block;
}

/* Pont invisible entre le lien et le megamenu */
.has-megamenu > a::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  display: none;
}

.megamenu.mega-visible + .has-megamenu > a::after,
.has-megamenu:hover > a::after {
  display: block;
}

.megamenu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 36px;
}

.megamenu-col {
  padding: 0 16px;
}

.megamenu-col:first-child {
  padding-left: 0;
}

.megamenu-col:last-child {
  padding-right: 0;
}

.megamenu-col-inner {
  background: var(--bg-alt);
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 20px 18px;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.megamenu-col-inner:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(0,168,232,0.08);
}

.megamenu-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.megamenu-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-col ul li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  border-radius: 6px;
  transition: var(--transition);
  line-height: 1.4;
}

.megamenu-col ul li a:hover {
  background: #fff;
  color: var(--secondary);
  padding-left: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* CTA bouton devis */
.btn-devis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-devis:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,0,126,0.3);
}

/* Badge NEW */
.nav-badge-hot {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: super;
  letter-spacing: 0.04em;
}

/* Burger mobile */
.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
  .navbar-burger { display: flex; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0;
  }

  .navbar-menu.open { display: flex; }

  .navbar-menu > li > a { padding: 12px 16px; }

  /* Mega-menu mobile: empilé verticalement */
  .megamenu {
    position: static !important;
    transform: none !important;
    min-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
  }

  .has-megamenu.mega-open > .megamenu {
    display: block;
  }

  .has-megamenu:hover > .megamenu {
    display: none;
  }

  .has-megamenu.mega-open:hover > .megamenu {
    display: block;
  }

  .megamenu-inner {
    grid-template-columns: 1fr;
    padding: 8px 0;
    gap: 8px;
  }

  .megamenu-col {
    padding: 8px 16px;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .megamenu-col:last-child {
    border-bottom: none;
  }

  .megamenu-col h5 {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .megamenu-col ul li a {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* ===== ANIMATIONS SCROLL ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les grilles */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ===== HERO / SECTIONS ===== */

/* — Hero de base — */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Overlay — toujours très opaque pour lisibilité */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,35,50,0.93) 0%, rgba(26,35,50,0.82) 100%);
  z-index: 0;
}

.hero::after { display: none; }

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
  max-width: 700px;
  animation: fadeInUp 0.7s ease both;
}

.hero h1 span { color: var(--secondary); }

.hero .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.7;
  animation: fadeInUp 0.7s 0.12s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.24s ease both;
}

/* Badges de confiance dans le hero */
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  animation: fadeInUp 0.7s 0.36s ease both;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
}
.hero-badge svg { flex-shrink: 0; }

/* ——— HERO SPLIT : texte + image produit ——— */
.hero-split {
  padding: 56px 0;
}
.hero-split .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero-split .hero-content {
  animation: fadeInLeft 0.7s ease both;
}
.hero-split .hero-visual {
  animation: fadeInRight 0.7s 0.15s ease both;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-split .hero-visual img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.35));
}

/* ——— HERO COMPACT : plus petit, pour pages secondaires ——— */
.hero-compact {
  padding: 48px 0;
}
.hero-compact h1 {
  font-size: 2rem;
}

/* ——— OVERLAYS COULEURS ——— */
.hero-accent::before {
  background: linear-gradient(160deg, rgba(0,90,150,0.92) 0%, rgba(0,168,232,0.80) 100%);
}
.hero-magenta::before {
  background: linear-gradient(160deg, rgba(140,0,70,0.92) 0%, rgba(230,0,126,0.78) 100%);
}
.hero-green::before {
  background: linear-gradient(160deg, rgba(12,60,42,0.93) 0%, rgba(34,139,94,0.80) 100%);
}
.hero-warm::before {
  background: linear-gradient(160deg, rgba(90,45,8,0.92) 0%, rgba(200,130,30,0.78) 100%);
}

/* ——— POSITIONS DU TEXTE ——— */
.hero-center .container { text-align: center; }
.hero-center h1, .hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

.hero-right .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.hero-right h1, .hero-right .lead { margin-left: auto; }

/* ——— FORMES DU BAS ——— */
.hero-curved { padding-bottom: 96px; }
.hero-curved::after {
  display: block;
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 50% 50% 0 0;
}

.hero-diagonal { padding-bottom: 96px; }
.hero-diagonal::after {
  display: block;
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 70px;
  background: var(--bg);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.hero-wave { padding-bottom: 88px; }
.hero-wave::after {
  display: block;
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ——— FORMES FLOTTANTES ——— */
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.06;
  background: #fff;
}
.hero-shapes .shape-1 {
  width: 280px; height: 280px;
  top: -60px; right: 8%;
  animation: float 6s ease-in-out infinite;
}
.hero-shapes .shape-2 {
  width: 140px; height: 140px;
  bottom: 30px; right: 28%;
  animation: float 5s 1s ease-in-out infinite;
}
.hero-shapes .shape-3 {
  width: 70px; height: 70px;
  top: 35%; left: 4%;
  animation: float 7s 0.5s ease-in-out infinite;
}

/* ——— RESPONSIVE HERO ——— */
@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero-split .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split .hero-visual { display: none; }
  .hero-curved, .hero-diagonal, .hero-wave { padding-bottom: 64px; }
  .hero-badges { flex-direction: column; gap: 12px; }
}

/* ——— SECTION IMAGE + TEXTE ALTERNÉE ——— */
.section-split {
  padding: 64px 0;
}
.section-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section-split.reverse .container {
  direction: rtl;
}
.section-split.reverse .container > * {
  direction: ltr;
}
.section-split-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .section-split .container { grid-template-columns: 1fr; }
  .section-split.reverse .container { direction: ltr; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230,0,126,0.3);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ===== SECTIONS GÉNÉRALES ===== */
section {
  padding: 72px 0;
}

section.alt-bg {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: var(--secondary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

.service-card .card-link:hover {
  gap: 8px;
}

/* ===== CHIFFRES / STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== LOGOS PARTENAIRES ===== */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.6;
}

.partners-row img {
  height: 36px;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partners-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== ZONE D'INTERVENTION ===== */
.zone-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
}

.badge.badge-accent {
  background: rgba(230,0,126,0.1);
  color: var(--accent);
}

/* ===== FORMULAIRE DEVIS ===== */
.devis-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 72px 0;
}

.devis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.devis-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.devis-info p {
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 24px;
}

.devis-info .contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.devis-info .contact-line svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.devis-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.devis-form h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--text);
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===== BANDE LOGOS CONSTRUCTEURS ===== */
.logos-band {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-band-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.logos-band-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logos-band-row img {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logos-band-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .logos-band-row { gap: 24px; }
  .logos-band-row img { height: 28px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(10);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* =============================================
   SHOP — BONNES AFFAIRES (catalogue + fiches)
   ============================================= */

/* — Hero shop — */
.shop-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2137 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300a8e8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.shop-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.shop-hero h1 .emoji-tag {
  font-size: 2rem;
}

.shop-hero .lead {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 12px auto 0;
  position: relative;
  z-index: 1;
}

/* — Filtres catégories — */
.shop-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 72px;
  z-index: 99;
}

.filter-btn {
  padding: 8px 22px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.filter-btn.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* — Grille produits catalogue — */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

/* Badges sur la card */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

.product-badge.badge-promo {
  background: var(--accent);
  color: #fff;
}

.product-badge.badge-new {
  background: #27ae60;
  color: #fff;
}

.product-badge.badge-etat {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  background: rgba(26,35,50,0.85);
  color: #fff;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-body h3 a {
  color: inherit;
}

.product-card-body h3 a:hover {
  color: var(--secondary);
}

.product-card-specs {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price .price-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-price .price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.product-price .price-unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

.btn-voir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-voir:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* — Compteur résultats — */
.shop-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* =============================================
   FICHE PRODUIT — Style Shopify
   ============================================= */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Layout principal produit */
.product-page {
  padding: 0 0 64px;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 24px 0 48px;
}

@media (max-width: 768px) {
  .product-main { grid-template-columns: 1fr; gap: 32px; }
}

/* Galerie photos */
.product-gallery {
  position: sticky;
  top: 96px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.3s ease;
}

.gallery-main:hover img {
  transform: scale(1.08);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--secondary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Infos produit */
.product-info {
  padding-top: 8px;
}

.product-info .product-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.product-info .product-ref {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* État du produit */
.product-etat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-etat.etat-excellent {
  background: rgba(39,174,96,0.1);
  color: #27ae60;
}

.product-etat.etat-tres-bon {
  background: rgba(0,168,232,0.1);
  color: var(--secondary);
}

.product-etat.etat-bon {
  background: rgba(245,166,35,0.1);
  color: var(--highlight);
}

.product-etat svg {
  width: 16px;
  height: 16px;
}

/* Bloc prix */
.product-price-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.product-price-block .price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.product-price-block .price-main .amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.product-price-block .price-main .unit {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.product-price-block .price-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.product-price-block .price-includes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-price-block .price-includes li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  list-style: none;
}

.product-price-block .price-includes li svg {
  width: 16px;
  height: 16px;
  color: #27ae60;
  flex-shrink: 0;
}

/* CTA produit */
.product-cta-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-cta-main {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-cta-main:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,0,126,0.3);
  color: #fff;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cta-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Bloc confiance */
.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* Specs techniques tableau */
.product-specs {
  margin-bottom: 32px;
}

.product-specs h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--text-light);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Description produit */
.product-description {
  margin-bottom: 32px;
}

.product-description h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-description p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Produits similaires */
.related-products {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.related-products .section-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* CTA bottom shop */
.shop-cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.shop-cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.shop-cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.shop-cta-banner .btn-primary {
  background: #fff;
  color: var(--secondary-dark);
}

.shop-cta-banner .btn-primary:hover {
  background: var(--bg-alt);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Aucun résultat */
.shop-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-light);
}

.shop-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.shop-empty p {
  font-size: 1rem;
}

/* Navbar badge "Bonnes Affaires" */
.nav-badge-hot {
  display: inline-block;
  padding: 2px 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: super;
}
