* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f8;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #0b3c7c, #0a2e5c);
    color: white;
    text-align: center;
    padding: 10px 16px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

header h1 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    opacity: 0.9;
}

header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-slogan {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    margin-top: 8px;
    color: white;
}

@media (max-width: 768px) {
    .header-slogan { 
        font-size: 0.75rem;
    }
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 16px 20px;
    font-weight: 600;
    color: #0b3c7c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav a:hover {
    background: #f0f2f5;
    color: #c0161f;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #c0161f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* Affiche  */
.affiche-finale {
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.affiche-finale:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .affiche-finale {
        max-width: 100%;
        margin: 0 10px;
    }
}

/* Section */
section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

section h3 {
    font-size: 2rem;
    color: #0b3c7c;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0b3c7c, #c0161f);
}

/* Bio Section */
.bio-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.bio-image {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0b3c7c, #c0161f);
    aspect-ratio: 3/4;
    object-fit: cover;
}

.bio-image-placeholder {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/4;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0b3c7c, #c0161f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
}

.bio-text h5 {
    color: #c0161f;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.bio-text p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.8;
}

/* Programme */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.programme-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #0b3c7c;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.programme-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192,22,31,0.05), transparent);
    transition: left 0.5s ease;
}

.programme-card:hover::before {
    left: 100%;
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-left-color: #c0161f;
}

.programme-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.programme-card h5 {
    color: #c0161f;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.programme-card p {
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .programme-card {
        min-height: 320px;
    }
}

/* Team Section */
.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.team-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #0b3c7c;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: #c0161f;
}

.team-card .team-initial {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0b3c7c, #0a2e5c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.team-card h6 {
    color: #0b3c7c;
    font-size: 1rem;
    margin: 0 0 6px;
    text-align: center;
}

.team-card .team-age {
    color: #c0161f;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.team-card .team-profession {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
    margin-top: auto;
}

@media (min-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Slogan */
.slogan {
    background: linear-gradient(90deg, #0b3c7c, #c0161f);
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    padding: 60px 20px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.slogan::before {
    content: "✦";
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.slogan::after {
    content: "✦";
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a2e5c, #0b3c7c);
    color: white;
    text-align: center;
    padding: 40px 20px 30px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 1.1rem; }
    header h2 { font-size: 2rem; }
    header .slogan { 
        font-size: 0.75rem;
        padding: 0 25px;
    }
    header .slogan::before,
    header .slogan::after {
        font-size: 0.9rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav a {
        padding: 14px 12px;
        font-size: 0.85rem;
    }
    
    .hero-final { 
        max-width: 100%;
        margin: 40px 10px;
    }
    .bio-container { 
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: center;
    }
    .bio-image,
    .bio-image-placeholder {
        max-width: 200px;
        margin: 0 auto 20px;
    }
    .bio-text {
        text-align: left;
    }
    .slogan { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    nav a {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Réseaux sociaux dans le footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #c0161f, #a01319);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192,22,31,0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192,22,31,0.6);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links .facebook {
    background: #1877f2;
}

.social-links .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: white;
}