
:root {
    --header-height: 10vh;
}

body {
    background-color: #fff;
}
body:not(.home) {
    padding-top: 100px; /* Ajuste selon la vraie hauteur de ta navbar */
  }
  

*{
    text-align: justify;
}


  /* CSS de base pour h1 sur tous les appareils */
h1 {
    
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #CD2122;
    transition: font-size 0.3s ease;
  }
  
  /* Ordinateurs de bureau (par défaut) */
  h1 {
    font-size: 2.5rem;
    padding: 20px 0;
  }
  
  /* Tablettes */
  @media screen and (max-width: 768px) {
    h1 {
      font-size: 2rem;
      padding: 15px 0;
      margin-bottom: 0.6em;
    }
  }
  
  /* Smartphones */
  @media screen and (max-width: 480px) {
    h1 {
      font-size: 1.5rem;
      padding: 10px 0;
      margin-bottom: 0.5em;
      /* Option pour améliorer la lisibilité sur petit écran */
      letter-spacing: -0.01em;
    }
  }
  /* Pour les tablettes */
  @media screen and (max-width: 768px) {
    h1 {
      font-size: 2rem;
      color: #CD2122;
    }
  }
  
  /* Pour les mobiles */
  @media screen and (max-width: 480px) {
    h1 {
      font-size: 1.5rem;
      margin: 0.8rem 0;
      color: #CD2122;
    }
  }

  /* CSS de base pour h2 sur tous les appareils */
h2 {
    color: #CD2122;
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    transition: font-size 0.3s ease;
    text-align: center;
  }
  
  /* Ordinateurs de bureau (par défaut) */
  h2 {
    font-size: 2rem;
    padding: 15px 0;
    align-items: center;
  }
  
  /* Tablettes */
  @media screen and (max-width: 768px) {
    h2 {
      font-size: 1.6rem;
      padding: 12px 0;
      margin-bottom: 0.5em;
      align-items: center;
    }
  }
  
  /* Smartphones */
  @media screen and (max-width: 480px) {
    h2 {
      font-size: 1.5rem;
      padding: 8px 0;
      margin-bottom: 0.4em;
      letter-spacing: -0.01em;
      align-items: center;
    }
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 80px; /* <-- Ajuste selon ton logo */
    }
    .navbar, .nav-links, .nav-links a {
        text-align: left !important;
    }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
  
}
/* Nouvelle classe à ajouter avec JavaScript lors du défilement */


.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover
 {
    color: #CD2122;
}


.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 40px;
    height: 6px;
    border-radius: 50px;
    background: linear-gradient(90deg, #1a0505 0%, #CD2122 100%);
    transition: all 0.4s ease;
    transform-origin: center;
}

.burger-menu span:nth-child(1) {
    margin-bottom: 8px;
}

.burger-menu span:nth-child(2) {
    width: 30px;
    margin-bottom: 8px;
}

.burger-menu span:nth-child(3) {
    width: 20px;
}

/* Animation en croix */
.burger-menu.active span:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
    width: 40px;
}

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

.burger-menu.active span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
    width: 40px;
}

