/* ====== Menu à droite sur la même ligne que le logo (desktop) ====== */
@media (min-width: 991px) {
  /* Empêche la navbar de se casser sur 2 lignes */
  .navbar,
  .navbar > .container,
  .navbar > .container-fluid {
    flex-wrap: nowrap !important;
  }

  /* Le bloc qui contient les liens de menu ne doit pas prendre toute la largeur */
  .navbar-collapse {
    flex-basis: auto !important;
  }

  /* Liens de menu à droite, en ligne */
  .navbar-nav {
    flex-direction: row !important;
    margin-left: auto !important; /* pousse le menu à droite */
    align-items: center !important;
    gap: 1.25rem; /* espace entre liens */
  }
  .navbar {
    justify-content: space-between !important;
  } 
}


/* Si le logo est trop gros, il force le retour à la ligne — on limite sa taille */
.navbar-brand img {
  max-height: 60px; /* ajuste si besoin (48–64px) */
  height: auto;
  width: auto;
}

/* (Optionnel) style des liens */
.navbar-nav .nav-link {
  font-weight: 500;
}

/* Reset et mise en page de base */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

/* Header */
header {
  background: #fff;
  border-bottom: 3px solid #e30613;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #0066b2;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #e30613;
}

/* Sections */
.section-container {
  padding: 60px 40px;
  margin: auto;
  max-width: 100%; /* ✅ plein écran */
}

.section-container h1,
.section-container h2 {
  color: #0066b2;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.card img {
  display: block;
  margin: 0 auto;     /* ✅ centre horizontalement */
  max-width: 80%;     /* laisse un peu de marge */
  height: auto;
  border-radius: 10px;
}

/* Container des cartes */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 100%; 
  padding: 0 20px;
}

/* Augmenter la largeur des cartes */
.flex-item {
  flex: 1 1 400px;   /* minimum 400px */
  max-width: 100%; 
}

/* Titre des cartes en rouge */
.card h3, 
.card h2, 
.card-title {
  color: #d32f2f; /* rouge vif */
  font-weight: bold;
}

/* Texte des cartes */
.card p {
  font-size: 1.2em;   
  line-height: 1.6;   
  color: #444;        
}

/* Titre au-dessus des cartes */
.section-title {
  font-size: 2.5rem;    /* grand (≈40px) */
  font-weight: 800;     /* très gras */
  color: #264b8c;       /* rouge vif */
  text-align: center;   /* centré */
  margin: 40px 0 30px;
  text-transform: uppercase;
}

/* Bouton */
.btn {
  display: inline-block;
  background: #0066b2;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #0066b2;
  transform: scale(1.05);
}

/* ===== Footer global ===== */
.footer {
  background: #1b2748; /* couleur de fond */
  color: white;
  padding: 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between !important; /* sépare gauche/droite */
  flex-wrap: wrap; /* pour mobile, ça repasse en colonne */
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: yellow;
}

.footer-infos p {
  margin: 5px 0;
}

.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}

/* ====== Sidebar Accueil - Lahcom ====== */
/* ================================
   STYLES COMMUNS POUR TOUS LES MODULES SIDEBAR
   ================================ */
.sidebar-module {
  position: relative;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-left: 5px solid #0066b2;
  border-top: 1px solid #e30613;
  min-height: 500px;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.sidebar-module::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  z-index: 1;
}

.sidebar-module * {
  position: relative;
  z-index: 2;
}

/* Slideshow Sidebar */
.sidebar-home {
  background-size: cover;
  background-position: center;
  animation: sidebarSlideshow 25s infinite ease-in-out;
}

/* Animation du background */
@keyframes sidebarSlideshow {
  0%   { background-image: url('/images/bg3.jpg'); }
  33%  { background-image: url('/images/bg2.jpg'); }
  66%  { background-image: url('/images/bg5.jpg'); }
  100% { background-image: url('/images/side3.jpg'); }
}

/* Fonds par page */
/* .sidebar-home      { background-image: url('/Lahcom/images/side3.jpg'); } */
.sidebar-apropos   { background-image: url('/images/apropos.jpg'); }
.sidebar-services  { background-image: url('/images/services.jpg'); }
.sidebar-contact   { background-image: url('/images/contacts.jpg'); }
.sidebar-partenaire { background-image: url('/images/partenaires.jpg'); }
.sidebar-blog      { background-image: url('/images/blog.jpg'); }
.sidebar-faq       { background-image: url('/images/side-faq.jpg'); }


