/* =================================================
   VARIABLES / RESET
================================================= */
:root {
  --primary: #ffb703;        /* orange lumineux, solaire */
  --primary-dark: #fb8500;   /* orange chaud mais clean */
  --primary-soft: #fff3d6;   /* fond doux pour halos */
  
  --dark: #111;
  --gray: #666;
  --light: #f6f6f6;
  --white: #fff;

  --radius: 16px;
  --shadow: 0 20px 40px rgba(0,0,0,.08);
  --transition: all .35s cubic-bezier(.4,0,.2,1);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =================================================
   GLOBAL
================================================= */
.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 120px 0;
}

.section.soft {
  background: linear-gradient(to bottom, #fafafa, #f1f1f1);
}

.center { text-align: center; }

h1, h2, h3 { line-height: 1.15; }

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 4px;
}

.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  color: var(--gray);
  font-size: 1.05rem;
}

.section-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* =================================================
   HEADER
================================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 24px;
}

.logo img {
  height: 80px;
}

/* =================================================
   NAVIGATION
================================================= */
nav {
  display: flex;
  gap: 36px;
}

nav a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #ffffff;
  min-width: 260px;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: #222;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f2f4f7;
}

/* Hover desktop uniquement */
@media (min-width: 992px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.dropdown-menu {
  top: 130%;
}

/* =================================================
   HAMBURGER & MOBILE NAV
================================================= */
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1500;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px; /* caché hors écran */
  width: 260px;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 2000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  border-radius: 12px 0 0 12px;
  transition: right 0.4s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 30px;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #111;
  transition: color 0.3s ease;
}

.close-menu:hover {
  color: var(--primary);
}

/* ===== MOBILE DROPDOWN SERVICES ===== */
.mobile-dropdown {
  width: 100%;
  text-align: center;
}

.mobile-dropdown-toggle {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mobile-dropdown-toggle i {
  transition: transform 0.3s ease;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 500px; /* largement suffisant */
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}


/* Responsive */
@media (max-width: 900px) {
  nav,
  header .btn-primary {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* =================================================
   BUTTONS
================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 36px;
  min-height: 52px;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3px;

  border-radius: 8px; /* pas rond */
  border: none;

  cursor: pointer;
  text-decoration: none;
  user-select: none;

  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .2s ease;
}

/* === PRIMARY === */
.btn-primary {
  background: var(--primary);
  color: #111;
  box-shadow: 0 6px 16px rgba(255,183,3,.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255,183,3,.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* === SECONDARY === */
.btn-secondary {
  background: #111;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.btn-secondary:hover {
  background: #000;
  transform: translateY(-2px);
}

/* === OUTLINE (ORANGE) === */
.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #111;
}

/* =================================================
   BOUTONS ACCUEIL (nouveau)
================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 36px;
  min-height: 52px;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3px;

  border-radius: 8px;
  border: none;

  cursor: pointer;
  text-decoration: none;
  user-select: none;

  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .2s ease;
}

/* === BOUTON PRINCIPAL === */
.btn-main {
  background: var(--primary);
  color: #111;
  box-shadow: 0 6px 16px rgba(255,183,3,.35);
}

.btn-main:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255,183,3,.45);
}

.btn-main:active {
  transform: translateY(0);
}

/* === BOUTON SECONDAIRE / OUTLINE === */
.btn-alt {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-alt:hover {
  background: var(--primary);
  color: #111;
}

/* === RESPONSIVE POUR LES BOUTONS D'ACCUEIL === */
@media (max-width: 768px) {
  /* Si les boutons sont dans un container spécifique, ex: .home-buttons */
  .home-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch; /* boutons pleine largeur */
  }

  .home-buttons .btn-main,
  .home-buttons .btn-alt {
    width: 100%;
    padding: 12px 0;
    font-size: 0.95rem;
  }
}


/* =================================================
   HERO
================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75) blur(0px);
  transform: scale(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.85),
    rgba(0,0,0,.45),
    rgba(0,0,0,.25)
  );
}

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

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  max-width: 540px;
  margin-top: 20px;
  color: #eee;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
}

/* =================================================
   FEATURES
================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  margin-top: 70px;
}

.features article {
  background: var(--white);
  padding: 45px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.features article:hover {
  transform: translateY(-12px);
}

.features i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 18px;
}

/* =================================================
   TEAM – CARDS COMPACTES (WAOUH DESKTOP)
================================================= */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;              /* réduit l'espace vertical */
  margin-top: 50px;      /* au lieu de 60px */
}

