:root {
    --primary-color: #4A90E2; /* Bleu ciel plus foncé et plus lisible */
    --secondary-color: #E07A75; /* Rose plus foncé et contrasté */
    --accent-color: #FFFACD; /* Jaune doux */
    --text-color: #4A4A4A; /* Gris foncé doux */
    --bg-color: #F0F8FF; /* AliceBlue */
    --white: #FFFFFF;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --success-color: #98FB98;
    --error-color: #FFB6C1;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    /* Background image 'fond.jpg' */
    background-image: url("../images/fond.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #4682B4; /* SteelBlue for headings */
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Nav */
header {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(135, 206, 235, 0.15);
    border-bottom: 2px solid rgba(255, 183, 178, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 130px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo img:hover {
    transform: scale(1.08) rotate(-2deg);
}

.logo a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-weight: bold;
    font-size: 1.25rem;
    color: #4A90E2; /* Bleu plus foncé et plus lisible */
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(135, 206, 235, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(135,206,235,0.15) 0%, rgba(255,183,178,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 183, 178, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 183, 178, 0.2);
}

.nav-links a i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.burger div {
    width: 26px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Tablette */
@media screen and (max-width: 1100px) {
    .nav-links {
        gap: 0.1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .nav-links a i {
        display: none;
    }
    
    .logo img {
        height: 80px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 4%;
    }
    
    .logo img {
        height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--white);
        padding: 100px 1.5rem 2rem;
        gap: 0.25rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        z-index: 999;
        overflow-y: auto;
        align-items: stretch;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.nav-active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.nav-active li:nth-child(2) { transition-delay: 0.10s; }
    .nav-links.nav-active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.nav-active li:nth-child(4) { transition-delay: 0.20s; }
    .nav-links.nav-active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.nav-active li:nth-child(6) { transition-delay: 0.30s; }
    .nav-links.nav-active li:nth-child(7) { transition-delay: 0.35s; }
    .nav-links.nav-active li:nth-child(8) { transition-delay: 0.40s; }
    
    .nav-links a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        border: 1px solid transparent;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-color: rgba(255,255,255,0.3);
    }
    
    .nav-links a:hover i {
        color: white;
    }
    
    .nav-links a i {
        display: inline;
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Main Content */
.container {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #3A78C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #D06662;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 122, 117, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.8) 0%, rgba(255, 240, 245, 0.8) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.9) 0%, rgba(255, 240, 245, 0.9) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #4682B4;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.alert-success {
    background-color: var(--success-color);
    color: #2E8B57;
}

.alert-error, .alert-danger {
    background-color: var(--error-color);
    color: #C71585;
}

/* Footer */
footer {
    background-color: #FFF8DC; /* Cornsilk */
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3 {
    color: #DEB887; /* Burlywood */
    margin-bottom: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: #4682B4;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

/* Hero Section (Common) */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #E0F7FA 0%, #FFF0F5 100%);
    border-radius: 0 0 50% 50% / 20px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    display: flex;
    flex-direction: column;
}

.activity-card h3 {
    color: var(--secondary-color);
}

.activity-info {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #E0E0E0;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    background: var(--primary-color);
}
