/* ============================================================
   GELCO Ascenseurs — Feuille de style principale
   Palette : bleu profond #0A3D62 / accent orange #C8102E
   ============================================================ */

:root {
  /* ---------------------------------------------------------------
     RAMPE BLEU NUIT — couleur principale, tirée du logo GELCO.
     Du plus clair (fonds) au plus sombre (pied de page).
     --------------------------------------------------------------- */
  --navy-50:  #F4F7FA;   /* fond de section alternée */
  --navy-100: #E9F0F6;   /* fond doux, vignettes */
  --navy-200: #D5E2EC;   /* texte courant sur fond sombre */
  --navy-300: #B9CBD8;   /* texte secondaire sur fond sombre */
  --navy-400: #8FA6B7;   /* texte tertiaire sur fond sombre */
  --navy-500: #0E5385;   /* point clair des dégradés */
  --navy-600: #0A3D62;   /* BLEU DE MARQUE */
  --navy-700: #062A47;   /* survol, dégradés */
  --navy-800: #041E33;   /* pied de page, barre du haut */
  --navy-900: #02121D;   /* réserve, contrastes extrêmes */

  /* ---------------------------------------------------------------
     RAMPE ROUGE — accent de marque. Réservée à l'action :
     boutons d'appel, liens vifs, éléments actifs.
     Ne jamais l'employer pour signaler une erreur (voir statuts).
     --------------------------------------------------------------- */
  --red-50:  #FDF3F5;
  --red-100: #FBDEE3;
  --red-200: #F2A9B0;   /* mise en valeur sur fond sombre */
  --red-400: #E14259;
  --red-600: #C8102E;   /* ROUGE DE MARQUE */
  --red-700: #A80E27;   /* survol des boutons */
  --red-800: #8E1526;   /* enfoncé */
  --red-900: #5C0D18;

  /* ---------------------------------------------------------------
     NEUTRES — légèrement tirés vers le bleu de la marque,
     jamais un gris pur, pour que le tout fasse famille.
     --------------------------------------------------------------- */
  --ink-900: #1F2937;   /* texte courant */
  --ink-600: #5B6B7C;   /* texte atténué */
  --ink-200: #DDE5EC;   /* filets et bordures */
  --ink-000: #FFFFFF;

  /* ---------------------------------------------------------------
     STATUTS — volontairement distincts des couleurs de marque,
     pour qu'un message de confirmation ne soit jamais confondu
     avec un bouton, ni une alerte avec le rouge GELCO.
     --------------------------------------------------------------- */
  --ok:        #146C43;
  --ok-bg:     #E8F7EE;
  --ok-line:   #A8DCBE;
  --warn:      #9A5B00;
  --warn-bg:   #FDF4E3;
  --warn-line: #EBCF97;
  --alert:     #8A1C1C;   /* brun-rouge : ne se confond pas avec le rouge de marque */
  --alert-bg:  #FBEDED;
  --alert-line:#E4B3B3;

  /* Couleurs de service, hors palette de marque */
  --green-wa: #25D366;      /* imposée par WhatsApp — fond uniquement */
  --green-wa-dark: #0F7A4A; /* le même vert assombri : le clair ne tient pas
                               le contraste en texte ou en icône sur blanc */
  --gold:     #F1A33C;   /* étoiles des avis Google */

  /* ---------------------------------------------------------------
     ÉCHELLE TYPOGRAPHIQUE — rapport progressif : resserré sur les
     tailles de lecture (1,08 à 1,12), élargi sur les titres
     (1,18 à 1,25). Aucune taille ne doit exister hors de ces pas.
     --------------------------------------------------------------- */
  --t-100:  12px;    /* micro-étiquettes */
  --t-200:  13px;    /* légendes, mots-clés, barre du haut */
  --t-300:  14.5px;  /* texte secondaire, pied de page */
  --t-400:  16px;    /* TEXTE COURANT */
  --t-500:  18px;    /* chapô, intertitre */
  --t-600:  20px;    /* titre de carte */
  --t-700:  22px;    /* nom de marque */
  --t-800:  26px;    /* titre de section */
  --t-900:  32px;
  --t-1000: 40px;

  /* ---------------------------------------------------------------
     OMBRES — trois niveaux, une seule teinte (le bleu nuit dilué),
     chacune en deux couches : un contact net, une diffusion large.
     --------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(4,30,51,.05), 0 2px 8px rgba(4,30,51,.05);
  --shadow-md: 0 2px 4px rgba(4,30,51,.05), 0 10px 28px rgba(4,30,51,.11);
  --shadow-lg: 0 4px 8px rgba(4,30,51,.06), 0 16px 40px rgba(4,30,51,.14);
  --shadow-overlay: 0 6px 20px rgba(0,0,0,.25);  /* sur fond assombri */
  --ring: 0 0 0 3px rgba(10,61,98,.22);          /* anneau de focus */

  /* ---------------------------------------------------------------
     FORMES ET GABARIT
     --------------------------------------------------------------- */
  --radius-sm:   8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-pill: 999px;
  --container: 1160px;

  /* ---------------------------------------------------------------
     ALIAS DE MARQUE — ce que les composants appellent réellement.
     Changer la couleur GELCO se fait ici, en un seul endroit.
     --------------------------------------------------------------- */
  --navy:        var(--navy-600);
  --navy-dark:   var(--navy-700);
  --navy-deep:   var(--navy-800);
  --accent:      var(--red-600);
  --accent-dark: var(--red-800);
  --bg:          var(--ink-000);
  --bg-alt:      var(--navy-50);
  --bg-soft:     var(--navy-100);
  --text:        var(--ink-900);
  --muted:       var(--ink-600);
  --line:        var(--ink-200);
  --shadow:       var(--shadow-sm);
  --shadow-hover: var(--shadow-md);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: var(--t-400);
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> n'existe que pour proposer le WebP : il ne doit peser sur
   aucune mise en page. display:contents le fait disparaître de la boîte,
   l'image se comporte comme si elle était restée enfant direct. */
picture { display: contents; }


a { color: var(--navy); text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--t-300);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  line-height: 1.2;
}
/* Les rampes permettent un état survolé puis un état enfoncé distincts :
   le contraste augmente d'un cran à chaque fois, jamais d'un seul saut. */
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--red-600); color: #fff; }
.btn-accent:hover { background: var(--red-700); color: #fff; }
.btn-accent:active { background: var(--red-800); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-light:active { background: rgba(255,255,255,.2); }
.btn-navy { background: var(--navy-600); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-navy:active { background: var(--navy-800); }
.btn-outline { border-color: var(--navy-600); color: var(--navy-600); }
.btn-outline:hover { background: var(--navy-600); color: #fff; }
.btn-outline:active { background: var(--navy-700); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-text {
  font-size: var(--t-700);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .5px;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-size: var(--t-100);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 10px 13px;
  font-weight: 600;
  font-size: var(--t-300);
  color: var(--text);
  border-radius: 8px;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav a.active { color: var(--navy); background: var(--bg-soft); }
.header-cta { flex: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(200,16,46,.16), transparent 45%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-500) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 84px 20px 92px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--red-200); }
.hero p.lead {
  font-size: var(--t-500);
  color: var(--navy-200);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 380px; height: auto; }
.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-300);
  font-weight: 600;
  color: var(--navy-200);
}
.hero-badge svg { width: 20px; height: 20px; flex: none; }

/* Hero de page intérieure */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 70%, var(--navy-500));
  color: #fff;
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: var(--t-200); color: var(--navy-300); margin-bottom: 12px; }
.breadcrumb a { color: var(--navy-200); }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.page-hero p { color: var(--navy-200); max-width: 640px; margin-top: 12px; font-size: var(--t-500); }

