/* ============================================================
   BESSON TP — CSS Principal
   Design moderne, terre/construction, responsive
   ============================================================ */

/* ============================================================
   1. Variables CSS
   ============================================================ */
:root {
  /* Couleurs */
  --c-orange:        #e8722a;
  --c-orange-dark:   #c95d18;
  --c-orange-light:  #f5924a;
  --c-dark:          #0f1117;
  --c-dark-2:        #1a1c25;
  --c-dark-3:        #242736;
  --c-text:          #2c2c2c;
  --c-text-muted:    #6b7280;
  --c-bg:            #f8f6f3;
  --c-bg-2:          #eeeae4;
  --c-white:         #ffffff;
  --c-earth:         #8b7355;
  --c-earth-light:   #c4a882;
  --c-border:        #e0d8d0;
  --c-border-dark:   #2e3044;
  --c-success:       #16a34a;
  --c-error:         #dc2626;

  /* Typographie */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Tailles */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Espacements */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Rayons */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);
  --shadow-card: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);

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

  /* Layout */
  --container-max:  1280px;
  --container-pad:  clamp(1rem, 5vw, 2.5rem);
  --navbar-height:  80px;
  --topbar-height:  40px;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-white);
  -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; }

/* Accessibilité — focus visible */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
  border-radius: var(--r-md);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-4); }

/* Screen reader only */
.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;
}

/* ============================================================
   3. Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow  { max-width: 800px;  margin-inline: auto; padding-inline: var(--container-pad); }
.container-wide    { max-width: 1440px; margin-inline: auto; padding-inline: var(--container-pad); }

/* ============================================================
   4. Typographie
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
}

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

.lead {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-orange);
}

/* ============================================================
   5. Boutons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-sm  { padding: 0.5rem 1.25rem; font-size: var(--text-sm); }
.btn-lg  { padding: 1rem 2.25rem;   font-size: var(--text-lg); }
.btn-xl  { padding: 1.125rem 2.75rem; font-size: var(--text-xl); }

/* Primaire */
.btn-primary {
  background: var(--c-orange);
  color: var(--c-white);
  border-color: var(--c-orange);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--c-orange-dark);
  border-color: var(--c-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 114, 42, 0.4);
}

/* Secondaire */
.btn-secondary {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}
.btn-secondary:hover {
  background: var(--c-dark-2);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--c-orange);
  border-color: var(--c-orange);
}
.btn-outline:hover {
  background: var(--c-orange);
  color: var(--c-white);
}

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

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg); }

/* ============================================================
   6. Header & Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.header-topbar {
  background: var(--c-dark);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.topbar-address { display: flex; align-items: center; gap: var(--space-2); }
.topbar-email   { display: flex; align-items: center; gap: var(--space-2); transition: color var(--t-fast); }
.topbar-email:hover { color: var(--c-orange); }

.navbar {
  background: var(--c-white);
  height: var(--navbar-height);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo */
.navbar-logo { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-besson { color: var(--c-dark); }
.logo-tp     { color: var(--c-orange); margin-left: 0.15em; }
/* Logo dans le footer : forcer blanc */
.footer-logo-text .logo-besson { color: var(--c-white); }

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--c-orange);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transition: transform var(--t-base);
}

.nav-link:hover, .nav-link.active { color: var(--c-orange); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.navbar-cta { flex-shrink: 0; font-size: var(--text-sm); }

/* Caché sur desktop, affiché seulement dans le panel mobile */
.nav-mobile-footer { display: none; }

/* Burger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--c-bg); }

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-dark);
  border-radius: var(--r-full);
  transition: all var(--t-base);
  transform-origin: center;
}

/* État ouvert */
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg picture, .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,17,23,0.82) 0%,
    rgba(15,17,23,0.55) 50%,
    rgba(232,114,42,0.20) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-24) 0;
}