/* Carte */
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Hover subtil */
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 65px rgba(0,0,0,.16);
}

/* Image – GROS GAIN DE HAUTEUR ICI */
.team-card img {
  width: 100%;
  height: 160px;          /* ⬅️ clé pour raccourcir la section */
  object-fit: contain;
  background: linear-gradient(135deg, #f2f2f2, #fafafa);
  padding: 18px;
}

/* Nom */
.team-card h3 {
  margin-top: 14px;
  font-size: 1.15rem;
}

/* Rôle */
.team-card span {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Description */
.team-card p {
  padding: 14px 22px 22px;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: auto;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablette */
@media (max-width: 1024px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .team-card img {
    height: 150px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .team {
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: 140px;
  }
}



/* =================================================
   SERVICES
================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* un peu plus flexible */
  gap: 30px; /* réduit légèrement sur petits écrans */
  margin-top: 70px;
  align-items: stretch; /* toutes les cartes ont la même hauteur */
  padding: 0 15px; /* padding latéral pour mobile */
}

/* Lien autour de la carte */
.services a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Carte service */
.service-card {
  background: #fff;
  padding: 50px 35px; /* padding plus souple */
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px); /* légèrement moins brutal */
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

/* Halo décoratif */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245,180,0,.15), transparent 60%);
  opacity: 0.8;
}

/* Icône */
.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(245,180,0,.45);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1); /* effet subtil au hover */
}

.service-icon i {
  font-size: 28px;
  color: #111;
}

