/* ==========================================================================
   M2P — LA MAIRIE 2 PARIS — feuille de style unique
   Tout le visuel du site est ici. Les couleurs de marque sont en haut
   (section VARIABLES) : change-les à un seul endroit si besoin.
   ========================================================================== */

:root {
  /* ---- Couleurs M2P ---- */
  --navy-950: #0a1830; /* Midnight Navy — fond principal */
  --navy-900: #0e2140;
  --navy-800: #12284b;
  --navy-700: #1c3660;
  --ivory: #f4efe3;
  --ivory-dim: #cfc5ad;
  --gold-light: #ecd9b4;
  --gold: #b8935a;
  --gold-dark: #8a6b3f;
  --success: #4f9c6c;
  --line: rgba(244, 239, 227, 0.1);
  --line-gold: rgba(184, 147, 90, 0.32);

  /* ---- Typo ---- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Rayons / rythme ---- */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --gold-gradient: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 58%, var(--gold-dark) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   CASE IMAGE À REMPLIR — cherche "REMPLIR" dans ce fichier ou dans index.html
   pour retrouver tous les emplacements photo. Remplace le <div class="img-slot">
   par une balise <img src="tes-photos/xxx.jpg" alt="..."> de même taille.
   ========================================================================== */
.img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--navy-900);
  border: 1.5px dashed var(--line-gold);
  color: var(--ivory-dim);
  text-align: center;
  padding: 12px;
}
.img-slot svg { width: 26px; height: 26px; opacity: 0.55; }
.img-slot span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  padding: 0 20px;
  background: rgba(10, 24, 48, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.brand .name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.03em; line-height: 1; }
.brand .tag { display: block; font-size: 9px; letter-spacing: 0.28em; color: var(--gold); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); transition: color .15s; }
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ivory);
  transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--line-gold); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--gold); color: var(--navy-950);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

/* ==========================================================================
   BANDEAU NOTIFICATION — masqué par défaut (style inline "display:none" dans
   le HTML), affiché par script.js quand une notification programmée est due.
   ========================================================================== */
.notice-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px;
  background: var(--gold-gradient);
  color: var(--navy-950);
}
.notice-bar p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; text-align: center; }
.notice-bar button {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(10,24,48,0.14); border: none; color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
}
.notice-bar button svg { width: 12px; height: 12px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  margin: 20px auto 0;
  max-width: 1100px;
  padding: 0 20px;
}
.hero-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 60vh;
  display: flex; align-items: flex-end;
}
.hero-inner .img-slot {
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  /* placeholder icon+label pinned near the top third, so it never sits
     under the title/CTA overlaid at the bottom (only matters while this
     is still a placeholder — a real photo replaces this whole block) */
  justify-content: flex-start; padding-top: 14%;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(10,24,48,0.94) 100%);
}
.hero-content { position: relative; padding: 40px; max-width: 480px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 0 0 14px; }
.hero-content p { font-size: 14px; line-height: 1.6; color: var(--ivory-dim); margin: 0 0 22px; max-width: 380px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: none; transition: filter .15s, transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold-gradient); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(184,147,90,0.55); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--ivory); border: 1px solid var(--line-gold); }
.btn-outline:hover { border-color: var(--gold); }
.btn-block { width: 100%; }

/* ==========================================================================
   RAIL ARCHITECTURAL — liseré décoratif fin, un seul détail par section
   ========================================================================== */
.rail { height: 6px; margin: 0 auto 8px; max-width: 1100px; padding: 0 20px; opacity: 0.5; }
.rail svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   SECTIONS / TITRES
   ========================================================================== */
.section { margin: 64px auto 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.section-head a { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   CATÉGORIES
   ========================================================================== */
.category-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-pill {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--navy-900); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--ivory-dim);
  transition: border-color .15s, color .15s;
}
.category-pill:hover, .category-pill.active { border-color: var(--gold); color: var(--gold); }
.category-pill svg { width: 15px; height: 15px; }

