/* ============================================== */
/* FONT FACE (Déclaration des Polices ZTNature) */
/* ============================================== */
@font-face {
    font-family: 'ZTNature';
    src: url('assets/fonts/ZTNature-Medium.woff2') format('woff2'),
         url('assets/fonts/ZTNature-Medium.woff') format('woff');
    font-weight: 500; 
    font-style: normal;
}

@font-face {
    font-family: 'ZTNature';
    src: url('assets/fonts/ZTNature-SemiBold.woff2') format('woff2'),
         url('assets/fonts/ZTNature-SemiBold.woff') format('woff');
    font-weight: 600; 
    font-style: normal;
}


/* ============================================== */
/* VARIABLES GLOBALES ET RESET DE BASE */
/* ============================================== */
:root {
    /* Vos Couleurs */
    --color-dark: #080F01;      /* Noir */
    --color-primary: #084734;   /* Vert foncé */
    --color-light: #FFFDF0;     /* Blanc cassé (Beige) */
    --color-placeholder: #D9D9D9; /* Gris pour le placeholder */

    --color-cta: var(--color-primary); 
    --color-text-dark: var(--color-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZTNature', sans-serif;
    font-weight: 500;
    color: var(--color-text-dark);
    background-color: var(--color-light); 
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================== */
/* HEADER / NAVIGATION (Flottant, Beige Opaque, Arrondi) */
/* ============================================== */

.main-header {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: calc(100% - 80px); 
    max-width: 1400px; 
    z-index: 100;
    
    background-color: var(--color-light); 
    border-radius: 50px; 
    padding: 10px 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo-img {
    height: 30px; 
    width: auto;
    filter: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    color: var(--color-primary); 
    font-weight: 600; 
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-dark); 
}

/* BOUTON CTA (Desktop) */
.cta-button {
    background-color: var(--color-cta);
    color: var(--color-light);
    padding: 10px 20px;
    border-radius: 50px; 
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--color-dark);
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-primary); 
    transition: 0.4s;
}

/* ============================================== */
/* SECTION HERO (IMAGE ET TITRE) */
/* ============================================== */

.hero-section {
    position: relative;
    padding-top: 0; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.hero-background-image {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.studio-title-image {
    width: 70vw; 
    max-width: 700px; 
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.slogan-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.slogan-text {
    font-size: 24px;
    font-weight: 600; 
    color: var(--color-light); 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.cv-button {
    background-color: var(--color-light); 
    color: var(--color-primary);        
    padding: 12px 25px;
    border-radius: 50px; 
    font-weight: 600;
    border: 2px solid var(--color-primary); 
    transition: background-color 0.3s, transform 0.3s;
}

.cv-button:hover {
    background-color: var(--color-primary); 
    color: var(--color-light); 
    transform: translateY(-2px); 
}

.scroll-indicator {
    display: inline-block;
    background-color: var(--color-light); 
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    margin-top: 50px; 
    border: 2px solid var(--color-primary); 
    color: var(--color-primary); 
}

.scroll-indicator svg {
    stroke: currentColor; 
}

.scroll-indicator:hover {
    background-color: var(--color-primary); 
    transform: translateY(5px);
}

.scroll-indicator:hover svg {
    stroke: var(--color-light);
}

.ticker-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px; 
    overflow: hidden;
    z-index: 10; 
    
    background-color: var(--color-light); 
    
    border-top: 5px solid var(--color-primary);
    border-bottom: 5px solid var(--color-primary);
}

.ticker-link {
    display: block; 
    height: 100%;
    width: 100%;
}

.ticker-text {
    height: 100%;
    line-height: 40px; 
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary); 
    padding-left: 100%; 
    animation: ticker 20s linear infinite;
    cursor: pointer;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0); 
    }
}

/* ============================================== */
/* SECTION SERVICES */
/* ============================================== */

