@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary-green: #3D5A42;
    --light-green: #A8C69F;
    --accent-green: #E8F0E6;
    --off-white: #FDFCF8;
    --beige-muted: #e6f5eaaa;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    justify-content: center;
}

section {
    padding: 120px 0;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 252, 248, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.7) 100%),
        linear-gradient(to top, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(245, 245, 220, 0.5) 100%),
        url('images/CENTRE DE FORMATION (3).png');
    background-size: cover;
    background-position: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    animation: photoGlow 3s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% {
        box-shadow: var(--shadow-medium), 0 0 0 0 rgba(144, 238, 144, 0.4);
    }

    100% {
        box-shadow: var(--shadow-medium), 0 0 0 10px rgba(144, 238, 144, 0);
    }
}

.hero-image-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-green);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.hero-content .name {
    display: block;
    color: var(--text-dark);
    margin-top: 10px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(61, 90, 66, 0.2);
}

.btn-primary:hover {
    background: #2D4F1E;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(61, 90, 66, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--accent-green);
}

/* --- Gallery Section --- */

.gallery .container {
    max-width: 1100px;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-head p {
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-item {
    margin-bottom: 100px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.project-title h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.project-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-green);
}

/* --- Modern Slider --- */

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide:hover img {
    transform: scale(1.05);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}

.slider-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* --- Contact Section --- */

.contact {
    background: var(--beige-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #FAFAFA;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-green);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* --- Footer --- */

footer {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: block;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        order: 2;
        text-align: center;
        max-width: 100%;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-image-container img {
        height: 450px;
    }

    .hero-cta {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .contact-form {
        padding: 30px;
    }

    section {
        padding: 80px 0;
    }
}