/* =====================================================
   CORRECTION DU SLIDER POUR ÉVITER LES CONFLITS
===================================================== */

/* Réduire l'impact visuel du slider */
.slider-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  background-color: #280b62;
  z-index: 10; /* Augmenter le z-index pour être au-dessus */
  margin-bottom: 0; /* Pas de marge */
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 11;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 12;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
  animation: zoomEffect 20s infinite alternate;
  z-index: 1;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 14, 14, 0.85) 0%, rgba(223, 228, 231, 0.6) 100%);
  z-index: 2;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 3;
}

/* Animations spécifiques au slider seulement */
@keyframes fadeInUpSlider {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #fbc531;
  opacity: 0;
  animation: fadeInUpSlider 0.8s ease 0.3s forwards;
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInUpSlider 0.8s ease 0.5s forwards;
}

.slide-description {
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0;
  animation: fadeInUpSlider 0.8s ease 0.7s forwards;
}

.slide-button {
  display: inline-block;
  background-color: #fbc531;
  color: #000;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid #fbc531;
  opacity: 0;
  animation: fadeInUpSlider 0.8s ease 0.9s forwards;
}

.slide-button:hover {
  background-color: transparent;
  color: #fbc531;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(251, 197, 49, 0.2);
}

/* Contrôles du slider - strictement interne */
.slider-controls {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 20;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.control-btn:hover {
  background: #fbc531;
  border-color: #fbc531;
  color: #000;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: #fbc531;
  transform: scale(1.2);
}

.dot:hover {
  background: #fbc531;
}

/* Barre de progression - interne au slider */
.slider-progress {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 20;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #fbc531;
  transition: width 5s linear;
}

.slide.active ~ .slider-progress .progress-bar {
  animation: progressBarAnimation 5s linear forwards;
}

@keyframes progressBarAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* =====================================================
   STYLES DU RESTE DU SITE - ISOLÉS DU SLIDER
===================================================== */
/* Réinitialisation sans impact sur le slider */
*:not(.slider-section *, .slider-container *, .slider *, .slide *, .slide-content *, 
       .slider-controls *, .slider-progress *, .slider-dots *, .dot, .control-btn) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body:not(.slider-section) {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Container principal - isolé du slider */
.container:not(.slider-container) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections après le slider */
section:not(.slider-section) {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Titres de sections - style différent du slider */
.section-title:not(.slide-content) {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:not(.slide-title) {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:not(.slide-title)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.section-title p:not(.slide-description) {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- Variables pour le reste du site --- */
:root {
    --primary: #0a2540;      /* Bleu Saphir */
    --accent: #ffcc00;       /* Jaune Or */
    --accent-hover: #e6b800;
    --text-dark: #1a1f25;
    --text-muted: #5a6b7d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* --- Section SECTEURS (isolée du slider) --- */
.sectors:not(.slider-section) {
    background-color: var(--bg-light);
    margin-top: 0;
    position: relative;
    z-index: 1;
}

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

.sector-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent);
}

.sector-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.sector-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- Section SERVICES --- */
.services:not(.slider-section) {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 20px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--primary);
    transform: rotateY(180deg);
}

/* --- Section FILIALES --- */
.subsidiaries-section:not(.slider-section) {
    background: rgba(245, 239, 239, 0.944);
    background-color: #ddd;
    color: rgba(238, 235, 235, 0.849);
    position: relative;
    z-index: 1;
}

/* ==============================
   SECTION FILIALES – BACKGROUND
============================== */
.subsidiaries-section {
  background-color: #f1f5f9; /* gris clair professionnel */
  padding: 100px 0;
}


.subsidiaries-section .section-title h2 { 
    color: var(--white); 
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image, .about-text {
    flex: 1;
    min-width: 300px;
}

.illustration-image {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--accent);
    padding: 60px;
    text-align: center;
    border-radius: 20px;
}

.illustration-image i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.cta-button:not(.slide-button) {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:not(.slide-button):hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* --- Section TÉMOIGNAGES --- */
.testimonials:not(.slider-section) {
    background: var(--bg-light);
    position: relative;
    z-index: 1;
}

.testimonial-item {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

/* --- Section CONTACT --- */
.contact:not(.slider-section) {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-detail i {
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
}

.form-control:not(.slide-content input) {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:not(.slide-content input):focus {
    border-color: var(--primary);
    outline: none;
}

/* --- Responsive (sauf slider) --- */
@media (max-width: 768px) {
    .contact-container { 
        grid-template-columns: 1fr; 
    }
    
    .about-content { 
        text-align: center; 
    }
    
    h1:not(.slide-title) { 
        font-size: 2rem; 
    }
}

/* Responsive spécifique au slider */
@media (max-width: 992px) {
    .slider-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .slider-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .slider-controls {
        bottom: 40px;
        gap: 20px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .slider-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .slider-controls {
        bottom: 30px;
        gap: 15px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* =====================================================
   SÉPARATEUR ENTRE SLIDER ET SECTIONS
===================================================== */
.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 0;
    position: relative;
    z-index: 5;
}

/* ==============================
   SECTION SERVICES – IMAGE DE FOND
============================== */
#services.services {
  position: relative;
  background-image: url('image/backgrounds/sectors-bg.jpg'); /* chemin à adapter */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
}

/* Overlay sombre pour la lisibilité */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 9, 0.75); /* bleu corporate */
  z-index: 1;
}

/* Contenu au-dessus de l’overlay */
.services .container {
  position: relative;
  z-index: 2;
}

/* Titres en blanc */
.services .section-title h2,
.services .section-title p {
  color: #ffffff;
}

/* Cartes services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 35px;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #0a3d62;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 26px;
}

.service-card h3 {
  color: #062f4f;
  margin-bottom: 12px;
}

.service-card p {
  color: #444;
}


