:root {
  /* Palette de couleurs */
  --primary-red: #ff0808;
  --dark-black: #0a0a0a;
  --light-grey: #e0e0e0;
  --dark-grey: #2d2d2d;
  --bg-light: #f8f9fa;
  --white: #ffffff;

  /* Typographie & Échelle */
  --font-main: "Barlow", system-ui, -apple-system, sans-serif;
  --font-heading: "Barlow Semi Condensed", system-ui, -apple-system, sans-serif;

  /* Layout & Espacements */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;

  /* Ombrages & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & RÉGLAGES DE BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--dark-black);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

section {
  width: 100%;
  margin-bottom: clamp(0.5rem, 5vw, 3rem);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
.btn,
.nav-link {
  text-wrap: balance;
}

/* ==========================================================================
   TYPOGRAPHIE ET TITRES
   ========================================================================== */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--dark-black);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  /*position: absolute;*/
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

h2 {
  text-align: center;
  letter-spacing: 2px;
  font-size: clamp(0.85rem, 2.5vw, 2rem);
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: clamp(0.85rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--dark-black);
}

/* ==========================================================================
   4. EN-TÊTE ET NAVIGATION (HEADER)
   ========================================================================== */
header {
  background-color: var(--dark-black);
  border-bottom: 3px solid var(--primary-red);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-container .burger-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-container .burger-menu__list img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo img {
  height: clamp(50px, 5vw, 55px);
  width: auto;
  transition: transform var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.02);
}

/* Navigation Desktop */
nav ul {
  display: flex;
  list-style: none;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width var(--transition-fast);
}

nav a:hover,
nav li.active a {
  color: var(--primary-red);
}

nav a:hover::after,
nav li.active a::after {
  width: 100%;
}

/* Bouton téléphone global */
header .phone-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background-color: #c20101bd;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
  height: fit-content;
}

header .phone-highlight:hover {
  transform: translateY(-2px) !important;
  background-color: #c20101d3 !important;
}

header .phone-text {
  display: flex !important;
  flex-direction: column !important;
  text-align: center;
}

header .phone-subtitle {
  font-family: "Barlow", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  opacity: 0.9 !important;
  line-height: 1.1 !important;
}

header .phone-number {
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

header .phone-highlight img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
  display: block !important;
}
.mobile-phone-call {
  display: none;
}

/*.menu-burger-icon-contact {
    display: none;
}*/

.openburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

/* Alignement standard du menu sur desktop */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-burger-icon-contact {
  display: none;
}

.menu-burger-icon {
  display: flex;
  align-items: center;
}

.menu-burger-complet {
  display: flex;
  flex-direction: row;
}

/***** BURGER MENU *****/

.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: -85vw;
  width: 85vw;
  height: 40vh;
  padding: 16px;
  border-radius: 0 8px 8px 0;
  background-color: white;
  transition: 0.3s linear;
  z-index: 1002;
}

.open-overlay {
  left: 0;
}

/* Overlay d'arrière-plan */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.background-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.burger-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}

.burger-menu__language {
  display: flex;
  gap: 8px;
  align-items: center;
  color: black;
}

.burger-menu__menu-icon {
  display: flex;
  gap: 4px;
}

.burger-menu__nav-principal a,
.burger-menu__nav-secondary a {
  color: black;
}

.burger-menu__nav-principal a {
  display: block;
  padding: 8px 0;
}

.burger-menu__nav-secondary a {
  display: inline-block;
  padding-bottom: 16px;
}

.burger-menu__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 16px;
  margin-top: 32px;
  border-top: 1px solid var grey;
}

.burger-menu__list img {
  width: 16px;
}
.main-header__close-burger {
  width: 5vh;
}

.nav-container__right {
  display: flex;
  align-items: center;
  gap: 15px; /* Espace entre le téléphone et l'icône Facebook */
}

/* Style du lien Facebook */
.facebook-link {
  display: flex;
  align-items: center;
}

.facebook-icon {
  width: 24px;
  height: 24px;
  margin-left: 20px;
  transition: opacity 0.3s ease;
}

.facebook-icon:hover {
  transform: translateY(-2px) !important;
}
/* Effet au survol du lien */
.facebook-link:hover .facebook-icon {
  transform: scale(1.15); /* Agrandit l'icône de 15 % */
}
/* ==========================================================================
   HERO SECTION (ACCUEIL)
   ========================================================================== */
.home-hero {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 18px 18px;
  box-sizing: border-box;
}

.big-logo-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 400px;
  margin: 0 auto 25px auto !important;
}

.big-logo-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto !important;
}

.home-hero h1 {
  width: 75%;
  text-align: center !important;
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  right: 1.5rem;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-red);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.95;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
}

