/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --primary-color: #4a9d5f;
    --primary-dark: #3a7d4f;
    --secondary-color: #f4a261;
    --text-dark: #2c3e50;
    --text-light: #5a636b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 180px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/banner.jpg') center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 0 2rem;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 157, 95, 0.5);
    z-index: 0;
}

.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 1.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #e69651;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTIONS GENERALES
   ========================================== */

.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-title.centered {
    text-align: center;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ==========================================
   SECTION PRÉSENTATION
   ========================================== */

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.content-visual {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
}

.visual-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.visual-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.visual-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================
   SECTION INTERVENTIONS
   ========================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.info-card h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================
   SECTION FORMATS
   ========================================== */

.formats-list {
    max-width: 900px;
    margin: 3rem auto;
}

.format-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.format-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.format-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    min-width: 60px;
}

.format-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.format-content p {
    color: var(--text-light);
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.highlight-box p {
    font-size: 1.2rem;
    margin: 0;
}

/* ==========================================
   SECTION APPROCHE
   ========================================== */

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.approach-item {
    text-align: center;
    padding: 2rem;
}

.approach-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.approach-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.approach-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.objective-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.objective-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

/* ==========================================
   SECTION PARCOURS
   ========================================== */

.parcours-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.parcours-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   SECTION MODALITÉS
   ========================================== */

.modalites-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.modalites-box p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

/* ==========================================
   SECTION CONTACT
   ========================================== */

.section-contact {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
}

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

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-button.secondary {
    background: var(--secondary-color);
}

.contact-button.secondary:hover {
    background: #e69651;
}

.location-tag {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

.contact-note {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border-left: 4px solid var(--secondary-color);
}

.contact-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* ==========================================
   FOOTER
   ========================================== */

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem 0.8rem;
    z-index: 999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Add padding to body to prevent content from being hidden under footer */
body {
    padding-bottom: 180px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-link {
    display: inline-block;
    padding: 0.3rem 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================
   MODAL MENTIONS LÉGALES
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 2rem;
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.modal-content h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ==========================================
   ANIMATIONS D'APPARITION
   ========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@media (max-width: 768px) {
    body {
        padding-bottom: 150px;
    }
    
    #footer {
        padding: 1rem 1.5rem 0.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding-top: 0.6rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-visual {
        flex-direction: column;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .format-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .format-number {
        font-size: 2rem;
    }
}