/* =========================================
   1. VARIABLE & BASE
   ========================================= */
:root {
  --bg-darkest: #0a0a0a;
  --bg-dark: #141414;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --accent-orange: #FF5F00;
  --accent-orange-hover: #FF7A2E;
  --nav-height: 85px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none !important;
  color: inherit;
  transition: 0.3s;
}

ul { list-style: none; }

/* =========================================
   2. NAVBAR & HEADER
   ========================================= */
.site-header {
  background-color: var(--bg-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.logo-img {
  height: 55px !important;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

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

/* Menu Principal */
.main-nav ul {
  display: flex;
  align-items: stretch;
  gap: 35px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-nav > ul > li {
  display: flex;
  align-items: center;
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
}

.main-nav > ul > li.dropdown {
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
}

.main-nav > ul > li > a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.main-nav > ul > li > a:hover {
  color: var(--accent-orange);
}

/* Actions */
.header-actions { display: flex; align-items: center; }
.nav-socials { display: flex; gap: 15px; align-items: center; }

.icon-nav { width: 22px; height: 22px; fill: #fff; transition: 0.3s; }
.icon-nav:hover { fill: var(--accent-orange); }

.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

/* =========================================
   3. DROPDOWN MENU (CORRIGÉ)
   ========================================= */
.dropdown {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 85px !important; /* Aligné sur --nav-height */
  max-height: 85px !important;
  /* Correction : suppression du pointer-events: none qui bloquait le survol */
}

.dropdown > a.dropbtn {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  color: var(--text-light) !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: color 0.3s ease !important;
  padding: 0 10px !important;
  height: 100% !important; /* Le lien occupe toute la hauteur pour éviter les zones mortes */
  line-height: 1 !important;
}

.dropdown > a.dropbtn:hover {
  color: var(--accent-orange) !important;
}

.icon-arrow { 
  width: 14px !important; 
  height: 14px !important; 
  fill: currentColor !important; 
  margin-left: 6px !important; 
  transition: transform 0.3s ease !important;
  display: inline-block !important;
}

.dropdown-content {
  display: block !important;
  position: absolute !important;
  top: 100% !important; /* Se colle exactement au bas du header */
  left: 50% !important;
  transform: translateX(-50%) !important;
  
  background-color: #1a1a1a !important;
  min-width: 300px !important;
  
  box-shadow: 0 15px 35px rgba(0,0,0,0.9) !important;
  border: 1px solid #333 !important;
  border-top: 3px solid #FF5F00 !important;
  border-radius: 0 0 4px 4px !important;
  
  /* État initial : masqué */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  
  /* Transition fluide */
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 9999 !important;
  font-family: 'Inter', sans-serif !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Affichage du menu au survol du parent .dropdown */
.dropdown:hover .dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.dropdown:hover .icon-arrow { 
  transform: rotate(180deg) !important; 
}

.dropdown-content li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: 'Inter', sans-serif !important;
  height: auto !important;
}

.dropdown-content li a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 30px !important;
  
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #ccc !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  cursor: pointer !important;
  
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  transition: all 0.2s ease !important;
  height: auto !important;
  min-height: 0 !important;
}

.dropdown-content li:first-child a {
  padding-top: 28px !important;
}

.dropdown-content li:last-child a {
  padding-bottom: 28px !important;
  border-bottom: none !important;
}

.dropdown-content li a:hover {
  background: #252525 !important;
  color: #FF5F00 !important;
  padding-left: 35px !important;
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-subpage {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-content p { 
  font-size: 1.2rem; 
  color: #ddd;
  margin-bottom: 45px; 
}

/* Badge Google */
.google-badge {
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 35px;
  text-decoration: none !important;
  cursor: pointer;
  transition: 0.3s;
}
.google-badge:hover { transform: scale(1.05); }
.icon-google { width: 20px; height: 20px; }
.google-badge .rating { color: #000; font-weight: 900; font-size: 1.1rem; }
.google-badge .stars { color: #f1c40f; font-size: 1.1rem; }
.google-badge .badge-text { color: #666; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }

/* =========================================
   5. BOUTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  transition: 0.3s;
  border: 1px solid var(--accent-orange);
  cursor: pointer;
}

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

.btn-orange-small {
  background-color: var(--accent-orange);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--accent-orange);
  border-radius: 4px;
  display: inline-block;
}
.btn-orange-small:hover { 
  background-color: transparent; 
  color: var(--accent-orange); 
}

.btn-large { font-size: 1.1rem; padding: 18px 45px; }

/* =========================================
   6. SECTIONS GÉNÉRALES
   ========================================= */
.section-padding { padding: 90px 0; }

.section-title { 
  text-align: center; 
  margin-bottom: 60px; 
}
.section-title h2 {
  font-size: 2.5rem; 
  color: #fff; 
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* =========================================
   7. BENTO GRID (ACCUEIL)
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 25px;
  margin-top: 50px;
}

.bento-item {
  background: var(--bg-dark);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.4s ease;
  z-index: 1;
}
.bento-item:hover { border-color: var(--accent-orange); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.bento-main { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-row: span 2; }

.bento-content { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; flex-direction: column; }
.bento-item h3 { font-size: 1.6rem; color: #fff; margin-bottom: 20px; font-weight: 800; }
.bento-item p { font-size: 1rem; color: #bbb; margin-bottom: auto; line-height: 1.6; max-width: 90%; }
.bento-item .btn-orange-small { margin-top: 30px; align-self: flex-start; }

.bento-icon-bg {
  position: absolute; bottom: -20px; right: -20px; width: 160px; height: 160px;
  fill: rgba(255, 95, 0, 0.05); z-index: 0;
  transform: rotate(-10deg); transition: 0.5s; pointer-events: none;
}
.bento-item:hover .bento-icon-bg { fill: rgba(255, 95, 0, 0.1); transform: rotate(0deg) scale(1.1); }

/* =========================================
   8. CARTES SERVICES & GRID 3
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-dark);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #333;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.service-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon { width: 60px; height: 60px; fill: var(--accent-orange); margin-bottom: 25px; }
.service-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 15px; font-weight: 700; }
.service-card p { font-size: 0.95rem; color: #ccc; line-height: 1.6; }

.service-cards-grid {
  display: grid; 
  /* On force 2 colonnes pour créer la grille 2x2 sur PC */
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  margin-top: 50px;
}

/* Sur mobile, on empile les 4 cartes les unes sous les autres */
@media (max-width: 768px) {
  .service-cards-grid {
    grid-template-columns: 1fr; 
  }
}

.price-card {
  background: var(--bg-dark); 
  border: 1px solid #333; 
  border-radius: 12px; 
  padding: 35px;
  display: flex; 
  flex-direction: column; 
  transition: 0.3s; 
  position: relative; 
  overflow: hidden;
}
.price-card:hover { border-color: var(--accent-orange); transform: translateY(-5px); }
.price-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.card-price { font-size: 1.8rem; font-weight: 900; color: var(--accent-orange); margin-bottom: 20px; display: block; }
.card-price span { font-size: 0.9rem; color: #888; font-weight: 400; }
.card-icon { width: 50px; height: 50px; fill: var(--accent-orange); margin-bottom: 20px; }

/* =========================================
   9. QUALITY FLEX LAYOUT
   ========================================= */
.quality-flex-layout { 
  display: flex; 
  align-items: center; 
  gap: 80px; 
}

.quality-image-side { flex: 1; }
.quality-text-side { flex: 1.2; text-align: left; }

.quality-img-wrap { 
  overflow: hidden; 
  border-radius: 12px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
  height: 100%;
}
.quality-img-wrap img { 
  width: 100%; 
  height: auto;
  display: block; 
  transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1); 
}
.quality-img-wrap:hover img { transform: scale(1.05); }

.quality-text-side h2 { font-size: 2.8rem; color: #fff; margin-bottom: 25px; line-height: 1.2; }
.quality-text-side p { font-size: 1.1rem; margin-bottom: 25px; color: #ccc; }

/* =========================================
   10. GALERIE & FAQ
   ========================================= */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-thumb, .gallery-item { overflow: hidden; border-radius: 10px; cursor: pointer; }
.gallery-thumb img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(20%); }
.gallery-thumb:hover img, .gallery-item:hover img { transform: scale(1.05); filter: grayscale(0); }

.faq-section { max-width: 800px; margin: 0 auto; }
.faq-container details {
  background: var(--bg-dark); 
  border: 1px solid #333; 
  border-radius: 8px;
  margin-bottom: 15px; 
  padding: 20px; 
  cursor: pointer;
}
.faq-container summary { 
  font-weight: 700; 
  color: #fff; 
  list-style: none; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.faq-container summary::-webkit-details-marker { display: none; }
.faq-container summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-orange); }
.faq-container details[open] summary::after { content: '-'; }
.faq-container details p { margin-top: 15px; color: #bbb; line-height: 1.6; }

/* =========================================
   11. B2B & AUTRES
   ========================================= */
.b2b-card {
  background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-left: 4px solid var(--accent-orange);
  border-radius: 20px;
  padding: 60px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.b2b-content { flex: 1; }
.b2b-content h2 { font-size: 2.2rem; color: #fff; margin-bottom: 20px; }

.final-cta { background-color: #0d0d0d; border-top: 1px solid #222; text-align: center; }
.cta-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cta-content-wrapper h2 { font-size: 2.8rem; margin-bottom: 15px; color: #fff; }

.local-expertise { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 0; border-top: 1px solid #222; margin-top: 0; }
.city-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.city-tag { display: inline-block; padding: 8px 20px; background: #1a1a1a; border-radius: 50px; font-size: 0.85rem; border: 1px solid #333; color: #ccc; transition: 0.3s; }
.city-tag:hover { border-color: var(--accent-orange); color: #fff; }

#cookie-banner {
  position: fixed; bottom: -100%; left: 0; width: 100%;
  background: #111; border-top: 2px solid var(--accent-orange);
  padding: 20px; z-index: 9999; transition: 0.5s ease;
  display: flex; justify-content: center; align-items: center; gap: 20px;
}
#cookie-banner.show { bottom: 0; }
.btn-accept { background: var(--accent-orange); color: #fff; border: none; padding: 10px 25px; border-radius: 4px; font-weight: 700; cursor: pointer; }

.services-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.hub-card { background: var(--bg-dark); padding: 40px; border-radius: 8px; border-left: 4px solid var(--accent-orange); transition: 0.3s; text-align: left; }
.hub-card:hover { background: #1a1a1a; transform: translateX(5px); }
.hub-icon { width: 40px; height: 40px; fill: var(--accent-orange); margin-bottom: 20px; }
.hub-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 15px; }

/* =========================================
   12. FOOTER
   ========================================= */
.site-footer { background: var(--bg-dark); border-top: 1px solid #222; color: var(--text-gray); }
.footer-grid-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.icon-social { width: 28px; height: 28px; fill: #fff; transition: 0.3s; }
.icon-social:hover { fill: var(--accent-orange); }

.footer-col h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a:hover { color: var(--accent-orange); }
.contact-entry { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.icon-small { width: 18px; height: 18px; fill: var(--accent-orange); }

.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; border-top: 1px solid #222; margin-top: 50px; font-size: 0.85rem; }
.duval-link { color: var(--accent-orange) !important; font-weight: 700; }
.legal-links .sep { margin: 0 10px; color: #444; }

.sticky-call-btn {
  position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
  background: var(--accent-orange); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; z-index: 2000;
  animation: pulse 2s infinite; box-shadow: 0 10px 20px rgba(255, 95, 0, 0.4);
}
.sticky-call-btn svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 95, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0); }
}

/* =========================================
   13. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-main, .bento-tall, .bento-wide { grid-column: span 1; grid-row: span 1; }
  .footer-grid-main { grid-template-columns: 1fr; gap: 40px; }
  .b2b-card { flex-direction: column; text-align: center; }
  .quality-flex-layout { flex-direction: column; text-align: center; gap: 40px; }
  .quality-cta-wrap { justify-content: center; }
  .header-actions { gap: 10px; }
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  #menu-toggle { 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  #menu-toggle span { 
    display: block; 
    width: 25px; 
    height: 2px; 
    background: #fff; 
  }
  
  #mobile-menu {
    position: fixed; 
    top: var(--nav-height); 
    left: 0; 
    width: 100%; 
    height: 0;
    background: var(--bg-dark); 
    overflow: hidden; 
    transition: height 0.3s ease;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    z-index: 999;
    padding-top: 20px;
  }
  
  #mobile-menu.active { 
    height: calc(100vh - var(--nav-height)); 
  }
  
  #mobile-menu nav { width: 100%; }
  
  #mobile-menu ul { 
    text-align: center; 
    list-style: none; 
    padding: 0;
    margin: 0;
  }
  
  #mobile-menu li { 
    margin: 0; 
    padding: 0;
  }
  
  #mobile-menu li a { 
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem; 
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
  }
  
  #mobile-menu li a:hover {
    background: rgba(255, 95, 0, 0.1);
    color: var(--accent-orange);
  }
  
  #mobile-menu .menu-divider {
    height: 1px;
    background: #333;
    margin: 10px 20px;
  }
  
  .mobile-socials-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
  }
  
  .mobile-socials-wrap svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    transition: 0.3s;
  }
  
  .mobile-socials-wrap a:hover svg {
    fill: var(--accent-orange);
  }
  
  .footer-bottom-flex { flex-direction: column; text-align: center; gap: 20px; }
  #cookie-banner { flex-direction: column; text-align: center; }
}

/* =========================================
   REVIEWS / CAROUSEL
   ========================================= */
.reviews-container { 
  position: relative; 
  overflow: hidden; 
  padding: 60px 0; 
  background: var(--bg-darkest);
}

.review-track { 
  display: flex; 
  transition: transform 0.5s ease-in-out; 
}

.review-slide { 
  min-width: 100%; 
  padding: 0 15%; 
  text-align: center; 
  box-sizing: border-box;
}

.review-text { 
  font-size: 1.5rem; 
  color: #fff; 
  font-style: italic; 
  margin-bottom: 25px; 
  line-height: 1.4; 
}

.review-author { 
  color: var(--accent-orange); 
  font-weight: 900; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  display: block;
}

.carousel-nav {
  position: absolute; 
  top: 50%; 
  width: 100%;
  display: flex; 
  justify-content: space-between; 
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.nav-arrow { 
  pointer-events: auto;
  background: none; 
  border: none; 
  cursor: pointer; 
  fill: var(--accent-orange); 
  width: 80px; 
  height: 80px; 
  transition: 0.3s; 
  opacity: 0.6;
  padding: 0;
}

.nav-arrow svg {
  width: 45px;
  height: 45px;
}

.nav-arrow:hover { 
  opacity: 1; 
  transform: scale(1.2); 
}

@media (max-width: 768px) {
  .review-slide { padding: 0 40px; }
  .review-text { font-size: 1.1rem; }
  .nav-arrow { width: 40px; height: 40px; }
}