/* Titre */
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* Texte */
.service-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablette */
@media (max-width: 992px) {
  .services {
    gap: 25px;
  }

  .service-card {
    padding: 40px 25px;
  }

  .service-icon {
    width: 65px;
    height: 65px;
  }

  .service-icon i {
    font-size: 26px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.98rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr; /* une carte par ligne */
    gap: 20px;
    margin-top: 50px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .service-icon i {
    font-size: 24px;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Très petit écran */
@media (max-width: 480px) {
  .service-card {
    padding: 25px 15px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon i {
    font-size: 20px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }
}



/* =================================================
   AVIS CLIENTS
================================================= */
#reviews {
  background: #f8f9fa;
  padding: 60px 20px;
  font-family: 'Roboto', sans-serif;
  text-align: center;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Cartes */
.review {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Header avis */
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Info avec nom et G */
.review-info {
  flex: 1;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.google-g {
  font-weight: bold;
  color: #4285F4; /* bleu Google */
  font-size: 1.2rem;
}

/* Nom */
.review-info strong {
  font-size: 1rem;
  font-weight: 600;
  color: #202124;
}

.google-g {
  width: 24px;
  height: 24px;
}

/* Étoiles */
.stars {
  font-size: 0.9rem;
  color: #fbbc04;
  margin-top: 2px;
}

/* Date */
.review-date {
  font-size: 0.8rem;
  color: #5f6368;
}

/* Texte de l’avis */
.review p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3c4043;
  margin: 0;
}

.reviews-summary {
  text-align: center;
  margin-bottom: 30px;
}

.reviews-stars {
  font-size: 26px;
  line-height: 1.2;
}

.reviews-based {
  margin-top: 6px;
  font-size: 15px;
  color: #555;
}

.reviews-google {
  margin-top: 10px;
}

.reviews-google img {
  height: 28px;
}


/* Responsive */
@media (max-width: 600px) {
  .reviews-list {
    grid-template-columns: 1fr;
  }
  .review-header {
    flex-direction: row;
  }
}

/* ===========================
   SLIDER PARTENAIRES
=========================== */

.logo-slider {
  background: var(--text-light);
  padding: 80px 20px;
}

.logo-slider h2 {
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Fade edges */
.slider::before,
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.slider::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.slider::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

/* Track */
.slide-track {
  display: flex;
  width: calc(260px * 12);
  animation: scroll 55s linear infinite;
}

/* Pause on hover */
.slider:hover .slide-track {
  animation-play-state: paused;
}

/* Animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-260px * 6));
  }
}

/* Slide */
.slide {
  width: 260px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

/* Logo */
.slide img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Location */
.slide span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.75;
}

/* Hover clean (no grayscale) */
.slide:hover {
  transform: translateY(-6px);
}

.slide:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide-track {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .slide {
    width: 200px;
  }

  .slide-track {
    width: calc(200px * 12);
  }

  @keyframes scroll {
    to {
      transform: translateX(calc(-200px * 6));
    }
  }
}


/* =================================================
   FOOTER
================================================= */
footer {
  position: relative;
  background: #fdfdfd;
  color: #111;
  padding: 90px 0 40px;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,.05);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand strong {
  font-size: 1.4rem;
  letter-spacing: .5px;
  color: var(--primary-dark);
}

.footer-brand p {
  margin-top: 14px;
  color: #555;
  max-width: 420px;
  font-size: 1.05rem;
}

.footer-contact p {
  margin-bottom: 12px;
  color: #777;
}

.footer-contact i {
  color: var(--primary);
  margin-right: 10px;
}

.footer-cta {
  background: rgba(245,180,0,.05);
  border: 1px solid rgba(245,180,0,.12);
  border-radius: var(--radius);
  padding: 35px 30px;
}

.footer-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.footer-cta p {
  color: #555;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #777;
  font-size: .95rem;
}

.footer-bottom a {
  color: #555;
  text-decoration: none;
  margin-left: 18px;
  transition: color .3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-contact a {
  color: inherit;           
  text-decoration: none;    
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer-credit {
  width: 100%;
  text-align: center;
  margin-top: 50px;
  font-size: .95rem;
  color: #777;
}

.footer-credit a {
  color: #555;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-credit a:hover {
  color: var(--primary);
}

/* =================================================
   MOBILE FOOTER
================================================= */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-cta {
    margin-top: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 14px;
  }
}

/* Caché sur desktop */
.call-mobile {
  display: none;
}

@media (max-width: 900px) {
  .call-mobile {
    position: fixed;

    /* Coin bas droite */
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));

    width: 56px;
    height: 56px;
    padding: 0;

    background: linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );
    color: #111;

    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: pulse 2s infinite;
    text-decoration: none;
    border: none;
  }

  /* Icône bien centrée */
  .call-mobile i,
  .call-mobile svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
  }

  /* Supprime toute barre parasite */
  .call-mobile::before,
  .call-mobile::after {
    content: none !important;
  }
}

/* Animation légère */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(245, 180, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 180, 0, 0);
  }
}


/* =================================================
   ACCESSIBILITÉ
================================================= */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}



/* =================================================
   CONTACT / DEVIS – GLOBAL
================================================= */
#contact, #devis {
  position: relative;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

/* =================================================
   TITRES H3 UNIFIÉS (CARDS)
================================================= */
#contact h3, #devis h3,
#contact .service-card h3,
#contact .contact-card h3,
#contact .contact-map h3,
#devis .service-card h3,
#devis .contact-card h3,
#devis .contact-map h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.2;
  text-align: center;
}

/* =================================================
   TOP GRID (IMAGE + FORM)
================================================= */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Image */
.contact-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* =================================================
   FORMULAIRE COMPACT & RESPONSIVE
================================================= */
.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: 0 25px 55px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* Header formulaire */
.form-header {
  text-align: center;
  margin-bottom: 6px;
}

.form-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(255,183,3,.45);
}

.form-icon i {
  font-size: 22px;
  color: #111;
}

.form-header h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Champs formulaire */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border .25s ease, box-shadow .25s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,183,3,.18);
}

/* Consentement */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray);
}

.form-consent input {
  margin-top: 3px;
}

/* Bouton */
.contact-card .btn {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
  padding: 13px 18px;
  font-size: 0.95rem;
  align-self: center;
}