/* Menu mobile */
@media (max-width: 968px) {
    .burger-menu {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        font-size: 24px;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-links.active + .overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Base des styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dropdown-menu li {
    display: block;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    transition-delay: calc(0.1s * var(--item-index, 0));
}

.dropdown-menu a {
    padding: 12px 25px;
    display: block;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

/* Desktop : menu au survol */
@media (min-width: 969px) {
    .dropdown-menu a:hover {
        background-color: transparent;
        color: #CD2122;
        padding-left: 30px;
    }

    .dropdown-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background: #CD2122;
        transition: all 0.3s ease;
    }

    .dropdown-menu a:hover::before {
        width: 15px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .dropdown:hover .dropdown-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .dropdown-trigger::after {
        display: none;
    }
}

/* Mobile : menu au clic avec triangle */
@media (max-width: 968px) {
    .nav-links li a {
        text-align: right;
        padding-right: 20px;
        width: 100%;
        display: block;
    }

    .nav-links li {
        text-align: right;
        width: 100%;
    }
    
    .dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 20px;
        width: 100%;
    }

    .dropdown-trigger::after {
        content: '▸';
        display: inline-block;
        transition: transform 0.3s ease;
        margin-left: 8px;
        font-size: 0.8em;
    }

    .dropdown.active .dropdown-trigger::after {
        transform: rotate(90deg);
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 0;
        margin: 5px 0;
        transform: none;
        background: transparent;
        border: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;  /* Désactive le survol sur mobile */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
    }

    .dropdown.active .dropdown-menu li {
        opacity: 1;
        transform: translateX(0);
        text-align: right;
    }
    
    .dropdown-menu a {
        padding: 10px 35px;
        text-align: right;
        border: none;
    }

    .dropdown-menu a::before {
        display: none;
    }
}

/* Header Styles */


.logo img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo img:hover {
    transform: scale(1.1);
}

/* Menu Styles */
header .menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header .menu li {
    position: relative;
    margin-left: 18px;
    font-family: "Rowdies", sans-serif;
    font-weight: 700;
    font-size: 17px;
}

header .menu a {
    text-decoration: none;
   
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

header .menu a:hover {
    color: #d32f2f;
}

/* Submenu Styles */
header nav .menu .submenu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    
    padding: 0;
    margin: 0;
    transform: translateY(-40px);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.5s ease, visibility 0s 0.5s;
}

header nav .menu .nos-produits:hover + .submenu,
header nav .menu .submenu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.5s ease;
}

header nav .menu .submenu a {
    padding: 10px 15px;
    color: #333;
    white-space: nowrap;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

header nav .menu .submenu a:hover {
    background-color: #f0f0f0;
    color: #d32f2f;
}

/* Hamburger Button */
header .btn-right {
    display: none;
}

/* Hero Section Styles */
.bgheader {
    background: url('../images/accueil.jpg') no-repeat center center/cover;
    min-height: 70vh;
    width: 100%;
    background-attachment: fixed;
}

.hero {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    border-radius: 10px;
}

.hero .title {
    font-size: 70px;
    font-weight: 500;
    color: #d9534f;
    margin-bottom: 20px;
}

.hero .description {
    font-size: 30px;
    color: black;
    font-weight: bolder;
    max-width: 70%;
    margin: 60px auto;
    font-family: "Rowdies", sans-serif;
}

.hero .description .service-name {
    color: rgb(198, 11, 11);
}
@media (max-width: 768px) {
    .hero .title {
        font-size: 36px;
    }
    
    .hero .description {
        font-size: 20px;
    }
    
    .header .logo img {
        max-width: 35vw;
    }
    
    .btn-right img {
        max-width: 20vw;
    }
}

/* Expertise Button Styles */
.expertise-btn {
    position: relative;
    width: 320px;
    height: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    color: white;
    overflow: hidden;
    border-radius: 5px;
    margin: auto;
}

.expertise-btn .btn-layer.black {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    background-color: black;
    z-index: 3;
    transition: z-index 1s, transform 1s ease;
}

.expertise-btn .btn-layer.red {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 90%;
    height: 90%;
    background-color: #d32f2f;
    z-index: 1;
    transition: z-index 1s, transform 1s ease;
}

.expertise-btn span {
    position: relative;
    z-index: 4;
    transform: translate(-15px, -5px);
}

.expertise-btn:hover .btn-layer.black {
    z-index: 1;
    transform: translate(5px, 5px);
    top: 10px;
    left: 10px;
    width: 90%;
    height: 90%;
}

.expertise-btn:hover .btn-layer.red {
    z-index: 3;
    transform: translate(-5px, -5px);
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    header .menu {
        display: none;
    }
    
    header .btn-right {
        display: block;
    }
    
    .btn-right img {
        width: 80px;
        height: auto;
        margin-right: 10px;
        filter: brightness(0) invert(1);
    }
}



/* Services section style */
.services-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-title {
    color: #b22222;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

/* Clients et partenaires */
.partners-clients-section {
    padding: 4rem 2rem;
}

/* CSS de base pour .section-title sur tous les appareils */
.section-title {
    color: #b22222;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: font-size 0.3s ease, margin-bottom 0.3s ease;
}

/* Ordinateurs de bureau (par défaut) */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    padding: 5px 0;
}

/* Tablettes */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
        padding: 4px 0;
    }
}

