/* ============================================================
   AB INSTALLS — Feuille de styles principale (version premium)
   Approche : mobile-first, responsive.
   Palette : fond noir/anthracite + accents or rose (rose gold).
   Style : technologique, premium, esthétique "circuit imprimé".
   ============================================================ */

/* -------------------------------------------------- */
/* 1. Variables de design (couleurs, typo, espacements) */
/* -------------------------------------------------- */
:root {
  /* Fonds */
  --bg:            #0f1012;   /* fond principal — aligné sur la teinte du fond de la bannière */
  --bg-elev:       #161618;   /* surfaces surélevées (cartes) */
  --bg-elev-2:     #1f1f22;   /* surfaces au survol */

  /* Or rose / rose gold (dégradé cuivré) */
  --rose:          #c98a6b;
  --rose-light:    #d9a98a;
  --rose-pale:     #e8c4ab;
  --rose-gradient: linear-gradient(135deg, #f0d2bb 0%, #d9a98a 45%, #c98a6b 100%);

  /* Textes */
  --text:          #f5f0ec;   /* texte principal blanc cassé */
  --text-muted:    #b3a9a1;   /* texte secondaire */
  --text-dim:      #877d75;   /* texte discret */

  /* Bordures / lignes */
  --border:        rgba(201, 138, 107, 0.28);
  --border-soft:   rgba(255, 255, 255, 0.08);

  /* Mesures */
  --maxw:          1140px;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-rose:   0 10px 30px rgba(201, 138, 107, 0.28);
  --glow:          0 0 40px rgba(201, 138, 107, 0.22);

  /* Typo (Google Fonts avec repli système) */
  --font:      "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------- */
/* 2. Reset léger + bases                              */
/* -------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Couche décorative "circuit imprimé" en fond de page (très discrète) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/circuit.svg");
  background-size: 320px;
  opacity: 0.05;
  pointer-events: none;
}
/* Halos dorés diffus, donnent de la profondeur */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 138, 107, 0.14), transparent 35%),
    radial-gradient(circle at 95% 100%, rgba(201, 138, 107, 0.10), transparent 40%);
  pointer-events: none;
}

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

a { color: var(--rose-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-pale); }

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }

/* Conteneur centré réutilisable */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* Texte en dégradé or rose (titres clés) */
.gradient-text {
  background: var(--rose-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Petit libellé en majuscules espacées (rappel "HOME TECHNOLOGY") */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rose);
}
.section-head .eyebrow::before { display: none; } /* centré : pas de tiret */

/* -------------------------------------------------- */
/* 3. Boutons                                          */
/* -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;            /* boutons "pilule", look premium */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

/* Bouton principal = "Demander un devis" */
.btn-primary {
  background: var(--rose-gradient);
  color: #2a1a12;
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover {
  color: #2a1a12;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 138, 107, 0.45);
}

/* Bouton secondaire (contour) */
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--rose-light);
  border-color: var(--border);
}
.btn-outline:hover {
  color: var(--rose-pale);
  border-color: var(--rose);
  background: rgba(201, 138, 107, 0.10);
}

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* -------------------------------------------------- */
/* 4. En-tête / navigation                            */
/* -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
}

/* Logo en badge sur pastille claire => bien visible sur fond noir */
.nav-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fdf6f0 0%, #f4e3d6 78%, #e9d3c2 100%);
  box-shadow: 0 0 0 1px var(--rose), var(--shadow-rose);
}
.nav-brand .brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: .06em;
  line-height: 1.1;
  display: block;
}
.nav-brand .brand-sub {
  display: block;
  font-size: .56rem;
  letter-spacing: .24em;
  color: var(--rose-light);
  font-weight: 600;
}