/* Champs côte-à-côte */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

/* =================================================
   LOADER CENTRAL
================================================= */
#loader {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  justify-content:center;
  align-items:center;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(farthest-side,#ffa516 94%,#0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%,#ffa516);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  animation: l13 1s infinite linear;
}

@keyframes l13{ 
  100%{transform: rotate(1turn)}
}

/* =================================================
   TOAST MESSAGES
================================================= */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.4s ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =================================================
   CONTACT – CARTES INFOS
================================================= */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.contact-info-cards .service-card {
  padding: 40px 30px;
}

.contact-info-cards a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

/* =================================================
   CONTACT – MAP + HORAIRES
================================================= */
.contact-map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-map {
  background: #fff;
  padding: 30px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 16px;
}

.horaires {
  text-align: center;
  justify-content: center;
}

.horaires p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.horaires-list div {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  line-height: 1.8;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.horaires-list div:last-child {
  border-bottom: none;
}

.horaires-list .jour {
  color: orange;
  font-weight: 600;
  width: 100px;
  display: inline-block;
}

.horaires-list .horaire {
  color: #111;
  font-weight: 500;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 1024px) {
  .contact-top-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-image img {
    max-width: 260px;
  }

  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-map-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 30px 24px;
    gap: 14px;
  }

  .form-icon {
    width: 48px;
    height: 48px;
  }

  .form-icon i {
    font-size: 20px;
  }

  .form-header h3 {
    font-size: 1.15rem;
  }

  .form-group textarea {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-row .form-group {
    min-width: 100%;
  }

  .contact-card .btn {
    max-width: 100%;
  }

  .contact-image img {
    max-width: 200px;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 280px;
  }
}

/* =========================================================
   GALERIE – CYTÉ ÉLECTRICITÉ (Rendu Pro)
   ========================================================= */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: #f1f1f1;
  color: #222;
  font-weight: 600;
  cursor: pointer;
  transition:
    background .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
}

.pagination button:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}

.pagination button.active {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #111;
  box-shadow: 0 8px 20px rgba(255,183,3,.45);
}

/* ================= FILTRES ================= */

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3rem;
}

.gallery-filters button {
  padding: 12px 28px;
  min-height: 46px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition:
    background .25s ease,
    color .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
}

.gallery-filters button:hover {
  background: var(--primary);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,183,3,.35);
}

.gallery-filters button.active {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #111;
  box-shadow: 0 10px 26px rgba(255,183,3,.45);
}

/* ================= GRID ================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Tablette */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ================= ITEM ================= */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform .6s ease,
    filter .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: brightness(.8);
}

/* ================= OVERLAY ================= */

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.25),
    transparent
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MODALE ================= */

#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#modal-img {
  max-width: 92%;
  max-height: 80%;
  border-radius: 14px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.96);
  transition:
    opacity .45s ease,
    transform .45s ease;
}

#modal.show #modal-img {
  opacity: 1;
  transform: scale(1);
}

#modal-title {
  margin-top: 1.2rem;
  color: #fff;
  font-size: 1.15rem;
  text-align: center;
}

/* ================= MODAL BUTTONS ================= */

#modal-close,
#modal-prev,
#modal-next {
  position: absolute;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease;
}

#modal-close {
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2.6rem;
}

#modal-prev {
  left: 1.5rem;
  font-size: 3rem;
}

#modal-next {
  right: 1.5rem;
  font-size: 3rem;
}

#modal-close:hover,
#modal-prev:hover,
#modal-next:hover {
  opacity: .75;
}

/* ================= MODALE RESPONSIVE ================= */

@media (max-width: 768px) {
  #modal-img {
    max-height: 70%;
  }

  #modal-prev,
  #modal-next {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  #modal-img {
    max-height: 60%;
  }

  #modal-title {
    font-size: 1rem;
  }
}

/* =================================================
   RÉNOVATION
================================================= */
.renovation-section {
  padding: 60px 20px;
  background-color: var(--white);
}

/* Conteneur texte + image */
.renovation-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 100px auto 0; /* espacement après le h2 */
  flex-wrap: wrap;
}