/* Smartphones */
@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        padding: 3px 0;
    }
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.partner-logo {
    width: 600px;
    height: 200px;
    object-fit: contain;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.client-logo {
    height: 200px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-logo {
        width: 300px;
        height: 150px;
    }
}

:root {
    --textColor : rgb(143, 6, 6);
    --bg-color :  rgb(143, 6, 6);
}

.partenaires-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.partenaires-logos img {
    width: 35vw;
    height: auto;
    object-fit: contain;
}

.setting-images {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.setting-image-item {
    width: 30%;
    height: auto;
}

.setting-image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
} 

@media screen and (max-width:800) {
    .partenaires-logos img {
        width: 48vw;
       
    }
}
@media screen and (max-width: 780px) {

    .setting-images {
        flex-direction: column;
        align-items: center;
    }

    .setting-image-item {
        width: 70%;
        margin-bottom: 10px;
    }
}

.image-description {
    background-color: var(--bg-color);
    color: white;
    font-size: 17;
    padding: 5px;
    width: 80%;
    font-weight: bold;
    margin: -5px auto;
    text-align: center;
    height: 45px;
    display: grid ;
    place-items: center;
}

@media screen and (min-width: 1200px) {
    .setting-image-item {
        width: 22%;
    }
}



.nos-clients {
    text-align: center;
    margin: 40px 0;
}

.title-clients {
   
    color: rgb(212, 52, 52);
}

.clients-images-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    
}

.client-image {
    width: 20vw;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 500px) {
    .clients-images-items {
        flex-wrap: wrap;
    }

    .clients-images-items .client-image {
        width: 45%;
    }
}


