
:root {
    --primary-dark: #1a237e;
    --primary-main: #283593;
    --primary-light: #3949ab;
    --secondary-dark: #00838f;
    --secondary-main: #00acc1;
    --accent-color: #ffab00;
    --light-bg: #f5f7fa;
    --dark-text: #212121;
    --light-text: #f5f5f5;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Gradient Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    z-index: -2;
    animation: gradientShift 16s ease infinite;
    background-size: 200% 200%;
}

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

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

header {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo i {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.auth-buttons .btn {
    margin-left: 1rem;
}

.main-content {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
}

.hero {
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

.nav-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.nav-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-main);
    transition: var(--transition);
}

.nav-card:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.nav-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.3);
}

.btn-primary:hover {
    background: #ffb300;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 171, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

footer {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .auth-buttons {
        display: flex;
        gap: 1rem;
    }

    .auth-buttons .btn {
        margin: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-cards {
        grid-template-columns: 1fr;
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}


/* Style pour le conteneur des logos */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style pour le logo CRLCA */
.crlca-logo img {
    height: 40px; /* Ajustez selon la taille souhaitée */
    width: auto;
    max-height: 60px; /* Hauteur maximale */
    filter: brightness(0) invert(1); /* Pour un logo blanc (optionnel) */
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .logo-container {
        gap: 8px;
    }
    .crlca-logo img {
        height: 30px;
    }
}