/* Styles ciblés sur l'icône/flèche */
.scroll-indicator svg {
  width: 28px; /* Taille agrandie (par défaut ~16-20px) */
  height: 28px;
  stroke-width: 2.5px; /* Épaissit le trait de la flèche */
  filter: drop-shadow(
    0px 2px 4px rgba(0, 0, 0, 0.2)
  ); /* Ajoute de la profondeur */
  animation: bounce-strong 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(3px);
}

/* Animation de rebond plus marquée */
@keyframes bounce-strong {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(12px); /* Rebond plus profond */
  }
  60% {
    transform: translateY(6px);
  }
}

/* ==========================================================================
   PICTOGRAMMES ET ANIMATIONS SVG
   ========================================================================== */
.picto-section {
  padding: 0.5rem 0;
}

.picto-devis-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 5vw, 15rem);
  flex-wrap: wrap;
}

.picto-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.picto-devis {
  width: clamp(60px, 15vw, 120px);
  height: auto;
  overflow: visible;
  transition: transform var(--transition-smooth);
}

.picto-item:hover .picto-devis {
  transform: translateY(-6px) scale(1.04);
}

.picto-cercle-ext,
.picto-cercle-int {
  fill: none;
  stroke: var(--dark-black);
  stroke-miterlimit: 10;
  stroke-linecap: round;
}

.picto-cercle-ext {
  stroke-width: 14px;
  stroke-dasharray: 785;
  stroke-dashoffset: 785;
  animation: dessiner 1.4s ease-out forwards;
}

.picto-cercle-int {
  stroke-width: 4px;
  stroke-dasharray: 691;
  stroke-dashoffset: 691;
  animation: dessiner 1.4s ease-out 0.15s forwards;
}

@keyframes dessiner {
  to {
    stroke-dashoffset: 0;
  }
}

.picto-texte path {
  fill: var(--dark-black);
  opacity: 0;
  transform: scale(0.85);
  transform-origin: 132px 132px;
  animation: apparaitre 0.5s ease-out 1.2s forwards;
}

@keyframes apparaitre {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   SECTIONS CONTENUS & CARTES (UNIFIÉES)
   ========================================================================== */
.perte-cle-section,
.expertise-section {
  width: 100%;
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-left: 4px solid var(--dark-black);
  border-radius: var(--border-radius-sm);
  transition:
    transform 0.3s ease,
    border-left-color 0.3s ease;
}

.perte-cle-section:hover,
.expertise-section:hover {
  transform: translateY(-5px);
  border-left-color: var(--primary-red);
}

/* En-têtes avec icône */
.service-icon4,
.service-icon5 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
  width: 100%;
}

.service-icon4 img,
.service-icon5 img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-icon4 h3,
.service-icon5 h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  color: var(--dark-black);
}

/* Section Perte de clé */
.perte-cle > p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.perte-cle ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  text-align: left;
}

.perte-cle li,
.features-list li {
  position: relative;
  padding-left: 2.2rem;
}

.perte-cle li::before,
.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-red);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.perte-cle li strong,
.features-list li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark-black);
  margin-bottom: 0.2rem;
}

.perte-cle li p,
.features-list li p {
  color: var(--dark-grey);
  font-size: 0.95rem;
  margin: 0;
}

/* Section Expertise */
.expertise-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.expertise-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--dark-grey);
  text-align: left;
}

.intro-text strong {
  color: var(--dark-black);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.expertise-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

/* Boutons de CTA */
.btn-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
  width: 100%;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-black);
  color: var(--white);
  padding: 1rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-sm);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 6, 6, 0.3);
  cursor: pointer;
}

.btn-submit:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
}

.alert-success {
  display: none;
  background-color: #d4edda;
  color: #c20101bd;
  border: 1px solid #c20101bd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   PAGE SERVICES
   ========================================================================== */
.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-top: 4px solid var(--dark-black);
  padding: 2rem;
  border-radius: var(--border-radius-sm);
  transition:
    transform 0.3s ease,
    border-top-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--primary-red);
}

.service-icon1 img,
.service-icon2 img,
.service-icon3 img {
  max-height: 60px;
}

.service-card .btn-wrapper {
  margin-top: auto;
  text-align: center;
  padding-top: 1.5rem;
}

.service-card h2 {
  margin-bottom: 1rem;
  color: var(--dark-black);
  text-transform: uppercase;
}

.service-card ul {
  list-style-type: "✓ ";
  list-style-position: inside;
  color: var(--dark-grey);
  margin-top: 1rem;
}

.service-card li {
  margin-bottom: 0.5rem;
}

.présentation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 1rem;
}

.présentation img {
  width: clamp(20rem, 8vw, 30rem);
  height: auto;
  border-radius: var(--border-radius-sm);
  opacity: 0.55;
}

