/* ══════════════════════════════════════════
   CLÉMENT PRO - Feuille de style commune
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --gold: #D4A843;
  --gold-light: #F0C96A;
  --dark: #0A0E1A;
  --dark2: #111827;
  --dark3: #1E293B;
  --accent: #00C9A7;
  --accent2: #0EA5E9;
  --white: #FFFFFF;
  --gray: #94A3B8;
  --wa: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,67,0.15);
  transition: padding 0.3s, background 0.3s;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: #FAF8F3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 3px;
}
.logo-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.logo-text span:first-child { display: block; font-size: 15px; font-weight: 800; color: var(--white); }
.logo-text span:last-child { font-size: 11px; color: var(--gold); font-weight: 500; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--wa), #1EB854);
  color: white; border: none; padding: 10px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark); padding: 14px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(212,168,67,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212,168,67,0.5); }
.btn-wa {
  background: linear-gradient(135deg, var(--wa), #1EB854);
  color: white; padding: 14px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(37,211,102,0.45); }
.btn-outline {
  border: 1.5px solid rgba(212,168,67,0.4); color: var(--gold);
  padding: 14px 30px; border-radius: 50px; font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(212,168,67,0.08); border-color: var(--gold); }

/* ── SECTION HELPERS ── */
.section { padding: 100px 6%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 900; line-height: 1.2; margin-bottom: 18px;
}
.section-sub { font-size: 17px; color: var(--gray); line-height: 1.7; max-width: 560px; }

/* ── PAGE HERO (chaque page) ── */
.page-hero {
  padding: 160px 6% 80px; text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,168,67,0.1) 0%, transparent 70%),
              linear-gradient(180deg, #0A0E1A 0%, #0F172A 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero .section-tag { display: block; text-align: center; }
.page-hero .section-title { text-align: center; margin: 0 auto 16px; }
.page-hero .section-sub { margin: 0 auto; text-align: center; }

/* ── CARDS ── */
.card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; padding: 32px 28px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212,168,67,0.25); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.icon-gold { background: rgba(212,168,67,0.12); }
.icon-green { background: rgba(0,201,167,0.12); }
.icon-blue { background: rgba(14,165,233,0.12); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.08); color: var(--gray); }
.tag-gold { border-color: rgba(212,168,67,0.3); color: var(--gold); background: rgba(212,168,67,0.05); }
.tag-green { border-color: rgba(0,201,167,0.3); color: var(--accent); background: rgba(0,201,167,0.05); }

/* ── IMAGE PLACEHOLDER (remplacer par vraies images Antigravity) ── */
.img-placeholder {
  width: 100%; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #0f2040, #1a3a6b);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--gray);
  font-size: 14px; font-weight: 500;
}
.img-placeholder .emoji { font-size: 52px; }
/* Vraies images : remplacer .img-placeholder par <img src="images/nom.jpg" ...> */

/* ── FORM ── */
.form-box {
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  color: var(--white); font-size: 15px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,168,67,0.1);
}
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 16px; background: linear-gradient(135deg, var(--wa), #1EB854);
  border: none; border-radius: 14px; color: white; font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(37,211,102,0.3); transition: transform 0.2s, box-shadow 0.2s; margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,211,102,0.45); }
.form-note { text-align: center; font-size: 12px; color: var(--gray); margin-top: 14px; }
.form-note span { color: var(--wa); font-weight: 600; }

/* ── FOOTER ── */
footer { background: #060914; border-top: 1px solid rgba(255,255,255,0.06); padding: 60px 6% 28px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 14px 0 22px; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.3);
  color: var(--wa); padding: 10px 20px; border-radius: 50px;
  text-decoration: none; font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.footer-wa:hover { background: rgba(37,211,102,0.2); }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; color: var(--gray); font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-addr {
  font-size: 13px; color: var(--gray); line-height: 1.5;
  margin-bottom: 10px; display: block;
}
.footer-addr strong { color: var(--white); font-weight: 600; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--gray); }
.footer-bottom .gold { color: var(--gold); font-weight: 600; }

/* ── FLOATING WA ── */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), #1EB854);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
  animation: floatAnim 3s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.12) !important; }
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── FADE ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s;
  z-index: 1100;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(212,168,67,0.1); border-color: rgba(212,168,67,0.3); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), opacity 0.2s, background 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  background: rgba(7, 10, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 100px 8% 60px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

.mobile-menu nav-links-mobile {
  display: flex;
  flex-direction: column;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open .mobile-nav-links li { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mobile-nav-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-links li:nth-child(5) { transition-delay: 0.25s; }

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--gold); padding-left: 8px; }
.mobile-nav-links a .mnav-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-nav-links a.active .mnav-icon { background: rgba(212,168,67,0.12); }

.mobile-menu-footer {
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; transform: translateY(0); }

.mobile-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--wa), #1EB854);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}
.mobile-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,211,102,0.5); }