/* Titres */
.sidebar-title {
  font-size: 68px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 2px solid #e30613;
  padding-bottom: 5px;
  text-align: center;
}

/* Texte */
.sidebar-module .sidebar-text {
  font-size: 35px;
  color: #f1f1f1;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
}

/* Mots mis en valeur */
.sidebar-module .highlight {
  color: #ff4d4d;
  font-weight: bold;
}

/* Liens */
.sidebar-module .sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: center;
}

.sidebar-module .sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-module .sidebar-links a {
  text-decoration: none;
  color: #ffcccb;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar-module .sidebar-links a:hover {
  color: #fff;
}

/* Bouton CTA */
.sidebar-module .btn-sidebar {
  display: inline-block;
  background: #e30613;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.sidebar-cta{
    text-align: center;
}

.sidebar-module .btn-sidebar:hover {
  background: #0066b2;
  transform: scale(1.05);
} 

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .sidebar-module {
    padding: 20px;
    min-height: auto;
  }

  .sidebar-module .sidebar-title {
    font-size: 24px;
  }

  .sidebar-module .sidebar-text {
    font-size: 16px;
  }

  .sidebar-module .sidebar-links a {
    font-size: 15px;
  }

  .sidebar-module .btn-sidebar {
    font-size: 14px;
    padding: 10px 18px;
  }
}