/* ---------- Bandeau de statistiques ---------- */
.stats-band { background: var(--navy-deep); color: #fff; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label { font-size: var(--t-300); color: var(--navy-300); margin-top: 4px; }

/* ---------- Sections génériques ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.overline {
  display: inline-block;
  font-size: var(--t-200);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.2;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: var(--t-400); }

/* ---------- Grilles de cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--t-600); font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: var(--t-300); flex: 1; }
.card .card-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: var(--t-300);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link:hover { color: var(--accent-dark); }

/* ---------- Section "Vous êtes..." ---------- */
.persona-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--navy); }
.persona-card h3 { font-size: var(--t-500); color: var(--navy-deep); margin: 14px 0 8px; }
.persona-card p { font-size: var(--t-300); color: var(--muted); }

/* ---------- Marques ---------- */
.brands-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.brand-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700;
  color: var(--navy);
  font-size: var(--t-300);
  letter-spacing: .5px;
  box-shadow: var(--shadow);
}
.brands-note {
  text-align: center;
  color: var(--muted);
  font-size: var(--t-200);
  margin-top: 22px;
}

/* ---------- Liste "pourquoi nous" ---------- */
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item + .why-item { margin-top: 26px; }
.why-check {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.why-check svg { width: 20px; height: 20px; }
.why-item h3 { font-size: var(--t-500); color: var(--navy-deep); margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: var(--t-300); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--t-400);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: var(--t-700);
  color: var(--accent);
  font-weight: 700;
  flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: var(--t-300); }