.mobile-contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  justify-content: center;
}
.mobile-contact-info span { color: var(--white); font-weight: 600; }

/* ── TOUCH TARGETS ── */
.hamburger,
.float-wa,
.nav-cta,
.btn-primary,
.btn-wa,
.btn-outline,
.btn-submit,
.mobile-wa-btn { min-height: 44px; min-width: 44px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav .nav-links { display: none; }
  nav .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 5%; }
}
@media (max-width: 600px) {
  .section { padding: 60px 5%; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 5% 50px; }
  .section-title { font-size: clamp(24px, 7vw, 38px); }
  .section-sub { font-size: 15px; }
  /* footer compact */
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  /* float WA clear of content on small screens */
  .float-wa { bottom: 20px; right: 16px; width: 52px; height: 52px; font-size: 22px; }
  .logo-badge { width: 38px; height: 38px; }
}

/* ── NAV LINKS HOVER ANIMATION ── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.25s ease, left 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* ── CHIP POP INTERACTION (DEVIS) ── */
@media (prefers-reduced-motion: no-preference) {
  .chip.selected { animation: chipPop 0.3s ease; }
  @keyframes chipPop { 
    0% { transform: scale(0.9); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
}

/* ══════════════════════════════════════════
   BOUTON "COMMANDER MAINTENANT" + MODALE PRODUIT
   Partagé entre index.html (.pa-card), services.html
   (.product-item) et solaire.html (.sp-card)
   ══════════════════════════════════════════ */
.pa-open {
  all: unset; cursor: pointer; display: block; width: 100%;
}
.pa-open:hover .pa-img img,
.pa-open:hover .product-img img,
.pa-open:hover .sp-img img { transform: scale(1.06); }
.pa-img img, .product-img img, .sp-img img { transition: transform 0.4s ease; }

.pa-buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 14px;
  background: linear-gradient(135deg, var(--wa), #1EB854);
  color: white; font-size: 13px; font-weight: 700;
  border-radius: 0 0 18px 18px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden; border: none; cursor: pointer;
  margin-top: 14px;
}
.pa-buy-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
}
.pa-buy-btn:active { transform: translateY(0) scale(0.98); }

/* Effet "shine" qui balaie le bouton pour attirer l'oeil */
@media (prefers-reduced-motion: no-preference) {
  .pa-buy-btn::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: paShine 3.2s ease-in-out infinite;
  }
  @keyframes paShine {
    0%   { left: -60%; }
    50%  { left: 130%; }
    100% { left: 130%; }
  }
}

/* .pa-card (index.html) — carte image + titre uniquement, bouton en pied */
.pa-card { position: relative; display: flex; flex-direction: column; transition: box-shadow 0.3s ease; border-radius: 18px; overflow: hidden; }
.pa-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.pa-card .pa-open {
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px 18px 0 0; overflow: hidden;
}
.pa-card .pa-buy-btn { border-radius: 0 0 18px 18px; margin-top: 0; }

/* .product-item (services.html) et .sp-card (solaire.html) —
   carte complète (image + description + specs), bouton ajouté en pied */
.product-item .pa-open, .sp-card .pa-open { background: transparent; border: none; }
.product-item .pa-buy-btn, .sp-card .pa-buy-btn { border-radius: 14px; margin: 14px; width: calc(100% - 28px); }

