/* Fichier CSS CORRIGÉ pour FSRS */

/* Réinitialisation et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E8B57;
    --secondary-color: #FFFFFF;
    --tertiary-color: #FFD700;
    --action-color: #FF0000;
    --font-primary: 'Montserrat', sans-serif;
    --black: #000000;
    --white: #fff;
    --yellow: #FCD20E;
    --border-radius: 8px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* En-tête */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 0;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

header .logo img {
    height: 60px;
    max-width: 100%;
}

header nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

header nav ul li a.active {
    color: var(--tertiary-color);
}

/* Bannière d'accueil */
.hero {
    height: auto;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    margin-top: 10px;
    padding: 2rem;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--tertiary-color);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Actualités */
.actualites {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.actualites .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.actualites h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.actualites-grid article {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.actualites-grid article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.actualites-grid article h3 {
    padding: 1rem;
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.actualites-grid article p {
    padding: 0 1rem 1rem;
}

/* Présentation */
.presentation {
    padding: 4rem 2rem;
    text-align: center;
}

.presentation .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.presentation h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.presentation p {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--action-color);
}

/* Disciplines - VERSION CORRIGÉE RESPONSIVE */
.disciplines {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.disciplines .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.disciplines h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.discipline {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.discipline img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.discipline h3 {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Responsive Disciplines */
@media (max-width: 768px) {
    .disciplines-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .discipline img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .disciplines {
        padding: 3rem 1rem;
    }
    
    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .discipline img {
        height: 180px;
    }
}

/* SLIDER DES PARTENAIRES - VERSION CORRIGÉE */
.partners-slider {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
    text-align: center;
    overflow: hidden;
}

.partners-slider .container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-slider h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    align-items: center;
}

.slider-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.slide img {
    width: 180px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 1rem;
}

.slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .partners-slider {
        padding: 3rem 1.5rem;
    }
    
    .slider-track {
        gap: 2rem;
    }
    
    .slide {
        min-width: 150px;
    }
    
    .slide img {
        width: 150px;
        max-height: 100px;
    }
}

@media (max-width: 576px) {
    .partners-slider {
        padding: 3rem 1rem;
    }
    
    .slider-track {
        gap: 1.5rem;
    }
    
    .slide {
        min-width: 120px;
    }
    
    .slide img {
        width: 120px;
        max-height: 80px;
        padding: 0.5rem;
    }
}

/* Footer professionnel */
.footer {
    background: linear-gradient(135deg, #1a3a2f 0%, #2E8B57 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tertiary-color) 0%, var(--primary-color) 50%, var(--tertiary-color) 100%);
}

.footer-main {
    padding: 4rem 2rem 3rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about {
    padding-right: 0;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-col h3 {
    color: var(--tertiary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--tertiary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-certifications {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cert-badge {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--tertiary-color);
    color: var(--tertiary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: var(--tertiary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--tertiary-color);
}

.footer-links a:hover {
    color: var(--tertiary-color);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    color: var(--tertiary-color);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    padding: 0.9rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--tertiary-color);
    background: rgba(255, 255, 255, 0.15);
}

.btn-newsletter {
    padding: 0.9rem 1.5rem;
    background: var(--tertiary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-newsletter:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--tertiary-color);
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets et petits écrans (max-width: 968px) */
@media (max-width: 968px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
        margin-left: 0;
    }

    .hero {
        min-height: 50vh;
        height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .actualites-grid,
    .disciplines-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-about {
        text-align: center;
    }

    .footer-about .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-certifications {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Smartphones (max-width: 576px) */
@media (max-width: 576px) {
    header .logo img {
        height: 50px;
    }

    .hero {
        padding: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .actualites,
    .presentation,
    .disciplines {
        padding: 2rem 1rem;
    }

    .actualites h2,
    .presentation h2,
    .disciplines h2 {
        font-size: 1.5rem;
    }

    .actualites-grid,
    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer-main {
        padding: 2rem 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col h3 {
        font-size: 1rem;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form input,
    .btn-newsletter {
        font-size: 0.85rem;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .legal-links .separator {
        display: none;
    }

    .footer-bottom {
        padding: 1.5rem 1rem;
    }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
    header .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .actualites h2,
    .presentation h2,
    .disciplines h2 {
        font-size: 1.3rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}