/* ---------- CTA final ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(200,16,46,.22), transparent 50%),
    linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--navy-200); max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-300); font-size: var(--t-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 20px 44px;
}
.footer-grid h4 {
  color: #fff;
  font-size: var(--t-300);
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.footer-grid a { color: var(--navy-300); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-contact li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
}
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.footer-cities { margin-top: 10px; font-size: var(--t-200); color: var(--navy-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px;
  text-align: center;
  font-size: var(--t-200);
  color: var(--navy-400);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-overlay);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Catalogue pièces ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: var(--t-300);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, color .18s, background .18s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.part-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.part-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.part-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ph);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(.75) brightness(.92);
  transform: scale(1.25);
}
.part-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.part-visual svg { width: 56px; height: 56px; }
.part-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.part-cat {
  font-size: var(--t-100);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.part-body h3 { font-size: var(--t-400); color: var(--navy-deep); margin-bottom: 8px; }
.part-body p { font-size: var(--t-300); color: var(--muted); flex: 1; }
.part-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: var(--t-100);
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Étapes (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--t-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: var(--t-400); color: var(--navy-deep); margin-bottom: 8px; }
.step p { font-size: var(--t-300); color: var(--muted); }

/* ---------- Split (texte + visuel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split-visual {
  background: linear-gradient(135deg, var(--bg-soft), var(--navy-200));
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-visual svg { width: 100%; max-width: 360px; height: auto; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text);
  font-size: var(--t-400);
}
.check-list svg { width: 21px; height: 21px; flex: none; margin-top: 2px; }

/* ---------- Réalisations ---------- */
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ph);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(.75) brightness(.92);
  transform: scale(1.25);
}
.project-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-city {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  inset-inline-start: 14px;
  background: rgba(4,30,51,.75);
  color: #fff;
  font-size: var(--t-200);
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.project-body { padding: 22px; }
.project-body h3 { font-size: var(--t-500); color: var(--navy-deep); margin-bottom: 8px; }
.project-body p { font-size: var(--t-300); color: var(--muted); }
.project-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Formulaires ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 38px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: var(--t-300);
  color: var(--navy-deep);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--t-300);
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--navy);
  box-shadow: var(--ring);
}
.form-note { font-size: var(--t-200); color: var(--muted); margin-top: 14px; }

/* Piège à robots : hors de l'écran plutôt que display:none, que certains
   automates savent détecter. Retiré du parcours clavier et des lecteurs
   d'écran par tabindex="-1" et aria-hidden dans le HTML. */
