
    :root {
        --primary-red: #B50717;
        --primary-blue: #152440;
        --primary-black: #111111;
    }
    
    .expertise-hero {
        position: relative;
        overflow: hidden;
        height: 450px;
    }
    
    .bg-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        background-size: cover;
        background-position: center;
    }
    
    .bg-slide.active {
        opacity: 1;
    }
    
    .bg-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(21, 36, 64, 0.92) 0%, rgba(26, 47, 82, 0.88) 100%);
    }
    
    .bg-slide-1 { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80'); }
    .bg-slide-2 { background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1920&q=80'); }
    .bg-slide-3 { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80'); }
    
    .slider-container {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    #methodology-section {
        margin-top: -68px;
        margin-bottom: 20px;
    }
    
    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide.active {
        opacity: 1;
        z-index: 1;
    }
    
    .slide-content {
        text-align: center;
        padding: 40px;
        max-width: 1100px;
        position: relative;
        z-index: 2;
        animation: slideUp 0.8s ease-out;
    }
    
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .expertise-badge {
        display: inline-block;
        background: var(--primary-red);
        color: white;
        padding: 8px 25px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
        animation: subtleBlink 2.8s ease-in-out infinite;
    }

    @keyframes subtleBlink {
        0%, 100% { opacity: 0.85; }
        50% { opacity: 1.0; }
    }
    
    .section-title {
        color: white;
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 25px;
        line-height: 1.2;
        text-shadow: 2px 4px 8px rgba(0,0,0,0.3);

        overflow: hidden;
        white-space: nowrap;
        border-right: 0.12em solid #fff;

        width: 0ch;
        margin-left: auto;
        margin-right: auto;

        animation: typing 3.2s steps(32, end) forwards,
                blink-caret 0.7s step-end infinite;
    }


    @keyframes typing {
        from { width: 0ch; }
        to { width: 32ch; }
    }

    @keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: white } }
    
    .hero-subtitle {
        color: rgba(255, 255, 255, 0.95);
        font-size: 20px;
        line-height: 1.8;
        margin-bottom: 40px;
        text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .calendly-btn {
        display: inline-block;
        background: var(--primary-red);
        color: white;
        padding: 10px 50px;
        border-radius: 50px;
        font-size: 17px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.4s ease;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    
    .calendly-btn:hover { transform: translateY(-3px); color: var(--primary-red); background: white; }

    .slider-dots {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 15px;
        z-index: 10;
    }
    
    .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.4s ease;
    }
    
    .dot.active {
        background: var(--primary-red);
        box-shadow: 0 0 15px rgba(181, 7, 23, 0.8);
    }
    
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.15);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
    }
    
    .slider-arrow.prev { left: 40px; }
    .slider-arrow.next { right: 40px; }


    @media (max-width: 992px) {
        .section-title { font-size: 38px; }
        .hero-subtitle { font-size: 17px; }
    }

    @media (max-width: 768px) {
        .slide-content { padding: 20px; }
        .section-title {
            font-size: 28px;
            white-space: normal; /* Permet au titre de passer sur plusieurs lignes */
            width: auto;
            border-right: none;
            animation: slideUp 0.8s ease-out forwards; /* On utilise slideUp au lieu de typing sur mobile */
        }
        .hero-subtitle {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 25px;
            padding: 0 10px;
        }
        .calendly-btn { padding: 12px 30px; font-size: 14px; }
        .slider-arrow { width: 45px; height: 45px; }
        .slider-arrow.prev { left: 10px; }
        .slider-arrow.next { right: 10px; }
    }

    @media (max-width: 576px) {
        .section-title { font-size: 22px; margin-bottom: 15px; }
        .expertise-badge { margin-bottom: 15px; font-size: 12px; }
        .hero-subtitle { font-size: 13px; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* Limite à 3 lignes si trop long sur petit mobile */
        .slider-dots { bottom: 20px; }

    }

    .expertise-content { padding: 40px 0; background: white; }
    .section-header { text-align: center; margin-bottom: 40px; }
    .section-header h2 { color: var(--primary-blue); font-size: 42px; font-weight: 800; margin-bottom: 15px; position: relative; display: inline-block; }
    .section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary-red); }
    .service-row { margin-bottom: 50px; opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
    .service-content-left, .service-content-right { padding: 10px; position: relative; }
    .service-number { position: absolute; top: -20px; left: 40px; font-size: 120px; font-weight: 900; color: var(--primary-red); opacity: 0.08; z-index: 0; }
    .service-icon-inline { display: inline-flex; width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary-red), #d4082a); border-radius: 15px; align-items: center; justify-content: center; font-size: 32px; color: white; margin-bottom: 25px; position: relative; z-index: 1; }
    .service-title { color: var(--primary-blue); font-size: 32px; font-weight: 800; margin-bottom: 20px; }
    .service-description { color: #666; font-size: 17px; line-height: 1.9; margin-bottom: 30px; }
    .service-benefits { list-style: none; padding: 0; margin: 0; }
    .service-benefits li { color: #444; font-size: 16px; margin-bottom: 15px; padding-left: 35px; position: relative; }
    .service-benefits li i { position: absolute; left: 0; top: 3px; color: var(--primary-red); font-size: 20px; }
    .image-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.15); height: 300px; }
    .image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);}
    .image-wrapper:hover img {transform: scale(1.1);}
    .methodology-content { background: white; border: 1px solid #e8e8e8; border-radius: 12px; padding: 30px 20px; box-shadow: 0 6px 28px rgba(0,0,0,0.04); margin: 0 auto; opacity: 0; transform: translateY(35px); transition: all 1.2s ease; }
    .methodology-content.visible { opacity: 1; transform: translateY(0); }
    .methodology-title { color: var(--primary-blue); font-size: 34px; font-weight: 800; margin-bottom: 35px; position: relative; }
    .title-underline { position: absolute; bottom: -8px; left: 0; width: 0; height: 5px; background: var(--primary-red); transition: width 1.1s ease; }
    .methodology-content.visible .title-underline { width: 100%; }
    .methodology-highlight { background: var(--primary-red); color: white; padding: 4px 10px; border-radius: 5px; font-weight: 700; }

    .calendly-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 42px;
    background: linear-gradient(135deg, var(--primary-red), #e3142a);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(181, 7, 23, 0.35);
    transition: all 0.3s ease;
}

/* Effet "respiration" permanent */
.calendly-btn {
    animation: pulse 2.2s infinite;
}

/* Lumière qui passe au hover */
.calendly-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: all 0.6s ease;
}

