/* =============================================================
   BVDOM — Expert Smart Control
   Feuille de style globale unique
   ============================================================= */


/* =============================================================
   1. VARIABLES CSS
   ============================================================= */

:root {
  /* Couleurs principales */
  --green:        #64BE50;
  --green-dark:   #4A9A3C;
  --orange:       #BE5A32;
  --orange-dark:  #9A4525;

  /* Palette de gris (fond dark) */
  --grey-900: #0A0A0A;
  --grey-800: #141414;
  --grey-700: #1E1E1E;
  --grey-600: #2A2A2A;
  --grey-500: #3C3C3C;
  --grey-100: #F0F0F0;
  --grey-50:  #F7F7F7;
  --white:    #FAFAF8;

  /* Couleurs texte */
  --text:      #F0F0EC;
  --muted:     #999999;
  --text-dark: #1C1C1C;

  /* Typographie */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Tailles de police */
  --fs-xs:   0.75rem;   /*  12px */
  --fs-sm:   0.875rem;  /*  14px */
  --fs-base: 1rem;      /*  16px */
  --fs-md:   1.125rem;  /*  18px */
  --fs-lg:   1.25rem;   /*  20px */
  --fs-xl:   1.5rem;    /*  24px */
  --fs-2xl:  2rem;      /*  32px */
  --fs-3xl:  2.5rem;    /*  40px */
  --fs-4xl:  3rem;      /*  48px */
  --fs-5xl:  3.75rem;   /*  60px */

  /* Espacement */
  --sp-xs:  0.25rem;   /*  4px */
  --sp-sm:  0.5rem;    /*  8px */
  --sp-md:  1rem;      /* 16px */
  --sp-lg:  1.5rem;    /* 24px */
  --sp-xl:  2rem;      /* 32px */
  --sp-2xl: 3rem;      /* 48px */
  --sp-3xl: 4rem;      /* 64px */
  --sp-4xl: 6rem;      /* 96px */

  /* Dimensions */
  --container-max: 1280px;
  --header-h:      72px;

  /* UI */
  --radius:     8px;
  --radius-lg:  16px;
  --radius-full: 9999px;
  --transition: 0.25s ease;

  /* Bordures */
  --border-green:  rgba(100, 190, 80, 0.15);
  --border-white:  rgba(255, 255, 255, 0.08);
  --border-white2: rgba(255, 255, 255, 0.12);

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}


/* =============================================================
   2. RESET CSS
   ============================================================= */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--grey-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--grey-800);
}
::-webkit-scrollbar-thumb {
  background: var(--grey-500);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}


/* =============================================================
   3. TYPOGRAPHIE GLOBALE
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }
h4 { font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl)); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
}

p + p {
  margin-top: var(--sp-md);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.6;
}

.text-muted {
  color: var(--muted);
}

.text-green {
  color: var(--green);
}

.text-orange {
  color: var(--orange);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

strong { font-weight: 600; }

/* Texte sur fond clair */
.light-section p,
.light-section .lead {
  color: var(--text-dark);
}
.light-section .text-muted {
  color: #666;
}


/* =============================================================
   4. LIENS
   ============================================================= */

.link {
  color: var(--green);
  font-weight: 500;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
}

.link:hover {
  color: var(--green-dark);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}


/* =============================================================
   5. BOUTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Bouton principal — vert */
.btn-primary {
  background-color: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(100, 190, 80, 0.35);
}

/* Bouton secondaire — contour vert */
.btn-outline {
  background-color: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(100, 190, 80, 0.25);
}

/* Bouton tertiaire — terracotta */
.btn-orange {
  background-color: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-orange:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  box-shadow: 0 4px 20px rgba(190, 90, 50, 0.35);
}

