/* ========================================
   VotePlus - Améliorations Visuelles
   ======================================== */

/* --- Logo amélioré --- */
.navbar-brand {
    /*padding: 0.5rem 0;*/
}

.navbar-brand .logo {
    display: block;
    max-width: 100%;
}

/* Animation subtile du logo au chargement */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.navbar-brand .logo {
    animation: logoEntrance 0.6s ease-out;
}

/* --- Réseaux sociaux colorés --- */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Animation d'apparition des icônes */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

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

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Effet de pulsation sur hover */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.social-link:active {
    animation: pulse 0.3s ease;
}

/* --- Couleurs YouTube (bonus) --- */
.social-link.youtube:hover {
    background: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* --- Couleurs TikTok (bonus) --- */
.social-link.tiktok:hover {
    background: linear-gradient(45deg, #00f2ea 0%, #ff0050 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

/* --- Badge "Nouveau" pour les fonctionnalités --- */
.badge-new {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
    animation: bounceIn 0.5s ease;
}

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

/* --- Amélioration des boutons CTA --- */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
}

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

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom span,
.btn-primary-custom i {
    position: relative;
    z-index: 1;
}

/* --- Indicateur de scroll --- */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* --- Badge "En ligne" pour le support --- */
.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.support-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* --- Amélioration du badge de confiance --- */
.badge-trust {
    animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Effet de brillance sur les cartes --- */
.campaign-card,
.feature-box,
.use-case-card {
    position: relative;
    overflow: hidden;
}

.campaign-card::after,
.feature-box::after,
.use-case-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(
        to bottom,
        rgba(229, 172, 142, 0),
        rgba(255, 255, 255, 0.3) 50%,
        rgba(229, 172, 142, 0)
    );
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.campaign-card:hover::after,
.feature-box:hover::after,
.use-case-card:hover::after {
    opacity: 1;
    transform: rotateZ(60deg) translate(5em, -7.5em);
}

/* --- Amélioration responsive du logo --- */
@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 60px;
    }
    
    .navbar.scrolled .navbar-brand .logo {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .navbar-brand .logo {
        height: 55px;
    }
    
    .navbar.scrolled .navbar-brand .logo {
        height: 45px;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* --- Amélioration des icônes Font Awesome --- */
.fa-facebook-f,
.fa-twitter,
.fa-linkedin-in,
.fa-instagram,
.fa-whatsapp {
    transition: var(--transition-base);
}

.social-link:hover .fa-facebook-f,
.social-link:hover .fa-twitter,
.social-link:hover .fa-linkedin-in,
.social-link:hover .fa-instagram,
.social-link:hover .fa-whatsapp {
    transform: rotate(360deg) scale(1.1);
}

/* --- Animation de chargement --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: auto;
    animation: logoFloat 2s ease-in-out infinite;
}

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

/* --- Tooltip personnalisé --- */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* --- Curseur personnalisé (optionnel) --- */
body.custom-cursor {
    cursor: none;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease;
}