/*
Theme Name: Inter-LGBT 2026
Theme URI: https://www.inter-lgbt.org/
Author: Antigravity & Aurélie
Author URI: https://www.inter-lgbt.org/
Description: Thème sur-mesure pour la refonte 2026 de l'Inter-LGBT. Design moderne, vibrant et accessible.
Version: 1.0.0
Text Domain: interlgbt
*/

/* Les styles sont intégrés directement dans l'en-tête pour le prototype (performance) */
        :root {
            --primary: #ff6a00;
            --primary-hover: #e65c00;
            --dark: #000000;
            --gray: #475569;
            --radius-pill: 9999px;
            --radius-card: 20px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--dark);
            line-height: 1.5;
            background-color: #ffffff;
            overflow-x: hidden;
        }

        /* --- ANIMATIONS (Sans effet mal de mer) --- */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }
        
        .delay-1 { transition-delay: 0.1s; }
        .delay-2 { transition-delay: 0.2s; }
        .delay-3 { transition-delay: 0.3s; }

        /* --- TOP SECTION --- */
        @keyframes driftBackground {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .top-section {
            position: relative;
            width: 100%;
            min-height: 55vh;
            padding-bottom: 7rem;
            /* Doux dégradé pastel en mouvement latéral (pas de zoom = pas de mal de mer) */
            background: linear-gradient(-45deg, #e0c3fc, #fbcfe8, #ffedd5, #e0e7ff);
            background-size: 300% 300%;
            animation: driftBackground 20s ease-in-out infinite;
            overflow: hidden;
        }

        /* Lignes obliques lumineuses s'inspirant de votre image (type "Aura" / "Glass") */
        @keyframes slideLine1 {
            0% { transform: translateX(-10%) rotate(-2deg); }
            50% { transform: translateX(5%) rotate(-2deg); }
            100% { transform: translateX(-10%) rotate(-2deg); }
        }
        @keyframes slideLine2 {
            0% { transform: translateX(5%) rotate(1deg); }
            50% { transform: translateX(-10%) rotate(1deg); }
            100% { transform: translateX(5%) rotate(1deg); }
        }

        .top-section::before, .top-section::after {
            content: '';
            position: absolute;
            width: 200%;
            height: 1.5px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
            left: -50%;
            z-index: 1;
            pointer-events: none;
            box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.6);
        }
        .top-section::before {
            top: 55%;
            animation: slideLine1 15s ease-in-out infinite;
        }
        .top-section::after {
            top: 70%;
            animation: slideLine2 22s ease-in-out infinite;
        }

        /* Navigation */
        header {
            max-width: 1100px;
            margin: 2rem auto 0;
            padding: 0 2rem;
            position: relative;
            z-index: 100;
        }

        nav {
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: var(--radius-pill);
            padding: 0.5rem 0.5rem 0.5rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        nav.scrolled {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .logo img { height: 38px; display: block; transition: transform 0.3s; }
        .logo img:hover { transform: scale(1.05); }

        .nav-links { display: flex; gap: 1rem; list-style: none; }
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 700;
            font-size: 0.95rem;
            position: relative;
            white-space: nowrap;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: var(--primary);
            transition: width 0.3s ease;
        }
        .nav-links a:hover::after { width: 100%; }

        .right-group {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .btn-donate-nav {
            background: linear-gradient(135deg, #ff8c42, #ff5035);
            color: white;
            padding: 0.7rem 1.8rem;
            border-radius: var(--radius-pill);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 4px 15px rgba(255, 80, 53, 0.4);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .btn-donate-nav:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(255, 80, 53, 0.6);
        }

        /* Hero Content */
        .hero {
            max-width: 900px;
            margin: 4.5rem auto 3rem;
            text-align: center;
            position: relative;
            z-index: 10;
            padding: 0 2rem;
            animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero h1 {
            font-size: 3.8rem;
            font-weight: 800;
            line-height: 1.05;
            margin-bottom: 1.2rem;
            color: var(--dark);
            letter-spacing: -0.04em;
        }

        .hero p {
            font-size: 1.2rem;
            color: #1e293b;
            margin-bottom: 2rem;
            font-weight: 500;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            color: var(--dark);
            padding: 0.8rem 2.2rem;
            border-radius: var(--radius-pill);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.05rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
            display: inline-block;
        }
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-2px);
        }

        /* --- BOTTOM SECTION --- */
        .bottom-section {
            background-color: #ffffff;
            border-radius: 40px 40px 0 0;
            margin-top: -3.5rem;
            position: relative;
            z-index: 20;
            padding: 4rem 2rem;
            box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.03);
        }

        .content-wrapper {
            position: relative;
            z-index: 10;
            max-width: 1100px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.4rem;
            font-weight: 800;
            margin-bottom: 3.5rem;
            letter-spacing: -0.03em;
        }

        .cards-area {
            position: relative;
            margin-bottom: 5rem;
        }

        .rainbow-blur {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 110%;
            height: 120%;
            background: linear-gradient(90deg, 
                rgba(255,0,0,0.35), rgba(255,165,0,0.35), rgba(255,255,0,0.35), 
                rgba(0,128,0,0.35), rgba(0,0,255,0.35), rgba(128,0,128,0.35));
            filter: blur(60px);
            z-index: 0;
            pointer-events: none;
            border-radius: 40px;
        }

        /* Dynamic Layout Wrapper for Horizontal -> Vertical transition */
        .dynamic-layout {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            z-index: 10;
            gap: 3rem;
            transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* Cards Container */
        .cards-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            width: 100%; /* Initially takes full width */
            transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* Individual Card */
        .card {
            background: linear-gradient(180deg, rgba(240, 248, 255, 0.85) 0%, rgba(250, 240, 255, 0.85) 100%);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 1);
            border-radius: var(--radius-card);
            padding: 1.2rem;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            width: calc(33.333% - 1.35rem); /* Initially 3 columns */
            transition: width 1s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s, box-shadow 0.4s;
        }
        
        .card:hover {
            transform: translateY(-10px) !important; /* !important to override any transition state */
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
        }

        .card-img {
            width: 100%;
            height: 170px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 1.2rem;
            background-color: #ddd;
            transition: transform 0.5s ease;
        }
        .card:hover .card-img { transform: scale(1.03); }
        .card-img-wrapper { overflow: hidden; border-radius: 12px; margin-bottom: 1.2rem; }

        .card-date { font-size: 0.85rem; color: #334155; font-weight: 600; margin-bottom: 0.4rem; }
        .card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; line-height: 1.3; }
        .card p { font-size: 0.95rem; color: #475569; margin-bottom: 1.5rem; flex-grow: 1; }
        .card-link { color: var(--dark); text-decoration: underline; font-weight: 800; font-size: 0.95rem; }

        /* Calendar Container (Initially Hidden/Zero width) */
        .calendar-container {
            width: 0%;
            opacity: 0;
            overflow: hidden;
            transform: translateX(50px);
            transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* --- VERTICAL MODE (Triggered on Scroll) --- */
        .dynamic-layout.vertical-mode .cards-container {
            width: 45%; /* Cards take up left half */
        }
        .dynamic-layout.vertical-mode .card {
            width: 100%; /* Cards stack vertically */
            flex-direction: row; /* Horizontal layout inside the card to save vertical space */
            gap: 1.5rem;
            align-items: center;
        }
        .dynamic-layout.vertical-mode .card-img-wrapper {
            width: 150px;
            height: 150px;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .dynamic-layout.vertical-mode .card-img { height: 100%; margin-bottom: 0; }
        .dynamic-layout.vertical-mode .card-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
        
        .dynamic-layout.vertical-mode .calendar-container {
            width: 50%; /* Calendar takes up right half */
            opacity: 1;
            transform: translateX(0);
        }

        /* Calendar UI */
        .calendar-box {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 1);
            border-radius: var(--radius-card);
            padding: 2rem;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
            height: 100%;
        }
        .calendar-box h3 {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #f1f5f9;
            padding-bottom: 1rem;
        }
        .event-item {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            border-radius: 12px;
            transition: background 0.3s;
        }
        .event-item:hover { background: #f8fafc; cursor: pointer; }
        .event-date {
            background: linear-gradient(135deg, #ff8c42, #ff5035);
            color: white;
            border-radius: 12px;
            padding: 0.5rem 1rem;
            text-align: center;
            min-width: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .event-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
        .event-date .month { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
        .event-details h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
        .event-details p { font-size: 0.9rem; color: var(--gray); }

        /* Social Media Section */
        .social-section {
            text-align: center;
            margin: 4rem auto 6rem;
            padding: 2rem;
        }
        .social-section h3 {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 2rem;
        }
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 2rem;
        }
        .social-icon {
            width: 70px;
            height: 70px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            text-decoration: none;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }
        .social-icon i {
            font-size: 2rem;
            color: var(--dark);
            transition: color 0.3s;
        }
        
        .social-icon:hover {
            transform: translateY(-15px) scale(1.1) rotate(10deg);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            background: linear-gradient(135deg, #ff8c42, #ff5035);
        }
        .social-icon:hover i {
            color: #ffffff;
        }

        /* Big Donation Banner */
        .donation-banner {
            background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,235,220,0.95) 100%);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 1);
            border-radius: var(--radius-card);
            padding: 4rem 2rem;
            text-align: center;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
            max-width: 850px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }
        
        .donation-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,106,0,0.05) 0%, transparent 70%);
            z-index: -1;
        }

        .donation-banner h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
        .donation-banner h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.03em; }
        .donation-banner p { font-size: 1.1rem; color: #334155; max-width: 550px; margin: 0 auto 2rem auto; font-weight: 500; }

        .btn-donate-large {
            background: linear-gradient(135deg, #ff8c42, #ff5035);
            color: white;
            padding: 1.1rem 2.8rem;
            border-radius: var(--radius-pill);
            text-decoration: none;
            font-weight: 800;
            font-size: 1.15rem;
            display: inline-block;
            box-shadow: 0 8px 20px rgba(255, 80, 53, 0.4);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .btn-donate-large:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 30px rgba(255, 80, 53, 0.5);
        }

        /* --- RESPONSIVE DESIGN --- */
        @media (max-width: 1200px), (orientation: portrait) {
            .hero h1 { font-size: 3rem; }
            .hero { margin-bottom: 1rem; }
            .top-section { min-height: auto; padding-bottom: 5rem; }
            
            /* Navigation : on empile les éléments au lieu de les cacher */
            nav {
                flex-direction: column;
                padding: 1rem;
                gap: 1rem;
            }
            .nav-links {
                display: flex !important;
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
            }

            /* Layout : on annule l'effet 50/50 du scroll et on utilise une grille fluide */
            .dynamic-layout {
                flex-direction: column !important;
                gap: 3rem;
            }
            
            .dynamic-layout.vertical-mode .cards-container,
            .cards-container {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
                gap: 2rem;
            }
            
            .dynamic-layout.vertical-mode .card,
            .card {
                width: 100% !important;
                flex-direction: column !important; /* Image en haut, texte en bas */
            }
            
            .dynamic-layout.vertical-mode .card-img-wrapper {
                width: 100%;
                height: 220px;
                margin-bottom: 1.2rem;
            }
            
            .dynamic-layout.vertical-mode .calendar-container,
            .calendar-container {
                width: 100% !important;
                transform: translateX(0) !important;
                opacity: 1 !important;
            }
            
            .rainbow-blur {
                width: 100%;
                height: 100%;
            }
        }

        @media (max-width: 600px) {
            .hero { margin-top: 2rem; padding: 0 1rem; }
            .hero h1 { font-size: 2.2rem; }
            .hero p { font-size: 1rem; }
            .top-section { min-height: auto; padding-bottom: 5rem; }
            
            .bottom-section { padding: 2rem 1rem; border-radius: 25px 25px 0 0; }
            .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
            
            .donation-banner { padding: 2.5rem 1.5rem; }
            .donation-banner h2 { font-size: 1.6rem; }
            .donation-banner p { font-size: 1rem; }
            .btn-donate-large { padding: 0.9rem 1.5rem; font-size: 1rem; }
            
            .social-icons { flex-wrap: wrap; }
        }

/* --- LOGO GROUP & THEME TOGGLE --- */
.logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(15deg);
}

/* --- DARK MODE --- */
body.dark-mode {
    --dark: #ffffff;
    background-color: #0f172a;
    color: #f1f5f9;
}

body.dark-mode .top-section {
    background: linear-gradient(-45deg, #1e1b4b, #312e81, #172554, #020617);
    background-size: 300% 300%;
}

body.dark-mode nav {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .nav-links a { color: #f1f5f9; }
body.dark-mode .hero h1 { color: #ffffff; }
body.dark-mode .hero p { color: #cbd5e1; }
body.dark-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .bottom-section {
    background-color: #0f172a;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
body.dark-mode .card h3 { color: #ffffff; }
body.dark-mode .card p { color: #94a3b8; }
body.dark-mode .card-date { color: #cbd5e1; }
body.dark-mode .card-link { color: #f1f5f9; }

body.dark-mode .calendar-box {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .calendar-box h3 { border-bottom-color: #334155; }
body.dark-mode .event-item:hover { background: rgba(255,255,255,0.05); }
body.dark-mode .event-details p { color: #94a3b8; }

body.dark-mode .social-icon {
    background: #1e293b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
body.dark-mode .social-icon i { color: #ffffff; }

body.dark-mode .donation-banner {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .donation-banner p { color: #cbd5e1; }
body.dark-mode .theme-toggle { background: rgba(255,255,255,0.1); color: #fff; }

/* --- MAGNETIC BUTTON --- */
.magnetic {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* --- 3D PARALLAX CARDS --- */
.card {
    transform-style: preserve-3d;
    perspective: 1000px;
}