/* Bouton outline terracotta */
.btn-outline-orange {
  background-color: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-orange:hover {
  background-color: var(--orange);
  color: #fff;
}

/* Tailles */
.btn-sm {
  font-size: var(--fs-sm);
  padding: 0.625rem 1.25rem;
}

.btn-lg {
  font-size: var(--fs-md);
  padding: 1.125rem 2.25rem;
}

/* Groupe de boutons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}


/* =============================================================
   6. UTILITAIRES — LAYOUT
   ============================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--sp-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-md);
  }
}

/* Section — espacement vertical standard */
.section {
  padding-block: var(--sp-4xl);
}

.section-sm {
  padding-block: var(--sp-3xl);
}

.section-lg {
  padding-block: 7rem;
}

/* Fonds de sections */
.bg-900  { background-color: var(--grey-900); }
.bg-800  { background-color: var(--grey-800); }
.bg-700  { background-color: var(--grey-700); }
.bg-light {
  background-color: var(--grey-100);
  color: var(--text-dark);
}
.bg-white {
  background-color: var(--white);
  color: var(--text-dark);
}

/* En-têtes de section */
.section-header {
  margin-bottom: var(--sp-3xl);
}

.section-header.text-center {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-3xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-sm);
}

.section-header h2 {
  margin-bottom: var(--sp-md);
}

.section-header p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* Grilles */
.grid {
  display: grid;
  gap: var(--sp-xl);
}
.grid > * {
  min-width: 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

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

@media (max-width: 768px) {
  :root {
    --sp-3xl: 2.5rem;  /* 40px au lieu de 64px sur mobile */
    --sp-4xl: 4rem;    /* 64px au lieu de 96px sur mobile */
  }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 > .grid-media { order: -1; }
}

@media (max-width: 480px) {
  :root {
    --sp-3xl: 2rem;    /* 32px sur petit mobile */
    --sp-2xl: 2rem;    /* 32px sur petit mobile */
  }
  .grid-4,
  .grid-5 { grid-template-columns: 1fr; }
}

/* Grilles spécifiques — pages */
.grid-form-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.grid-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.grid-certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
}

@media (max-width: 768px) {
  .grid-form-layout,
  .grid-about-layout {
    grid-template-columns: 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-wrap    { flex-wrap: wrap; }
.gap-sm  { gap: var(--sp-sm); }
.gap-md  { gap: var(--sp-md); }
.gap-lg  { gap: var(--sp-lg); }
.gap-xl  { gap: var(--sp-xl); }

/* Utilitaires d'espacement */
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-md  { margin-bottom: var(--sp-md); }
.mb-lg  { margin-bottom: var(--sp-lg); }
.mb-xl  { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); }

/* Séparateur */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--green);
  border-radius: var(--radius-full);
  margin-block: var(--sp-lg);
}

.divider-center {
  margin-inline: auto;
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-lg);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--grey-500);
}

.breadcrumb span:last-child {
  color: var(--text);
}


/* =============================================================
   7. HEADER
   ============================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background-color: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border-white);
  transition: background-color var(--transition), box-shadow var(--transition);
}

/* Opaque au scroll — classe ajoutée par JS */
.site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* Navigation principale */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background-color: rgba(100, 190, 80, 0.08);
}

/* Indicateur dropdown */
.nav-link .nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-item.open > .nav-link .nav-chevron {
  transform: rotate(180deg);
}

/* CTA dans le header */
.header-cta {
  flex-shrink: 0;
}

/* Dropdown — sous-menu */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background-color: var(--grey-800);
  border: 1px solid var(--border-white2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition),
              visibility var(--transition),
              transform var(--transition);
  z-index: 100;
}

.nav-item:hover > .dropdown,
.nav-item.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown "Plus" — aligner à droite si déborde */
.nav-item--plus .dropdown {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(100, 190, 80, 0.1);
  color: var(--green);
}

.dropdown-item svg,
.dropdown-item [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--green);
}

.dropdown-sep {
  height: 1px;
  background-color: var(--border-white);
  margin-block: var(--sp-xs);
}

