/* ============================================================
   MASHAR IMMOBILIER — Design System
   Version 1.0 | Abidjan, Côte d'Ivoire
   ============================================================ */

/* ──────────────────────────────────────────
   1. DESIGN TOKENS — Variables CSS
   ────────────────────────────────────────── */
:root {

  /* Couleurs primaires — extraites directement du logo MASHAR */
  --color-navy:        #212B6B;   /* Bleu marine indigo du logo — confiance, institutionnel */
  --color-navy-dark:   #171E4D;   /* Bleu foncé — hover, fonds profonds, footer */
  --color-navy-light:  #3D4A9E;   /* Bleu moyen — accents secondaires, liens */
  --color-navy-pale:   #EEF0FA;   /* Bleu très pâle — fonds de section discrets */

  /* Couleurs accent */
  --color-gold:        #C9A227;   /* Doré — valeur, prestige immobilier */
  --color-gold-light:  #E0B83A;   /* Doré clair — hover doré */
  --color-gold-pale:   #FBF3DC;   /* Doré pâle — fonds de sections, badges */

  /* Neutres */
  --color-white:       #FFFFFF;
  --color-white-pure:  #FFFFFF;
  --color-gray-50:     #F7F8FB;
  --color-gray-100:    #EEF0F5;
  --color-gray-200:    #DFE2EC;
  --color-gray-400:    #9498AC;
  --color-gray-600:    #565B72;
  --color-gray-800:    #1B1E2E;

  /* États */
  --color-success:     #16A34A;
  --color-warning:     #D97706;
  --color-error:       #DC2626;
  --color-info:        #0284C7;

  /* Badge statuts biens */
  --color-available:   #16A34A;   /* Disponible */
  --color-rented:      #DC2626;   /* Loué */
  --color-reserved:    #D97706;   /* Réservé */

  /* ── Typographie ── */
  --font-display:   'Playfair Display', Georgia, serif;  /* Titres H1-H2 — autorité, prestige */
  --font-body:      'Inter', system-ui, sans-serif;       /* Corps, UI, labels */

  /* Échelle typographique */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */

  /* Graisse */
  --font-regular:   400;
  --font-medium:    500;
  --font-semibold:  600;
  --font-bold:      700;
  --font-extrabold: 800;

  /* Interligne */
  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

  /* ── Espacement ── */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

  /* ── Layout ou conteneur ── */
  --container-max:  1200px;
  --container-pad:  var(--space-6);

  /* ── Bordures & rayons ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Ombres ── */
  --shadow-sm:   0 1px 2px rgba(33,43,107,0.06);
  --shadow-md:   0 4px 16px rgba(33,43,107,0.09);
  --shadow-lg:   0 8px 32px rgba(33,43,107,0.13);
  --shadow-xl:   0 20px 60px rgba(33,43,107,0.16);
  --shadow-gold: 0 4px 20px rgba(201,162,39,0.30);

  /* ── Transitions ── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* ── Z-index ── */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* ──────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  background-color: var(--color-white-pure);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ──────────────────────────────────────────
   3. TYPOGRAPHIE
   ────────────────────────────────────────── */

/* Titres display — Playfair Display */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

/* Titres de section */
.heading-xl  { font-size: var(--text-3xl); font-weight: var(--font-bold);     line-height: var(--leading-snug); }
.heading-lg  { font-size: var(--text-2xl); font-weight: var(--font-bold);     line-height: var(--leading-snug); }
.heading-md  { font-size: var(--text-xl);  font-weight: var(--font-semibold); line-height: var(--leading-snug); }
.heading-sm  { font-size: var(--text-lg);  font-weight: var(--font-semibold); line-height: var(--leading-normal); }

/* Corps de texte */
.body-lg   { font-size: var(--text-lg);   line-height: var(--leading-relaxed); }
.body-base { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.body-sm   { font-size: var(--text-sm);   line-height: var(--leading-normal); }
.body-xs   { font-size: var(--text-xs);   line-height: var(--leading-normal); }

/* Labels & overlines */
.label-overline {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Couleurs texte utilitaires */
.text-navy   { color: var(--color-navy); }
.text-gold   { color: var(--color-gold); }
.text-white  { color: var(--color-white-pure); }
.text-muted  { color: var(--color-gray-600); }
.text-subtle { color: var(--color-gray-400); }

/* ──────────────────────────────────────────
   4. LAYOUT
   ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}
.section--sm  { padding-block: var(--space-12); }
.section--lg  { padding-block: var(--space-24); }

/* Grilles */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Flex utilitaires */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ──────────────────────────────────────────
   5. NAVBAR
   ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: 72px;
  background: var(--color-navy);
  border-bottom: 2px solid var(--color-gold);
  transition: box-shadow var(--transition-base);
}
.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.navbar__logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white-pure);
  letter-spacing: 0.04em;
}
.navbar__logo-sub {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Navigation liens */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.navbar__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.80);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--color-white-pure);
}
.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* CTA navbar */
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.navbar__cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