/* ==========================================================================
   GRILLE PRODUITS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.product-media { position: relative; aspect-ratio: 1; }
.product-media .img-slot { position: absolute; inset: 0; }
.product-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(10,24,48,0.65); border: none; color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
}
.product-fav svg { width: 15px; height: 15px; }
.product-body { padding: 14px 16px 16px; }
.product-origin { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-dim); margin: 0 0 4px; }
.product-name { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.product-price { font-size: 14px; color: var(--gold); font-weight: 700; margin: 0 0 12px; }
.product-add {
  width: 100%; height: 38px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-gold); color: var(--ivory);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.product-add:hover { background: var(--gold-gradient); color: var(--navy-950); border-color: transparent; }

/* ==========================================================================
   OFFRES
   ========================================================================== */
.offers-track { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.offers-track::-webkit-scrollbar { display: none; }
.offer-card {
  flex: 0 0 auto; width: 300px;
  background: var(--navy-900); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.offer-media { position: relative; aspect-ratio: 16/9; }
.offer-media .img-slot { position: absolute; inset: 0; }
.offer-body { padding: 16px; }
.offer-title { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; }
.offer-desc { font-size: 12px; line-height: 1.6; color: var(--ivory-dim); margin: 0; }

/* ==========================================================================
   BANDEAU CLUB
   ========================================================================== */
.club-banner {
  margin: 72px auto 0; max-width: 1100px; padding: 0 20px;
}
.club-banner-inner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  background: linear-gradient(120deg, #3a2f18 0%, #5c4823 45%, #2a2110 100%);
  border: 1px solid var(--line-gold);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.club-banner-inner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.16) 0%, transparent 32%);
  pointer-events: none;
}
.club-text { position: relative; max-width: 520px; }
.club-text .eyebrow { color: var(--gold-light); }
.club-text h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.club-text p { font-size: 13px; color: var(--ivory-dim); margin: 0; line-height: 1.6; }
.club-seal { position: relative; width: 90px; height: 90px; color: var(--gold-light); opacity: 0.9; flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 40px 20px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ivory-dim); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: var(--ivory-dim); opacity: 0.6; }

/* ==========================================================================
   PANIER — tiroir latéral
   ========================================================================== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 12, 26, 0.6);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(400px, 100%);
  background: var(--navy-900);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.cart-close { width: 34px; height: 34px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--ivory); display: flex; align-items: center; justify-content: center; }
.cart-close svg { width: 15px; height: 15px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--ivory-dim); font-size: 13px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .img-slot { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--radius-sm); }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.cart-line-price { font-size: 12px; color: var(--gold); margin: 0; }
.cart-line-remove { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ivory-dim); background: none; border: none; margin-top: 6px; padding: 0; }
.cart-line-remove:hover { color: var(--gold); }
.cart-foot { padding: 20px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 16px; }
.cart-subtotal strong { color: var(--gold); font-size: 16px; }

/* ==========================================================================
   MODALE PRODUIT (aperçu rapide)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(5, 12, 26, 0.72);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.product-modal {
  width: min(760px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--navy-900); border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1fr 1fr;
}
.product-modal .img-slot { border-radius: var(--radius-xl) 0 0 var(--radius-xl); aspect-ratio: 1; }
.modal-body { padding: 32px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px; background: var(--navy-800); border: 1px solid var(--line); color: var(--ivory); display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 14px; height: 14px; }
.modal-body .product-origin { margin-top: 4px; }
.modal-body h3 { font-family: var(--font-display); font-size: 22px; margin: 6px 0 10px; }
.modal-body .price { font-size: 18px; color: var(--gold); font-weight: 700; margin: 0 0 16px; }
.modal-desc { font-size: 13px; line-height: 1.7; color: var(--ivory-dim); margin: 0 0 24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .product-modal { grid-template-columns: 1fr; }
  .product-modal .img-slot { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .club-banner-inner { padding: 32px 24px; }
}