:root {
    --max-width:1200px ;
}
 .expertisefield-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
  }
  
  .expertisefield-intro {
    text-align: left;
    margin-bottom: 40px;
    padding: 0 10px;
  }
  
  .expertisefield-intro h1 {
    font-size: 24px;
    color: #c0392b;
    margin-bottom: 10px;
  }
  
  .expertisefield-intro p {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .expertisefield-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .expertisefield-left-column,
  .expertisefield-right-column {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  
  .expertisefield-left-column h2,
  .expertisefield-right-column h2 {
    color: #c0392b;
    margin-bottom: 15px;
  }
  
  .expertisefield-left-column h2 {
    color: #c0392b;
  }
  
  .expertisefield-right-column h3 {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
  }
  
  .expertisefield-right-column ul {
    margin: 10px 0;
    padding-left: 20px;
  }
  
  .expertisefield-right-column ul li {
    margin-bottom: 8px;
  }
  
  .expertisefield-left-column p,
  .expertisefield-right-column p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  /* --- Responsive Styles --- */
  @media screen and (max-width: 768px) {
    .expertisefield-content {
      grid-template-columns: 1fr; /* Une seule colonne pour les écrans étroits */
      gap: 15px;
    }
  
    .expertisefield-left-column,
    .expertisefield-right-column {
      padding: 15px;
    }
  }
  
  @media screen and (max-width: 780px) {
    .expertisefield-container {
      padding: 10px;
    }
  
    .expertisefield-intro {
      padding: 0 5px;
    }
  
    .expertisefield-intro h1 {
      font-size: 20px; 
    }
  
    .expertisefield-left-column p,
    .expertisefield-right-column p {
      font-size: 14px;
    }
    
   
  }
  
  
.nos-fournisseurs {
    text-align: left;
    margin: 40px auto;
    max-width: var(--max-width);

}

.title-fournisseurs {
    margin: 200px 0px 30px 0px;
    font-size: 3rem;
    font-weight: bold;
    color: rgb(212, 52, 52);
}

.fournisseurs-images-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    
}

.fournisseur-image {
    width: 20vw;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 700px) {
    .fournisseurs-images-items {
        flex-wrap: wrap;
    }

    .fournisseurs-images-items .fournisseurs-image {
        width: 45%;
    }
}

.footerBody {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    background: linear-gradient(to right, #170000, #e00909);
}

.footer-container {
    padding: 20px;
    text-align: center;
}

.footer-header {
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 35vw;
    height: auto;
}

.footer-content {
    width: 90%;
    margin: 0 auto;
}

.footer-block {
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.footer-block h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.2rem;
}

.footer-horaires p, 
.footer-contact p {
    color: rgb(231, 226, 226);
    margin-bottom: 0.5rem;
}

.first-footer-image img {
    max-width: 100%;
    height: auto;
    transform: translateY(-60px);
}

.seconde-footer-image {
    display: none;
}

.seconde-footer-image img {
    max-width: 100%;
    height: auto;
}

/* Grand écran */
@media (min-width: 1274px) {
    .first-footer-image {
        display: block;
    }
    .seconde-footer-image {
        display: none;
    }
    .footer-content {
        width: 80%;
    }
}

/* Tablettes et écrans moyens */
@media (min-width: 768px) and (max-width: 1273px) {
    .first-footer-image {
        display: none;
    }
    .seconde-footer-image {
        display: block;
        max-width: 300px;
        margin: 20px auto;
        transform: none;
    }
    .footer-content {
        width: 95%;
    }
    .footer-block {
        padding: 15px;
    }
    .row {
        justify-content: space-around;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 45%;
    }
    .first-footer-image {
        display: none;
       
    }
}

/* Petites tablettes */
@media (min-width: 501px) and (max-width: 767px) {
    .first-footer-image {
        display: none;
    }
    .seconde-footer-image {
        display: block;
        max-width: 250px;
        margin-left: 80px;
        align-items: center;
    }
    .footer-content {
        width: 100%;
    }
    .footer-block {
        padding: 10px;
    }
    .footer-logo {
        max-width: 50vw;
    }
    .first-footer-image {
        display: none;
       
    }
}

/* Mobile */
@media (max-width: 730px) {
    .footer-content {
        width: 100%;
    }
    .seconde-footer-image {
        display: block;
        max-width: 250px;
        margin-left: 90px;
        align-items: center;
    }
    .first-footer-image {
        display: none;
       
    }
    .footer-block {
        width: 100%;
    }
    .footer-logo {
        max-width: 70vw;
    }
}
  
.navigation-header-maintenance {
    background: white;
    position: fixed;
    z-index: 4;
    width: 100vw;
}

.maintenance-section , .expertisefield {
    padding-top: 180px;
    background-color: white;
}

.maintenance-header {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
}

.maintenance-header-banner {
    background: linear-gradient(to right, #ec0a0a, #220202);
    color: white;
    padding: 10px 0;
    position: absolute;
    top: 20px;
    width: 100%;
    max-width: 40vw;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}

.maintenance-header-banner h1 {
    margin: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    max-height:200px;
    display: block;
    margin-top: 50px;
    object-fit: cover;
}

.content {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #b22222;
    margin-top: 20px;
}

ul {
    margin-top: 10px;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

strong {
    font-weight: bold;
}

@media (max-width: 768px) {
    .banner-image {
        margin-top: 20px;
    }

    .maintenance-header-banner {
        max-width: 80vw;
        padding: 5px 0;
        top:-5px;
    }

    .content {
        max-width: 90%;
        padding: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    ul {
        padding-left: 15px;
    }

    ul li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .maintenance-header-banner h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
   
    .banner-image {
        margin-top: 10px;
    }

    .content {
        max-width: 95%;
        padding: 10px;
    }

    h2 {
        font-size: 1rem;
    }

    ul {
        padding-left: 10px;
    }

    ul li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .maintenance-header-banner h1 {
        font-size: 1.2rem;
    }
  
}

/* Bannière avec titre débordant */
.banner-container {
    position: relative;
    margin-top: 200px;
    margin-bottom: 50px;
}

.banner-title {
    position: absolute;
    top: -30px;
    left: 50px;
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    
}

.banner {
    height: 250px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('assets/images/extincteurs.jpg') center/cover;
}

/* Contenu principal */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.intro-text {
    width: 70%;
    margin-bottom: 30px;
    color: #666;
    font-size: 15px;
}

.intro-text p {
    margin-bottom: 20px;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 30px 0;
}



/* Types d'extincteurs */
.extincteur-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.extincteur-type h2 {
    color: #CD2122;
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.extincteur-type p {
    color: #666;
    font-size: 15px;
}

/* Maintenance */
.maintenance {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.maintenance h2 {
    color: #CD2122;
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.maintenance p {
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}


.main-contact {
    max-width: 80vw;
    margin: 0px auto;
    font-family: Arial, sans-serif;
   
}

.form-top {
    padding-top: 150px;
}

.contact-container {

    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    gap: 200px;
    justify-content: center;
}

.form-section {
    flex: 1;
    padding: 20px;
    margin: 0px auto;
}

.info-section {
    flex: 1;
    padding: 20px;
    color: #333;
    margin: 0px auto;
}

.info-section h2 {
    color: #c21e1e;
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.form-group div {
    flex: 1;
}

label {
    margin-bottom: 5px;
    font-size: 17px;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
}

textarea {
    resize: none;
    height: 120px;
    border-radius: 15px;
}


.info-section p {
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .contact-container {
        gap: 50px;
    }

    .form-group {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px; 
    }

    .form-section,
    .info-section {
        flex: none;
        width: 80%;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .main-contact {
        margin: 0px;
    }
    .contact-container {
        gap: 20px;
    }

    .form-group div {
        gap: 10px;
    }

    input,
    textarea {
        font-size: 14px;
    }

    label {
        font-size: 15px;
    }
}

.banner-container {
    position: relative;
  
}



.banner-title {
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    width: 100%;
    max-width: 700px;
    text-align: center;
    background: linear-gradient(to right, #C82D1E, #000);
    padding: 10px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 2;
}





.full-width-hr {
margin: 2rem auto;
width: 80%;
border-top: 2px solid #000;
position: relative;
}

/* Pour les tablettes */
@media (max-width: 1024px) {
.full-width-hr {
width: 90%;
margin: 1.5rem auto;
}
}

/* Pour les petites tablettes */
@media (max-width: 768px) {
.full-width-hr {
width: 80%;
margin: 1.5rem auto;
}
}



.cert-logo {
    max-height: 300px;
    margin-top: -110px;
    margin-right: 100px;
}

@media (max-width: 991px) and (min-width: 768px) {
    .cert-logo {
        max-height: 250px;
        margin-top: 0;
        margin-right: 0;
        display: block;
        margin: 20px auto;
    }
    
    /* Ajustement du conteneur pour centrer */
    .col-lg-4.text-end {
        text-align: center !important;
    }
}
/* Si vous utilisez une div conteneur pour l'image, vous pouvez aussi ajouter : */
@media (max-width: 768px) {
.col-lg-4.text-end {
text-align: center !important;
}
}
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.8rem;
        max-width: 250px;
        padding: 8px 20px;
    }

   
    .cert-logo {
        display: block;
        margin: 50px auto;
        max-height: 250px;
    }


    .row {
        margin: 0;
    }

    .col-12 {
        padding: 0 15px;
    }

    p {
       margin: 10px;
    }

    h2 {
        margin: 10px;
    }
}
#maintenance {
    padding: 40px 20px;
}

#maintenance .maintenance-section {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 40px 20px;
}

#maintenance .maintenance-header {
    text-align: center;
    margin-bottom: 40px;
}

#maintenance .maintenance-header h2 {
    color: #CD2122;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin: 0 0 20px;
}

#maintenance .maintenance-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #CD2122;
}

#maintenance .maintenance-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

#maintenance .period-note {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#maintenance .period-note p {
    color: #CD2122;
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
    max-width: 600px; /* Pour limiter la largeur du texte si besoin */
    padding: 0 20px; /* Pour éviter que le texte ne colle aux bords */
}
#maintenance .maintenance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

#maintenance .card {
    background: white;
    border: 2px solid #CD2122;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

#maintenance .card:hover {
    transform: translateY(-5px);
    background: #fff9f9;
}

#maintenance .card-icon {
    text-align: center;
    margin-bottom: 20px;
}

#maintenance .card-icon i {
    font-size: 2rem;
    color: #CD2122;
}

