/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-5: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SECTION SLIDER
   ============================================ */
.slider-container {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    animation: zoomEffect 10s ease-in-out infinite;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 18px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.4s ease;
    z-index: 10;
    backdrop-filter: blur(15px);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
    left: 25px;
}

.slider-btn.next {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 35px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* ============================================
   SECTION BIENVENUE
   ============================================ */
.welcome-section {
    padding: 70px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.animated-text {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    min-height: 90px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.marquee-text {
    display: inline-block;
    color: #fbbc04;
    font-weight: 800;
    text-shadow: 
        0 0 10px rgba(251, 188, 4, 0.5),
        2px 2px 15px rgba(0, 0, 0, 0.4);
    animation: glowText 2s ease-in-out infinite;
}

@keyframes glowText {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(251, 188, 4, 0.5),
            2px 2px 15px rgba(0, 0, 0, 0.4);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(251, 188, 4, 0.8),
            0 0 30px rgba(251, 188, 4, 0.4),
            2px 2px 15px rgba(0, 0, 0, 0.4);
    }
}

.welcome-underline {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 2s ease-out forwards, pulse 2s infinite;
    animation-delay: 3s, 5s;
    box-shadow: 0 0 10px rgba(251, 188, 4, 0.5);
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 200px; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0.7; transform: scaleX(1.1); }
}

/* ============================================
   SECTION MODULES KEY PARTNERS
   ============================================ */
.modules-section {
    padding: 60px 20px;
    background: var(--light-color);
    position: relative;
}

.modules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(26, 115, 232, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.module-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    position: relative;
    perspective: 1000px;
    width: 100%;
    max-width: 600px;
    height: 320px;
    cursor: pointer;
    animation: fadeInUp 1s ease;
}

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

.module-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.module-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
}

.module-card .card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(26, 115, 232, 0.2) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.8s;
    opacity: 0;
}

.module-card:hover .card-front {
    box-shadow: 0 25px 70px rgba(26, 115, 232, 0.3);
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
}

.module-card:hover .card-front::before {
    animation: shineModule 2s infinite;
}

@keyframes shineModule {
    0% { left: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.module-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    transition: all 0.5s ease;
    position: relative;
}

.module-card:hover .module-logo {
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.6);
}

.module-logo::before,
.module-logo::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    opacity: 0;
    transition: all 0.8s ease;
}

.module-logo::before {
    width: 130%;
    height: 130%;
    border-color: rgba(102, 126, 234, 0.4);
}

.module-logo::after {
    width: 160%;
    height: 160%;
    border-color: rgba(102, 126, 234, 0.2);
}

.module-card:hover .module-logo::before {
    opacity: 1;
    animation: rippleModule 2s infinite;
}

.module-card:hover .module-logo::after {
    opacity: 1;
    animation: rippleModule 2s 0.4s infinite;
}

@keyframes rippleModule {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.module-logo svg {
    width: 70px;
    height: 70px;
    stroke: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

.module-card:hover .module-logo svg {
    transform: scale(1.1);
}

.module-card .card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.module-card:hover .card-front h3 {
    transform: scale(1.05);
}

.module-card .card-front p {
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.module-card:hover .card-front p {
    color: #444;
}

.module-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.module-btn {
    margin-top: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    overflow: hidden;
    position: relative;
}

.module-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.module-btn:active::before {
    width: 400px;
    height: 400px;
}

.module-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.module-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 8px;
    font-size: 1.2rem;
}

.module-btn:hover span {
    transform: translateX(8px);
    animation: arrowBounceModule 0.8s infinite;
}

@keyframes arrowBounceModule {
    0%, 100% { transform: translateX(8px); }
    50% { transform: translateX(15px); }
}

.module-card:hover .card-inner {
    transform: perspective(1000px) rotateY(0deg) scale3d(1.02, 1.02, 1.02);
}
/* ============================================
   FLÈCHE DE LIAISON ANIMÉE
   ============================================ */
.arrow-connector {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-color);
    overflow: hidden;
}

.arrow-animated {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: arrowBounce 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes arrowBounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    }
    25% { 
        transform: translateY(-15px) scale(1.1);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    }
    50% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    }
    75% { 
        transform: translateY(10px) scale(0.95);
        box-shadow: 0 5px 30px rgba(102, 126, 234, 0.2);
    }
}

.arrow-animated svg {
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(5px);
    }
}

.arrow-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(102, 126, 234, 0.2) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: shineArrow 3s linear infinite;
}

@keyframes shineArrow {
    0% { 
        left: -100%;
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        left: 100%;
        opacity: 0;
    }
}

.arrow-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.4);
    animation: rippleArrow 2s ease-out infinite;
}

@keyframes rippleArrow {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ============================================
   SECTION FILIALES
   ============================================ */
.filiales-section {
    padding: 80px 20px;
    background: var(--light-color);
    position: relative;
}

.filiales-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    animation: fadeInDown 1s ease;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.4);
}