.champ-piege {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-success {
  display: none;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 18px;
  font-weight: 600;
  font-size: var(--t-300);
}
.form-success.visible { display: block; }

/* ---------- Page contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-side .card + .card { margin-top: 20px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; }
.contact-line svg { width: 21px; height: 21px; flex: none; margin-top: 3px; }
.contact-line strong { display: block; color: var(--navy-deep); font-size: var(--t-300); }
.contact-line span, .contact-line a { color: var(--muted); font-size: var(--t-300); }
.contact-line a:hover { color: var(--accent); }

/* ---------- Bandeau urgence ---------- */
.urgent-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
  font-weight: 700;
  font-size: var(--t-400);
}
.urgent-band a { color: #fff; text-decoration: underline; }

/* ---------- Tableaux (à propos, certifs) ---------- */
.cert-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.cert-badge {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.cert-badge svg { width: 28px; height: 28px; }
.cert-card h3 { font-size: var(--t-400); color: var(--navy-deep); }
.cert-card p { font-size: var(--t-300); color: var(--muted); margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 20px 66px; }
  .hero-art { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--bg-alt); }
  .nav-toggle { display: block; }
  /* Le menu se replie : la langue reste accessible d'un seul geste,
     collée au bouton du menu plutôt que perdue à côté du logo. */
  .header-inner { gap: 14px; }
  .lang-switch { margin-inline-start: auto; padding: 7px 13px !important; }
  .nav-toggle, [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: 0; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .form-card { padding: 26px 20px; }
}

/* ---------- Les trois responsables ----------
   Nom, numéro et deux gestes pour joindre chacun : appeler ou écrire.
   Les pastilles font 44 px, la taille minimale confortable au doigt. */
.responsables { list-style: none; display: grid; gap: 10px; }
.responsable {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.responsable:hover { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.responsable-initiales {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--navy-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--t-200);
  font-weight: 800;
}
.responsable-nom { flex: 1; min-width: 0; line-height: 1.35; }
.responsable-nom strong {
  display: block;
  color: var(--text);
  font-size: var(--t-300);
  font-weight: 700;
}
.responsable-nom a {
  display: block;
  color: var(--muted);
  font-size: var(--t-200);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.responsable-nom a:hover { color: var(--accent); }
.responsable-actions { display: flex; gap: 6px; flex: none; }
.rond {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  transition: background .2s, border-color .2s, color .2s;
}
.rond svg { width: 18px; height: 18px; }
.rond-appel { color: var(--navy-600); }
.rond-appel:hover  { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.rond-appel:active { background: var(--navy-700); border-color: var(--navy-700); }
/* Vert assombri au repos : l'icône est un élément d'interface, elle doit
   tenir 3:1 sur le blanc — le vert clair n'atteint que 1,98. */
.rond-wa { color: var(--green-wa-dark); }
.rond-wa:hover  { background: var(--green-wa); border-color: var(--green-wa); color: var(--navy-900); }
.rond-wa:active { background: #1FB855; border-color: #1FB855; color: var(--navy-900); }

/* ---------- Choix du destinataire WhatsApp ----------
   Trois boutons de poids égal : aucun des trois responsables n'est
   présenté comme le bon interlocuteur par défaut. Ils passent sur une
   seule ligne dès qu'il y a la place, et s'empilent sinon. */
.form-invite {
  font-size: var(--t-300);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.form-sousinvite {
  font-size: var(--t-200);
  color: var(--muted);
  margin-top: 9px;
}
.choix-wa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
/* Texte bleu nuit, et non blanc : le vert WhatsApp est trop clair pour du
   blanc — le contraste tomberait à 1,98, très en dessous du seuil de 4,5.
   En bleu nuit il monte à 9,6, et le vert de marque reste reconnaissable. */
.btn-wa {
  background: var(--green-wa);
  color: var(--navy-900);
  justify-content: center;
  padding: 13px 10px;
  gap: 7px;
}
.btn-wa:hover  { background: #1FB855; color: var(--navy-900); }
.btn-wa:active { background: #189947; color: var(--navy-900); }

@media (max-width: 420px) {
  /* Sous 420 px, trois colonnes couperaient les prénoms */
  .choix-wa { grid-template-columns: 1fr; }
}

/* Les trois responsables dans la bande d'appel de l'accueil.
   Bornée en largeur pour que les boutons ne s'étirent pas sur grand écran. */
.cta-wa-invite {
  color: var(--navy-200);
  font-size: var(--t-300);
  font-weight: 600;
  margin: 26px 0 12px;
}
.choix-wa-band {
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Version arabe (RTL) ---------- */
[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] button {
  font-family: 'Tajawal', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
/* L'arabe demande plus d'air que le français : les hampes montantes et les
   signes diacritiques se touchent d'une ligne à l'autre à 1,65. On aère le
   texte courant, pas les libellés courts ni les boutons, qui gonfleraient. */
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] .faq-body,
[dir="rtl"] .part-body p,
[dir="rtl"] .project-body p,
[dir="rtl"] .card p {
  line-height: 1.9;
}
/* L'arabe n'a pas de casse : l'interlettrage prévu pour les capitales
   latines l'abîme. On ne retire QUE cela.
   Cette règle portait aussi position/bottom/inset, destinés au seul
   .project-city — qui les a déjà dans sa propre règle. Appliqués à
   .brand-chip, ils empilaient les huit marques au même endroit ; sur
   .overline, .part-cat et .brand-text ils les décrochaient du flux. */
[dir="rtl"] .brand-text,
[dir="rtl"] .brand-text small,
[dir="rtl"] .overline,
[dir="rtl"] .part-cat,
[dir="rtl"] .brand-chip,
[dir="rtl"] .project-city {
  letter-spacing: 0;
}
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .wa-float { right: auto; left: 22px; }
[dir="rtl"] .hero h1,
[dir="rtl"] .page-hero h1 { line-height: 1.35; }
[dir="rtl"] .section-head h2,
[dir="rtl"] .cta-band h2 { line-height: 1.4; }

/* Sélecteur de langue — désormais dans l'en-tête clair, à côté du devis.
   Contour discret au repos, plein au survol : il se lit comme un bouton
   secondaire, sans concurrencer l'appel à l'action rouge. */
.lang-switch {
  border: 1.5px solid var(--navy-200);
  border-radius: var(--radius-pill);
  padding: 8px 16px !important;
  font-size: var(--t-200);
  font-weight: 700;
  color: var(--navy-600);
  background: none;
  flex: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.lang-switch:hover  { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.lang-switch:active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }


/* ============================================================
   Animations — thème ascenseur
   ============================================================ */

/* Apparition au défilement (façon cabine qui monte) */
.reveal { opacity: 0; }
.reveal.visible { opacity: 1; animation: riseUp .7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes riseUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Cabine du héros : léger flottement */
.hero-art rect[fill="#F4F7FA"],
.hero-art rect[fill="#B9CBD8"] {
  animation: cabFloat 4.5s ease-in-out infinite;
}
@keyframes cabFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Capteurs du héros : impulsion (les anneaux) */
.hero-art circle[stroke="#C8102E"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: sensorPulse 2.4s ease-out infinite;
}
.hero-art circle[stroke="#C8102E"]:nth-of-type(2) { animation-delay: .8s; }
.hero-art circle[stroke="#C8102E"]:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes sensorPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Bouton WhatsApp : halo */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: waHalo 2.6s ease-out infinite;
}
@keyframes waHalo {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* CTA : reflet au survol */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-accent:hover::before { left: 130%; }

/* Images : zoom doux au survol des cartes projets */
.project-visual { transition: filter .3s; }
.project-card:hover .project-visual { filter: brightness(1.08); }

/* Barre de progression de défilement (couleur GELCO) */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--red-200));
  z-index: 200;
  transition: width .1s linear;
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.visible,
  .hero-art rect[fill="#F4F7FA"],
  .hero-art rect[fill="#B9CBD8"],
  .hero-art circle[stroke="#C8102E"],
  .wa-float::after { animation: none !important; }
}


/* ---------- Lightbox galerie de pièces ---------- */
.part-card[data-imgs] { cursor: pointer; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 30, 51, .88);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lb-box {
  background: #fff;
  border-radius: 14px;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  animation: riseUp .35s ease;
}
.lb-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(4,30,51,.65);
  color: #fff;
  font-size: var(--t-600);
  cursor: pointer;
  line-height: 1;
}
.lb-close:hover { background: var(--accent); }
.lb-main {
  position: relative;
  background: var(--navy-900);
}
.lb-main img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  display: block;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: var(--navy-deep);
  font-size: var(--t-600);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lb-arrow:hover { background: var(--accent); color: #fff; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  flex-wrap: wrap;
}
.lb-thumbs img {
  width: 72px; height: 54px;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .7;
}
.lb-thumbs img.active { border-color: var(--accent); opacity: 1; }
.lb-body { padding: 14px 20px 20px; }
.lb-body h3 { color: var(--navy-deep); font-size: var(--t-600); margin-bottom: 6px; }
.lb-body p { color: var(--muted); font-size: var(--t-300); }
.lb-body .btn { margin-top: 14px; }
@media (max-width: 600px) {
  .lb-main img { height: 250px; }
}


/* ---------- Avis clients ---------- */
.stars { color: var(--gold); font-size: var(--t-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p.quote { color: var(--text); font-size: var(--t-300); font-style: italic; flex: 1; }
.testimonial .who { margin-top: 14px; font-size: var(--t-200); color: var(--muted); font-weight: 600; }
.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}
.gbadge .stars { margin: 0; font-size: var(--t-300); }


/* ---------- Formulaire : envoi par e-mail ---------- */
.form-help {
  font-size: var(--t-200);
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.btn-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-alt); }
.form-actions { display: grid; gap: 10px; }

/* ---------- Bandeau avis Google ---------- */
.google-review-band {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.google-review-band .stars { font-size: var(--t-800); margin-bottom: 6px; }
.google-review-band p { color: var(--muted); font-size: var(--t-400); margin-top: 10px; }


/* ---------- Mentions légales ---------- */
.legal-grid { display: grid; gap: 16px 30px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.legal-grid > div { display: flex; flex-direction: column; gap: 3px; }
.legal-grid dt {
  font-size: var(--t-100);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-grid dd { margin: 0; font-size: var(--t-400); color: var(--text); }
.legal-grid a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }


/* ============================================================
   Conformité Web Interface Guidelines
   ============================================================ */

/* Le navigateur adapte barres de défilement et champs natifs */
:root { color-scheme: light; }

/* Lien d'évitement : invisible jusqu'à la tabulation */
.skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: 0;
  z-index: 300;
  background: var(--navy-deep);
  color: #fff;
  padding: 13px 22px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top .16s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Anneau de focus visible, uniquement au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero a:focus-visible,
.page-hero a:focus-visible,
.cta-band a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fff;
}

/* Toucher : pas de délai de double-tape, retour visuel maîtrisé */
a, button, summary, .part-card, .persona-card, .filter-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(200, 16, 46, .15);
}

/* La galerie ne fait plus défiler la page derrière elle */
.lightbox {
  overscroll-behavior: contain;
}

/* Titres : pas de mot isolé en fin de ligne */
h1, h2, h3,
.section-head h2,
.cta-band h2 {
  text-wrap: balance;
}
.hero p.lead, .page-hero p, .section-head p {
  text-wrap: pretty;
}

/* Chiffres alignés en colonne */
.stat-num, .part-tags .tag, .legal-grid dd {
  font-variant-numeric: tabular-nums;
}

/* Textes longs : jamais de débordement */
.card p, .part-body p, .project-body p, .faq .faq-body, .legal-grid dd {
  overflow-wrap: break-word;
}

/* Encoches et barres système sur mobile */
.wa-float {
  inset-block-end: calc(22px + env(safe-area-inset-bottom));
  inset-inline-end: calc(22px + env(safe-area-inset-right));
}
[dir="rtl"] .wa-float {
  inset-inline-start: calc(22px + env(safe-area-inset-left));
  inset-inline-end: auto;
}
.site-footer {
  padding-block-end: env(safe-area-inset-bottom);
}

/* Les listes déroulantes restent lisibles en thème sombre Windows */
.form-field select {
  background-color: var(--bg);
  color: var(--text);
}

/* Le message de confirmation est annoncé aux lecteurs d'écran */
.form-success[aria-live] { scroll-margin-top: 90px; }

/* Ancres de titres non masquées par l'en-tête collant */
[id] { scroll-margin-top: 92px; }


/* ============================================================
   Second passage Web Interface Guidelines
   ============================================================ */

/* Le champ complet réagit quand on entre dedans au clavier */
.form-field:focus-within label { color: var(--accent); }
.contact-line:focus-within strong { color: var(--accent); }

/* Un numéro de téléphone ne se coupe jamais en fin de ligne */
a[href^="tel:"], .footer-contact a, .contact-line a { white-space: nowrap; }

/* L'animation des capteurs porte sur un conteneur, pas sur la forme */
.hero-art .capteur {
  transform-box: fill-box;
  transform-origin: center;
}

/* Le filtre actif est annoncé aux lecteurs d'écran */
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }


/* Les cartes hors écran ne sont calculées qu'à l'approche */
.project-card, .part-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