/* Label "Externe" (Blog, Shop) */
.dropdown-ext-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  background-color: var(--grey-600);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Menu hamburger — visible seulement mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border-white2);
  transition: background-color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background-color: rgba(100, 190, 80, 0.08);
  border-color: rgba(100, 190, 80, 0.3);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}

/* Animation hamburger → croix */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Décalage body pour header fixe */
.header-offset {
  padding-top: var(--header-h);
}


/* Éléments réservés au menu mobile — cachés sur desktop */
.mobile-cta,
.mobile-more-sep,
#nav-blog-mobile,
#nav-shop-mobile {
  display: none;
}


/* =============================================================
   8. NAVIGATION MOBILE
   ============================================================= */

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

  .header-cta {
    display: none;
  }

  .mobile-cta,
  .mobile-more-sep,
  #nav-blog-mobile,
  #nav-shop-mobile {
    display: block;
  }

  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--grey-900);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
  }

  .header-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    padding: var(--sp-md) var(--sp-sm);
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--border-white);
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-link:hover {
    background-color: transparent;
    border-radius: 0;
  }

  /* Dropdown mobile — accordion */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: var(--grey-800);
    padding: var(--sp-xs) 0 var(--sp-xs) var(--sp-md);
    display: none;
  }

  .nav-item.open > .dropdown {
    display: block;
  }

  .dropdown-item {
    padding: 0.75rem var(--sp-sm);
    border-radius: 0;
    border-bottom: 1px solid var(--border-white);
    font-size: var(--fs-base);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  /* CTA dans le menu mobile */
  .mobile-cta {
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-white);
  }

  .mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Séparateur "Plus" dans menu mobile */
  .mobile-more-sep {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: var(--sp-lg) var(--sp-sm) var(--sp-sm);
    margin-top: var(--sp-md);
    border-top: 1px solid var(--border-white);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: var(--sp-md);
  }

  .header-logo img {
    height: 34px;
  }
}


/* =============================================================
   9. FOOTER
   ============================================================= */

.site-footer {
  background-color: var(--grey-900);
  border-top: 1px solid var(--border-white);
  padding-top: var(--sp-4xl);
  padding-bottom: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

/* Colonne 0 — Branding */
.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-top: var(--sp-md);
}

/* Badge Loxone Partner dans le footer */
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--border-green);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background-color: rgba(100, 190, 80, 0.05);
}

.footer-badge img {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-badge svg,
.footer-badge [data-lucide] {
  width: 14px;
  height: 14px;
}

/* Colonnes navigation & liens */
.footer-col {}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--sp-lg);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-nav-list a {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.footer-nav-list a:hover {
  color: var(--green);
}

/* Colonne coordonnées */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.footer-contact-item svg,
.footer-contact-item [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.footer-contact-item a {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--green);
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-white2);
  border-radius: var(--radius);
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.social-link:hover {
  border-color: var(--green);
  color: var(--green);
  background-color: rgba(100, 190, 80, 0.08);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* Bande copyright */
.footer-bottom {
  border-top: 1px solid var(--border-white);
  padding-block: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--sp-lg);
}

.footer-legal-links a {
  font-size: var(--fs-xs);
  color: var(--muted);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--text);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =============================================================
   10. CARDS
   ============================================================= */

/* Card générique */
.card {
  background-color: var(--grey-700);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(100, 190, 80, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--sp-xl);
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--grey-600);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background-color: rgba(100, 190, 80, 0.12);
  color: var(--green);
  margin-bottom: var(--sp-lg);
  flex-shrink: 0;
}

.card-icon svg,
.card-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--sp-sm);
}

.card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* Card sur fond clair */
.card-light {
  background-color: var(--white);
  border-color: rgba(0, 0, 0, 0.08);
}

.card-light h3,
.card-light p {
  color: var(--text-dark);
}

.card-light p {
  color: #555;
}