/* MODALE PRODUIT */
.product-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.product-modal.open { display: flex; }
.product-modal-overlay { position: absolute; inset: 0; background: rgba(6,9,20,0.85); backdrop-filter: blur(6px); }
.product-modal-box {
  position: relative; z-index: 1; background: var(--dark3);
  border-radius: 24px; max-width: 780px; width: 100%; max-height: 88vh;
  overflow: hidden; display: flex; flex-direction: row;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(212,168,67,0.15);
  transform: scale(0.94); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.product-modal.open .product-modal-box { transform: scale(1); opacity: 1; }
.pm-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.55); color: white; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pm-close:hover { background: rgba(212,168,67,0.3); }
.pm-img { flex: 0 0 45%; background: var(--dark2); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-content {
  flex: 1; min-width: 0; min-height: 0;
  padding: 32px 28px 28px; display: flex; flex-direction: column;
  overflow-y: auto;
}
.pm-content h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 900; margin: 10px 0 12px; }
.pm-content p#pmDesc { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 18px; }
.pm-content .sp-specs { margin-bottom: 18px; }
.pm-cta { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.pm-cta-text { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.pm-cta .btn-wa { width: 100%; justify-content: center; }

@media (max-width: 700px) {
  .product-modal-box { flex-direction: column; }
  .pm-img { flex: 0 0 auto; aspect-ratio: 16/9; }
  .pm-content { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .pm-content { padding: 24px 20px 20px; }
  .pm-close { width: 40px; height: 40px; font-size: 18px; }
  .pa-buy-btn { padding: 15px 14px; font-size: 14px; }
}

/* ══════════════════════════════════════════
   PANIER — Cart trigger, badge, drawer
   ══════════════════════════════════════════ */

/* ── ICÔNE PANIER (HEADER NAV) ── */
.cart-trigger {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 44px; height: 44px;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.cart-trigger:hover { background: rgba(212,168,67,0.1); border-color: rgba(212,168,67,0.3); }
.cart-trigger-pulse { animation: ctPulse 0.5s ease; }
@keyframes ctPulse { 0%{transform:scale(1)} 35%{transform:scale(1.18)} 70%{transform:scale(0.95)} 100%{transform:scale(1)} }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold); color: var(--dark);
  font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--dark);
  animation: cartBadgePop 0.3s ease;
  pointer-events: none;
}
@keyframes cartBadgePop { 0%{transform:scale(0.4)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* [hidden] utilitaire global (ne pas redéfinir display si déjà présent) */
[hidden] { display: none !important; }

/* ── DRAWER PANIER ── */
.cart-drawer {
  position: fixed; inset: 0; z-index: 2100;
  display: none;
}
.cart-drawer.open { display: block; }

.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(6,9,20,0.78);
  backdrop-filter: blur(5px);
}

.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 420px; max-width: 92vw;
  background: var(--dark3);
  border-left: 1px solid rgba(212,168,67,0.15);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.cart-panel-header h3 { font-size: 18px; font-weight: 700; }
.cart-panel-header .pm-close {
  position: static; /* override modale */
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--white);
  border: none; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cart-panel-header .pm-close:hover { background: rgba(212,168,67,0.2); }

/* Items list */
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.cart-item img {
  width: 64px; height: 64px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  background: var(--dark2);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.ci-qty-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: none;
  color: var(--white); font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ci-qty-btn:hover { background: rgba(212,168,67,0.2); }
.ci-qty-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 6px; border-radius: 8px;
  transition: background 0.2s; flex-shrink: 0;
  line-height: 1;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.15); }

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 40px 20px;
  text-align: center; color: var(--gray); flex: 1;
}
.cart-empty p { font-size: 15px; }

/* Footer */
.cart-footer {
  padding: 16px 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--gray); padding: 2px 0;
}
.cart-total-row strong { font-size: 18px; font-weight: 800; color: var(--white); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 15px; font-weight: 700;
  padding: 14px 20px; border-radius: 12px;
  background: var(--wa); color: #fff; text-decoration: none;
  transition: filter 0.2s;
}
.cart-checkout-btn:hover { filter: brightness(1.1); }
.cart-clear-btn {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray); font-size: 13px; cursor: pointer;
  padding: 10px; border-radius: 10px; text-align: center;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
}
.cart-clear-btn:hover { border-color: rgba(239,68,68,0.4); color: #fc8181; }

/* ── BOUTON "AJOUTER AU PANIER" SUR LES CARTES ── */
.pa-add-cart {
  display: block; width: 100%; margin-top: 10px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.pa-add-cart:hover {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.35);
  color: var(--gold);
}

/* ── STEPPER QUANTITÉ DANS LA MODALE ── */
.pm-qty-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; margin-top: 4px;
}
.pm-qty-label { font-size: 13px; color: var(--gray); font-weight: 600; }
.pm-qty-stepper {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden;
}
.pm-qty-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  border: none; color: var(--white);
  font-size: 18px; cursor: pointer;
  transition: background 0.2s;
}
.pm-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pm-qty-btn:hover:not(:disabled) { background: rgba(212,168,67,0.18); }
#pmQtyInput {
  width: 46px; text-align: center;
  background: transparent; border: none;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-size: 15px; font-weight: 700;
  height: 36px;
  -moz-appearance: textfield;
  font-family: 'Inter', sans-serif;
}
#pmQtyInput::-webkit-outer-spin-button,
#pmQtyInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#pmAddCartBtn { flex-shrink: 0; }

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 900px) {
  .cart-trigger { order: -1; margin-right: 8px; }
}
@media (max-width: 600px) {
  .cart-panel { width: 100%; max-width: 100%; }
  .cart-item img { width: 56px; height: 56px; }
  .ci-qty-btn { width: 36px; height: 36px; }
  .pm-qty-row { flex-direction: column; align-items: flex-start; }
}