#maintenance .card h3 {
    color: #333;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

#maintenance .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#maintenance .check-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: padding 0.3s ease;
}

#maintenance .check-list li:hover {
    padding-left: 10px;
}

#maintenance .check-list li:last-child {
    border-bottom: none;
}

#maintenance .check-title {
    font-weight: 600;
    color: #CD2122;
    display: block;
    margin-bottom: 5px;
}

#maintenance .check-details {
    color: #000;
    line-height: 1.4;
}

#maintenance .deep-check-info {
    text-align: center;
}

#maintenance .deep-check-info p {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Mobile et Tablette */
@media (max-width: 1024px) {
    #maintenance .maintenance-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    #maintenance .card {
        margin-bottom: 20px;
        padding: 25px;
    }
}

/* Spécifique Mobile */
@media (max-width: 768px) {
    #maintenance {
        padding: 20px 10px;
    }

    #maintenance .maintenance-section {
        padding: 30px 15px;
    }

    #maintenance .maintenance-header h2 {
        font-size: 2.2rem;
    }

    #maintenance .maintenance-intro {
        font-size: 1.2rem;
        padding: 0 15px;
        margin-bottom: 25px;
    }

    #maintenance .period-note p {
        font-size: 1.3rem;
        padding: 10px 15px;
    }

    #maintenance .card h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    #maintenance .card-icon i {
        font-size: 2.5rem;
    }

    #maintenance .check-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    #maintenance .check-details {
        font-size: 1.2rem;
    }

    #maintenance .check-list li {
        padding: 15px 0;
    }

    #maintenance .deep-check-info p {
        font-size: 1.4rem;
        margin: 15px 0;
    }

    #maintenance .deep-check-info .check-list li {
        font-size: 1.2rem;
        line-height: 1.5;
    }
}

/* Spécifique Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    #maintenance .card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    #maintenance .card h3 {
        font-size: 1.6rem;
    }
}

 /* Styles pour les animations au scroll */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}

/* Différents types d'animations */
.reveal-up {
    transform: translateY(30px);
}

.reveal-down {
    transform: translateY(-30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

/* Délais d'animation */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Durées d'animation */
.duration-slow { transition-duration: 1.2s; }
.duration-fast { transition-duration: 0.5s; }

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}
/* Ajouter cette règle spécifique pour conserver le centrage du titre */


/* S'assurer que l'animation ne modifie pas l'alignement du texte */
.reveal-left.active, .reveal-right.active, .reveal-up.active, .reveal-down.active {
    text-align: inherit;
}