/* ==========================================================================
   SLIDER ACCUEIL (Largeur 100%, Proportions respectées, Glassmorphism)
   ========================================================================== */
.hero-slider-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 480px;
    max-height: 750px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.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 ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
}

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

/* Image occupant 100% de la largeur et ajustée dynamiquement */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active .slide-img {
    transform: scale(1);
}

/* Overlay sombre en dégradé pour faire ressortir le texte */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(10, 37, 64, 0.90) 0%, 
        rgba(10, 37, 64, 0.50) 50%, 
        rgba(10, 37, 64, 0.20) 100%
    );
    z-index: 2;
}

/* Boîte de texte Glassmorphic moderne */
.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 5px solid var(--accent-red);
    padding: 2.5rem;
    border-radius: 12px;
    color: var(--pure-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.slide-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-red);
    color: var(--pure-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.05rem;
    color: var(--technical-gray);
    margin-bottom: 1.8rem;
}

.slide-btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--pure-white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.slide-btn:hover {
    background: var(--accent-red);
    color: var(--pure-white);
    transform: translateX(5px);
}

/* Flèches de navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--pure-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--accent-red);
    color: var(--pure-white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Barre de contrôle (Play/Pause + Dots) */
.slider-controls-bar {
    position: absolute;
    bottom: 25px;
    right: 5%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 37, 64, 0.65);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.play-pause-btn {
    background: transparent;
    border: none;
    color: var(--pure-white);
    font-size: 0.9rem;
    cursor: pointer;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--accent-red);
}

/* ==========================================================================
   SECTIONS & GRILLES DE LA PAGE
   ========================================================================== */
.section-padding { padding: 4.5rem 5%; }
.bg-light { background-color: var(--technical-gray); }

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Divisions */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.division-card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-blue);
    transition: var(--transition-smooth);
}

.division-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--accent-red);
}

.card-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--technical-gray);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.link-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 700;
}

/* Méthodologie */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid var(--accent-red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.step-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Réalisations */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,37,64,0.95));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-item:hover img { transform: scale(1.05); }

/* Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.team-img-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-red);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .role {
    font-size: 0.85rem;
    color: #718096;
}

/* Partenaires */
.partners-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.partner-logo img {
    max-height: 55px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* Adaptations Mobiles */
@media (max-width: 768px) {
    .slider-container { height: 70vh; }
    .slide { padding: 0 4%; justify-content: center; }
    .slide-content { padding: 1.5rem; text-align: center; border-left: none; border-top: 4px solid var(--accent-red); }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.95rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}