/* ==========================================================================
   GLOBAL CSS — extrait depuis modele.html (verrouillé 2026-05-09)
   Source de vérité : /modele.html à la racine du projet.
   Ne pas modifier sans synchroniser avec modele.html.
   ========================================================================== */

/* ==========================================================================
   1. CORE & VARIABLES
   ========================================================================== */
:root {
  --surface-dark: #050505;
  --surface-card: #0a0a0a;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent-emerald: #10B981;

  --glass-bg: rgba(20, 20, 20, 0.35);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  --font-sys: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --h1-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --p-size: clamp(1rem, 1.5vw + 0.5rem, 1.15rem);
  --easing-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background-color: #fafafa;
  color: #111;
  overflow-x: hidden;
  font-family: var(--font-sys);
}

::selection {
  background-color: var(--accent-emerald);
  color: white;
}

/* ==========================================================================
   2. HERO PREMIUM ARCHITECT (Fusion Texte & Formulaire)
   ========================================================================== */
#hero-premium-architect {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-dark);
  overflow: hidden;
  padding: 100px 0;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: contrast(1.1) brightness(0.9);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}

/* Variante adoucie : à utiliser sur les pages avec hero.bgImage statique
   (la vignette par défaut est calibrée pour la vidéo de la home et écrase l'image fixe). */
.hero-vignette.hero-vignette--soft {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
}

/* Mobile/tablette : ne pas étirer le hero à 100vh (force le zoom de l'image landscape).
   Règle obligatoire — voir CLAUDE.md règle 8. */
@media (max-width: 1023px) {
  #hero-premium-architect {
    min-height: auto;
    padding: 0 0 60px;
    /* Le hero est en display:flex — sans cette règle le bandeau et le container
       se mettent côte à côte (cf. bug Lot 1 corrigé 2026-05-09). */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-image,
  .hero-video {
    transform: scale(1);
    object-position: center;
  }
  /* Sur mobile, l'image bg étire trop : on la masque uniquement si le bandeau mobile
     prend le relais (cas bgImage sans bgVideo). Pour les pages avec bgVideo seule
     (home, devis-en-ligne), on garde la vidéo visible plein hero sur mobile. */
  #hero-premium-architect:has(.hero-mobile-banner) > .hero-bg-layer {
    display: none;
  }
  /* Cas bandeau mobile présent (bgImage seul) : padding-top réduit, le bandeau gère déjà l'espace */
  #hero-premium-architect:has(.hero-mobile-banner) .hero-container {
    padding-top: 1.5rem;
  }
  /* Cas bgVideo seul (ou aucun media) : pas de bandeau → le badge se retrouve collé sous
     le header sticky (~70px). Padding-top calibré pour faire descendre le badge proprement.
     Règle ajoutée 2026-05-10 — voir feedback hero badge bgVideo. */
  #hero-premium-architect:not(:has(.hero-mobile-banner)) .hero-container {
    padding-top: 6rem;
  }
  .hero-mobile-hide {
    display: none !important;
  }
}

/* PC : pour les pages avec bgVideo seul, la 1ère colonne (badge+titre+desc+CTA+trust)
   est plus courte que le formulaire à droite. align-items:center du grid centre la 1ère
   colonne, mais quand le contenu est très court (ex: pas de titleHighlight), le badge
   se retrouve trop haut visuellement. On ajoute un padding-top calibré pour pousser le
   contenu vers le bas et garder une zone respiratoire sous le header sticky.
   Règle ajoutée 2026-05-10 — voir feedback hero badge bgVideo. */
@media (min-width: 1024px) {
  #hero-premium-architect:has(.hero-video) .hero-container > .text-left {
    padding-top: 3rem;
  }
}

/* Bandeau image mobile (alternative au bg-layer zoomé sur portrait).
   Caché par défaut, affiché uniquement <1024px. */