/* Liens de navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--rose-light); }
.nav-links .btn-primary { color: #2a1a12; margin-left: .4rem; }
.nav-links .btn-primary:hover { color: #2a1a12; }
.nav-links .btn-primary.active { color: #2a1a12; }

/* Bouton menu burger (mobile uniquement) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rose-light);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* -------------------------------------------------- */
/* 5. Sections génériques                              */
/* -------------------------------------------------- */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.bg-elev { background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* Trait dégradé décoratif sous les titres de section */
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--rose-gradient);
}

/* -------------------------------------------------- */
/* 6. Hero (accueil)                                  */
/* -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
/* Bannière avec halo lumineux */
.hero-banner-wrap {
  position: relative;
  margin-bottom: 2.6rem;
}
.hero-banner-wrap::after {
  content: "";
  position: absolute;
  inset: -10% 5% -30% 5%;
  background: radial-gradient(ellipse at center, rgba(201,138,107,0.30), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.hero-banner {
  width: 100%;
  /* Bannière incrustée : pas de cadre ni d'ombre. Le fond du site est aligné
     sur la teinte du fond de la bannière (voir --bg). On applique un fondu sur
     TOUS les bords (haut/bas plus marqués, côtés légers) via deux dégradés
     croisés (mask-composite), avec un cœur opaque large pour préserver le logo
     et les icônes. */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 6%,  #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 6%,  #000 94%, transparent 100%);
          mask-composite: intersect;
}
.hero h1 { margin-bottom: .7rem; }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.2rem;
}
.hero-cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------- */
/* 7. Bande de statistiques / réassurance             */
/* -------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg-elev);
  padding: 1.6rem 1rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  display: block;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat .lbl { color: var(--text-muted); font-size: .9rem; }

/* -------------------------------------------------- */
/* 8. Grille de services / cartes                     */
/* -------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
/* Liseré dégradé en haut de carte au survol */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rose-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card:hover::before { transform: scaleX(1); }

/* Icône SVG dans une pastille ronde dorée */
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(232,196,171,0.18), rgba(201,138,107,0.10));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 18px rgba(201,138,107,0.10);
}
.card-icon svg { width: 30px; height: 30px; stroke: var(--rose-light); }
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .96rem; }

/* Liste de points (avantages / détails de service) */
.feature-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .55rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose-gradient);
  box-shadow: 0 0 8px rgba(201,138,107,0.5);
}