.services-section {
    padding: 100px 40px 60px;
    max-width: 950px; 
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 40px; 
    font-weight: 600;
    margin-bottom: 70px; 
}

.section-title .title-green {
    color: var(--color-primary); 
}

.section-title .title-dark {
    color: var(--color-dark); 
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 35px; 
}

.service-card {
    background-color: var(--color-light); 
    border: 2px solid var(--color-primary); 
    border-radius: 10px;
    padding: 35px; 
    display: flex;
    align-items: center; 
}

.service-left {
    flex: 0 0 40%; 
    text-align: left;
    padding-right: 35px; 
    border-right: 2px solid var(--color-primary);
    height: 100%; 
}

.service-right {
    flex: 1;
    text-align: left;
    padding-left: 35px; 
}

.service-title {
    font-size: 28px; 
    font-weight: 600; 
    color: var(--color-dark); 
    margin: 0;
}

.service-description {
    font-size: 20px; 
    line-height: 1.6;
    color: var(--color-text-dark); 
    margin: 0;
}

.separator-line {
    width: 80%;
    max-width: 600px;
    height: 1px;
    border: none;
    background-color: var(--color-primary); 
    margin: 60px auto 80px; 
}


/* ============================================== */
/* SECTION PORTFOLIO (Grille de Projets) */
/* ============================================== */

.portfolio-section {
    background-color: var(--color-light); 
    padding: 80px 20px;
    text-align: center;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto 50px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.filter-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'ZTNature', sans-serif;
    color: var(--color-primary);
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.portfolio-grid {
    display: grid;
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary); 
    border-radius: 10px; 
    overflow: hidden; 
    padding: 20px; 
    color: var(--color-light); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    cursor: pointer; 
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.hidden {
    display: none !important;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(8, 71, 52, 0.4); 
}

.project-header {
    text-align: left;
    margin-bottom: 15px;
}

.project-type {
    font-size: 16px; 
    font-weight: 500;
    opacity: 0.8; 
    margin-bottom: 5px;
}

.project-name {
    font-size: 24px; 
    font-weight: 600;
    margin: 0;
}

.project-carousel-placeholder {
    background-color: var(--color-placeholder); 
    width: 100%;
    aspect-ratio: 4 / 3; 
    border-radius: 8px; 
    margin-bottom: 15px;
    overflow: hidden; 
    position: relative; 
    
    overflow-x: scroll; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    cursor: grab;
    
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    
    user-select: none; 
    -webkit-user-drag: none;
}

.project-carousel-placeholder::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    width: 300%; 
    height: 100%;
}

.carousel-image {
    width: calc(100% / 3); 
    height: 100%;
    object-fit: cover; 
    flex-shrink: 0; 
    scroll-snap-align: start; 
    display: block;
}

.project-footer {
    text-align: left;
    margin-top: 15px;
}

.project-duration-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 5px;
}

.project-time {
    font-size: 18px; 
    font-weight: 600;
    margin: 0;
}


/* ============================================== */
/* SECTION À PROPOS */
/* ============================================== */

.about-section {
    padding: 80px 40px;
    max-width: 1100px; 
    margin: 0 auto;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 40px; 
    padding: 50px; 
    background-color: var(--color-light); 
    
    border: 3px solid var(--color-primary); 
    border-radius: 15px; 
    max-width: 1000px; 
    margin: 0 auto 50px; 
}

