:root {
    --primary: #FFD100;
    --secondary: #8A2BE2;
    --accent: #00C853;
    --light: #f8f9fa;
    --dark: #121212;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lilita One", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    font-family: "Lilita One", sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin: 0;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Centrer le titre et le texte */
.organization-section {
    padding-top: 120px; /* pour que le texte ne soit pas caché par le header */
    text-align: center;
}

.organization-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.organization-section p {
    max-width: 800px; /* limite la largeur du texte */
    margin: 0 auto;   /* centre le texte horizontalement */
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
}

h2{
    color: #FFD100;
}

/* ---------------- card ---------------- */
/* ---- Section et titre ---- */
#partners {
    padding: 60px 20px; /* marge en haut et en bas */
    text-align: center; /* centre le titre et le texte */
}

#partners .section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

#partners .section-title p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 40px; /* espace entre le texte et les cartes */
}

/* ---- Grid des cartes ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    justify-content: center; /* centre les cartes */
    max-width: 400px; /* largeur maximale pour éviter qu'elles s'étirent */
    margin: 0 auto; /* centre le grid horizontalement */
}

/* ---- Carte partenaire ---- */
.partner-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-radius: 15px;
    padding: 0;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.1);
    position: relative;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.3);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

/* ---- Logo ---- */
.partner-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 107, 0, 0.05);
    transition: all 0.4s ease;
    min-height: 100px;
}

.partner-card:hover .partner-logo {
    background: rgba(255, 107, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ---- Infos ---- */
.partner-info {
    padding: 20px 15px;
}

.partner-name {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.partner-description {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.partner-website {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.partner-website:hover {
    background: rgba(255, 107, 0, 0.2);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.partner-website i {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light);
}

/* ---------------- Footer ---------------- */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}