.hero-mobile-banner { display: none; }
@media (max-width: 1023px) {
  .hero-mobile-banner {
    display: block;
    position: relative;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    background: var(--surface-dark);
  }
  /* Quand le contenu (badge + H1 long) déborde, le bandeau s'étend.
     Évite que le badge soit poussé sur le header sticky.
     Voir feedback_pages_chantier.md règle hero — Lot 9 (2026-05-10). */
  .hero-mobile-banner__img,
  .hero-mobile-banner__overlay {
    position: absolute !important;
    inset: 0;
  }
  .hero-mobile-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-mobile-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 60%, rgba(5,5,5,0.95) 100%);
  }
  .hero-mobile-banner__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* padding-top élevé pour faire descendre le badge sous le header sticky */
    padding: 5rem 1.5rem 1.5rem;
    color: #fff;
    gap: 0.75rem;
  }
  .hero-mobile-banner__title {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .hero-mobile-banner__title .highlight {
    background: linear-gradient(90deg, var(--accent-emerald) 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Carte auteur (photo + texte) — dédiée pour les heros custom (page Marseille).
   Définie en CSS pur car Tailwind compilé peut purger certaines utilities.
   Voir feedback_lot_pages_landing.md règle 9. */
.hero-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 22rem;
}
.hero-author-card__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}
.hero-author-card__text {
  min-width: 0;
}
.hero-author-card__name {
  font-weight: 700;
  color: #111827;
  font-size: 0.875rem;
  margin: 0;
}
.hero-author-card__role {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 2px 0 0;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-badge .stars { color: #FBBF24; font-size: 1.1rem; letter-spacing: 2px; }

.hero-title {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: var(--p-size);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-description strong { color: var(--text-primary); font-weight: 600; }

.trust-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  width: 100%;
  max-width: 500px;
}

@media (min-width: 640px) {
  .trust-metrics { flex-direction: row; gap: 2rem; }
}

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

.trust-item svg { width: 20px; height: 20px; color: var(--accent-emerald); }

/* ==========================================================================
   3. FORMULAIRE MULTI-STEP (Glassmorphism Premium)
   ========================================================================== */
.glass-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mdm-step { display: none; opacity: 0; transform: translateY(10px); transition: all 0.4s var(--easing-premium); }
.mdm-step.active { display: block; opacity: 1; transform: translateY(0); }

.mdm-radio-btn {
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all 0.3s var(--easing-premium);
}
.mdm-radio-btn:hover { border-color: #111; background: #f9fafb; }
.mdm-radio-btn.selected { border-color: #111; background: #111; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.btn-black {
  background: #111;
  color: #fff;
  transition: all 0.4s var(--easing-premium);
  position: relative;
  overflow: hidden;
}
.btn-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  background: #000;
}

/* ==========================================================================
   4. SECTIONS CONTENU (Minimalisme Blanc)
   ========================================================================== */
.section-title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #111;
}

.service-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--easing-premium);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #e5e7eb;
}
.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.7s var(--easing-premium);
}
.service-card:hover img { transform: scale(1.05); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  auto-rows: 300px;
}
.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing-premium);
}
.bento-item:hover img { transform: scale(1.05); }
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--easing-premium);
}
.bento-item:hover .bento-overlay { opacity: 1; }

@media (min-width: 768px) {
  .bento-large { grid-column: span 2; grid-row: span 2; }
}

/* ==========================================================================
   5. SECTION APP PREMIUM
   ========================================================================== */
.premium-app-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5%;
  background-color: var(--surface-dark);
  color: var(--text-primary);
  overflow: hidden;
}
.premium-app-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.app-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}
@media (max-width: 992px) {
  .app-container { flex-direction: column; text-align: center; }
}
.quote-preview-card {
  width: 100%;
  max-width: 540px;
  background: var(--surface-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cost-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.95rem; }
.cost-dots { flex-grow: 1; border-bottom: 1px dashed var(--glass-border); margin: 0 16px; opacity: 0.5; position: relative; top: -4px; }

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--easing-premium);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================================
   7. APPLE DOCK (Sidebar flottante obligatoire sur chaque page)
   ========================================================================== */
