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

body {
    font-family: Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg,
                rgba(3, 33, 73, 0.03) 0%,
                rgba(255, 140, 66, 0.02) 25%,
                rgba(35, 169, 198, 0.02) 50%,
                rgba(107, 46, 95, 0.03) 75%,
                rgba(3, 33, 73, 0.02) 100%);
    color: #1B3A6B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: url('../assets/Gradients/Louis Profil Accueil.jpeg?v=2') center bottom/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Language dropdown - top right */
.lang-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
}

.lang-toggle {
    font-size: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
    line-height: 1;
}

.lang-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #F5F1EB;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.lang-menu.open {
    display: flex;
}

.lang-menu a {
    font-size: 1.3rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease;
    line-height: 1;
    text-align: center;
}

.lang-menu a:hover {
    background: rgba(0, 0, 0, 0.06);
}

header {
    width: 100%;
    padding: 60px 20px 40px;
    text-align: center;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1B3A6B;
}

main {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    text-align: center;
}

.welcome {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 48px;
    letter-spacing: 0.3px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    height: 240px;
    border-radius: 32px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F5F1EB;
    position: relative;
    z-index: 1;
}

.card-consulaire {
    background: linear-gradient(135deg, #032149, #23a9c6);
}

.card-consulaire::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/Logos/logo-1.png') right center/contain no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    mask-image: radial-gradient(ellipse 140% 120% at 50% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 35%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(ellipse 140% 120% at 50% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 35%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0) 100%);
}

.card-consulaire:hover::before {
    opacity: 0.3;
}

.card-startups {
    background: linear-gradient(135deg, #FF8C42, #6B2E5F);
}

.card-startups::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/Logos/Logo_Inovexus_blanc.svg') center/60% no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 75%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 75%, rgba(0,0,0,0) 100%);
}

.card-startups:hover::before {
    opacity: 0.5;
}

.card-startups .card-label {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cards {
        gap: 16px;
    }

    .card {
        height: 200px;
        padding: 32px;
    }
}

@media (max-width: 500px) {
    header {
        padding: 40px 20px 28px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .welcome {
        margin-bottom: 32px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        height: 180px;
        padding: 28px;
    }

    .card-label {
        font-size: 1.3rem;
    }

    body::after {
        height: 50vh;
        background-size: cover;
    }
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: transparent;
    color: #1B3A6B;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: auto;
}

footer a {
    color: #1B3A6B;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
