/* Original Bootstrap Enhancements */

/* Original Success Colors */
.text-success, .bg-success, .btn-success {
    color: #198754 !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-success:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
}

/* Original Warning Colors */
.text-warning, .bg-warning, .btn-warning {
    color: #ffc107 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-warning:hover {
    background-color: #ffca2c !important;
    border-color: #ffc720 !important;
}

/* Original Danger Colors */
.text-danger, .bg-danger, .btn-danger {
    color: #dc3545 !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

/* Original Info Colors */
.text-info, .bg-info, .btn-info {
    color: #0dcaf0 !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

.btn-info:hover {
    background-color: #31a2b8 !important;
    border-color: #2aa0b8 !important;
}

/* Original hover effects */
.btn:hover {
    transform: translateY(-1px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Original form focus */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Copyright Fix */
.copyright {
    background-color: #212529 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 !important;
    padding: 0 !important;
}

.copyright .row {
    margin: 0 !important;
    padding: 8px 0 !important;
}

.copyright .col-md-6 {
    padding: 0 !important;
}

/* Back to Top Button Fix */
.back-to-top {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #0d6efd !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 18px !important;
    text-align: center !important;
    line-height: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    display: none;
}

.back-to-top:hover {
    background-color: #0b5ed7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.back-to-top i {
    line-height: 50px !important;
}

/* Force display when needed */
.back-to-top.show {
    display: block !important;
}

/* Footer spacing fix */
.footer {
    margin-bottom: 0 !important;
}

/* Remove any extra spacing */
body {
    margin-bottom: 0 !important;
}

html {
    scroll-behavior: smooth;
}

/* Mobile Domain Cards */
.domaine-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domaine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.domaine-card.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.domaine-card.active i {
    color: white !important;
}

.domaine-card.active h6 {
    color: white;
}

.domaine-card.active .badge {
    background-color: white !important;
    color: #0d6efd !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .domaine-card {
        min-height: 100px;
        padding: 8px;
    }
    
    .domaine-card h6 {
        font-size: 0.9rem;
    }
    
    .domaine-card i {
        font-size: 1.5rem !important;
    }
}

/* Video Section Styles */
.video-container {
    position: relative;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-placeholder {
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-button {
    transition: transform 0.3s ease;
}

.video-container:hover .play-button {
    transform: scale(1.1);
}

.video-container .btn-light {
    transition: all 0.3s ease;
    border: none;
}

.video-container .btn-light:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Feature icons animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.feature-item {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.feature-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

/* Responsive video section */
@media (max-width: 768px) {
    .video-placeholder {
        height: 300px !important;
    }
    
    .video-overlay .btn {
        width: 60px !important;
        height: 60px !important;
    }
    
    .video-overlay .btn i {
        font-size: 1.5rem !important;
    }
}

/* ===== AMÉLIORATIONS PAGE ABOUT ===== */

.about-content {
    padding: 20px 0;
}

.about-content h1 {
    text-align: justify;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-content p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-justify: inter-word;
    hyphens: auto;
}

.about-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.feature-item {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #000080;
}

.feature-icon i {
    color: #000080;
    font-size: 1.2rem;
}

.about-content strong {
    color: #000080;
    font-weight: 700;
}

/* Responsive pour About */
@media (max-width: 768px) {
    .about-content h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-features {
        padding: 15px;
    }
    
    .feature-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .about-content h1 {
        font-size: 1.3rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
}

/* ===== TYPES DE CIS SECTION ===== */

.cis-type-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cis-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
}

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

.cis-type-icon {
    text-align: center;
    margin-bottom: 20px;
}

.cis-type-icon i {
    transition: all 0.3s ease;
    color: #000080;
}

.cis-type-card:hover .cis-type-icon i {
    transform: scale(1.1);
    color: #1e3a8a;
}

/* Styles pour les images de drapeaux */
.flag-image {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.cis-type-card:hover .flag-image {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    border-color: #000080;
}

/* Animation spéciale pour les drapeaux */
.flag-image {
    animation: flagWave 0.6s ease;
}

@keyframes flagWave {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cis-type-content {
    flex: 1;
}

.cis-type-content h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.cis-type-content p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cis-features {
    margin-bottom: 20px;
}

.cis-features .feature-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cis-features .feature-item:last-child {
    border-bottom: none;
}

.cis-features .feature-item i {
    color: #28a745;
    font-size: 0.9rem;
}

.cis-features .feature-item span {
    color: #666;
    font-weight: 500;
}

.cis-type-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cis-type-footer .badge {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    background-color: #000080;
    color: white;
}

/* Couleurs spécifiques pour chaque type */
.cis-type-card:nth-child(1)::before {
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
}

.cis-type-card:nth-child(2)::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cis-type-card:nth-child(3)::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

/* Animation pour les cartes */
.cis-type-card {
    animation: fadeInUp 0.6s ease;
}

.cis-type-card:nth-child(1) { animation-delay: 0.1s; }
.cis-type-card:nth-child(2) { animation-delay: 0.2s; }
.cis-type-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Responsive pour les types de CIS */
@media (max-width: 768px) {
    .cis-type-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cis-type-content h3 {
        font-size: 1.3rem;
    }
    
    .cis-type-content p {
        font-size: 0.95rem;
    }
    
    .cis-type-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .cis-type-card {
        padding: 15px;
    }
    
    .cis-type-content h3 {
        font-size: 1.2rem;
    }
    
    .cis-type-content p {
        font-size: 0.9rem;
    }
    
    .cis-type-icon i {
        font-size: 2rem;
    }
    
    .cis-type-footer .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===== NEWSLETTER EN BAS DE PAGE ABOUT ===== */

.newsletter-info h3 {
    font-weight: 700;
    color: #000080;
    margin-bottom: 1rem;
}

.newsletter-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.newsletter-address {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #000080;
}

.newsletter-address .d-flex {
    padding: 8px 0;
}

.newsletter-address strong {
    color: #333;
    font-weight: 600;
}

.newsletter-address .text-muted {
    color: #666 !important;
    font-size: 0.95rem;
}

/* Icônes de contact */
.newsletter-address i {
    color: #000080;
}

/* Formulaire newsletter */
.newsletter-form-container {
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.2);
}

.newsletter-form-wrapper {
    text-align: center;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #d39e00 0%, #f59e0b 100%);
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 158, 0, 0.3);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d39e00 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 158, 0, 0.4);
    color: white;
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    margin-top: 15px;
}

.newsletter-message.primary {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Avantages de la newsletter */
.newsletter-benefits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-item i {
    color: #4caf50;
    font-size: 0.9rem;
}

/* Responsive pour la newsletter */
@media (max-width: 768px) {
    .newsletter-form-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .newsletter-title {
        font-size: 1.3rem;
    }
    
    .newsletter-description {
        font-size: 0.9rem;
    }
    
    .newsletter-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .newsletter-address {
        padding: 15px;
    }
    
    .newsletter-address .d-flex {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .newsletter-form-container {
        padding: 15px;
    }
    
    .newsletter-title {
        font-size: 1.2rem;
    }
    
    .newsletter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .benefit-item {
        font-size: 0.8rem;
    }
}

/* ===== CORRECTION CAROUSEL RESPONSIVE MOBILE ===== */

/* Carousel responsive pour mobile */
@media (max-width: 800px) {
 
    
    .carousel-inner {
        position: relative;
    }
    
    .carousel-item {
        position: relative;
    }
    
 
    

    
    .carousel-content {
        padding: 0;
    }
    
    .carousel-content h6 {
        font-size: 1rem !important;
        margin-bottom: 10px;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .carousel-content p {
        font-size: 0.9rem !important;
        line-height: 1.4;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Boutons du carousel pour mobile */
    .carousel-content .btn {
        padding: 8px 20px !important;
        font-size: 0.9rem;
        margin: 5px;
        border-radius: 25px !important;
    }
    
    /* Forcer les boutons sur la même ligne */
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
    
    /* Contrôles du carousel */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators li {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0 3px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .carousel {
        height: 50vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        width: 95%;
        padding: 15px;
    }
    
    .carousel-content h1 {
        font-size: 1.3rem !important;
    }
    
    .carousel-content p {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2;
    }
    
    .carousel-content .btn {
        padding: 6px 15px !important;
        font-size: 0.8rem;
        margin: 3px;
    }
    
    /* Forcer les boutons sur la même ligne même sur très petit écran */
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        gap: 5px;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
}

/* Pour les écrans moyens */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel {
        height: 70vh;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-content p {
        font-size: 1rem !important;
    }
}

/* Amélioration générale du carousel */
.carousel {
    overflow: hidden;
    position: relative;
    
}

.carousel-item {
    position: relative;
}

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

.carousel-inner {
    position: relative;
}

.carousel-item {
    position: relative;
}

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

/* Animation du carousel */
.carousel-item.active {
    animation: carouselFadeIn 0.8s ease-in-out;
}

@keyframes carouselFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Amélioration des boutons du carousel */
.carousel-content .btn {
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

/* S'assurer que les boutons restent sur la même ligne */
.carousel-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.carousel-buttons a {
    flex-shrink: 0;
    display: inline-block !important;
}

.carousel-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Effet de survol pour les contrôles */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

/* ===== NOUVELLES CLASSES CAROUSEL ===== */

/* Styles pour les éléments du carousel */
.carousel-subtitle {
    color: #d39e00 !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-title {
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.carousel-description {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.carousel-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.carousel-btn .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn .btn-primary {
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.3);
}

.carousel-btn .btn-secondary {
    background: linear-gradient(135deg, #d39e00 0%, #f59e0b 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(211, 158, 0, 0.3);
}

.carousel-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive pour les nouvelles classes */
@media (max-width: 768px) {
    .carousel-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .carousel-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .carousel-description {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .carousel-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .carousel-btn .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        min-width: 120px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .carousel-subtitle {
        font-size: 0.9rem !important;
    }
    
    .carousel-title {
        font-size: 1.3rem !important;
    }
    
    .carousel-description {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2;
    }
    
    .carousel-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .carousel-btn .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
        min-width: 100px;
        white-space: nowrap;
    }
}

/* Animation pour la newsletter */
.newsletter-form-container {
    animation: slideInUp 0.6s ease;
}

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

/* ===== NEWSLETTER EN BAS DE PAGE ABOUT ===== */

.newsletter-info h3 {
    font-weight: 700;
    color: #000080;
    margin-bottom: 1rem;
}

.newsletter-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.newsletter-address {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #000080;
}

.newsletter-address .d-flex {
    padding: 8px 0;
}

.newsletter-address strong {
    color: #333;
    font-weight: 600;
}

.newsletter-address .text-muted {
    color: #666 !important;
    font-size: 0.95rem;
}

/* Icônes de contact */
.newsletter-address i {
    color: #000080;
}

/* Formulaire newsletter */
.newsletter-form-container {
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.2);
}

.newsletter-form-wrapper {
    text-align: center;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #d39e00 0%, #f59e0b 100%);
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 158, 0, 0.3);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d39e00 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 158, 0, 0.4);
    color: white;
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    margin-top: 15px;
}

.newsletter-message.primary {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Avantages de la newsletter */
.newsletter-benefits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-item i {
    color: #4caf50;
    font-size: 0.9rem;
}

/* Responsive pour la newsletter */
@media (max-width: 768px) {
    .newsletter-form-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .newsletter-title {
        font-size: 1.3rem;
    }
    
    .newsletter-description {
        font-size: 0.9rem;
    }
    
    .newsletter-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .newsletter-address {
        padding: 15px;
    }
    
    .newsletter-address .d-flex {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .newsletter-form-container {
        padding: 15px;
    }
    
    .newsletter-title {
        font-size: 1.2rem;
    }
    
    .newsletter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .benefit-item {
        font-size: 0.8rem;
    }
}

/* ===== TYPES DE CIS SECTION ===== */

.cis-type-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cis-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
}

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

.cis-type-icon {
    text-align: center;
    margin-bottom: 20px;
}

.cis-type-icon i {
    transition: all 0.3s ease;
    color: #000080;
}

.cis-type-card:hover .cis-type-icon i {
    transform: scale(1.1);
    color: #1e3a8a;
}

/* Styles pour les images de drapeaux */
.flag-image {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.cis-type-card:hover .flag-image {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    border-color: #000080;
}

/* Animation spéciale pour les drapeaux */
.flag-image {
    animation: flagWave 0.6s ease;
}

@keyframes flagWave {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cis-type-content {
    flex: 1;
}

.cis-type-content h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.cis-type-content p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cis-features {
    margin-bottom: 20px;
}

.cis-features .feature-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cis-features .feature-item:last-child {
    border-bottom: none;
}

.cis-features .feature-item i {
    color: #28a745;
    font-size: 0.9rem;
}

.cis-features .feature-item span {
    color: #666;
    font-weight: 500;
}

.cis-type-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cis-type-footer .badge {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    background-color: #000080;
    color: white;
}

/* Couleurs spécifiques pour chaque type */
.cis-type-card:nth-child(1)::before {
    background: linear-gradient(135deg, #000080 0%, #1e3a8a 100%);
}

.cis-type-card:nth-child(2)::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cis-type-card:nth-child(3)::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

/* Animation pour les cartes */
.cis-type-card {
    animation: fadeInUp 0.6s ease;
}

.cis-type-card:nth-child(1) { animation-delay: 0.1s; }
.cis-type-card:nth-child(2) { animation-delay: 0.2s; }
.cis-type-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Responsive pour les types de CIS */
@media (max-width: 768px) {
    .cis-type-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cis-type-content h3 {
        font-size: 1.3rem;
    }
    
    .cis-type-content p {
        font-size: 0.95rem;
    }
    
    .cis-type-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .cis-type-card {
        padding: 15px;
    }
    
    .cis-type-content h3 {
        font-size: 1.2rem;
    }
    
    .cis-type-content p {
        font-size: 0.9rem;
    }
    
    .cis-type-icon i {
        font-size: 2rem;
    }
    
    .cis-type-footer .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===== AMÉLIORATIONS FORMULAIRE CONTACT MOBILE ===== */

/* Styles généraux pour le formulaire de contact */
.contact-form {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.contact-form .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 15px 20px;
}

.contact-form .form-control:focus {
    background: white;
    border-color: #d39e00;
    box-shadow: 0 0 0 3px rgba(211, 158, 0, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #6c757d;
    font-weight: 500;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    background: linear-gradient(135deg, #d39e00 0%, #f59e0b 100%);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 158, 0, 0.3);
    min-height: 50px;
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d39e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 158, 0, 0.4);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages d'alerte améliorés */
.contact-form .alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    padding: 15px 20px;
}

.contact-form .alert-primary {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-left: 4px solid #4caf50;
}

.contact-form .alert-danger {
    background: rgba(244, 67, 54, 0.1);
    color: #4caf50;
    border-left: 4px solid #f44336;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px !important;
        margin: 15px 0;
    }
    
    .contact-form .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 18px 20px;
        margin-bottom: 15px;
    }
    
    .contact-form textarea {
        min-height: 150px;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    /* Amélioration de l'espacement */
    .contact-form .mb-4 {
        margin-bottom: 20px !important;
    }
    
    /* Titre du formulaire */
    .contact-form::before {
        content: 'Envoyez-nous un message';
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 20px !important;
    }
    
    .contact-form .form-control {
        padding: 20px;
        font-size: 16px;
    }
    
    .contact-form textarea {
        min-height: 180px;
    }
    
    .contact-form .btn {
        padding: 20px 30px;
        font-size: 1.3rem;
    }
    
    /* Titre du formulaire sur très petit écran */
    .contact-form::before {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

/* Animation pour les champs de saisie */
.contact-form .form-control {
    animation: fadeInUp 0.6s ease;
}

.contact-form .form-control:nth-child(1) { animation-delay: 0.1s; }
.contact-form .form-control:nth-child(2) { animation-delay: 0.2s; }
.contact-form .form-control:nth-child(3) { animation-delay: 0.3s; }
.contact-form .form-control:nth-child(4) { animation-delay: 0.4s; }
.contact-form .btn { animation-delay: 0.5s; }

/* Amélioration de l'accessibilité */
.contact-form .form-control:focus {
    transform: scale(1.02);
}

.contact-form .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 158, 0, 0.3);
}

/* États de chargement */
.contact-form .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form .btn-loading i {
    margin-right: 8px;
}

/* Validation visuelle */
.contact-form .form-control.is-invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.contact-form .form-control.is-valid {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.contact-form .invalid-feedback {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

/* ===== AMÉLIORATIONS INFORMATIONS CONTACT MOBILE ===== */

/* Styles pour les cartes d'information de contact */
.contact-detail .d-flex {
    background: white !important;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 20px !important;
}

.contact-detail .d-flex:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #d39e00;
}

.contact-detail .btn-square {
    background: linear-gradient(135deg, #d39e00 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 15px rgba(211, 158, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-detail .d-flex:hover .btn-square {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(211, 158, 0, 0.4);
}

.contact-detail h4 {
    color: #333 !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-detail a {
    color: #666 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: #d39e00 !important;
}

/* Responsive pour les informations de contact */
@media (max-width: 768px) {
    .contact-detail .d-flex {
        padding: 25px !important;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-detail .btn-square {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 15px auto;
    }
    
    .contact-detail .ms-3 {
        margin-left: 0 !important;
    }
    
    .contact-detail h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .contact-detail a {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* Amélioration de l'espacement */
    .contact-detail .col-xl-4,
    .contact-detail .col-lg-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .contact-detail .d-flex {
        padding: 20px !important;
    }
    
    .contact-detail .btn-square {
        width: 70px !important;
        height: 70px !important;
    }
    
    .contact-detail h4 {
        font-size: 1.2rem;
    }
    
    .contact-detail a {
        font-size: 1rem;
    }
    
    /* Réduction de l'espacement sur très petit écran */
    .contact-detail .col-xl-4,
    .contact-detail .col-lg-6 {
        margin-bottom: 15px;
    }
}

/* Animation pour les cartes de contact */
.contact-detail .d-flex {
    animation: fadeInUp 0.6s ease;
}

.contact-detail .col-xl-4:nth-child(1) .d-flex { animation-delay: 0.1s; }
.contact-detail .col-xl-4:nth-child(2) .d-flex { animation-delay: 0.2s; }
.contact-detail .col-xl-4:nth-child(3) .d-flex { animation-delay: 0.3s; }

/* Amélioration de la carte Google Maps */
.contact-map {
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    padding: 10px;
    position: relative;
    min-height: 400px;
    display: block;
}

.contact-map iframe {
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    display: block !important;
    position: relative !important;
    z-index: 1;
}

.contact-map:hover iframe {
    transform: scale(1.02);
}

/* Fallback si l'iframe ne charge pas */
.contact-map::before {
    content: 'Carte en cours de chargement...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.1rem;
    z-index: 0;
    display: none;
}

.contact-map:empty::before {
    display: block;
}

/* Responsive pour la carte */
@media (max-width: 768px) {
    .contact-map {
        margin-bottom: 30px;
        height: 350px !important;
        padding: 8px;
        min-height: 350px !important;
        overflow: visible;
    }
    
    .contact-map iframe {
        height: 100% !important;
        min-height: 350px !important;
        max-height: none;
    }
    
    /* Ajustement pour éviter que la carte se coupe */
    .col-lg-6:first-child {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .contact-map {
        height: 300px !important;
        margin-bottom: 20px;
        padding: 5px;
        min-height: 300px !important;
        overflow: visible;
    }
    
    .contact-map iframe {
        min-height: 300px !important;
        max-height: none;
    }
    
    /* Espacement supplémentaire sur mobile */
    .col-lg-6:first-child {
        margin-bottom: 40px;
    }
    
    /* Ajustement du conteneur principal */
    .contact-detail {
        padding: 20px !important;
    }
    
    .contact-detail .row {
        margin-bottom: 0;
    }
}

/* Styles spécifiques pour corriger le positionnement du carousel */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2;
}

.carousel-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.carousel-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.carousel-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.carousel-btn .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.carousel-btn .btn-primary {
    background: var(--bs-primary);
    color: #ffffff;
    border: 2px solid var(--bs-primary);
}

.carousel-btn .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.carousel-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive pour le carousel */
@media (max-width: 768px) {
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-btn .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .carousel-subtitle {
        font-size: 0.9rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .carousel-btn .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Améliorations carousel mobile - cohérence avec style.css */
@media (max-width: 768px) {
    .carousel {
        height: 70vh;
        position: relative;
    }
    
    .container-fluid.px-0 {
        height: 70vh;
        background: #fff !important;
    }
    
    .carousel-inner {
        height: 100%;
    }
    
    .carousel-item {
        height: 100%;
    }
    
    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
    
    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        z-index: 2;
    }
    
    .carousel-content {
        padding: 0 15px;
    }
    
    .carousel-content h6 {
        font-size: 1.3rem !important;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .carousel-content h1 {
        font-size: 2.4rem !important;
        margin-bottom: 18px;
        line-height: 1.3;
        font-weight: 700;
    }
    
    .carousel-content p {
        font-size: 1.1rem !important;
        margin-bottom: 25px;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-buttons .btn {
        font-size: 1rem;
        padding: 12px 24px;
        white-space: nowrap;
        display: inline-block !important;
        width: auto;
        min-width: 140px;
        margin: 0;
        font-weight: 600;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 80vh;
    }
    
    .container-fluid.px-0 {
        height: 80vh;
    }
    
    .carousel-content h6 {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }
    
    .carousel-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .carousel-content p {
        font-size: 1rem !important;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .carousel-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 120px;
        font-weight: 600;
    }
}

/* ===== GROUPE CIS SECTION - NOUVELLE VERSION ===== */
.cis-branches-container {
    position: relative;
    margin: 50px 0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.branch-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.branch-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d39e00);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.branch-card:hover::before,
.branch-card.active::before {
    transform: scaleX(1);
}

.branch-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.branch-card.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fef7e6 100%);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.2);
}

.branch-card.future {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.branch-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d39e00 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.branch-icon {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.branch-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.branch-card:hover .branch-icon {
    transform: scale(1.1);
}

.branch-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.branch-badge.future {
    background: rgba(108, 117, 125, 0.3);
}

.branch-content {
    padding: 30px;
    text-align: left;
}

.branch-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.branch-year {
    background: linear-gradient(135deg, #f59e0b, #d39e00);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.branch-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: justify;
}

.branch-features {
    text-align: left;
}

.branch-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.branch-features .feature-item:last-child {
    border-bottom: none;
}

.branch-features .feature-item i {
    color: #f59e0b;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Timeline interactive */
.interactive-timeline {
    margin-top: 60px;
    padding: 40px 0;
}

.timeline-track {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d39e00);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-points {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.timeline-point:hover {
    transform: scale(1.1);
}

.point-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 4px solid #f59e0b;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.point-dot.active {
    background: #f59e0b;
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.2);
}

.point-dot.future {
    border-color: #ccc;
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.point-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 5px;
}

.point-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.point-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.timeline-point:hover .point-tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

/* Animations */
@keyframes branchFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes timelinePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.timeline-point.active .point-dot {
    animation: timelinePulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .branch-card {
        margin-bottom: 20px;
    }
    
    .timeline-points {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-line {
        width: 4px;
        height: 300px;
        left: 50%;
        top: 0;
        bottom: 0;
        transform: translateX(-50%);
    }
    
    .timeline-point {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .point-dot {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .point-label {
        font-size: 1rem;
    }
    
    .point-tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .branch-content {
        padding: 20px;
    }
    
    .branch-title {
        font-size: 1.4rem;
    }
    
    .branch-description {
        font-size: 0.9rem;
    }
    
    .branch-header {
        padding: 20px;
    }
    
    .branch-icon i {
        font-size: 2rem;
    }
}

.cis-branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d39e00);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cis-branch-card:hover::before,
.cis-branch-card.active::before {
    transform: scaleX(1);
}

.cis-branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cis-branch-card.active {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fef7e6 100%);
}

.branch-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cis-branch-card:hover .branch-icon {
    transform: scale(1.1);
}

.branch-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.branch-year {
    background: linear-gradient(135deg, #f59e0b, #d39e00);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.branch-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.branch-features {
    text-align: left;
}

.branch-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.branch-features .feature-item i {
    color: #f59e0b;
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Timeline */
.cis-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d39e00);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-points {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.point-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #f59e0b;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.point-dot.active {
    background: #f59e0b;
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.3);
}

.point-dot.future {
    border-color: #ccc;
    background: #f8f9fa;
}

.point-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* Animations */
@keyframes branchFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cis-branch-card {
    animation: branchFadeIn 0.6s ease forwards;
}

.cis-branch-card:nth-child(1) { animation-delay: 0.1s; }
.cis-branch-card:nth-child(2) { animation-delay: 0.2s; }
.cis-branch-card:nth-child(3) { animation-delay: 0.3s; }
.cis-branch-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .cis-branch-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .branch-title {
        font-size: 1.3rem;
    }
    
    .timeline-points {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-line {
        width: 3px;
        height: 200px;
        left: 50%;
        top: 0;
        bottom: 0;
        transform: translateX(-50%);
    }
    
    .timeline-point {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .point-dot {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .point-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .cis-branch-card {
        padding: 20px 15px;
    }
    
    .branch-title {
        font-size: 1.2rem;
    }
    
    .branch-description {
        font-size: 0.9rem;
    }
}

/* Badge d'année pour les types de CIS */
.branch-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #d39e00);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    animation: yearBadgePulse 2s infinite;
}

.branch-year-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

@keyframes yearBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive pour les badges d'année */
@media (max-width: 768px) {
    .branch-year-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .branch-year-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        top: 8px;
        right: 8px;
    }
}