.hero-inner {
  max-width: 780px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232,114,42,0.15);
  border: 1px solid rgba(232,114,42,0.4);
  color: var(--c-orange-light);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  color: var(--c-white);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  color: var(--c-orange);
  position: relative;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--c-orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-1);
}

/* ============================================================
   8. Sections
   ============================================================ */
.section {
  padding: var(--space-24) 0;
}

.section-sm  { padding: var(--space-16) 0; }
.section-lg  { padding: var(--space-32) 0; }
.section-bg  { background: var(--c-bg); }
.section-dark { background: var(--c-dark); color: var(--c-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--c-white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header .section-label { margin-bottom: var(--space-4); }
.section-header h2 { margin-bottom: var(--space-5); }
.section-header p { color: var(--c-text-muted); font-size: var(--text-lg); }

/* ============================================================
   9. Cards Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-orange);
}

.service-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.service-card-image picture,
.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.service-card:hover .service-card-image img { transform: scale(1.05); }

.service-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  width: 52px; height: 52px;
  background: rgba(232,114,42,0.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--c-orange);
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.service-card-desc {
  color: var(--c-text-muted);
  font-size: var(--text-sm);
  flex: 1;
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-orange);
  transition: gap var(--t-fast);
}
.service-card:hover .service-card-link { gap: var(--space-3); }

/* ============================================================
   10. Section À propos
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}

.about-image-badge {
  position: absolute;
  bottom: -var(--space-6);
  right: -var(--space-6);
  background: var(--c-orange);
  color: var(--c-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.badge-num {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1;
}

.badge-label { font-size: var(--text-xs); opacity: 0.9; margin-top: var(--space-1); }

.about-content .section-label { justify-content: flex-start; }
.about-content p { margin-bottom: var(--space-5); color: var(--c-text-muted); }

.about-list {
  margin: var(--space-6) 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--text-sm);
}

.about-list li:last-child { border-bottom: none; }

.about-list-icon {
  width: 24px; height: 24px;
  background: rgba(232,114,42,0.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-orange);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   11. Galerie Réalisations
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--c-text-muted);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--c-bg-2);
}

.gallery-item picture, .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,23,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-info h3 { color: var(--c-white); font-size: var(--text-base); margin-bottom: var(--space-1); }
.gallery-item-info span { color: rgba(255,255,255,0.7); font-size: var(--text-xs); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.lightbox[hidden] { display: none; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--r-md); }

.lightbox-close {
  position: absolute;
  top: -var(--space-12);
  right: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox-prev { left: -var(--space-16); }
.lightbox-next { right: -var(--space-16); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   12. Actualités / Événements
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.news-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

.news-card-category {
  background: rgba(232,114,42,0.1);
  color: var(--c-orange);
  padding: 2px var(--space-3);
  border-radius: var(--r-full);
  font-weight: 600;
}

.news-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.news-card-excerpt { color: var(--c-text-muted); font-size: var(--text-sm); flex: 1; margin-bottom: var(--space-5); }

.news-card-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
  color: var(--c-orange); transition: gap var(--t-fast);
}
.news-card:hover .news-card-link { gap: var(--space-3); }

/* ============================================================
   13. Témoignages — Slider
   ============================================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.testimonial-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--space-8) var(--space-10);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  position: relative;
  margin: var(--space-2);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--c-orange);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.testimonial-text {
  color: var(--c-text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
}

.testimonial-author {
  display: flex; align-items: center; gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--c-orange);
  color: var(--c-white);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: var(--text-sm); }
.testimonial-company { color: var(--c-text-muted); font-size: var(--text-xs); }

/* Contrôles slider */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.testimonials-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.testimonials-btn:hover { border-color: var(--c-orange); color: var(--c-orange); background: rgba(232,114,42,.06); }

.testimonials-dots { display: flex; gap: var(--space-2); align-items: center; }

.testimonials-dot {
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  border: none;
  background: var(--c-border);
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
}
.testimonials-dot.active {
  background: var(--c-orange);
  width: 28px;
  border-radius: 5px;
}


/* ============================================================
   14. Section Zones
   ============================================================ */
.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--t-fast);
}