.about-image-container {
    flex: 0 0 220px; 
    position: relative;
    overflow: hidden;
    
    border-radius: 10px; 
    border: 4px solid var(--color-primary); 
    aspect-ratio: 1 / 1; 
    
    background-color: var(--color-primary); 
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text-container {
    flex: 1; 
    text-align: left;
}

.about-name {
    font-size: 28px; 
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.about-description {
    font-size: 20px; 
    line-height: 1.7;
    margin-bottom: 0; 
}

.about-cta {
    display: inline-block;
}


/* ============================================== */
/* SECTION FOOTER */
/* ============================================== */

.main-footer {
    background-color: var(--color-dark); 
    color: var(--color-light); 
    padding: 60px 40px 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
}

.footer-col {
    width: 45%; 
}

.branding-col {
    text-align: left;
    width: 50%;
}

.contact-col {
    text-align: right;
    width: 50%;
}

.footer-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center; 
}

.footer-logo-img {
    height: 40px; 
    width: auto;
    filter: brightness(0) invert(1); 
    margin-right: 10px; 
}

.footer-studio-name {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-light);
}

.footer-slogan {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--color-light);
    max-width: 450px;
}

/* Bouton CTA Inversé (Beige/Vert) */
.footer-cta-light {
    background-color: var(--color-light); 
    color: var(--color-primary); 
    font-weight: 600;
}

.footer-cta-light:hover {
    background-color: var(--color-primary); 
    color: var(--color-light); 
}

/* CONTACT */
.contact-col h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-light); 
    margin-bottom: 25px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    width: 35px; 
    height: 35px;
}

.social-links img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.social-links a:hover img {
    filter: invert(40%) sepia(100%) saturate(100%) hue-rotate(90deg) brightness(100%);
}

/* Barre Légale et Copyright */
.footer-separator-line {
    width: 100%;
    height: 1px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto 20px;
}

.footer-legal-bar {
    text-align: center;
    margin-bottom: 15px;
}

.footer-legal-bar a {
    font-size: 14px;
    color: var(--color-light); 
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.footer-legal-bar a:last-child {
    border-right: none;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================== */
/* PAGES LÉGALES */
/* ============================================== */

.legal-section {
    padding: 120px 40px 80px;
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.legal-container {
    background-color: var(--color-light);
}

.legal-content {
    text-align: left;
    line-height: 1.8;
    color: var(--color-dark);
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h2:first-of-type {
    margin-top: 20px;
}

.legal-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.legal-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content li {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.legal-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-update {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--color-primary);
    font-style: italic;
    color: var(--color-dark);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 100px 20px 60px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 15px;
    }
}


/* ============================================== */
/* RESPONSIVE DESIGN (FINAL) */
/* ============================================== */

@media (max-width: 768px) {
    /* HEADER MOBILE */
    .main-header {
        width: calc(100% - 40px); 
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 15px; 
    }
    
    /* CORRECTION MENU BURGER : Le bouton doit apparaître */
    .menu-toggle {
        display: block; 
    }

    

    /* CORRECTION DU MENU DÉROULANT */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0; /* Alignement sur le bord gauche du header flottant */
        right: 0; 
        width: 100%; /* Prend toute la largeur du header flottant */
        background-color: var(--color-light); 
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 90;
    }
    
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(8, 71, 52, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        color: var(--color-primary); 
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Autres sections responsive (inchangées car elles sont stables) */
    
    .studio-title-image {
        width: 85vw;
    }
    
    .slogan-text {
        font-size: 18px;
    }

    .ticker-wrapper {
        height: 40px; 
        border-top-width: 3px; 
        border-bottom-width: 3px;
    }
    .ticker-text {
        line-height: 34px; 
        font-size: 14px;
    }
    
    /* SERVICES SUR MOBILE: */
    .services-section {
        padding: 80px 20px 40px;
    }

    /* À PROPOS SUR MOBILE */
    .about-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        margin: 0 auto 40px;
    }
    
    .about-image-container {
        width: 60%; 
        max-width: 200px; 
        margin-bottom: 10px;
    }
    
    .about-text-container {
        text-align: center;
    }

    /* FOOTER MOBILE */
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .branding-col, .contact-col {
        width: 100%; 
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center; 
    }

    .footer-legal-bar {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-legal-bar a {
        border-right: none;
        padding: 5px 0;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    /* Cacher le menu toggle sur desktop */
    .menu-toggle {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}