/* Hamburger mobile */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white-pure);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-navy-dark);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  z-index: var(--z-dropdown);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
}
.navbar__mobile-menu.open { display: flex; }
.navbar__mobile-menu .navbar__link {
  font-size: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .navbar__nav    { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ──────────────────────────────────────────
   6. BOUTONS
   ────────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* Variantes */
.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white-pure);
  border-color: var(--color-navy);
}
.btn--navy:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white-pure);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--color-white-pure);
}

.btn--outline-navy {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline-navy:hover {
  background: var(--color-navy);
  color: var(--color-white-pure);
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  transform: translateY(-2px);
}

/* Tailles */
.btn--sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--xl  { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); }
.btn--full{ width: 100%; }

/* ──────────────────────────────────────────
   7. CARDS (Biens immobiliers)
   ────────────────────────────────────────── */
.card {
  background: var(--color-white-pure);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-gray-100);
}
.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__image { transform: scale(1.04); }

/* Badge statut */
.card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white-pure);
}
.card__badge--available { background: var(--color-available); }
.card__badge--rented    { background: var(--color-rented); }
.card__badge--reserved  { background: var(--color-reserved); }

.card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card__type {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  line-height: var(--leading-snug);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}
.card__price {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-top: auto;
}
.card__price span {
  font-size: var(--text-sm);
  font-weight: var(--font-regular);
  color: var(--color-gray-400);
}
.card__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-gray-100);
  display: flex;
  gap: var(--space-3);
}

/* ──────────────────────────────────────────
   8. SECTION HERO — variante ORIGINALE (fond blanc, gardée
      disponible si besoin ailleurs, non utilisée sur index.html)
   ────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  padding-top: 72px; /* hauteur navbar */
  background: var(--color-white-pure);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Halo doux navy + doré en fond, très subtil sur fond blanc */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 82% 18%, rgba(33,43,107,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 8% 90%, rgba(201,162,39,0.10) 0%, transparent 65%);
  pointer-events: none;
}
/* Forme géométrique décorative doré, façon "toit" en clin d'œil au logo */
.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -6%;
  width: 42vw;
  max-width: 620px;
  aspect-ratio: 1/1;
  background: var(--color-navy-pale);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero .section-header__title,
.hero h1 {
  color: var(--color-navy);
}
.hero p {
  color: var(--color-gray-600);
}

/* ──────────────────────────────────────────
   8bis. HERO PHOTO — pleine largeur, overlay sombre
   Inspiré d'un référentiel "immobilier premium" : photo
   plein cadre, overlay navy dégradé, typographie bold,
   badge circulaire doré en accent RARE (seul point de couleur
   vive de toute la section). C'est LE hero utilisé sur index.html.
   ────────────────────────────────────────── */
.hero-photo {
  position: relative;
  min-height: 94vh;
  padding-top: 72px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy-dark); /* couleur de secours pendant le chargement de l'image */
}
.hero-photo__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Overlay dégradé : lisibilité du texte, un seul ton (navy), pas de couleur vive */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,30,77,0.55) 0%, rgba(23,30,77,0.35) 40%, rgba(15,19,50,0.92) 100%);
  z-index: 1;
}
.hero-photo__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-16);
}
.hero-photo h1 { color: var(--color-white-pure); }
.hero-photo p  { color: rgba(255,255,255,0.82); }