/* Card profil — "Vous êtes..." */
.card-profile {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2xl);
  text-align: center;
  align-items: center;
}

.card-profile .card-icon {
  width: 68px;
  height: 68px;
  margin-bottom: var(--sp-xl);
}

.card-profile .card-icon svg,
.card-profile .card-icon [data-lucide] {
  width: 32px;
  height: 32px;
}

.card-profile h3 {
  margin-bottom: var(--sp-md);
}

.card-profile .link {
  margin-top: auto;
  padding-top: var(--sp-lg);
}

/* Card expertise — icône + titre + description */
.card-expertise {
  padding: var(--sp-xl);
}

.card-expertise .card-body {
  padding: 0;
}

.card-expertise h3 {
  font-size: var(--fs-base);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Card projet / réalisation */
.card-project .card-body {
  padding: var(--sp-lg);
}

.card-project-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.card-project h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-xs);
}

.card-project-location {
  font-size: var(--fs-sm);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-project-location [data-lucide],
.card-project-location svg {
  width: 13px;
  height: 13px;
}

a.card-project--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

a.card-project--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Card témoignage */
.card-testimonial {
  padding: var(--sp-xl);
  position: relative;
}

.card-testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-lg);
  left: var(--sp-xl);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.3;
}

.card-testimonial-body {
  padding-top: var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.card-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.card-testimonial-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
}

.card-testimonial-info {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.card-testimonial-stars {
  display: flex;
  gap: 2px;
  color: #F5C518;
  font-size: var(--fs-sm);
}

/* Badge type projet */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green {
  background-color: rgba(100, 190, 80, 0.15);
  color: var(--green);
}

.badge-orange {
  background-color: rgba(190, 90, 50, 0.15);
  color: var(--orange);
}

.badge-grey {
  background-color: var(--grey-600);
  color: var(--muted);
}


/* =============================================================
   11. PLACEHOLDER IMAGE
   ============================================================= */

.img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background-color: var(--grey-600);
  border: 1px dashed rgba(100, 190, 80, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.015) 10px,
    rgba(255, 255, 255, 0.015) 20px
  );
}

.img-placeholder [data-lucide],
.img-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--grey-500);
}

.img-placeholder span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  padding-inline: var(--sp-md);
  position: relative;
}

/* Variante 16/9 */
.img-placeholder--16-9 {
  aspect-ratio: 16/9;
}

/* Variante carré */
.img-placeholder--square {
  aspect-ratio: 1;
}

/* Variante portrait */
.img-placeholder--portrait {
  aspect-ratio: 3/4;
}


/* =============================================================
   12. ANIMATIONS — Intersection Observer
   ============================================================= */

/* État initial — éléments invisibles avant entrée en viewport */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalages pour animations en cascade */
.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }
.fade-in--delay-4 { transition-delay: 0.4s; }
.fade-in--delay-5 { transition-delay: 0.5s; }
.fade-in--delay-6 { transition-delay: 0.6s; }

/* Variante : slide depuis la gauche */
.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Variante : slide depuis la droite */
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Variante : simple fade (sans translation) */
.fade-only {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-only.visible {
  opacity: 1;
}

/* Désactiver les animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-only {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================
   13. HERO SECTION — Base réutilisable
   ============================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: var(--sp-4xl);
  overflow: hidden;
  background-color: var(--grey-900);
}

/* Vidéo de fond — desktop */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay sombre par-dessus la vidéo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* Image de fond mobile — remplace la vidéo (performance) */
.hero-mobile-bg {
  display: none;
}

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    background-image: url('../images/hero/hero-home.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
  }
}