@media (max-width: 576px) {
  .sidebar-module {
    padding: 15px;
  }

  .sidebar-module .sidebar-title {
    font-size: 20px;
  }

  .sidebar-module .sidebar-text {
    font-size: 14px;
  }

  .sidebar-module .sidebar-links a {
    font-size: 14px;
  }

  .sidebar-module .btn-sidebar {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Classes pour les images de fond */
.bg-no-repeat { background-repeat: no-repeat !important; }
.bg-cover { background-size: cover !important; }
.bg-contain { background-size: contain !important; }
.bg-center { background-position: center !important; }
.bg-top { background-position: top !important; }
.bg-bottom { background-position: bottom !important; }
.bg-fixed { background-attachment: fixed !important; }
.bg-full {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ====== Section "Qui sommes-nous" ====== */
/* ========================================= */
.about-section {
    padding: 60px 20px;
    background-color: #fff;
}

/* Conteneur principal (Desktop: Image et Texte côte à côte) */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px; /* Limite de largeur sur grand écran */
    margin: 0 auto;
    padding: 0 40px; /* Padding latéral sur grand écran */
    flex-wrap: wrap; /* Permet aux éléments de s'enrouler si l'espace est insuffisant */
}

/* Bloc Image */
.about-image {
    /* S'assure que le bloc image est géré par flexbox mais ne grossit pas */
    flex-shrink: 0; 
    /* Ajout d'une marge automatique pour centrer l'image verticalement dans le conteneur flex */
    margin: auto 0; 
}

.about-image img {
    max-width: 350px;
    width: 100%; /* L'image prend 100% de la largeur du .about-image (max 350px) */
    border-radius: 10px;
    height: auto; /* Assure que l'image ne soit pas étirée */
    /* Ajout d'une ombre douce pour un léger effet 3D, comme sur l'image fournie */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
}

/* Bloc Texte */
.about-text {
    flex: 1; /* Prend l'espace restant */
    min-width: 300px;
}

.about-text h2 {
    color: #0a2a66;
    font-size: 2.2em; /* Légèrement augmenté */
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase; /* Typique pour un titre "QUI SOMMES-NOUS ?" */
}

.about-text p {
    font-size: 1.15em; /* Ajusté légèrement pour plus de lisibilité */
    color: #444;
    line-height: 1.6; /* Réduit légèrement le line-height pour moins d'étirement */
}

/* ========================================= */
/* ====== Responsive (Tablette et Mobile) ====== */
/* ========================================= */

@media (max-width: 992px) {
    .about-container {
        flex-direction: column; /* Passage à l'empilement vertical */
        text-align: center; /* Centre le texte dans le conteneur texte */
        gap: 30px;
        padding: 0 20px; /* Réduction du padding latéral */
    }

    .about-image {
        order: 1; /* L'image apparaît en premier */
        margin: 0 auto; /* Centrage du bloc image */
    }

    .about-text {
        order: 2; /* Le texte apparaît après l'image */
        min-width: unset;
        width: 100%; /* Le texte prend toute la largeur */
    }

    .about-text h2 {
        font-size: 2em;
    }

    .about-text p {
        /* Garder le texte aligné à gauche pour une meilleure lecture sur tablette */
        text-align: left; 
        font-size: 1.1em;
        padding: 0 10px; /* Ajout d'un petit padding pour ne pas coller les bords */
    }
}

@media (max-width: 576px) {
    
    .about-section {
        padding: 40px 0; /* Gère le padding vertical */
    }

    .about-container {
        padding: 0 15px; /* **CLÉ** : Assure une marge de 15px sur les bords du mobile */
        gap: 20px;
    }

    /* Le centrage de l'image est essentiel sur les petits écrans */
    .about-image img {
        max-width: 85%; /* L'image prend max 85% de la largeur du .about-image */
        margin: 0 auto; /* Centrage de l'image elle-même */
        display: block;
    }
    
    .about-text h2 {
        font-size: 1.5em;
    }

    .about-text p {
        font-size: 1em;
        line-height: 1.5;
        padding: 0; /* Enlève le padding supplémentaire pour maximiser l'espace texte */
        text-align: left;
    }
}

/* Espacement global entre les sections/modules */
.section-container,
.about-container,
.flex-row {
  margin-bottom: 40px; 
}

/* Option : un peu plus grand sur desktop */
@media (min-width: 992px) {
  .section-container,
  .about-container,
  .flex-row {
    margin-bottom: 60px;
  }
}

/* Module Appel à l'action */
.cta-module {
  text-align: center;
  background-color: #f0f8ff; /* fond bleu clair */
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-module h2 {
  margin-bottom: 20px;
}

.cta-module p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.cta-module a {
  background-color: #173a65;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.cta-module a:hover {
  background-color: #0654cc; /* couleur légèrement plus foncée au survol */
}

/* ====== Sidebar Styles ====== */
.sidebar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 15px;
}

.sidebar-title {
  font-size: 58px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar-subtitle {
  font-size: 48px;
  font-weight: 400;
  color: #3498db;
  margin: 0 0 30px 0;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  flex: 1;
}

.sidebar-features li {
  font-size: 42px;
  color: #f1f1f1;
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.3s ease;
  padding: 10px 15px;
  border-left: 4px solid transparent;
  position: relative;
}

.sidebar-features li:hover {
  color: #173a65;
  border-left: 4px solid #e30613;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
  padding-left: 20px;
}

.sidebar-features li::before {
 /* content: "•";*/
  color: #e30613;
  font-size: 24px;
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-features li:hover::before {
  opacity: 1;
}

.sidebar-cta {
  text-align: center;
  margin: 35px 0 15px 0;
}

.btn-sidebar {
  display: inline-block;
  background: #e30613;
  color: #fff;
  padding: 20px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.btn-sidebar:hover {
  background: #173a65;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.6);
}

/* Animations */
@keyframes welcomePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(241, 196, 15, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
  }
}

.sidebar-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

.sidebar-title { animation-delay: 0.2s; }
.sidebar-subtitle { animation-delay: 0.4s; }
.features-container { animation-delay: 0.6s; }
.sidebar-cta { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .features-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .sidebar-title {
    font-size: 32px;
  }
  
  .sidebar-subtitle {
    font-size: 24px;
  }
  
  .welcome-text {
    font-size: 28px;
    padding: 15px;
  }
  
  .sidebar-features li {
    font-size: 19px;
  }
  
  .btn-sidebar {
    font-size: 18px;
    padding: 16px 30px;
  }
}

@media (max-width: 576px) {
  .sidebar-title {
    font-size: 26px;
  }
  
  .sidebar-subtitle {
    font-size: 20px;
  }
  
  .sidebar-features li {
    font-size: 17px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }
  
  .btn-sidebar {
    padding: 14px 25px;
    font-size: 16px;
  }
}
/* ********************************************************************  */
.partners-section h2 {
  text-align: center;
  color: #0f77ff;
  margin-bottom: 20px;
  font-size: 2em;
}

.partners-section .intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #444;
}

.partners-section h3 {
  margin: 40px 0 20px;
  color: #0f4bb5;
  font-size: 1.4em;
}

/* Grille des partenaires */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.partner-card img {
  max-width: 120px;
  margin-bottom: 15px;
}

.partner-card h4 {
  margin: 10px 0;
  font-size: 1.2em;
  color: #222;
}

.partner-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

/* CTA */
.partners-cta {
  text-align: center;
  margin-top: 40px;
}

.partners-cta p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333;
}

.cta-btn {
  display: inline-block;
  background-color: #0f77ff;
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #0654cc;
}

/* --- Styles généraux et réinitialisation pour une meilleure base --- */
body {
    font-family: 'Poppins', sans-serif; /* Utilisez une police moderne comme Poppins */
    color: #333;
    background-color: #f0f2f5; /* Fond légèrement gris pour un contraste doux */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Une police différente pour les titres pour un contraste */
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* --- Effets visuels pour le conteneur principal --- */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%); /* Dégradé subtil */
    /* padding: 3rem; /* Plus d'espace */ */
    /* border-radius: 15px; /* Coins plus arrondis */ */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Ombre plus prononcée mais douce */
    margin-bottom: 3rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition plus fluide et élégante */
    border: 1px solid rgba(220, 220, 220, 0.5); /* Bordure très légère */
  width: calc(100vw - 20px) !important;   /* 100vw - 10px gauche - 10px droite */
  max-width: calc(100vw - 20px) !important;
  margin-left: calc(50% - 50vw + 10px) !important;
  margin-right: calc(50% - 50vw + 10px) !important;

  /* look “plein écran” (optionnel) */
  border-radius: 0 !important;
  /* box-shadow: none !important; */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --- Amélioration de la grille des services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
    padding: 2.5rem 0;
}

/* --- Animation et visuel des cartes de service --- */
.service-card {
    background: #ffffff; /* Fond blanc pour les cartes */
    border-radius: 12px;
    /* margin-left: 2rem;
    margin-right: 2rem; */
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background 0.4s ease-out; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden; /* Important pour les effets de bordure */
    position: relative; /* Pour la pseudo-classe after */
    border: 1px solid rgba(230, 230, 230, 0.7);
}

/* Effet de bordure animée au survol */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Épaisseur de la bordure animée */
    background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%); /* Dégradé de couleur pour la bordure */
    transform: scaleX(0); /* Cache la bordure par défaut */
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.service-card:hover::after {
    transform: scaleX(1); /* Affiche la bordure au survol */
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02); /* Élévation et léger agrandissement au survol */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15); /* Ombre plus forte */
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%); /* Léger dégradé au survol */
}

