/* --- Variables --- */
:root {
    --primary: #00d2ff;
    --dark: #1a1a2e;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --text-color: #333;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== STYLES MODE JOUR/NUIT ===== */
.theme-toggle {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Mode sombre */
body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

body.dark-mode .top-nav {
    background-color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .nav-links a:hover {
    color: var(--primary);
}

body.dark-mode .column-title {
    color: #e2e8f0;
    border-bottom-color: var(--primary);
}

body.dark-mode .card {
    background-color: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .card:hover {
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.4);
}

body.dark-mode .card h2 {
    color: #60a5fa;
}

body.dark-mode .card h3 {
    color: var(--primary);
}

body.dark-mode .card p {
    color: #cbd5e1;
}

body.dark-mode footer {
    background-color: #1e293b;
    color: #94a3b8;
}

/* ===== FIN STYLES MODE JOUR/NUIT ===== */

/* --- Navigation --- */
.top-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 5vw; 
    background: var(--dark); 
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.icon {
    height: 7vh; 
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Layout Principal --- */
.content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 5vw;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.column-title {
    text-align: center;
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.5rem;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* --- Les Cartes (Cards) --- */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary);
    text-align: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease, color 0.3s ease;
    animation-fill-mode: forwards;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
    cursor: pointer;
}

.card-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
    transition: color 0.3s ease;
}

.card h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #666;
    transition: color 0.3s ease;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 850px) {
    .content {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */
.fade-in {
    animation: fadeInAnim 0.8s ease-out forwards;
}

@keyframes fadeInAnim {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}