/* ========================================================================= */
/* CSS AJOUTÉ : LOGO RW ET STICKY MOBILE HEADER */
/* ========================================================================= */

/* Animation légère sur le logo */
.rw-logo-desktop img,
.rw-logo-mobile img {
    transition: all 0.3s ease;
}

.rw-logo-desktop a:hover img,
.rw-logo-mobile a:hover img {
    transform: scale(1.08);
}

/* ========================================================================= */
/* NAVBAR DESKTOP : transition fluide slide-down au scroll                   */
/* ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(8, 9, 48, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(247, 209, 56, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    /* Animation slide-down */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
}

@media (min-width: 1025px) {
    .navbar {
        display: block !important;
        pointer-events: none; /* Only allow events when visible */
    }
    .navbar .menu { flex-wrap: nowrap !important; }
    .navbar[style*="display: block"],
    .navbar[style*="display:block"] {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: all;
    }
}

@media (max-width: 1024px) {
    .navbar {
        display: none !important;
    }
    #mobile-sticky-header {
        display: flex !important; /* Forces it visible on mobile */
        transform: translateY(0);
        opacity: 1;
        z-index: 1000;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ajustement flexbox pour la navbar desktop */
.navbar .menu {
    flex-wrap: nowrap;
}

/* Assurer que les boutons de langue sont bien alignés */
.lang-switcher-nav .lang-btn {
    padding: 6px 10px;
    font-size: 13px;
    height: auto;
}

/* Responsive fixes */
@media (max-width: 1200px) {
    .rw-logo-desktop img {
        height: 55px !important;
    }
}


/* ========================================================================= */
/* SIDEBAR OVERLAY BACKDROP - NEW */
/* ========================================================================= */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: rgba(247, 209, 56, 0.2);
    border-color: #f7d138;
    transform: rotate(90deg);
}

.close-btn i {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.close-btn:hover i {
    color: #f7d138;
}


/* ========================================================================= */
/* HERO SOCIAL ICONS - ENHANCED */
/* ========================================================================= */

.hero-socials {
    margin-bottom: 60px;
}

.hero-socials a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-socials a:hover {
    background: rgba(247, 209, 56, 0.25);
    border-color: #f7d138;
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 35px rgba(247, 209, 56, 0.4);
}

.hero-socials a i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.hero-socials a:hover i {
    color: #f7d138 !important;
    transform: scale(1.2) rotate(5deg);
}

/* Individual icon colors on hover */
.hero-socials a:nth-child(1):hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
}

.hero-socials a:nth-child(1):hover i {
    color: #0077b5 !important;
}

.hero-socials a:nth-child(2):hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}

.hero-socials a:nth-child(2):hover i {
    color: #1877f2 !important;
}

.hero-socials a:nth-child(3):hover {
    background: rgba(255, 0, 80, 0.2);
    border-color: #ff0050;
}

.hero-socials a:nth-child(3):hover i {
    color: #ff0050 !important;
}

.hero-socials a:nth-child(4):hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.hero-socials a:nth-child(4):hover i {
    color: #25d366 !important;
}


/* ========================================================================= */
/* HERO TITLE & SUBTITLE - PREMIUM GRADIENT DESIGN */
/* ========================================================================= */

.handwritten-title {
    font-size: 3.8rem;
    font-weight: 900;
    font-family: 'Playfair Display', 'Georgia', serif;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    
    /* Vibrant golden gradient - more youthful and bright */
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    
    /* Typing effect properties */
    display: inline-block;
    width: 18ch;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #ffd700;
    
    position: relative;
    animation: typing 2.5s steps(18) forwards, blink 0.7s step-end infinite alternate, goldenPulse 3s ease-in-out 2.5s infinite, goldenShimmer 4s ease-in-out 4s infinite;
    
    /* Elegant golden underline */
    padding-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ===== OVERRIDE HERO-PREMIUM: nom en blanc pur ===== */
#hero-premium .handwritten-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    border-right: none !important;
    white-space: normal !important;
    overflow: visible !important;
    width: auto !important;
    animation: fadeInContent 1s ease-out !important;
}

.handwritten-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, #ffed4e, #ffd700, transparent);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: expandWidth 0.8s ease-out 0.2s forwards;
}



@keyframes shimmer {

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

    50% {
        background-position: 100% 50%;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 18ch;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

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

@keyframes subtleShimmer {
    0%, 100% {
        opacity: 1;
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.9;
        background-position: 100% 50%;
    }
}

@keyframes goldenPulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
    }
}