/* --- Amélioration des images dans les cartes --- */
.service-card img {
    max-width: 100%;
    height: 220px; /* Hauteur fixe légèrement augmentée pour un meilleur impact visuel */
    object-fit: cover;
    border-radius: 8px; /* Coins arrondis pour les images */
    margin-bottom: 1.8rem; /* Espacement accru */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Ombre légère pour les images */
    transition: transform 0.3s ease-out;
}

.service-card:hover img {
    transform: scale(1.03); /* Léger zoom sur l'image au survol de la carte */
}

/* --- Styles des textes dans les cartes --- */
.service-card h4 {
    color: #2c3e50;
    font-size: 1.4rem; /* Titre plus grand */
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: #007bff; /* Changement de couleur du titre au survol */
}

.service-card p {
    color: #555;
    font-size: 1.05rem; /* Texte légèrement plus grand */
    line-height: 1.7;
    flex-grow: 1; /* Permet au paragraphe de prendre l'espace restant */
}

/* --- Section d'appel à l'action (CTA) améliorée --- */
.services-cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0; /* Bordure plus douce */
    margin-top: 3rem;
    background: linear-gradient(45deg, #e6f2ff 0%, #f0f8ff 100%); /* Fond dégradé pour le CTA */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.services-cta p {
    font-size: 1.3rem; /* Texte CTA plus grand et engageant */
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* --- Bouton CTA avec un effet plus prononcé --- */
.cta-btn {
    display: inline-block;
    background: linear-gradient(45deg, #007bff 0%, #00c6ff 100%); /* Dégradé pour le bouton */
    color: #fff;
    padding: 1rem 2.5rem; /* Plus de padding */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease; /* Transition plus globale */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3); /* Ombre douce colorée */
    border: none; /* Pas de bordure par défaut */
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05); /* Élévation et léger agrandissement au survol */
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.45); /* Ombre plus intense */
    background: linear-gradient(45deg, #0056b3 0%, #0099e6 100%); /* Changement de dégradé au survol */
}