/* -------------------------------------------------- */
/* 9. Bloc "Pourquoi nous choisir"                    */
/* -------------------------------------------------- */
.why-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: transform .2s ease, border-color .2s ease;
}
.why-item:hover { transform: translateY(-3px); border-color: var(--border); }
.why-item .card-icon { flex: 0 0 auto; margin-bottom: 0; width: 50px; height: 50px; border-radius: 14px; }
.why-item .card-icon svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.why-item p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* -------------------------------------------------- */
/* 10. Bande CTA finale                               */
/* -------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201,138,107,0.16), rgba(11,11,13,0.4)),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 3.6rem) 1.5rem;
  overflow: hidden;
  box-shadow: var(--glow);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/circuit.svg");
  background-size: 280px;
  opacity: 0.06;
  z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band h2::after { display: none; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 1.7rem; }

/* -------------------------------------------------- */
/* 11. Pages détail service (services.html)           */
/* -------------------------------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  scroll-margin-top: 96px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-block:hover { border-color: var(--border); transform: translateY(-3px); }
.service-block .card-icon { margin-bottom: 0; }
.service-block h2 { font-size: 1.55rem; margin-bottom: .4rem; }
.service-block h2::after { display: none; }

/* -------------------------------------------------- */
/* 12. Formulaire de devis                            */
/* -------------------------------------------------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow), var(--glow);
}
.form-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.form-row-2 { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }

.field label {
  display: block;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
  font-weight: 500;
}
.field label .req { color: var(--rose-light); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem .95rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 138, 107, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }

/* Message d'erreur de validation */
.field .error-msg {
  display: none;
  color: #e8908a;
  font-size: .82rem;
  margin-top: .35rem;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #e8908a; }
.field.invalid .error-msg { display: block; }

.form-note { font-size: .85rem; color: var(--text-dim); margin-top: 1rem; text-align: center; }

/* Message de confirmation après envoi */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success .check {
  width: 68px; height: 68px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(232,196,171,0.2), rgba(201,138,107,0.12));
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.form-success .check svg { width: 34px; height: 34px; stroke: var(--rose-light); }

/* Message d'erreur (échec d'envoi) */
.form-error {
  text-align: center;
  padding: 1.6rem 1.2rem;
  border: 1px solid rgba(232, 144, 138, 0.4);
  border-radius: var(--radius);
  background: rgba(232, 144, 138, 0.06);
}
.form-error p { color: var(--text); margin: 0; }

/* -------------------------------------------------- */
/* 13. Page contact                                   */
/* -------------------------------------------------- */
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }
.contact-card .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.contact-card .label { font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.contact-card .value { font-size: 1.12rem; color: var(--text); font-weight: 600; }
.contact-card .value a { color: var(--text); }
.contact-card .value a:hover { color: var(--rose-light); }

.map-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  filter: grayscale(0.25) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* -------------------------------------------------- */
/* 14. Pied de page                                   */
/* -------------------------------------------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  background: #08080a;
  padding: 3.2rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand img {
  width: 70px; height: 70px; border-radius: 50%; margin-bottom: 1rem;
  background: radial-gradient(circle at 50% 45%, #fdf6f0 0%, #f4e3d6 78%, #e9d3c2 100%);
  box-shadow: 0 0 0 1px var(--rose), var(--shadow-rose);
}
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 320px; }
.footer-col h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--rose-light); margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: .95rem; }
.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border-soft);
}

/* -------------------------------------------------- */
/* 14b. Galerie "Réalisations" + filtres + lightbox   */
/* -------------------------------------------------- */

/* Boutons de filtre */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border); }
.filter-btn.active {
  color: #2a1a12;
  background: var(--rose-gradient);
  border-color: transparent;
}

/* Grille en colonnes (masonry) : montre les photos en entier */
.gallery {
  column-count: 1;
  column-gap: 1.2rem;
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  background: var(--bg-elev);
  transition: border-color .2s ease, transform .2s ease;
}
.gallery-item:hover { border-color: var(--border); transform: translateY(-3px); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Légende en bas de chaque vignette */
.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem .9rem .8rem;
  font-size: .88rem;
  color: var(--text);
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  display: flex;
  align-items: center;
  gap: .5rem;
}
.gallery-item .cap::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose-gradient);
  flex: 0 0 auto;
}
.gallery-item.hide { display: none; }

/* Lightbox (visionneuse plein écran) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: 720px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
}
.lightbox figcaption {
  color: var(--text);
  margin-top: 1rem;
  font-size: .98rem;
  text-align: center;
}
/* Boutons de la lightbox (fermer / précédent / suivant) */
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--rose-light);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}
.lb-btn:hover { background: rgba(201,138,107,0.18); color: var(--rose-pale); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 600px) { .gallery { column-count: 2; } }
@media (min-width: 950px) { .gallery { column-count: 3; } }

/* Aperçu accueil : hauteurs uniformes (grille, pas masonry) */
.preview-grid .gallery-item { margin-bottom: 0; }
.preview-grid .gallery-item img { height: 230px; object-fit: cover; }

/* -------------------------------------------------- */
/* 15. Animations d'apparition au défilement          */
/* -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------- */
/* 16. Responsive — tablettes et desktop              */
/* -------------------------------------------------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats  { grid-template-columns: repeat(4, 1fr); }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: auto 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------- */
/* 17. Responsive — menu mobile (burger)              */
/* -------------------------------------------------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem 22px 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav-links.open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: .85rem .6rem; }
  .nav-links .btn-primary { margin: .5rem 0 0; }

  /* Animation du burger en croix quand ouvert */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Accessibilité : réduit les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