.apple-dock {
  background-color: rgba(244, 244, 245, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
}
.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #27272a;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dock-item:hover {
  background-color: rgba(0, 0, 0, 0.06);
  transform: scale(1.12);
  color: #000;
}
.dock-tooltip {
  position: absolute;
  background-color: #18181b;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
  .dock-tooltip { right: 64px; transform: translateX(10px) scale(0.95); }
  .dock-item:hover .dock-tooltip { opacity: 1; transform: translateX(0) scale(1); }
}
@media (max-width: 767px) {
  .dock-tooltip { bottom: 64px; transform: translateY(10px) scale(0.95); }
  .dock-item:hover .dock-tooltip { opacity: 1; transform: translateY(0) scale(1); }
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   8. HEADER (Sticky transparent puis opaque au scroll)
   Créé en complément du modele.html — règle utilisateur 2026-05-09
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1rem 0;
  background-color: transparent;
  transition: all 0.3s var(--easing-premium);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0.6rem 0;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s var(--easing-premium);
}
.site-header.scrolled .site-logo { color: #111; }

.site-logo img { height: 40px; width: auto; }
.site-logo-name { font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; }

.site-nav { display: none; gap: 2rem; align-items: center; }

@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s var(--easing-premium);
}
.site-nav a:hover { color: var(--accent-emerald); }
.site-header.scrolled .site-nav a { color: #27272a; }
.site-header.scrolled .site-nav a:hover { color: var(--accent-emerald); }

/* Burger mobile */
.site-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s var(--easing-premium);
}
.site-header.scrolled .site-burger { background-color: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.08); color: #111; }
@media (min-width: 1024px) { .site-burger { display: none; } }

.site-mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #fafafa;
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
}
.site-mobile-menu.open { display: flex; }
.site-mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #111;
}

/* ==========================================================================
   9. FOOTER (4 colonnes riche)
   Créé en complément du modele.html — règle utilisateur 2026-05-09
   ========================================================================== */
.site-footer {
  background-color: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4rem 0 0;
  color: #111;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
}

.site-footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #111;
}
.site-footer-brand .footer-logo img { height: 44px; width: auto; }
.site-footer-brand .footer-logo-name { font-weight: 700; font-size: 1.05rem; }

.site-footer-tagline {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
}

.footer-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}
.footer-rating .stars { color: #FBBF24; letter-spacing: 1px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}
.footer-contact a { color: #4b5563; text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent-emerald); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-emerald); }

.site-footer-bottom {
  margin-top: 3.5rem;
  padding: 1.5rem 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #6b7280;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .site-footer-bottom { flex-direction: row; text-align: left; }
}

.site-footer-bottom .footer-legal { line-height: 1.6; }
.site-footer-bottom .footer-social { display: flex; gap: 0.75rem; }
.site-footer-bottom .footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #111;
  transition: all 0.3s;
}
.site-footer-bottom .footer-social a:hover {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

/* ==========================================================================
   10. PATCHES (LiteSpeed lazy load + WP emojis)
   ========================================================================== */
#reviews-slider svg,
#reviews-slider .mt-auto img,
#reviews-slider .mt-auto div.rounded-full {
  flex-shrink: 0 !important;
}

#reviews-slider img.emoji {
  display: inline !important;
  width: 1.2em !important;
  height: 1.2em !important;
  margin: 0 0.1em !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

#reviews-slider .text-\[\#FBBF24\] {
  gap: 4px;
  align-items: center;
}

/* ==========================================================================
   11. POPUP CONSTRUCTION (Lot 3 — pages constructeur)
   Modal Apple-style avec 2 raccourcis : terrains + app IA
   ========================================================================== */
.construction-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--easing-premium), visibility .35s var(--easing-premium);
}

.construction-popup.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.construction-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.construction-popup__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 36px 28px 28px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(40px);
  transition: transform .45s var(--easing-premium);
}

.construction-popup.is-open .construction-popup__panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .construction-popup {
    align-items: center;
    padding: 24px;
  }
  .construction-popup__panel {
    border-radius: 28px;
    padding: 40px 36px 32px;
    transform: translateY(20px) scale(.97);
  }
  .construction-popup.is-open .construction-popup__panel {
    transform: translateY(0) scale(1);
  }
}

