/* ===== FOOTER - ULTRA PRO STYLÉ ===== */
.footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #1a2332 100%);
    color: white;
    padding: 60px 20px 0;
    position: relative;
    overflow: hidden;
}

/* Barre supérieure animée avec dégradé */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #FFD700, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Effet de particules en arrière-plan */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Logo Column - Enhanced */
.footer-column:first-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 20px 25px;
    border-radius: 16px;
    display: inline-block;
    width: fit-content;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.3),
        0 0 40px rgba(255,215,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,215,0,0.1);
}

.footer-logo-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.4),
        0 0 60px rgba(255,215,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(255,215,0,0.4);
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-tagline {
    color: #FFD700;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Footer Columns */
.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FFD700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #FFD700;
}

.footer-links a:hover {
    color: #FFD700;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Bottom - One Line */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.footer-copyright-divider {
    display: inline-block;
    margin: 0 12px;
    color: #666;
}

/* ===================================================
   RESPONSIVE - PALIERS ULTRA STYLÉS
   ================================================= */

/* Desktop Large (>1400px) - Footer Luxueux */
@media (min-width: 1400px) {
    .footer {
        padding: 80px 40px 0;
    }

    .footer-grid {
        max-width: 1400px;
        margin: 0 auto 60px auto;
        gap: 50px;
    }

    .footer-logo {
        max-width: 240px;
    }

    .footer-description {
        font-size: 15px;
    }
}

/* Desktop Standard (1024px - 1400px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

/* Tablette Large (768px - 1024px) - 3 colonnes */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        padding: 50px 30px 0;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 35px;
    }

    /* Fusionner certaines colonnes */
    .footer-column:nth-child(4), /* Resources */
    .footer-column:nth-child(5) { /* Support */
        display: none;
    }

    /* Ajouter les liens essentiels à Legal */
    .footer-column:nth-child(3) {
        background: rgba(255, 255, 255, 0.02);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 215, 0, 0.08);
    }
}

/* Tablette (600px - 768px) - 2 colonnes compactes */
@media (min-width: 600px) and (max-width: 767px) {
    .footer {
        padding: 45px 25px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer-logo-box {
        margin: 0 auto;
    }

    /* Cacher les colonnes non-essentielles */
    .footer-column:nth-child(2),  /* Product */
    .footer-column:nth-child(4),  /* Resources */
    .footer-column:nth-child(5) { /* Support */
        display: none;
    }

    /* Legal devient une belle carte */
    .footer-column:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 350px;
        margin: 0 auto;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 215, 0, 0.03) 100%);
        padding: 30px;
        border-radius: 20px;
        border: 2px solid rgba(255, 215, 0, 0.15);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-links a {
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }

    .footer-links a:hover {
        background: rgba(255, 215, 0, 0.1);
        border-color: rgba(255, 215, 0, 0.3);
        transform: scale(1.03);
    }
}

/* Mobile Large (480px - 600px) - Footer Élégant */
@media (min-width: 480px) and (max-width: 599px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-column:first-child {
        width: 100%;
        max-width: 320px;
    }

    .footer-logo-box {
        margin: 0 auto;
        padding: 18px 22px;
    }

    .footer-logo {
        max-width: 200px;
    }

    /* Cacher colonnes non-essentielles */
    .footer-column:nth-child(2),
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        display: none;
    }

    /* Carte Legal ultra stylée */
    .footer-column:nth-child(3) {
        width: 100%;
        max-width: 280px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 215, 0, 0.04) 100%);
        padding: 28px 22px;
        border-radius: 18px;
        border: 2px solid rgba(255, 215, 0, 0.2);
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        display: block;
        padding: 14px 18px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.02) 100%);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 14px;
        font-weight: 500;
    }

    .footer-links a:hover {
        background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.12) 0%,
            rgba(255, 215, 0, 0.08) 100%);
        border-color: rgba(255, 215, 0, 0.4);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    }

    .footer-links a::before {
        display: none;
    }

    .footer-bottom {
        padding: 22px 0;
        margin-top: 25px;
    }

    .footer-copyright {
        font-size: 12px;
        line-height: 1.8;
        color: #999;
    }

    .footer-copyright-divider {
        display: block;
        margin: 8px 0;
        opacity: 0;
    }
}