/* Badge circulaire décoratif — seul accent doré du hero */
.hero-badge {
  position: absolute;
  z-index: 2;
  top: 120px;
  right: 6%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: spinSlow 22s linear infinite;
}
.hero-badge__inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px dashed rgba(23,30,77,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinSlow 22s linear infinite reverse; /* le texte reste lisible malgré la rotation du cadre */
}
.hero-badge svg { color: var(--color-navy); }
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .hero-badge { display: none; } /* trop de bruit visuel en mobile */
}

/* ──────────────────────────────────────────
   8ter. BANDE DE CHIFFRES CLÉS (stats band)
   Un seul aplat de couleur (navy foncé), chiffres en doré —
   la SEULE grande zone colorée de la page, utilisée avec
   parcimonie juste après le hero pour créer un point d'ancrage.
   ⚠️ Chiffres = placeholders, à remplacer par les vraies
   statistiques MASHAR quand elles seront disponibles.
   ────────────────────────────────────────── */
.stats-band {
  background: var(--color-navy-dark);
  padding: var(--space-10) 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stats-band__number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: var(--font-bold);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stats-band__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}
@media (max-width: 768px) {
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-4); }
}

/* ──────────────────────────────────────────
   9. SECTION HEADERS (réutilisables)
   ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.section-header__overline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.section-header__overline::before,
.section-header__overline::after {
  content: '—';
  margin-inline: var(--space-2);
  opacity: 0.5;
}
.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}
.section-header__desc {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* Section header — variante sur fond sombre */
.section-header--light .section-header__title { color: var(--color-white-pure); }
.section-header--light .section-header__desc  { color: rgba(255,255,255,0.72); }

/* ──────────────────────────────────────────
   10. BADGES & TAGS
   ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.badge--gold   { background: var(--color-gold-pale); color: var(--color-navy); }
.badge--navy   { background: var(--color-navy); color: var(--color-white-pure); }
.badge--success{ background: #DCFCE7; color: var(--color-success); }
.badge--muted  { background: var(--color-gray-100); color: var(--color-gray-600); }

/* ──────────────────────────────────────────
   11. FORMULAIRES
   ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-800);
  background: var(--color-white-pure);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(33,43,107,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Barre de recherche */
.search-bar {
  display: flex;
  gap: var(--space-3);
  background: var(--color-white-pure);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  flex-wrap: wrap;
}
.search-bar__select,
.search-bar__input {
  flex: 1;
  min-width: 140px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1.5px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  color: var(--color-gray-800);
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-bar__select:focus,
.search-bar__input:focus { border-color: var(--color-navy); }

/* ──────────────────────────────────────────
   12. FOOTER
   ────────────────────────────────────────── */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__logo-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-white-pure);
  margin-bottom: var(--space-1);
}
.footer__logo-sub {
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__slogan {
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
}
.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-gold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-gold); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-3);
}
.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold);
}
.footer__bottom {
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.40);
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid  { grid-template-columns: 1fr; }
  .footer__bottom{ flex-direction: column; text-align: center; }
}

/* ──────────────────────────────────────────
   13. WHATSAPP FLOATING BUTTON
   ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.10);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ──────────────────────────────────────────
   13bis. BOUTON RETOUR EN HAUT
   ────────────────────────────────────────── */
#scroll-top-btn {
  position: fixed;
  bottom: var(--space-6);
  right: calc(var(--space-6) + 68px); /* à gauche du bouton WhatsApp */
  z-index: var(--z-toast);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: var(--color-white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background var(--transition-fast);
}
#scroll-top-btn:hover { background: var(--color-navy-dark); }
#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 640px) {
  #scroll-top-btn { right: var(--space-4); bottom: calc(var(--space-4) + 64px); width: 40px; height: 40px; }
}