.calendly-btn:hover::before {
    left: 140%;
}

/* Mouvement au hover */
.calendly-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 45px rgba(21, 36, 64, 0.4);
}

/* Animation respiration */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(181, 7, 23, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(181, 7, 23, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(181, 7, 23, 0);
    }
}






:root {
    --primary: #B50717;
    --dark: #152440;
    --transition-speed: 0.8s;
}

.carousel-section {
    padding: 0px 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 550px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pack-card {
    position: absolute;
    width: 320px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    cursor: pointer;
}

.pack-card img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: block;
}

/* Positions Desktop */
.position-left { transform: translateX(-110%) scale(0.85); opacity: 0.5; z-index: 2; }
.position-right { transform: translateX(110%) scale(0.85); opacity: 0.5; z-index: 2; }
.position-center { transform: translateX(0) scale(1.15); opacity: 1; z-index: 10; }

/* Bouton */
.btn-container {
    text-align: center;
    margin-top: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.position-center .btn-container {
    opacity: 1;
    visibility: visible;
}

.btn-download {
    background: var(--dark);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-download:hover { background: rgb(254, 228, 228) }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    transform: none !important;
}

/* Boutons Lightbox */
.close-lightbox {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer; z-index: 10001;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.nav-btn:hover { background: var(--primary); }
.prev { left: 20px; }
.next { right: 20px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .carousel-container {
        height: 600px;
    }
    
    .pack-card {
        width: 280px;
    }

    /* Sur mobile, je réduis l'écartement pour que les côtés soient visibles mais pas gênants */
    .position-left { transform: translateX(-60%) scale(0.8); opacity: 0.3; }
    .position-right { transform: translateX(60%) scale(0.8); opacity: 0.3; }
    .position-center { transform: translateX(0) scale(1); opacity: 1; }
    
    .nav-btn { padding: 10px; font-size: 20px; }
}





/* Style de la modale personnalisée */
.custom-modal {
    display: none; 
    position: fixed;
    z-index: 20000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    padding: 10px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 20px; top: 8px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.modal-body p {
    margin-bottom: 5px;
    color: var(--dark);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}


/* Style spécifique pour les boutons de la modale */
.calendly-btn-modal {
    background: var(--dark);
    color: white;
    padding: 9px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.calendly-btn-modal:hover {
    background: var(--primary);
    color: white;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}