﻿/* header */

/* Animation personnalisée pour le texte qui pulse */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

/* Styles pour les liens de navigation desktop */
.nav-link {
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.nav-link:hover {
    color: #f97316;
}
.text-gradient-orange {
    color: #f97316 !important;
}
.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover .nav-underline {
    width: 100%;
    left: 0;
}

/* Styles pour les liens de navigation mobile */
.mobile-nav-link {
    color: white;
    background: rgba(249, 115, 22, 0.1);
    transition: all 0.3s ease;
}
.mobile-nav-link:hover {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

/* Styles pour les sous-liens de navigation mobile */
.mobile-subnav-link {
    color: #d1d5db;
    background: rgba(249, 115, 22, 0.05);
    transition: all 0.3s ease;
}
.mobile-subnav-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

/* Style du hamburger */
.hamburger {
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    background: none;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger-inner {
    width: 24px;
    height: 16px;
    position: relative;
}
.hamburger-bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #f97316;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-bar--top {
    top: 0;
}
.hamburger-bar--middle {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-bar--bottom {
    bottom: 0;
}
.hamburger.active .hamburger-bar--top {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-bar--middle {
    opacity: 0;
}
.hamburger.active .hamburger-bar--bottom {
    transform: translateY(-7px) rotate(-45deg);
}

/* Lien actif */
.active-nav-link {
    color: #f97316;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}
.active-nav-link .nav-underline {
    width: 100%;
}

/* Animation du menu mobile */
#mobile-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour le sous-menu desktop */
[x-cloak] { display: none !important; }

/* Responsive adjustments */
@media (max-width: 767px) {
    #mobile-menu {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
    }
    #mobile-menu.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    #menu-toggle {
        display: none !important;
    }
    #mobile-menu {
        display: none !important;
    }
}

/* Ajustements pour tablette (768px à 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Liens de navigation */
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Espacement entre les liens */
    .md\:flex.items-center.space-x-1 {
        gap: 0.25rem;
    }

    /* Bouton CTA */
    .md\:flex .bg-gradient-to-r.from-orange-500.to-yellow-500 {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Texte du logo (masqué) */
    .text-2xl {
        display: none;
    }

    /* Taille du logo */
    .h-10.w-10 {
        height: 1.75rem;
        width: 1.75rem;
    }

    /* Icônes dans les liens */
    .nav-link i {
        font-size: 1rem;
        margin-right: 0.375rem;
    }

    /* Ajustement du conteneur du logo pour centrer */
    .flex.items-center.space-x-3 {
        justify-content: center;
        gap: 0;
    }
    
    /* Sous-menu desktop */
    .absolute.left-0.mt-2.w-56 {
        width: 48vw;
    }
}
/* footer */

/* Styles pour le footer */
.footer-link {
    color: #d1d5db;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-link:hover {
    color: #f97316;
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #f97316;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Animation pour les titres de sections */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.section-title:hover::after {
    transform: scaleX(1);
}

/* Effet de survol sur le formulaire */
.newsletter-input {
    transition: all 0.3s ease;
    background-color: rgba(31, 41, 55, 0.5);
}

.newsletter-input:focus {
    background-color: rgba(31, 41, 55, 0.8);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Animation du bouton newsletter */
.newsletter-btn {
    position: relative;
    overflow: hidden;
}

.newsletter-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.newsletter-btn:hover::after {
    left: 100%;
}

/* Animation de la bordure du footer */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #f59e0b, #f97316);
    background-size: 200% auto;
    animation: gradientBorder 3s linear infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-link {
        padding: 0.5rem 0;
    }
    
    .section-title::after {
        width: 30%;
    }
}

/* Style pour le lien Admin */
.admin-link {
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
}

.admin-link:hover {
    background: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.admin-link i {
    transition: transform 0.3s ease;
}

.admin-link:hover i {
    transform: scale(1.2);
}

.cta-button--dark:hover, .cta-button--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#country option {
    display: flex;
    align-items: center;
    padding: 8px;
}
#country option img {
    width: 24px;
    height: 16px;
    margin-right: 8px;
}