@charset "UTF-8";
/* CSS Document */
/* ==========================================================================
   1. VARIABLES, CONFIGURATION & RESET
   ========================================================================== */ :root {
  --primary: #e02222;
  --primary-hover: #b81717;
  --primary-light: #fbeaea;
  --dark-bg: #141414;
  --dark-surface: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-main: #212529;
  --text-muted: #6c757d;
  --text-light: #b0b0b0;
  --font-main: 'Roboto', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
}
/* Sécurité globale anti-décalage */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Bloque le scroll horizontal parasite */
}

/* Correction automatique des sections qui pourraient déborder */
section, header, footer {
    width: 100%;
    overflow: hidden;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Compensation de l'espace pour le bandeau mobile fixe en bas */
  padding-bottom: 60px;
}
@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}
/* ==========================================================================
   2. TYPOGRAPHIE & COMPOSANTS REUTILISABLES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-bg);
}
li {
    list-style: none
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  text-transform: uppercase;
}
.title-bar {
  width: 70px;
  height: 5px;
  background-color: var(--primary);
  margin-top: 15px;
  border-radius: 2px;
}
/* Utilitaires de classes de police */
.font-10 {
  font-size: 10px;
}
.font-12 {
  font-size: 12px;
}
.font-14 {
  font-size: 14px;
}
.text-grey {
  color: var(--text-light);
}
.text-red {
  color: var(--primary) !important;
}
.bg-light-red {
  background-color: var(--primary-light);
}
.border-top-red {
  border-top: 4px solid var(--primary);
}
/* ==========================================================================
   3. HEADER & NAVIGATION STICKY
   ========================================================================== */
.header-area {
  background-color: var(--dark-surface);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}
.header-logo-container {
  font-size: inherit;
  font-weight: inherit;
}
.logo-text-brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(45deg, #ffffff, #f3f3f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-svg {
  flex-shrink: 0;
  transition: transform 0.5s ease;
}
.header-logo-container:hover .logo-svg {
  transform: rotateY(180deg);
}
/* Menu de navigation global */
.main-menu ul li {
  position: relative;
}
.main-menu ul li a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: var(--transition-smooth);
}
.main-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}
.main-menu ul li a:hover {
  color: var(--primary) !important;
}
.main-menu ul li a:hover::after {
  width: 100%;
}
/* Boutons d'action En-tête */
.devis-btn {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(224, 34, 34, 0.3);
  transition: var(--transition-smooth);
}
.devis-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 34, 34, 0.4);
}
.icon-box-red {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(224, 34, 34, 0.2);
}
/* ==========================================================================
   4. HERO SECTION (AVANCÉE)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(30, 30, 30, 0.6) 100%), url('reparation-toiture.jpg') no-repeat center center / cover;
  min-height: 620px;
  padding: 120px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Structure géométrique subtile en arrière-plan */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: rgba(224, 34, 34, 0.08);
  transform: skewX(-15deg) translateX(150px);
  pointer-events: none;
}
.badge-local {
  background: rgba(224, 34, 34, 0.75);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.hero-section h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--light-bg)
}
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 34px;
  }
}
.btn-main {
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.5px;
  padding: 18px 36px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(224, 34, 34, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}
.btn-main:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 34, 34, 0.5);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 36px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-3px);
}
/* ==========================================================================
   5. COMPOSANT : CARTES DE SERVICES (EFFET ASYMÉTRIQUE)
   ========================================================================== */
.service-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}
.card-img-holder {
  height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
/* Overlay au survol de l'image */
.card-img-holder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0.8;
  transition: var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(224, 34, 34, 0.15);
}
.service-card:hover .card-img-holder::before {
  opacity: 1;
  background: linear-gradient(to top, rgba(224, 34, 34, 0.3), transparent);
}
.service-card h3 {
  transition: color 0.3s ease;
}
.service-card:hover h3 {
  color: var(--primary);
}
/* ==========================================================================
   6. SECTION ENGAGEMENTS & ICONS
   ========================================================================== */
#commitments {
  background-color: var(--dark-bg) !important;
  position: relative;
}
#commitments i {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#commitments .col-6:hover i {
  transform: scale(1.18) translateY(-5px);
  color: #ffffff !important;
}
#commitments h4 {
  color: var(--light-bg)
}
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
/* ==========================================================================
   7. FORMULAIRE DE CONVERSION PREMIUM
   ========================================================================== */
.form-control, .form-select {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid #eef0f2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark-bg);
  background-color: #fdfdfd;
  transition: var(--transition-smooth);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 34, 34, 0.05);
}
textarea.form-control {
  resize: vertical;
}
.btn-submit {
  background: linear-gradient(135deg, var(--dark-surface), var(--dark-bg));
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover {
  background: var(--primary);
  box-shadow: 0 6px 20px rgba(224, 34, 34, 0.3);
  transform: translateY(-2px);
}
/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
  background-color: var(--dark-bg) !important;
  font-size: 14px;
}
/* ==========================================================================
   9. BANDEAU SMARTPHONE STICKY & ANIMATIONS (ERGONOMIE MAXIMALE)
   ========================================================================== */
@media (max-width: 991.98px) {
  .mobile-cta-band {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary), #cd1a1a);
    padding: 15px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
  }
  .mobile-band-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .mobile-band-link .material-symbols-outlined {
    font-size: 24px;
    animation: pulseIcon 2s infinite ease-in-out;
  }
}
/* Animations CSS */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
iframe {
  display: block
}
.no-link {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}
/* Styles pour le bouton Burger */
.navbar-burger {
    display: none; /* Masqué sur grand écran, géré par Bootstrap en d-lg-none */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1050;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
}

@media (max-width: 991.98px) {
    .navbar-burger {
        display: flex; /* Devient visible sur tablettes et mobiles */
    }
}

.navbar-burger span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff; /* Couleur des barres */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animation au clic (quand la classe .active est ajoutée par le JS) */
.navbar-burger.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

.navbar-burger.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Styles de base pour le menu mobile ouvert */
@media (max-width: 991.98px) {
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #1a1a1a;
        padding: 80px 30px 30px 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .main-menu.open {
        right: 0; /* Fait glisser le menu depuis la droite */
    }
}
/* --- GESTION DE LA NAVIGATION GLOBALE --- */

/* Sur grand écran (Ordinateur) */
@media (min-width: 992px) {
    .main-menu {
        display: block !important; /* Toujours visible sur bureau */
    }
}

/* Sur petit écran (Mobile et Tablette) */
@media (max-width: 991.98px) {
    .main-menu {
        display: none; /* Masqué par défaut sur mobile */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98); /* Fond sombre opaque */
        padding: 100px 30px;
        z-index: 1040;
    }
    
    /* Quand le script JS ajoute la classe .open, le menu devient visible */
    .main-menu.open {
        display: block !important;
    }
    
    /* Aligner les liens verticalement et au centre sur mobile */
    .main-menu ul {
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 20px; /* Plus grand pour le tactile */
    }
}