@keyframes goldenShimmer {
    0% {
        background-position: -300% 50%;
    }
    50% {
        background-position: 300% 50%;
    }
    100% {
        background-position: -300% 50%;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

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

@keyframes typewriter {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes animtext {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.handwritten-subtitle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.handwritten-subtitle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(247, 209, 56, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .handwritten-title {
        font-size: 2rem;
    }

    .handwritten-subtitle {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .handwritten-title {
        font-size: 1.8rem;
    }

    .handwritten-subtitle {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}



/* ========================================================================= */
/* HERO SECTION RESPONSIVENESS - ENHANCED */
/* ========================================================================= */

#cool {
    min-height: 500px;
    height: auto;
}

@media (max-width: 768px) {
    #cool {
        min-height: 600px;
        padding: 80px 20px 40px !important;
    }

    .hero-socials a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    #cool {
        min-height: 550px;
    }
}


/* ========================================================================= */
/* CSS AJOUTÉ : SOCIAL MEDIA UX (Sidebar & Desktop Fixe) */
/* ========================================================================= */

/* 1. Desktop Fixed Left Sidebar Socials */
.desktop-social-fixed {
    position: fixed;
    left: 40px;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.desktop-social-fixed .social-line {
    width: 2px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.5);
    display: block;
}

.desktop-social-fixed a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.3s ease;
}

.desktop-social-fixed a:hover {
    color: #f7d138;
    transform: translateY(-3px) scale(1.1);
}

/* Masquer sur petits écrans */
@media (max-width: 991px) {
    .desktop-social-fixed {
        display: none !important;
    }
}

/* 2. Mobile Sidebar Socials (Bottom) */
.sidebar-socials-container {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-socials-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-socials-container a:hover {
    background: rgba(247, 209, 56, 0.2);
    color: #f7d138;
    border-color: #f7d138;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(247, 209, 56, 0.2);
}

/* Ajustement de la sidebar pour flexbox */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
}


/* ========================================================================= */
/* ACCESSIBILITY ENHANCEMENTS */
/* ========================================================================= */

/* Focus states for keyboard navigation */
.lang-btn:focus,
.menu-toggle:focus,
.close-btn:focus {
    outline: 2px solid #f7d138;
    outline-offset: 2px;
}

.navbar .menu ul li a:focus,
.sidebar nav ul li a:focus {
    outline: 2px solid #f7d138;
    outline-offset: 2px;
}

/* Smooth focus transitions */
*:focus {
    transition: outline 0.2s ease;
}


/* ========================================================================= */
/* SIDEBAR DROPDOWN ENHANCEMENTS - SUPER COOL UI/UX */
/* ========================================================================= */

/* Enhanced menu toggle button in sidebar */
.sidebar .menu-toggle {
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar .menu-toggle:hover {
    background: rgba(247, 209, 56, 0.1);
    transform: translateX(5px);
}

/* Arrow icon animation */
.sidebar .menu-toggle .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(247, 209, 56, 0.15);
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .menu-toggle:hover .arrow {
    background: rgba(247, 209, 56, 0.3);
    transform: scale(1.1);
}

/* Enhanced submenu styling */
.sidebar .submenu {
    list-style-type: none;
    padding-left: 0;
    margin-top: 8px;
    margin-left: 12px;
    border-left: 2px solid rgba(247, 209, 56, 0.3);
    padding-left: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

/* Submenu items with stagger animation */
.sidebar .submenu li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

/* Submenu links styling */
.sidebar .submenu li a {
    font-size: 14px;
    padding: 10px 12px;
    display: block;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar .submenu li a::before {
    content: "→";
    position: absolute;
    left: -8px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #f7d138;
}

.sidebar .submenu li a:hover {
    background: rgba(247, 209, 56, 0.15) !important;
    color: #f7d138 !important;
    transform: translateX(8px);
    padding-left: 20px;
}

.sidebar .submenu li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Active state for current page */
.sidebar .submenu li a.active {
    background: rgba(247, 209, 56, 0.2);
    color: #f7d138 !important;
    font-weight: 600;
    border-left: 3px solid #f7d138;
}


/* ========================================================================= */
/* PREMIUM FOOTER DESIGN */
/* ========================================================================= */

.premium-footer {
    background: linear-gradient(135deg, #080930 0%, #0a0b35 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px clamp(1rem, 5vw, 40px) 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f7d138, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-title {
    color: #f7d138;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #f7d138;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: rgba(247, 209, 56, 0.2);
    color: #f7d138;
    border-color: #f7d138;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

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

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

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: #f7d138;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #f7d138;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 209, 56, 0.3), transparent);
    margin: 30px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

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

.footer-tagline {
    font-style: italic;
}

.footer-tagline i {
    color: #f7d138;
    margin: 0 3px;
}

.footer-tagline .fa-heart {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .premium-footer {
        padding: 40px 20px 20px;
        margin-top: 60px;
    }

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

    .footer-section {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a {
        padding-left: 0;
    }

    .footer-links a:hover {
        padding-left: 5px;
    }

    .footer-contact li {
        justify-content: center;
    }
}