/* ==========================================================================
   ZONE D'INTERVENTION
   ========================================================================== */
.zone-intervention {
  width: 100%;
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-left: 4px solid var(--dark-black);
  border-radius: var(--border-radius-sm);
  transition:
    transform 0.3s ease,
    border-left-color 0.3s ease,
    box-shadow 0.3s ease;
}

.zone-intervention:hover {
  transform: translateY(-5px);
  border-left-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.zone-intervention h2 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark-black);
  margin-bottom: 1rem;
}

.zone-intervention > p {
  color: var(--dark-grey);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.villes-grid {
  margin-bottom: 2.5rem;
}

.villes-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.villes-grid li {
  background-color: #f9f9f9;
  border: 1px solid var(--light-grey);
  padding: 1.25rem;
  border-radius: var(--border-radius-sm);
  color: var(--dark-grey);
  font-size: 0.95rem;
  line-height: 1.5;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.villes-grid li:hover {
  border-color: var(--primary-red);
  background-color: var(--white);
}

.villes-grid li strong {
  display: block;
  color: var(--dark-black);
  font-size: 1.1rem;
  font-family: var(--font-main);
  margin-bottom: 0.4rem;
}

.map-container {
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--light-grey);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ==========================================================================
   SECTION FAQ (ACCORDÉON)
   ========================================================================== */
.faq-section {
  width: 100%;
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.faq-section h2 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark-black);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.faq-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.faq-section details {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-left: 4px solid var(--dark-black);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  transition:
    transform 0.3s ease,
    border-left-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.faq-section details:hover {
  transform: translateY(-3px);
  border-left-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.faq-section details[open] {
  border-left-color: var(--primary-red);
  background-color: #fdfdfd;
}

.faq-section summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--dark-black);
  outline: none;
  user-select: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-left: 1rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-section details[open] summary::after {
  transform: rotate(45deg);
}

.faq-section details p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--light-grey);
  color: var(--dark-grey);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   PAGE ACTUALITÉS
   ========================================================================== */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg-light);
  border-left: 5px solid var(--primary-red);
  padding: 2rem;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.news-date {
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-card h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark-black);
}

/* ==========================================================================
   PAGE CONTACT
   ========================================================================== */
.contact-header {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 3rem auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.contact-header h1 span {
  display: block;
  /* Empêche le texte de se couper en deux */
}

/* Ligne 1 : Titre principal */
.contact-header h1 span:nth-child(1) {
  font-size: clamp(
    1.3rem,
    3.2vw,
    2.3rem
  ); /* Réduit de 1.8rem à 1.3rem sur petit écran */
  font-weight: 800;
  color: var(--dark-black);
}

/* Ligne 2 : Prestations */
.contact-header h1 span:nth-child(2) {
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-red);
  margin-top: 0.4rem;
}

/* Ligne 3 : Zone géographique */
.contact-header h1 span:nth-child(3) {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--dark-grey);
  margin-top: 0.3rem;
}

.contact-header p {
  color: var(--dark-grey);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 4rem auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.contact-info {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-left: 4px solid var(--dark-black);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  transition:
    transform 0.3s ease,
    border-left-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-3px);
  border-left-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.contact-info h2 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-black);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-grey);
}

.info-item {
  margin-bottom: 1.25rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  display: block;
  font-family: var(--font-main);
  color: var(--dark-black);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.info-item p,
.info-item a {
  color: var(--dark-grey);
  font-size: 0.98rem;
  line-height: 1.5;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--primary-red);
  font-weight: 600;
}

.contact-container {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-black);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-black);
  background-color: #fafafa;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(249, 6, 6, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem;
  font-size: 0.85rem !important;
  color: var(--dark-grey);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin-top: 0.2rem;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary-red);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--dark-black);
}

.contact-container .btn-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--dark-black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.contact-container .btn-submit:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
}

/* ==========================================================================
   PAGES LÉGALES (MENTIONS LÉGALES & CGV)
   ========================================================================== */
.legal-section {
  padding: 2rem 0;
  width: 100%;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-block {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-left: 4px solid var(--dark-black);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  transition:
    transform var(--transition-fast),
    border-left-color var(--transition-fast);
}

.legal-block:hover {
  transform: translateY(-2px);
  border-left-color: var(--primary-red);
}

.legal-block h2 {
  text-align: left;
  font-size: 1.35rem;
  color: var(--dark-black);
  margin-bottom: 1rem;
  position: relative;
}

.legal-block p {
  color: var(--dark-grey);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.legal-block a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
footer {
  background-color: var(--dark-black);
  color: var(--light-grey);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 1px solid var(--dark-grey);
}

footer a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-red);
}
/* ==========================================
   MEDIA QUERIES (Correctif Menu Mobile)
   ========================================== */

