/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --sage-green: #9ca68f;
    --terracotta: #d4a373;
    --cream: #f5f1e8;
    --taupe: #b8a398;
    --dark-green: #5a6352;
    --white: #ffffff;
    --black: #2c2c2c;
    
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--black);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--dark-green);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--black);
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-green);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--sage-green);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-green);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--dark-green) 100%);
}
/* Plume en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/plume.png');
    background-size: 40%;
    background-position: right 10% bottom 20%;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Ajuster le z-index du contenu */
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 1;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--dark-green);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--white);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */

section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--dark-green);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--taupe);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

.section-header {
    margin-bottom: 60px;
}

/* ========================================
   SECTION À PROPOS
   ======================================== */

.section-about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text .section-title {
    text-align: left;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--sage-green);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--black);
    line-height: 1.8;
}

.about-image {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Grille de valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--cream);
    border-radius: 10px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.value-card h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--black);
    line-height: 1.6;
}

/* ========================================
   SECTION GALERIE
   ======================================== */

.section-galerie {
    background: var(--cream);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    color: var(--black);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--sage-green);
    color: var(--white);
    border-color: var(--sage-green);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/5;
    transition: var(--transition);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.view-btn {
    align-self: flex-start;
    padding: 10px 25px;
    background: var(--white);
    color: var(--dark-green);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--sage-green);
    color: var(--white);
}

/* Message de chargement */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--sage-green);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
}

.loading-message p {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   SECTION PROCESSUS
   ======================================== */

.section-processus {
    background: var(--white);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.timeline-item.reverse {
    grid-template-columns: 300px 1fr 80px;
}

.timeline-item.reverse .timeline-number {
    order: 3;
}

.timeline-item.reverse .timeline-content {
    order: 2;
    text-align: right;
}

.timeline-item.reverse .timeline-image {
    order: 1;
}

.timeline-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--sage-green);
    font-weight: 300;
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--black);
    line-height: 1.8;
}

.timeline-image {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

/* ========================================
   SECTION CONTACT
   ======================================== */

.section-contact {
    background: var(--cream);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--black);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--sage-green);
    width: 30px;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--dark-green);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-item a,
.contact-item p {
    color: var(--black);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--sage-green);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sage-green);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--sage-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Formulaire */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--sage-green);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--sage-green);
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.submit-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--white);
    color: var(--dark-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text .section-title {
        text-align: center;
    }

    .timeline-item,
    .timeline-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline-item.reverse .timeline-content {
        text-align: center;
    }

    .timeline-number {
        order: 1;
    }

    .timeline-content {
        order: 2;
    }

    .timeline-image {
        order: 3;
        height: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}