/* ──────────────────────────────────────────
   13ter. FILTRES CATALOGUE
   ────────────────────────────────────────── */
.filter-chips {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white-pure);
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.filter-chip.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white-pure);
}

.filter-panel {
  background: var(--color-white-pure);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.filter-panel__row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}
.filter-range {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.filter-range__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  font-weight: 500;
}
.filter-range__label strong { color: var(--color-navy); }
.filter-range input[type="range"] {
  width: 100%;
  accent-color: var(--color-navy);
  cursor: pointer;
}
.catalogue-empty {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-gray-400);
}
.catalogue-count {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

/* ──────────────────────────────────────────
   13quater. PLACEHOLDER IMAGE (à remplacer par le client)
   ────────────────────────────────────────── */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-navy-pale);
  border: 2px dashed var(--color-navy-light);
  border-radius: var(--radius-lg);
  color: var(--color-navy-light);
  text-align: center;
  padding: var(--space-4);
  width: 100%;
  overflow: hidden;
}
.img-placeholder svg { opacity: 0.6; }
.img-placeholder__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 220px;
  line-height: 1.4;
}
/* Tailles courantes prêtes à l'emploi */
.img-placeholder--square   { aspect-ratio: 1/1; }
.img-placeholder--4-3      { aspect-ratio: 4/3; }
.img-placeholder--16-9     { aspect-ratio: 16/9; }
.img-placeholder--portrait { aspect-ratio: 3/4; }
.img-placeholder--avatar   { width: 64px; height: 64px; border-radius: 50%; flex-shrink:0; }
.img-placeholder--avatar .img-placeholder__label { display:none; }
.img-placeholder--avatar svg { width:24px; height:24px; }

/* ──────────────────────────────────────────
   13quinquies. TIMELINE (processus en étapes)
   ────────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-navy-pale);
}
.timeline-step {
  position: relative;
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.timeline-step__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  box-shadow: var(--shadow-md);
}
.timeline-step__content { padding-top: 8px; }
.timeline-step__title {
  color: var(--color-navy);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  margin-bottom: 8px;
}
.timeline-step__desc {
  color: var(--color-gray-600);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .timeline::before { left: 21px; }
  .timeline-step__num { width: 44px; height: 44px; font-size: var(--text-base); }
}

/* ──────────────────────────────────────────
   13sexies. ONGLETS (tabs)
   ────────────────────────────────────────── */
.tabs__nav {
  display: flex;
  gap: var(--space-2);
  background: var(--color-gray-50);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
}
.tabs__btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-gray-600);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tabs__btn:hover { color: var(--color-navy); }
.tabs__btn.active {
  background: var(--color-white-pure);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.tabs__panel { display: none; }
.tabs__panel.active { display: block; animation: fadeUp 0.4s ease; }
@media (max-width: 560px) {
  .tabs__btn { font-size: var(--text-xs); padding: 12px 10px; }
}

/* ──────────────────────────────────────────
   14. UTILITAIRES DIVERS
   ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: var(--radius-full);
  margin: var(--space-4) auto;
}
.divider-gold--left { margin-left: 0; }

/* Fond sections */
.bg-navy       { background: var(--color-navy); }
.bg-navy-dark  { background: var(--color-navy-dark); }
.bg-gold-pale  { background: var(--color-gold-pale); }
.bg-gray-50    { background: var(--color-gray-50); }

/* Espacement vertical */
.mt-auto { margin-top: auto; }
.pb-page { padding-bottom: var(--space-24); }

/* Page offset pour navbar fixe */
.page-offset { padding-top: 72px; }

/* Animations globales */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
[data-animate].animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Utilisé uniquement pour la modale (pas de data-animate dessus) */
.modal { animation: fadeUp 0.3s ease; }
.animate-fade-up:not([data-animate]) {
  animation: fadeUp 0.6s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Réduction motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ──────────────────────────────────────────
   15. MODALE
   ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,30,77,0.78);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--color-white-pure);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 0.3s ease;
}
.modal__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.modal__close:hover { background: var(--color-gray-200); }
.modal__body { padding: var(--space-6); }