/* --- Responsivité améliorée --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajustement pour tablettes */
        gap: 2rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-card h4 {
        font-size: 1.2rem;
    }
    .service-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 1.5rem;
    }
    .service-card img {
        height: 180px; /* Ajustement de la hauteur des images pour mobile */
        margin-bottom: 1rem;
    }
    .services-cta {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    .services-cta p {
        font-size: 1.1rem;
    }
    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* ==================================== */
/* ====== 📄 Page "À Propos" ====== */
/* ==================================== */
.about-card {
    padding: 3rem;
}

.about-subtitle {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: 500;
    margin-bottom: 3rem;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-image-container {
    flex-shrink: 0;
    width: 400px;
    max-width: 100%;
}

.about-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-text-container {
    flex-grow: 1;
    max-width: 600px;
}

.about-text-container h4 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.values-title {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
}

.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    padding: 1.5rem;
}
/* Conteneur du slider */
.slider {
  position: relative;
  width: 400px;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chaque slide */
.slide {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

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

/* Slide active */
.slide.active {
  opacity: 1;
}

.about-buttons {
  text-align: center;
  margin: 20px 0;
}

.tab-btn {
  background: #f5f5f5;
  border: none;
  padding: 12px 25px;
  margin: 5px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.tab-btn.active {
  background: #2c3e50;
  color: #fff;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Style de la carte CTA pour la page "À Propos" */
.cta-card {
    padding: 0; /* Supprime le padding pour le module CTA */
    background: none; /* Supprime le fond pour le module CTA */
    box-shadow: none; /* Supprime l'ombre pour le module CTA */
    border: none; /* Supprime la bordure pour le module CTA */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .about-section.reverse {
        flex-direction: column;
    }
    .about-text-container {
        max-width: 100%;
    }
}

/* ==================================== */
/* ====== 📞 Page Contact ====== */
/* ==================================== */
.contact-card-container {
    padding: 2rem;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Style de la zone de l'image */
.contact-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style du conteneur du formulaire */
.contact-form-container {
    padding: 1rem 2rem;
    border-radius: 12px;
}

/* Style du texte au-dessus du formulaire */
.contact-text-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-text-header p {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Styles des champs de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Style spécifique pour les options de service */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.service-options label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-options input[type="checkbox"] {
    margin: 0;
}

/* Bouton Envoyer */
.btn.cta-btn {
    width: auto;
    border-radius: 8px;
    font-size: 1rem;
    padding: 12px 25px;
}

/* ====== Desktop Menu (visible > 990px) ====== */
/* ====== Menu Hamburger Mobile ====== */
.navbar-toggler {
    display: none;
    background: none;
    border: 2px solid #0066b2;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 35px;
    margin-left: auto;
}

.navbar-toggler span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* Animation du hamburger */
.navbar-toggler.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* ====== Mobile Menu Styles ====== */

@media (max-width: 990px) {
    .navbar-toggler {
        display: block !important;
    }
    
    /* Header responsive - maintenir logo et hamburger sur la même ligne */
    header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px;
        gap: 15px;
    }
    
    /* Container navigation pour mobile */
    .container-nav {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;  /* ou center si tu veux centrer */
        width: 100%;
    }
    
    /* S'assurer que le logo reste à gauche */
    .navbar-brand {
        margin-right: auto;
    }
    
    /* Menu caché par défaut sur mobile */
    .mod-menu,
    .navbar-nav {
        display: none !important;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 5px;
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border: 1px solid #e30613;
    }
    
    /* Afficher le menu quand actif */
    .mod-menu.show,
    .navbar-nav.show {
        display: block !important;
    }
    
    /* Styles du menu mobile */
    .mod-menu ul,
    .navbar-nav {
        flex-direction: column !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        gap: 0 !important;
    }
    
    .mod-menu li,
    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .mod-menu li:last-child,
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .mod-menu a,
    .navbar-nav .nav-link {
        display: block !important;
        padding: 15px 20px !important;
        text-decoration: none;
        color: #0066b2 !important;
        transition: background 0.3s;
        font-weight: 500 !important;
    }
    
    .mod-menu a:hover,
    .navbar-nav .nav-link:hover {
        background: #f8f9fa;
        color: #e30613 !important;
    }
    
    /* Logo plus petit sur mobile */
    .navbar-brand img {
        max-height: 40px !important;
    }
}

/* Grid plus grande */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* largeur mini augmentée */
  gap: 35px; /* plus d’espace entre les cartes */
  margin-top: 40px;
  padding: 0 20px;
}

/* Style des cartes */
.value-card {
  background: #fff;
  padding: 40px 30px; /* plus de padding */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 280px; /* hauteur minimum plus grande */
}

/* Icône au-dessus */
.value-card .icon {
  font-size: 55px; /* icône plus grande */
  margin-bottom: 20px;
  color: #007bff; /* bleu principal */
}

/* Titre */
.value-card h4 {
  font-size: 24px; /* plus grand */
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: bold;
}

/* Texte */
.value-card p {
  font-size: 17px; /* texte plus lisible */
  color: #444;
  line-height: 1.8;
}

/* Effet hover */
.value-card:hover {
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 50px;
  padding: 0 20px;
}

/* ====== Cartes ====== */
.value-card {
  background: #fff;
  padding: 45px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 280px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s forwards;
}

/* Animation au scroll (apparition) */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet hover premium */
.value-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

/* ====== Titres ====== */
.value-card h4 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* ====== Texte ====== */
.value-card p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

/* ====== Couleurs personnalisées ====== */
.value-card:nth-child(1) h4 { color: #e74c3c; }   /* Innovation = Rouge */
.value-card:nth-child(2) h4 { color: #2980b9; }   /* Excellence = Bleu */
.value-card:nth-child(3) h4 { color: #27ae60; }   /* Intégrité = Vert */
.value-card:nth-child(4) h4 { color: #f39c12; }   /* Collaboration = Orange */

  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* Les informations de contact */
.contact-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a237e; /* bleu foncé */
  margin-bottom: 0.8rem;
  border-left: 3px solid #ff5722; /* petit accent orange */
  padding-left: 0.5rem;
}

.info-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


/* Styles de base pour les grands écrans (mode côte à côte) */
/* ========================================= */
/* 1. Styles de Base (Ordinateur) */
/* ========================================= */

.partenaire-cle-container {
    display: flex; /* Disposition côte à côte */
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Bloc Image (Slider) --- */
.partenaire-cle-image {
    flex: 1 1 50%;
    position: relative;
    height: auto; /* Permet au slider de prendre la hauteur du contenu */
    overflow: hidden; 
}

/* --- Bloc Texte --- */
.partenaire-cle-text {
    flex: 1 1 50%;
    padding: 0 15px;
}

.partenaire-cle-text h2 {
    color: #e60000;
    font-size: 2em;
    margin-bottom: 10px;
    /* Rétabli en 'justify' si c'est le design souhaité sur desktop */
    text-align: justify; 
}

.partenaire-cle-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    /* Rétabli en 'justify' si c'est le design souhaité sur desktop */
    text-align: justify; 
}

/* Bouton */
.partenaire-cle-text .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* ========================================= */
/* 2. Uniformité de la Taille des Logos */
/* ========================================= */

/* Conteneur de taille fixe pour le logo */
.partenaire-cle-image .logo-wrapper {
    /* **CLÉ : Définir une taille uniforme pour le logo (ex: carré 400x400)** */
    width: 400px;
    height: 400px;
    margin: 0 auto; 
    overflow: hidden; 
    border-radius: 15px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    /* background-color: white; /* Aide à la visualisation si l'image est transparente */ */
}

/* Ajustement de l'image à l'intérieur du conteneur */
.partenaire-cle-image .logo-wrapper img {
    width: 100%;
    height: 100%;
    /* **CLÉ : Recadrer l'image pour remplir le conteneur sans déformation** */
    object-fit: contain; 
    display: block;
}

/* ========================================= */
/* 3. Styles du Slider (Animation) */
/* ========================================= */

.partenaire-cle-image .slide {
    position: absolute; /* Place les slides les uns sur les autres */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.partenaire-cle-image .slide.active {
    opacity: 1;
    /* Force le slide actif à définir la hauteur du parent (très important !) */
    position: relative; 
}


/* ========================================= */
/* 4. Media Query (Mobile - Écran <= 768px) */
/* ========================================= */

@media (max-width: 768px) {
    
    .partenaire-cle-container {
        flex-direction: column; /* Empilement vertical */
        gap: 30px; 
    }

    /* Bloc Image sur mobile */
    .partenaire-cle-image {
        width: 100%;
        min-width: unset; 
        order: -1; /* Place le bloc image au-dessus du texte */
    }

    /* Réduction de la taille des logos sur mobile */
    .partenaire-cle-image .logo-wrapper {
        width: 250px; /* Taille réduite */
        height: 250px;
        margin: 0 auto; 
    }
    
    /* Bloc Texte sur mobile */
    .partenaire-cle-text {
        width: 100%;
        padding: 0 20px;
    }

    /* Centrage du texte et du bouton sur mobile */
    .partenaire-cle-text h2,
    .partenaire-cle-text p {
        text-align: center !important; 
    }

    .partenaire-cle-text .btn {
        margin: 0 auto; /* Centrage du bouton */
        display: block; /* Le bouton prend toute la largeur pour centrer */
        max-width: 200px; 
    }
}