/* Variables */
:root {
    --primary-color: #7C9082;
    --secondary-color: #2F4538;
    --background-light: #F5F5F0;
    --light-gray: #E6E6E6;
    --accent-color: #A8C4B2;
    --sand-beige: #E8E0D5;
    --glacier-blue: #A4C3D2;
    --light-sage: #9DB4A3;
    --dark-mint: #86A690;
    --warm-brown: #D4B5A0;
    --text-color: #2F4538;
    --white: #FFFFFF;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

/* Header et Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(47, 69, 56, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--white);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Banner Section */
.programmes-banner {
    height: 60vh;
    background: linear-gradient(rgba(47, 69, 56, 0.7), rgba(47, 69, 56, 0.7)),
                url('../image/trainingmulti2.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.banner-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(47, 69, 56, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filtres Section */
.filters-section {
    padding: 3rem 0;
    background: var(--background-light);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Programmes Grid */
.programmes-grid {
    padding: 5rem 0;
}

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

.programme-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(47, 69, 56, 0.1);
    transition: transform 0.3s ease;
}

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

.programme-image {
    position: relative;
    height: 250px;
}

.programme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programme-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.programme-content {
    padding: 2rem;
}

.programme-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.programme-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.programme-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.programme-features ul {
    list-style: none;
    margin: 1.5rem 0;
}

.programme-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.programme-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Results Section */
.results-section {
    padding: 5rem 0;
    background: var(--background-light);
}

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

.result-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(47, 69, 56, 0.1);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.before-after img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.result-content {
    padding: 1.5rem;
    text-align: center;
}

.result-content h3 {
    color: var(--secondary-color);
}

.programme-type {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(47, 69, 56, 0.1);
    cursor: pointer;
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.faq-answer {
    margin-top: 1rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Boutons CTA */
.cta-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(124, 144, 130, 0.3);
}

.cta-button:hover {
    background: var(--dark-mint);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 144, 130, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .programmes-container {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modification pour le footer fixe en bas */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajout du responsive pour le footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-social a {
        margin: 0 0.5rem;
    }
}