.construction-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.construction-popup__close:hover {
  background: #e5e5e5;
  transform: rotate(90deg);
}

.construction-popup__header {
  text-align: center;
  margin-bottom: 24px;
}

.construction-popup__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.construction-popup__title {
  font-size: clamp(1.5rem, 2.4vw + 0.5rem, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.construction-popup__title-accent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.construction-popup__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.55;
}

.construction-popup__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.construction-popup__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid #ececec;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--easing-premium), box-shadow .3s var(--easing-premium), border-color .3s var(--easing-premium), background .3s var(--easing-premium);
}

.construction-popup__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #d5d5d5;
  background: #ffffff;
}

.construction-popup__card--app {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

.construction-popup__card--app:hover {
  background: #161616;
  border-color: #161616;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.construction-popup__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ececec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.construction-popup__icon--accent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: transparent;
  color: #ffffff;
}

.construction-popup__card-text {
  flex: 1;
  min-width: 0;
}

.construction-popup__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}

.construction-popup__card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #6b7280;
}

.construction-popup__card--app .construction-popup__card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.construction-popup__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-emerald);
}

.construction-popup__card--app .construction-popup__card-cta {
  color: var(--accent-emerald);
}

.construction-popup__card-cta svg {
  transition: transform .3s var(--easing-premium);
}

.construction-popup__card:hover .construction-popup__card-cta svg {
  transform: translateX(4px);
}

.construction-popup__skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  transition: color .25s ease;
}
.construction-popup__skip:hover {
  color: #111;
}

/* ==========================================================================
   12. CATALOGUE TERRAINS (page /terrains/ + cartes)
   ========================================================================== */
.terrain-empty-state {
  border: 2px dashed #e5e7eb;
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  background: #fafafa;
}

.terrain-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .35s var(--easing-premium), box-shadow .35s var(--easing-premium);
}

.terrain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.terrain-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.terrain-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--easing-premium);
}

.terrain-card:hover .terrain-card__media img {
  transform: scale(1.04);
}

.terrain-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.terrain-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   13. CATALOGUE MAISONS-MODÈLES (cartes produit Lot 3)
   ========================================================================== */
.maison-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .35s var(--easing-premium), box-shadow .35s var(--easing-premium), border-color .35s var(--easing-premium);
}

.maison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border-color: #d5d5d5;
}

.maison-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}

.maison-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--easing-premium);
}

.maison-card:hover .maison-card__media img {
  transform: scale(1.04);
}

.maison-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.maison-card__badge--emerald { background: rgba(16, 185, 129, 0.95); color: #ffffff; }
.maison-card__badge--blue    { background: rgba(37, 99, 235, 0.95); color: #ffffff; }
.maison-card__badge--amber   { background: rgba(245, 158, 11, 0.95); color: #ffffff; }
.maison-card__badge--dark    { background: rgba(17, 17, 17, 0.92); color: #ffffff; }

.maison-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.maison-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maison-card__name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  line-height: 1.2;
}

.maison-card__tagline {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.45;
  font-style: italic;
}

.maison-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 0 8px;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
}

.maison-card__stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.maison-card__stats svg {
  flex-shrink: 0;
  color: var(--accent-emerald);
}

.maison-card__specs {
  list-style: disc;
  list-style-position: outside;
  padding-left: 18px;
  margin: 4px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maison-card__specs li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
}

.maison-card__price {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f1f1f1;
}

.maison-card__price-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
}

.maison-card__price-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  line-height: 1.1;
  margin-top: 2px;
}

.maison-card__price-suffix {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.maison-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.maison-card__cta-primary,
.maison-card__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all .25s var(--easing-premium);
  text-decoration: none;
}

.maison-card__cta-primary {
  background: #0a0a0a;
  color: #ffffff;
}

.maison-card__cta-primary:hover {
  background: var(--accent-emerald);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.maison-card__cta-secondary {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #e5e7eb;
}

.maison-card__cta-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