.filiales-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.filiale-card {
    position: relative;
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.filiale-card:hover .card-front::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { left: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.filiale-card:hover .card-front {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px) scale(1.02);
}

.logo-container {
    width: 85px;
    height: 85px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.filiale-card:hover .logo-container {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0;
    transition: all 0.6s ease;
}

.logo-container::before {
    width: 120%;
    height: 120%;
    border-color: rgba(255, 255, 255, 0.5);
}

.logo-container::after {
    width: 140%;
    height: 140%;
    border-color: rgba(255, 255, 255, 0.3);
}

.filiale-card:hover .logo-container::before {
    opacity: 1;
    animation: ripple 1.5s infinite;
}

.filiale-card:hover .logo-container::after {
    opacity: 1;
    animation: ripple 1.5s 0.3s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    /* Filtre supprimé pour afficher les logos en couleur */
}

.filiale-card:nth-child(1) .logo-container {
    background: var(--gradient-1);
}

.filiale-card:nth-child(2) .logo-container {
    background: var(--gradient-2);
}

.filiale-card:nth-child(3) .logo-container {
    background: var(--gradient-3);
}

.filiale-card:nth-child(4) .logo-container {
    background: var(--gradient-4);
}

.filiale-card:nth-child(5) .logo-container {
    background: var(--gradient-5);
}

.card-front h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: ;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.filiale-card:hover .card-front h3 {
    color: var(--primary-color);
    transform: scale(1.05);
}

.card-front p {
    color: #666;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 18px;
}

.filiale-card:hover .card-front p {
    color: #444;
}

.access-btn {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color), #1557b0);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
    overflow: hidden;
    position: relative;
}

.access-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.access-btn:active::before {
    width: 300px;
    height: 300px;
}

.access-btn:hover {
    background: linear-gradient(135deg, #1557b0, var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.5);
}

.access-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.access-btn:hover span {
    transform: translateX(5px);
    animation: arrowBounce 0.6s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(5px); }
    50% { transform: translateX(10px); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 20px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8f9fa" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 18px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    color: white;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after,
.footer-section:hover h4::after {
    width: 50px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 25px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.contact-info li:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.4);
}

.language-selector {
    margin-top: 25px;
}

.language-selector h4 {
    display: flex;
    align-items: center;
    font-size: 1rem !important;
    margin-bottom: 12px;
}

#google_translate_element {
    margin-top: 10px;
}

.goog-te-gadget {
    font-family: 'Poppins', sans-serif !important;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.goog-te-menu-value {
    color: white !important;
}

.goog-te-menu-value span {
    color: white !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget span {
    color: white !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.contact-info svg,
.language-selector svg {
    flex-shrink: 0;
    vertical-align: middle;
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
    font-size: 0.9rem;
}

.heart {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1400px) {
    .filiales-grid {
        gap: 25px;
    }
}

@media (max-width: 1400px) {
    .filiales-grid {
        gap: 18px;
    }
    
    .filiale-card {
        height: 290px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 1200px) {
    .filiales-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .filiale-card {
        height: 310px;
    }
}

@media (max-width: 992px) {
    .slider-container {
        height: 40vh;
        min-height: 320px;
    }
    
    .welcome-section {
        padding: 60px 20px;
    }
    
    .modules-section {
        padding: 50px 20px;
    }
    
    .filiales-section {
        padding: 60px 20px;
    }
    
    .filiales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 35vh;
        min-height: 280px;
    }
    
    .slider-btn {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .welcome-section {
        padding: 50px 20px;
    }
    
    .animated-text {
        font-size: 1.4rem;
        min-height: 75px;
    }
    
    .modules-section {
        padding: 40px 15px;
    }
    
    .module-card {
        height: 300px;
        max-width: 100%;
    }
    
    .module-logo {
        width: 95px;
        height: 95px;
    }
    
    .module-logo svg {
        width: 55px;
        height: 55px;
    }
    
    .module-card .card-front h3 {
        font-size: 1.5rem;
    }
    
    .module-card .card-front p {
        font-size: 0.9rem;
    }
    
    .module-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .arrow-connector {
        height: 80px;
    }
    
    .arrow-animated {
        width: 60px;
        height: 60px;
    }
    
    .arrow-animated svg {
        width: 45px;
        height: 60px;
    }
    
    .filiales-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .filiales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filiale-card {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 30vh;
        min-height: 250px;
    }
    
    .welcome-section {
        padding: 40px 15px;
    }
    
    .animated-text {
        font-size: 1.2rem;
        min-height: 65px;
    }
    
    .modules-section {
        padding: 30px 15px;
    }
    
    .module-card {
        height: 280px;
    }
    
    .module-logo {
        width: 85px;
        height: 85px;
    }
    
    .module-card .card-front h3 {
        font-size: 1.3rem;
    }
    
    .feature-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    
    .module-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .arrow-connector {
        height: 70px;
    }
    
    .arrow-animated {
        width: 50px;
        height: 50px;
    }
    
    .arrow-animated svg {
        width: 35px;
        height: 50px;
    }
    
    .filiales-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .filiales-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filiale-card {
        height: 280px;
    }
    
    .logo-container {
        width: 75px;
        height: 75px;
    }
    
    .card-front h3 {
        font-size: 1.1rem;
    }
    
    .card-front p {
        font-size: 0.8rem;
    }
    
    .access-btn {
        padding: 8px 18px;
        font-size: 0.78rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 28vh;
        min-height: 230px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 25px;
    }
    
    .animated-text {
        font-size: 1.1rem;
    }
    
    .module-logo {
        width: 75px;
        height: 75px;
    }
    
    .logo-container {
        width: 70px;
        height: 70px;
    }
}
/* ============================================
   POPUP DE CONNEXION
   ============================================ */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.login-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

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

.login-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-modal-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.login-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.login-modal-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.login-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-error {
    display: none;
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #c33;
}

.login-error.active {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close-btn:hover {
    background: #f0f0f0;
    color: var(--dark-color);
    transform: rotate(90deg);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer-text {
    color: #666;
    font-size: 0.85rem;
}

.login-loading {
    display: none;
    margin-left: 10px;
}

.login-loading.active {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}