:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #1e40af;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-gray: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ========== HEADER PROFESSIONNEL ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateX(2px);
}

.logo-image {
  height: clamp(35px, 5vw, 45px);
  width: clamp(35px, 5vw, 45px);
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-dark);
  line-height: 1.2;
}

.logo-sub {
  font-size: clamp(0.7rem, 1.5vw, 0.75rem);
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Actions header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap; /* Force le texte sur une seule ligne */
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.header-phone:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.55rem, 1.5vw, 0.65rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Menu burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-light);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========== HERO AMÉLIORÉ AVEC CARROUSEL ========== */

.hero {
  position: relative;
  min-height: clamp(600px, 90vh, 1000px);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 5vw, 4rem) clamp(1rem, 3vw, 1.5rem) 0;
  color: white;
  overflow: hidden;
  background: #0f172a;
}

.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.75));
  z-index: 1;
}

.hero-progress-container {
  position: absolute;
  top: clamp(15px, 3vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(120px, 20vw, 200px);
  height: clamp(2px, 0.5vw, 3px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  z-index: 3;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: clamp(36px, 5vw, 50px);
  height: clamp(36px, 5vw, 50px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.hero-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel-prev {
  left: clamp(0.5rem, 3vw, 2rem);
}

.hero-carousel-next {
  right: clamp(0.5rem, 3vw, 2rem);
}

.hero-carousel-btn svg {
  width: clamp(18px, 3vw, 24px);
  height: clamp(18px, 3vw, 24px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle-tag {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: clamp(0.85rem, 2vw, 1rem) clamp(1.8rem, 3vw, 2.2rem);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(30, 64, 175, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(30px, 5vw, 60px);
  background: #ffffff;
  clip-path: polygon(
    0% 30%, 5% 25%, 10% 20%, 15% 25%, 20% 35%, 25% 40%,
    30% 35%, 35% 30%, 40% 25%, 45% 30%, 50% 40%, 55% 35%,
    60% 30%, 65% 35%, 70% 40%, 75% 35%, 80% 30%, 85% 25%,
    90% 20%, 95% 25%, 100% 30%, 100% 100%, 0% 100%
  );
  z-index: 2;
}

/* ========== SECTIONS GÉNÉRALES ========== */

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-light);
}

.section:nth-of-type(even) {
  background: white;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  line-height: 1.6;
}

/* ========== NOS SERVICES ========== */

.services-section {
  background: var(--bg-light);
}

.service-cards-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-card {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.3);
}

.feature-logo {
  background: rgba(255, 255, 255, 0.2);
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  overflow: hidden; /* Empêche le débordement */
  position: relative; /* Pour contenir l'image */
}

.feature-img {
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);
  object-fit: contain;
  max-width: 100%; /* Ne dépasse jamais le parent */
  max-height: 100%; /* Ne dépasse jamais le parent */
}

.feature-icon {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.feature-card h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin: 0;
  color: white;
  font-weight: 600;
  line-height: 1.3;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.feature-list li {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ========== MODÈLES & COLORIS ========== */

.models-section {
  margin-top: clamp(3rem, 5vw, 4rem);
}

.models-section h3 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.model-card {
  background: white;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.model-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.model-size {
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.model-card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin: 0;
}

.colors-section {
  margin-top: clamp(2.5rem, 4vw, 3rem);
}

.colors-section h3 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 800px;
  margin: 0 auto;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.color-preview {
  width: clamp(70px, 10vw, 90px);
  height: clamp(70px, 10vw, 90px);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

.color-item span {
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-gray);
}

/* ========== NOS RÉALISATIONS ========== */

.realisations-section {
  background: white;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes par défaut */
  gap: clamp(1rem, 2vw, 1.5rem);
}

.realisation-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.realisation-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ========== AVANTAGES ========== */

.stats-section {
  background: #0f172a !important;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes au lieu de 4 */
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 900px; /* Limite la largeur pour mieux centrer */
  margin: 0 auto; /* Centre le grid */
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.15);
}

.stat-icon {
  background: rgba(59, 130, 246, 0.2);
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.stat-icon svg {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
  color: #60a5fa;
}

.stat-number {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.95;
  color: white;
  font-weight: 500;
}

/* ========== AVIS CLIENTS ========== */

.avis-section {
  background: white;
}

.sk-ww-google-reviews {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
}

/* ========== CONTACT ========== */

.contact-section {
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card,
.opening-hours-card {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  color: white;
  box-shadow: var(--shadow-md);
}

.contact-info-card h2,
.opening-hours-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.info-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.info-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-row:last-child {
  border-bottom: none;
}

/* ========== FORMULAIRE ========== */

.contact-form-wrapper {
  background: white;
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  color: var(--text-dark);
  font: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  border: none;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--primary);
  font-weight: 600;
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--text-dark);
  color: white;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  text-align: center;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.site-footer p {
  margin: 0;
  opacity: 0.8;
}

/* ========== LIGHTBOX ========== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  width: clamp(45px, 7vw, 60px);
  height: clamp(45px, 7vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: clamp(45px, 7vw, 60px);
  height: clamp(45px, 7vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.lightbox-prev {
  left: clamp(1rem, 3vw, 2rem);
}

.lightbox-next {
  right: clamp(1rem, 3vw, 2rem);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: clamp(24px, 4vw, 28px);
  height: clamp(24px, 4vw, 28px);
}

.lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== RESPONSIVE MOBILE ========== */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav.open {
    max-height: 400px;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav-link {
    padding: 0.9rem 1rem;
    border-radius: 8px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .phone-text {
  white-space: nowrap;
}
  
  .header-phone {
    padding: 0.6rem;
    min-width: 40px;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero {
    min-height: 85vh;
  }
}


@media (max-width: 900px) { /* Abaissé de 1024px à 900px */
  .service-features {
    grid-template-columns: repeat(2, 1fr); /* 2×2 en tablet */
  }
}

@media (max-width: 600px) {
  .service-features {
    grid-template-columns: 1fr; /* 1 colonne en mobile */
  }
}

@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .colors-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes en tablet */
    max-width: 600px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr; /* 1 colonne en mobile */
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes en tablet */
  }
}

@media (max-width: 600px) {
  .realisations-grid {
    grid-template-columns: 1fr; /* 1 colonne en mobile */
  }
}

/* ========== RESPONSIVE HEADER MOBILE ========== */

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1.5rem;
  }
  
  /* Cache le téléphone et le bouton devis sur mobile */
  .header-phone,
  .btn-header-cta {
    display: none !important;
  }
  
  .header-actions {
    gap: 0; /* Réduit l'espace puisqu'il ne reste que le burger */
  }
  
  /* Menu déroulant */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav.open {
    max-height: 400px;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav-link {
    padding: 0.9rem 1rem;
    border-radius: 8px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .logo-sub {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-image {
    height: 35px;
    width: 35px;
  }
  
  .logo-main {
    font-size: 1rem;
  }
}

/* Corrige le header qui fait dépasser la page sur mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header-container {
    padding: 0.75rem 1rem;        /* padding réduit */
    gap: 0.5rem;                  /* moins d'espace entre éléments */
  }

  /* On ne garde QUE le logo + burger en ligne */
  .header-actions {
    display: none;                /* masque complètement le groupe téléphone + bouton */
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;            /* pousse le burger à droite */
  }

  .nav {
    left: 0;
    right: 0;
  }
}