/* Mobile Standard (380px - 480px) - Footer Compact */
@media (min-width: 380px) and (max-width: 479px) {
    .footer {
        padding: 35px 18px 18px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
        align-items: center;
    }

    .footer-column:first-child {
        width: 100%;
        max-width: 280px;
    }

    .footer-logo-box {
        margin: 0 auto;
        padding: 15px 20px;
    }

    .footer-logo {
        max-width: 180px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    .footer-description {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Cacher colonnes non-essentielles */
    .footer-column:nth-child(2),
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        display: none;
    }

    /* Carte Legal compacte */
    .footer-column:nth-child(3) {
        width: 100%;
        max-width: 260px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 215, 0, 0.03) 100%);
        padding: 24px 20px;
        border-radius: 16px;
        border: 2px solid rgba(255, 215, 0, 0.15);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    }

    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        display: block;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 13px;
    }

    .footer-links a:hover {
        background: rgba(255, 215, 0, 0.1);
        border-color: rgba(255, 215, 0, 0.35);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    }

    .footer-links a::before {
        display: none;
    }

    .footer-bottom {
        padding: 18px 0;
        margin-top: 20px;
    }

    .footer-copyright {
        font-size: 11px;
        line-height: 1.7;
        color: #888;
    }

    .footer-copyright-divider {
        display: block;
        margin: 6px 0;
        opacity: 0;
    }
}

/* Très Petit Mobile (<380px) - Footer Minimal */
@media (max-width: 379px) {
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .footer-column:first-child {
        width: 100%;
        max-width: 250px;
    }

    .footer-logo-box {
        margin: 0 auto;
        padding: 12px 18px;
        border-radius: 12px;
    }

    .footer-logo {
        max-width: 160px;
    }

    .footer-tagline {
        font-size: 13px;
        margin-top: 8px;
    }

    .footer-description {
        font-size: 11px;
        line-height: 1.4;
        margin-top: 8px;
    }

    /* Cacher colonnes non-essentielles */
    .footer-column:nth-child(2),
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        display: none;
    }

    /* Carte Legal minimale mais stylée */
    .footer-column:nth-child(3) {
        width: 100%;
        max-width: 240px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 215, 0, 0.02) 100%);
        padding: 20px 16px;
        border-radius: 14px;
        border: 1px solid rgba(255, 215, 0, 0.12);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 2px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .footer-links a {
        display: block;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 12px;
        transition: all 0.25s ease;
    }

    .footer-links a:hover {
        background: rgba(255, 215, 0, 0.08);
        border-color: rgba(255, 215, 0, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(255, 215, 0, 0.15);
    }

    .footer-links a::before {
        display: none;
    }

    .footer-bottom {
        padding: 16px 0;
        margin-top: 16px;
    }

    .footer-copyright {
        font-size: 10px;
        line-height: 1.6;
        color: #777;
    }

    .footer-copyright-divider {
        display: block;
        margin: 5px 0;
        opacity: 0;
    }
}

/* ===================================================
   RTL SUPPORT - Mode Hébreu
   ================================================= */

html[dir="rtl"] .footer-bottom {
    text-align: center;
    direction: ltr;
}

html[dir="rtl"] .footer-copyright {
    direction: ltr;
    text-align: center;
}

html[dir="rtl"] .footer-copyright-divider {
    display: inline-block;
}

/* RTL - Flèche inversée pour les liens */
html[dir="rtl"] .footer-links a::before {
    content: '←';
    left: auto;
    right: -20px;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .footer-links a:hover::before {
    right: 0;
}

/* RTL - Alignement des titres de colonne */
html[dir="rtl"] .footer-column h4::after {
    left: auto;
    right: 0;
}