/* Tablettes (<= 992px) */
@media screen and (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;

    gap: 1rem;
  }

  .expertise-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-image {
    order: -1;
  }

  .expertise-image img {
    margin: 1rem auto;
    max-height: 350px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .picto-devis-wrapper {
    row-gap: 3rem;
  }
}

@media screen and (min-width: 769px) {
  .background-overlay {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .nav-container {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
    z-index: 1004;
    gap: 2rem;
  }
  .nav-container__left {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace réduit pour mobile */
    flex-shrink: 0; /* Empêche le bloc de s'écraser */
  }
  .nav-container__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .facebook-link img {
    width: 24px;
    height: auto;
    display: block;
  }

  /* Bouton ouverture burger */
  .openburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .openburger img {
    display: block;
    width: 30px;
    height: auto;
  }

  .desktop-nav {
    display: none;
  }

  /* TIROIR DU MENU MOBILE (Aligné à GAUCHE) */
  aside.burger-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important; /* Fixé sur le bord GAUCHE */
    right: auto !important; /* Annule l'alignement à droite */
    width: 180px !important;
    height: 100vh !important; /* <-- MODIFIE ICI (100vh au lieu de 40vh) */
    height: 100dvh !important; /* Secours moderne pour les barres mobiles */
    background-color: #bd1010 !important;
    color: #ffffff !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;

    /* Masqué à GAUCHE hors de l'écran par défaut */
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
  }

  /* Quand le JS ajoute la classe nav-active */
  aside.burger-menu.nav-active {
    transform: translateX(0%) !important;
  }

  /* En-tête du tiroir avec la croix */
  .burger-menu__header {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
  }

  .main-header__close-burger {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    z-index: 10001 !important;
  }

  .main-header__close-burger img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    filter: brightness(0) invert(1) !important; /* Croix blanche */
  }

  /* Navigation et liste verticale dans le menu */
  .burger-menu nav {
    width: 100% !important;
  }

  .burger-menu__nav-principal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .burger-menu__nav-principal a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  .burger-menu__list img {
    width: 24px;
  }
}

/* Petits écrans (<= 576px) */
@media screen and (max-width: 480px) {
  main {
    padding: 0.8rem 1rem;
  }

  /* BOUTON BURGER */
  .openburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .openburger img {
    display: block;
    width: 32px;
    height: auto;
  }
  .btn-wrapper {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
  }

  /* SECTIONS ET LAYOUT PAGE */
  .perte-cle-section,
  .expertise-section,
  .zone-intervention,
  .contact-info,
  .contact-container,
  .legal-block,
  .news-card {
    padding: 1.25rem 1rem;
  }

  .home-hero h1 {
    width: 100%;
  }

  .big-logo-container {
    max-width: 280px;
  }

  .faq-section {
    padding: 0;
  }

  .faq-section summary {
    font-size: 1rem;
  }

  .faq-section summary::after {
    font-size: 1.3rem;
  }

  /* HEADER & NAVIGATION */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    position: relative; /* Permet le centrage absolu du logo */
  }

  /* BLOC GAUCHE (Burger) */
  .nav-container__left {
    display: flex;
    align-items: center;
  }

  /* LOGO CENTRÉ AU MILIEU */
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block !important;
  }

  .header-logo img {
    width: 60px !important;
    height: auto;
    display: block;
  }

  /* BLOC DROIT (Téléphone) */
  .nav-container__right {
    display: flex;
    align-items: center;
  }

  .phone-highlight {
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
  }

  .phone-highlight img {
    width: 18px;
    height: auto;
  }

  .phone-subtitle,
  .phone-text {
    display: none !important;
  }

  .phone-number {
    font-size: 0.8rem;
  }

  /* MASQUER FACEBOOK SUR TRÈS PETIT ÉCRAN */
  .facebook-link {
    display: none !important;
  }
  .mobile-phone-call {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 1.2rem 0;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  .pictos-container {
    margin-top: 0;
    padding-top: 0.5rem; /* Ajuste ou passe à 0 si besoin */
  }

  /* Style du bouton identique au desktop */
  .phone-highlight-mobile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(
      135deg,
      #b30000 0%,
      #800000 100%
    ); /* Ton rouge de marque */
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  .nav-container__right {
    display: none;
  }

  /* Icône téléphone */
  .phone-highlight-mobile img {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    display: block;
  }

  /* Textes "Dépannage urgent" + Numéro */
  .phone-subtitle {
    display: block !important; /* Réaffiché sous le H1 */
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1.1;
  }

  .phone-number-mobile {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.1;
  }
}
.alert-success {
  display: none;
  background-color: #d4edda;
  color: #c20101bd;
  border: 1px solid #c20101bd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}