/* Hero page interne (compact) */
.hero-page {
  min-height: 40vh;
  padding-block: var(--sp-3xl);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content h1 {
  margin-bottom: var(--sp-xl);
}

.hero-content .lead {
  font-size: var(--fs-lg);
  color: rgba(240, 240, 236, 0.75);
  margin-bottom: var(--sp-2xl);
  max-width: 600px;
}

/* Fond dégradé hero */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(100, 190, 80, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Zone géographique */
.hero-geo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.05em;
}

.hero-geo [data-lucide],
.hero-geo svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}


/* =============================================================
   14. BANDE DE RÉASSURANCE
   ============================================================= */

.reassurance-bar {
  background-color: var(--grey-800);
  border-top: 1px solid var(--border-white);
  border-bottom: 1px solid var(--border-white);
  padding-block: var(--sp-xl);
}

.reassurance-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-sm) var(--sp-2xl);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.reassurance-item + .reassurance-item {
  border-left: 1px solid var(--border-white);
}

.reassurance-item [data-lucide],
.reassurance-item svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  flex-shrink: 0;
}

.reassurance-loxone-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.reassurance-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.reassurance-item-text span {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .reassurance-item {
    min-width: 100%;
    padding: var(--sp-md) var(--sp-lg);
  }

  .reassurance-item + .reassurance-item {
    border-left: none;
    border-top: 1px solid var(--border-white);
  }
}


/* =============================================================
   15. COMPOSANTS DIVERS
   ============================================================= */

/* Stats chiffres clés */
.stats-grid {
  display: flex;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, 4.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stepper — méthode / étapes */
.stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-md);
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(100, 190, 80, 0.2));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-md);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--grey-700);
  border: 2px solid var(--green);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .stepper {
    grid-template-columns: repeat(3, 1fr);
  }

  .stepper::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accordion / FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.faq-item {
  border: 1px solid var(--border-white2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(100, 190, 80, 0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  background-color: var(--grey-700);
  cursor: pointer;
  transition: background-color var(--transition);
  text-align: left;
  width: 100%;
}

.faq-question:hover {
  background-color: var(--grey-600);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: var(--grey-800);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: var(--sp-lg) var(--sp-xl);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.75;
}

/* Tag de filtre */
.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--muted);
  background-color: var(--grey-700);
  border: 1px solid var(--border-white2);
  cursor: pointer;
  transition: color var(--transition),
              background-color var(--transition),
              border-color var(--transition);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-white2);
  background-color: var(--grey-600);
}

.filter-btn.active {
  color: var(--green);
  background-color: rgba(100, 190, 80, 0.12);
  border-color: rgba(100, 190, 80, 0.4);
}

/* Modale / Lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--grey-800);
  border: 1px solid var(--border-white2);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: var(--grey-700);
  color: var(--muted);
  transition: color var(--transition), background-color var(--transition);
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
  background-color: var(--grey-600);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* Formulaire */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.form-label .required {
  color: var(--green);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--grey-700);
  border: 1px solid var(--border-white2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(100, 190, 80, 0.15);
  background-color: var(--grey-600);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #E05252;
}

.form-error-msg {
  font-size: var(--fs-xs);
  color: #E05252;
  margin-top: 2px;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: var(--grey-700);
  color: var(--text);
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-white2);
  border-radius: var(--radius-full);
  transition: border-color var(--transition), background-color var(--transition);
}

.radio-label:hover {
  border-color: rgba(100, 190, 80, 0.3);
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label:has(input:checked) {
  border-color: var(--green);
  background-color: rgba(100, 190, 80, 0.1);
  color: var(--green);
}

/* Checkbox RGPD */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
}

/* Message de confirmation formulaire */
.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  background-color: rgba(100, 190, 80, 0.1);
  border: 1px solid rgba(100, 190, 80, 0.3);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 500;
}

.form-success.visible {
  display: flex;
}

.form-success [data-lucide],
.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Grille formulaire 2 colonnes */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   16. SECTION CTA FINALE
   ============================================================= */

