:root {
    --dark-blue: #0f172a;
    --dark-red: #991b1b;
    --accent-red: #ef4444;
}
body { font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: 'Montserrat', sans-serif; }
/* Top Contact Banner */
.top-contact-banner {
height: 28px;
transition: transform 0.3s ease;
}
@media (min-width: 768px) {
.top-contact-banner {
height: 36px;
}
}
.bg-navy { background-color: var(--dark-blue); }
.bg-crimson { background-color: var(--dark-red); }
.text-crimson { color: var(--dark-red); }

/* Custom Animations */
@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 1s ease forwards; }

.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-bg {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)), 
                url('../image/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.diagonal-bg {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-top: -30px;
    margin-bottom: -30px;
    clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%);
}
@media (min-width: 768px) {
    .diagonal-bg {
        padding-top: 100px;
        padding-bottom: 100px;
        margin-top: -50px;
        margin-bottom: -50px;
        clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    }
}

.hover-lift { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hover-lift:hover { transform: translateY(-10px) scale(1.02); }

.image-zoom { overflow: hidden; }
.image-zoom img { transition: transform 0.5s ease; }
.image-zoom:hover img { transform: scale(1.1); }

/* Project Album Styles */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    height: 400px;
    cursor: pointer;
    transition: all 0.5s ease;
}
@media (min-width: 768px) { .project-card { height: 480px; } }

.project-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transition: all 0.5s ease;
}
.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(153, 27, 27, 0.95), transparent);
}
/* ============================================
   DROPDOWN MENU FIX — opacité + zone hover
   ============================================ */

/* Sous-menu : fond opaque (plus de transparence) */
.twowin-dropdown {
    background: var(--dark-blue) !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Pont invisible entre le lien parent et le sous-menu
   pour empêcher la fermeture quand la souris descend */
.group:has(.twowin-dropdown)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Garder le sous-menu ouvert quand on est dedans */
.group:hover .twowin-dropdown,
.twowin-dropdown:hover {
    display: block !important;
}

/* Petit délai pour éviter la fermeture brutale */
.twowin-dropdown {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Modal Overlays */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    padding: 10px;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { .modal-overlay { padding: 20px; } }

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #991b1b; border-radius: 10px; }

.file-zone {
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}
.file-zone:hover { border-color: #ef4444; background: #fff1f2; }

/* Fixed Social Buttons */
.fixed-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00a0e4);
}

.max-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 0;
}

.max-btn img {
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.max-btn:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fixed-social {
        bottom: 20px;
        right: 20px;
    }
    .social-btn {
        width: 50px;
        height: 50px;
    }
}

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

.social-btn:hover {
    animation: bounce 0.6s ease;
}
/* ============================================
   WordPress Admin Bar Fix
   ============================================ */
.admin-bar .top-contact-banner {
    top: 32px;
}
.admin-bar nav.site-nav {
    top: calc(32px + 28px);
}
@media (min-width: 768px) {
    .admin-bar nav.site-nav {
        top: calc(32px + 36px);
    }
}
@media screen and (max-width: 782px) {
    .admin-bar .top-contact-banner {
        top: 46px;
    }
    .admin-bar nav.site-nav {
        top: calc(46px + 28px);
    }
}

/* ============================================
   Page content offset — NO OVERLAP with fixed header
   banner (36px) + nav (~70px) + safe margin
   ============================================ */
.page-content-offset {
    padding-top: 110px;
}
@media (min-width: 768px) {
    .page-content-offset {
        padding-top: 130px;
    }
}
.admin-bar .page-content-offset {
    padding-top: 142px;
}
@media (min-width: 768px) {
    .admin-bar .page-content-offset {
        padding-top: 162px;
    }
}