/* ============================================================
   MP2A — Menuiseries · feuille de style
   Design premium artisan : crème / anthracite / terracotta-forêt
   ============================================================ */

:root {
  /* Couleurs — charte MP2A : blanc / anthracite / gris + rouge */
  --cream: #ffffff;         /* fond principal */
  --cream-2: #f3f4f5;       /* fond de section alterné (gris très clair) */
  --ink: #111113;           /* texte quasi-noir */
  --charcoal: #2a2a2e;
  --muted: #6c6c72;         /* gris texte secondaire */
  --line: #e6e6ea;
  --accent: #e2001a;        /* ROUGE MP2A */
  --accent-dark: #b00014;
  --forest: #18181b;        /* anthracite (fonds sombres / badges) */
  --forest-dark: #0e0e10;   /* section sombre (contact) */
  --white: #ffffff;
  --gold: #ffc40a;          /* étoiles des avis */

  /* Typo — industrielle, alignée au logo */
  --serif: "Archivo", system-ui, sans-serif;     /* titres */
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Divers */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(29, 33, 29, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(29, 33, 29, 0.28);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: #ff5a5a; }
.accent { color: var(--accent); font-style: normal; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============================================================
   EN-TÊTE
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 5px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-mark { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; color: var(--forest); }
.logo-sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 30px; }
.nav a { font-weight: 500; font-size: 0.96rem; position: relative; padding: 4px 0; color: var(--charcoal); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.95rem; color: var(--forest); }
.phone-link:hover { color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 70px 0 90px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); margin-bottom: 22px; }
.lead { font-size: 1.12rem; color: var(--charcoal); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust { list-style: none; display: flex; gap: 38px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); }
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--forest); color: var(--cream);
  border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); text-align: center;
}
.hero-badge-num { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.hero-badge-txt { font-size: 0.8rem; letter-spacing: 0.06em; opacity: 0.9; }

/* ============================================================
   BANDEAU CONFIANCE
   ============================================================ */
.trustbar { background: var(--forest); color: var(--cream); }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.trust-item { font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.section-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--cream-2); border-radius: 14px; margin-bottom: 18px;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Produits ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-body p { font-size: 0.94rem; color: var(--muted); }
.products-more { text-align: center; margin-top: 30px; color: var(--charcoal); font-size: 1rem; }
.products-more strong { color: var(--forest); font-weight: 600; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-lg { grid-column: span 2; grid-row: span 2; }
.gallery-tag {
  position: absolute; left: 12px; bottom: 12px; background: rgba(29, 33, 29, 0.78); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 100px;
  opacity: 0; transform: translateY(8px); transition: 0.3s var(--ease);
}
.gallery-item:hover .gallery-tag { opacity: 1; transform: translateY(0); }

/* ---------- Avis ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 1rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
}
.review p { font-size: 1.02rem; color: var(--charcoal); font-style: italic; }
.review-author { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream-2); flex: none; }
.review-author cite { display: flex; flex-direction: column; font-style: normal; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.review-author cite span { font-weight: 400; font-size: 0.8rem; color: var(--muted); }

/* ---------- Zone d'intervention ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zone-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.zone-copy > p { color: var(--muted); margin-bottom: 22px; }
.zone-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.zone-list li { background: var(--cream-2); border: 1px solid var(--line); border-radius: 100px; padding: 7px 16px; font-size: 0.9rem; font-weight: 500; }
.zone-map { aspect-ratio: 4 / 3; }
.map-placeholder {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: 8px;
  background: var(--cream-2); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.map-placeholder span { font-size: 2.4rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-dark { background: var(--forest-dark); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-copy h2 { color: var(--cream); font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.contact-copy > p { color: #c7c7cd; max-width: 420px; margin-bottom: 30px; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; }
.contact-info a:hover { color: #ff5a5a; }
.contact-hours { align-items: flex-start !important; }
.contact-hours span:last-child { line-height: 1.55; }

.contact-form { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.98rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(191, 106, 55, 0.15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #1a8f3c; }
.form-note.err { color: #c0392b; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-brand .logo-mark { color: var(--cream); }
.footer-logo { height: 48px; width: auto; display: block; }
.footer-brand p { color: #a6a6ad; font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-contact span { color: #c2c2c9; font-size: 0.92rem; line-height: 1.5; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #c2c2c9; font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #90909a;
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   CTA FLOTTANT (mobile)
   ============================================================ */
.floating-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none;
  background: var(--accent); color: #fff; font-weight: 600; padding: 14px 22px;
  border-radius: 100px; box-shadow: var(--shadow);
}

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { order: -1; }
  .hero-media img { height: 420px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .zone-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.35s var(--ease); padding: 10px 24px 20px;
  }
  .nav.open { transform: translateY(0); box-shadow: var(--shadow); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header-cta .phone-link { display: none; }
  .floating-cta { display: inline-flex; }
  .section { padding: 64px 0; }
  .pillars { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-lg { grid-column: span 2; grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
}

/* ============================================================
   MULTI-PAGES : nav active, page-hero, filtres, projets,
   lightbox, bandeaux CTA, lignes produits
   ============================================================ */
.nav a.active { color: var(--accent); }
.nav a.active::after { width: 100%; }

/* En-tête de sous-page */
.page-hero { background: var(--cream-2); padding: 66px 0 58px; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 1.06rem; }
.breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Pages légales (colonne de texte lisible) */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.32rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--charcoal); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .updated { font-size: 0.88rem; color: var(--muted); margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal .todo { background: #fff7d6; border: 1px solid var(--gold); border-radius: 8px; padding: 2px 7px; font-weight: 600; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; padding: 9px 20px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--charcoal); cursor: pointer; transition: all 0.2s var(--ease); }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Grille de projets */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-thumb { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-cat { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { font-size: 1.16rem; margin-bottom: 6px; }
.project-loc { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.project-card.hide { display: none; }

/* Bandeau CTA */
.cta-band { background: var(--forest); color: #fff; text-align: center; }
.cta-band .container { padding: 66px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: #c7c7cd; max-width: 560px; margin: 14px auto 28px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 12, 0.92);
  display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.95rem; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; display: grid; place-items: center; transition: background 0.2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Lignes produits (page Produits) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 64px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.rev .feature-media { order: 2; }
.feature-media img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.feature-text p { color: var(--charcoal); margin-bottom: 16px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { padding-left: 26px; position: relative; color: var(--charcoal); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.rev .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row { gap: 28px; }
  .feature-media img { height: 300px; }
}
@media (max-width: 720px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VIDÉO DRONE
   ============================================================ */
.video-section { background: var(--forest); }
.video-section .section-head h2 { color: #fff; }
.video-section .section-sub { color: #c2c2c9; }
.video-frame { position: relative; max-width: 1000px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #000; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; }
.video-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .video-badge::before { animation: none; } }

/* ============================================================
   CARTE GOOGLE MAPS
   ============================================================ */
.map-wrap { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }
.zone-map .map-embed { border-radius: var(--radius); border: 1px solid var(--line); }

/* ============================================================
   MINI-JEU EN POPUP (« Ferme les fenêtres ! »)
   ============================================================ */
.game-launch {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600;
  font-size: 0.92rem; padding: 12px 18px; border: none; border-radius: 100px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s ease;
}
.game-launch:hover { transform: translateY(-2px); background: var(--accent); }
.game-launch .g-emoji { font-size: 1.1rem; }

.game-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(14, 14, 16, 0.74); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease);
}
.game-overlay.show { opacity: 1; visibility: visible; }

.game-modal {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--cream); border-radius: 20px; padding: 30px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(14px) scale(0.98); transition: transform 0.25s var(--ease);
}
.game-overlay.show .game-modal { transform: none; }

.game-modal h2 { font-size: 1.5rem; margin: 0 0 4px; }
.game-modal .game-tag { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }

.game-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: none; border-radius: 50%; background: var(--cream-2); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background 0.2s ease;
}
.game-close:hover { background: var(--accent); color: #fff; }

.game-hud { display: flex; gap: 10px; margin-bottom: 16px; }
.game-stat {
  flex: 1; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 8px; text-align: center;
}
.game-stat .num {
  display: block; font-family: var(--serif); font-weight: 800;
  font-size: 1.5rem; line-height: 1; color: var(--ink);
}
.game-stat .lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.game-stat.accent .num { color: var(--accent); }

.game-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: var(--charcoal); padding: 14px; border-radius: 16px;
}
.window {
  position: relative; aspect-ratio: 1 / 1; border: none; cursor: pointer;
  background: #cfd6dc; border-radius: 7px; padding: 0; overflow: hidden;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #9aa4ad;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.window::before, .window::after { content: ""; position: absolute; background: #fff; z-index: 2; }
.window::before { left: 50%; top: 5px; bottom: 5px; width: 3px; transform: translateX(-50%); }
.window::after  { top: 50%; left: 5px; right: 5px; height: 3px; transform: translateY(-50%); }
.window .sun { display: none; }
.window.open {
  background: linear-gradient(#bfe6ff, #eaf7ff);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--accent), 0 0 0 3px rgba(226, 0, 26, 0.25);
  animation: winPop 0.18s ease;
}
.window.open .sun {
  display: block; position: absolute; z-index: 1; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gold); top: 13%; right: 15%;
  box-shadow: 0 0 12px 4px rgba(255, 196, 10, 0.7);
}
.window.closed-flash { animation: winGood 0.4s ease; }
.window:not(.open):active { transform: scale(0.96); }
@keyframes winPop { from { transform: scale(0.9); } to { transform: scale(1); } }
@keyframes winGood { 0% { background: #b6f0c2; } 100% { background: #cfd6dc; } }
.game-board.board-disabled .window { cursor: default; opacity: 0.92; }

.game-controls { text-align: center; margin-top: 20px; }
.game-msg { min-height: 24px; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 480px) {
  .game-modal { padding: 26px 18px 22px; }
  .game-launch { font-size: 0.85rem; padding: 11px 15px; }
}