.zone-tag:hover {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-white);
  transform: scale(1.02);
}

/* ============================================================
   15. Formulaire de contact
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.form-label .req { color: var(--c-orange); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  line-height: 1.5;
}

.form-control:focus {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(232,114,42,0.12);
  outline: none;
}

.form-control.error { border-color: var(--c-error); }

textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control   { cursor: pointer; }

.form-error {
  color: var(--c-error);
  font-size: var(--text-xs);
  display: flex; align-items: center; gap: var(--space-1);
}

.form-hint { color: var(--c-text-muted); font-size: var(--text-xs); }

.form-check {
  display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--c-orange);
  flex-shrink: 0; margin-top: 2px;
  cursor: pointer;
}

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   16. Page intérieure hero
   ============================================================ */
.page-hero {
  background: var(--c-dark);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,114,42,0.15) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.breadcrumb-current { color: var(--c-orange); font-weight: 600; }

.page-hero h1 { color: var(--c-white); margin-bottom: var(--space-4); }
.page-hero .lead { color: rgba(255,255,255,0.75); }

/* ============================================================
   17. Footer
   ============================================================ */
.footer-cta-band {
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  padding: var(--space-12) 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-cta-text h2 { color: var(--c-white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.footer-cta-text p  { color: rgba(255,255,255,0.85); }

.footer-cta-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
}

.site-footer { background: var(--c-dark); color: rgba(255,255,255,0.8); }

.footer-main { padding: var(--space-16) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
}

.footer-col-brand { padding-right: var(--space-8); }

.footer-logo-text { color: var(--c-white); }

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin: var(--space-5) 0;
}

.footer-social { display: flex; gap: var(--space-3); }

.social-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.7);
  transition: all var(--t-fast);
}
.social-link:hover { background: var(--c-orange); color: var(--c-white); }

.footer-title {
  color: var(--c-white);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
  display: flex; flex-direction: column; gap: var(--space-3);
}

.footer-nav a {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--c-orange); }

.footer-contact { font-style: normal; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--c-orange); }
.footer-contact-item a { transition: color var(--t-fast); }
.footer-contact-item a:hover { color: var(--c-orange); }

.footer-phone {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-white) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy { font-size: var(--text-sm); color: rgba(255,255,255,0.45); }

.footer-legal-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
}

.footer-legal-nav a,
.cookie-settings-btn {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  background: none; border: none; cursor: pointer;
  transition: color var(--t-fast);
}
.footer-legal-nav a:hover, .cookie-settings-btn:hover { color: var(--c-orange); }

/* ============================================================
   18. Cookie Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  z-index: 8000;
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6) var(--space-8);
  animation: slideUp 0.4s ease;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner-title {
  color: var(--c-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.cookie-banner-desc { font-size: var(--text-sm); color: rgba(255,255,255,0.65); }
.cookie-link { color: var(--c-orange); }

.cookie-banner-actions { display: flex; flex-shrink: 0; gap: var(--space-3); }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.cookie-modal[hidden] { display: none; }

.cookie-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--c-border);
}

.cookie-modal-header h2 { font-size: var(--text-xl); }

.cookie-modal-close {
  background: none; border: none; cursor: pointer; color: var(--c-text-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.cookie-modal-close:hover { background: var(--c-bg); color: var(--c-text); }

.cookie-modal-body { padding: var(--space-5) var(--space-6); }

.cookie-category {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.cookie-category-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.cookie-category-info h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.cookie-category-info p  { font-size: var(--text-sm); color: var(--c-text-muted); }

/* Toggle switch */
.cookie-toggle { flex-shrink: 0; display: flex; align-items: center; cursor: pointer; gap: var(--space-2); }
.cookie-toggle-disabled { cursor: default; }

.cookie-checkbox { display: none; }