.renovation-text {
  flex: 1 1 500px;
}

.renovation-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--gray);
}

.renovation-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.renovation-text ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--dark);
}

.renovation-image {
  flex: 1 1 500px;
  text-align: center;
}

.renovation-image img {
  max-width: 90%;
  max-height: 400px; /* ajuste la valeur selon ton besoin */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  object-fit: cover; /* ou 'contain' selon le rendu souhaité */
}

.renovation-image img:hover {
  transform: scale(1.03);
}


.renovation-text h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1f2933;
}


/* Responsive */
@media (max-width: 900px) {
  .renovation-container {
    flex-direction: column;
    text-align: center;
  }
  .renovation-text {
    margin-bottom: 20px;
  }
}

/* =================================================
   MENTIONS LÉGALES
================================================= */
.legal-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 25px;
  font-family: 'Inter', 'Arial', sans-serif;
  color: var(--dark);
  line-height: 1.8;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Chaque article */
.legal-section article {
  margin-bottom: 3rem;
  padding: 20px 15px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 8px;
}
.legal-section article:hover {
  background-color: var(--light-hover, #fff);
  transform: translateY(-3px);
}

/* Titres des articles */
.legal-section h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
  padding-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Paragraphes */
.legal-section p {
  font-size: 1rem;
  color: var(--gray-dark, #555);
  margin-bottom: 1rem;
  word-break: break-word;
  letter-spacing: 0.2px;
}

/* Labels (strong) */
.legal-section strong {
  display: inline-block;
  width: 150px;
  font-weight: 600;
  color: var(--dark);
}

/* Liens */
.legal-section a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  border-bottom: 1px dashed transparent;
}
.legal-section a:hover,
.legal-section a:focus {
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-section {
    padding: 40px 20px;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section strong {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .legal-section p {
    font-size: 0.95rem;
  }
}

/* =================================================
   BANNIÈRE COOKIES — UI/UX PRO & PREMIUM
================================================= */

/* ========== OVERLAY ========== */
.cookie-consent {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

/* ========== CONTAINER ========== */
.cookie-box {
  max-width: 720px;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.96),
    rgba(18, 18, 18, 0.96)
  );
  color: var(--light);
  border-radius: 16px;
  padding: 2.2rem 2.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 183, 3, 0.25);
  animation: slideUp 0.45s cubic-bezier(.4, 0, .2, 1);
}

/* ========== ANIMATION ========== */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== HEADER ========== */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.cookie-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cookie-icon {
  font-size: 1.7rem;
  color: var(--primary);
}

/* ========== TEXTE ========== */
.cookie-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #ddd;
  max-width: 620px;
}

/* ========== LIENS ========== */
.cookie-links {
  margin-top: 0.6rem;
}

.cookie-links a {
  font-size: 0.95rem;
  color: var(--primary);
  opacity: 0.9;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.cookie-links a:hover {
  opacity: 1;
}

/* ========== BOUTONS ========== */
.cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 1.8rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Bouton ACCEPTER (primaire) */
.cookie-buttons .btn-accept {
  background: var(--primary);
  color: #111;
  padding: 14px 38px;
  min-height: 52px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cookie-buttons .btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 183, 3, 0.45);
}

.cookie-buttons .btn-accept:active {
  transform: translateY(0);
}

/* Bouton REFUSER (secondaire) */
.cookie-buttons .btn-refuse {
  background: transparent;
  color: #eee;
  padding: 14px 34px;
  min-height: 52px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cookie-buttons .btn-refuse:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ========== FOOTNOTE RGPD ========== */
.cookie-footnote {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #aaa;
  max-width: 620px;
}

/* ========== ACCESSIBILITÉ ========== */
.cookie-buttons button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
  .cookie-box {
    padding: 1.6rem 1.8rem;
    border-radius: 14px;
  }

  .cookie-header h2 {
    font-size: 1.2rem;
  }

  .cookie-desc {
    font-size: 0.95rem;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .cookie-buttons .btn-accept,
  .cookie-buttons .btn-refuse {
    width: 100%;
    padding: 13px 0;
  }
}