.cta-section {
  background: linear-gradient(135deg, var(--grey-800) 0%, var(--grey-900) 100%);
  border-top: 1px solid var(--border-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(100, 190, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: var(--sp-lg);
}

.cta-section p {
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
}


/* =============================================================
   17. ACCESSIBILITÉ
   ============================================================= */

/* Focus visible pour navigation clavier */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  z-index: 9999;
  background-color: var(--green);
  color: #fff;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Classe sr-only — visible uniquement pour lecteurs d'écran */
.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;
}


/* =============================================================
   18. PAGES LÉGALES
   ============================================================= */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-intro {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-article {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-article:last-child {
  border-bottom: none;
}

.legal-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.legal-h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-article p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.legal-list li {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  line-height: 1.7;
}

.legal-article a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article a:hover {
  color: var(--green-dark);
}

.legal-placeholder {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid rgba(100,190,80,0.3);
  background: rgba(100,190,80,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: var(--radius);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.legal-table th {
  background: var(--grey-700);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(100,190,80,0.25);
  white-space: nowrap;
}

.legal-table td {
  color: var(--muted);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}


/* =============================================================
   19. LIGHTBOX — RÉALISATIONS
   ============================================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: var(--grey-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) * 2);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-image-wrapper {
  position: relative;
  border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0;
  overflow: hidden;
}

.lightbox-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-900);
}

.lightbox-image img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-image .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.lightbox-body {
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-2xl);
}

.lightbox-body .badge {
  margin-bottom: var(--sp-sm);
}

.lightbox-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: var(--sp-xs);
}

.lightbox-body .card-project-location {
  margin-bottom: var(--sp-lg);
}

.lightbox-body .lightbox-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: var(--sp-xl);
}

.lightbox-body .btn {
  width: 100%;
  text-align: center;
}

/* Carrousel — flèches */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}

.lightbox-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-arrow--prev {
  left: var(--sp-md);
}

.lightbox-arrow--next {
  right: var(--sp-md);
}

/* Carrousel — dots */
.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-sm) 0;
  background: var(--grey-800);
}

.lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-dot.active {
  background: var(--green);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .lightbox-overlay {
    padding: var(--sp-md);
  }

  .lightbox-body {
    padding: var(--sp-lg);
  }

  .lightbox-body h3 {
    font-size: 1.15rem;
  }
}


/* =============================================================
   20. COOKIE CONSENT BANNER — AUDIT FIX
   ============================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-lg) var(--sp-xl);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner__text {
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 720px;
}

.cookie-banner__text a {
  color: var(--green);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--green-dark);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.cookie-banner__btn--accept {
  background: var(--green);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--green-dark);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.cookie-banner__btn--reject:hover {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-md);
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}


/* =============================================================
   21. CORRECTIONS MOBILE
   ============================================================= */

/* Section padding réduit sur mobile */
@media (max-width: 768px) {
  .section {
    padding-block: var(--sp-3xl);
  }
  .section-lg {
    padding-block: var(--sp-4xl);
  }
  .section-header {
    margin-bottom: var(--sp-xl);
  }
  /* Blockquotes : réduire le padding horizontal sur mobile */
  blockquote {
    padding-left: var(--sp-md) !important;
    padding-right: var(--sp-md) !important;
  }
}

/* Touch targets minimum 44px (WCAG) */
@media (max-width: 768px) {
  .hamburger {
    min-width: 44px;
    min-height: 44px;
  }
  .social-link {
    min-width: 44px;
    min-height: 44px;
  }
}

input[type="checkbox"] {
  min-width: 20px;
  min-height: 20px;
}

/* Font-sizes lisibles sur mobile */
@media (max-width: 768px) {
  .badge,
  .section-label {
    font-size: 13px;
  }
  .footer-copyright,
  .footer-copyright a {
    font-size: 13px;
  }
}

/* =============================================================
   22. PRINT
   ============================================================= */

@media print {
  .site-header,
  .site-footer,
  .btn,
  .hamburger {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