.toggle-slider {
  width: 44px; height: 24px;
  background: var(--c-border);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--t-fast);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--c-white);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast);
}

.cookie-checkbox:checked + .toggle-slider { background: var(--c-orange); }
.cookie-checkbox:checked + .toggle-slider::after { transform: translateX(20px); }

.toggle-text { font-size: var(--text-xs); color: var(--c-text-muted); font-weight: 500; }

.cookie-modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--c-border);
  display: flex; justify-content: flex-end; gap: var(--space-3);
}

/* ============================================================
   19. Popup
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.popup-overlay[hidden] { display: none; }

.popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.popup-box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 520px;
  overflow: hidden;
  animation: popIn 0.3s ease;
  z-index: 1;
}

.popup-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  z-index: 2;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
  box-shadow: var(--shadow-md);
  transition: all var(--t-fast);
}
.popup-close:hover { background: var(--c-bg); }

.popup-image { aspect-ratio: 16/9; }
.popup-image img { width: 100%; height: 100%; object-fit: cover; }

.popup-content {
  padding: var(--space-8);
  text-align: center;
}
.popup-title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.popup-body  { color: var(--c-text-muted); margin-bottom: var(--space-6); }
.popup-cta   { width: 100%; justify-content: center; }

/* ============================================================
   20. Pagination
   ============================================================ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.pagination a, .pagination .page-current, .pagination .page-dots {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  transition: all var(--t-fast);
}

.pagination a { border: 2px solid var(--c-border); color: var(--c-text-muted); }
.pagination a:hover { border-color: var(--c-orange); color: var(--c-orange); }
.pagination .page-current { background: var(--c-orange); border: 2px solid var(--c-orange); color: var(--c-white); }
.pagination .page-dots { color: var(--c-text-muted); }

/* ============================================================
   21. Animations
   ============================================================ */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

/* Observe AOS-like animation */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-visible { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-visible { transform: translateX(0); }

/* ============================================================
   22. Utilitaires
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-orange { color: var(--c-orange); }
.text-muted  { color: var(--c-text-muted); }
.text-white  { color: var(--c-white); }

.mt-auto     { margin-top: auto; }
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }

.w-full      { width: 100%; }
.hidden      { display: none !important; }
.relative    { position: relative; }

/* ============================================================
   23. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { grid-template-columns: 1fr; }
  .about-image { order: -1; }

  /* ---- Overlay backdrop ---- */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,0.55);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---- Panel slide depuis la droite ---- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: calc(var(--navbar-height) + var(--topbar-height) + var(--space-2));
    padding-bottom: var(--space-10);
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    transform: translateX(105%);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: var(--space-4) var(--space-6);
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--text-base);
  }
  .nav-link::after { display: none; }
  .navbar-cta { display: none; }
  .nav-toggle { display: flex; }

  /* CTA mobile dans le panel */
  .nav-mobile-footer {
    list-style: none;
    padding: var(--space-6) var(--space-5) 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border-top: 2px solid var(--c-border);
  }
  .nav-mobile-footer .btn { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
    --topbar-height: 0px;
  }
  .header-topbar { display: none; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { min-height: 70vh; }
  .hero-stats { gap: var(--space-6); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-brand { padding-right: 0; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }

  /* Cookie */
  .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-5); }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { flex-wrap: wrap; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Lightbox */
  .lightbox-prev { left: -var(--space-4); }
  .lightbox-next { right: -var(--space-4); }
}

@media (max-width: 480px) {
  .gallery-grid    { grid-template-columns: 1fr; }
  .hero-actions    { flex-direction: column; }
  .footer-legal-nav { flex-direction: column; align-items: center; gap: var(--space-3); }
}

/* ============================================================
   24. Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .cookie-banner, .popup-overlay,
  .btn, .hero-actions, .footer-cta-band { display: none !important; }
  body { font-size: 12pt; color: black; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ============================================================
   25. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
