:root {
    --green: #12a537;
    --green-acid: #12a537;
    /* Vert plus "néon" pour le style sombre */
    --dark: #0e0e0e;
    --off-white: #e8e8e3;
    --grey-dark: #1a1a1a;

    --font-title: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--off-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- NAVIGATION (DOCK FLOTTANT) --- */
.nav-dock-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.nav-dock {
    pointer-events: auto;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-item {
    position: relative;
    padding: 10px 20px;
    border-radius: 30px;
    color: #aaa;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    background: var(--green-acid);
    color: var(--dark);
}

.logo-fixed {
    position: fixed;
    top: 30px;
    left: 50px;
    z-index: 1000;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    mix-blend-mode: difference;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Plus lumineux */
    filter: grayscale(100%) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
}

.tagline {
    display: inline-block;
    border: 1px solid var(--green-acid);
    color: var(--green-acid);
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

h1 {
    font-family: var(--font-title);
    font-size: 5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: transparent;
    -webkit-text-stroke: 1px var(--off-white);
}

h1 span {
    color: var(--off-white);
    -webkit-text-stroke: 0;
    display: block;
}

.hero-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
}

/* --- SECTION STICKY (Histoire - Plus large) --- */
.sticky-wrapper {
    position: relative;
}

.sticky-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

.sticky-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) grayscale(10%);
}

.scrolling-content {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
    padding-bottom: 10vh;
}

/* CONFIGURATION ZIG-ZAG LARGE */
.text-block {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    max-width: 750px;

    /* Alignement Gauche par défaut */
    margin-left: 8%;
    margin-right: auto;
    text-align: left;
}

.text-block h2 {
    font-family: var(--font-title);
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-block p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.highlight {
    color: var(--green-acid);
    font-style: italic;
}

/* Bloc aligné à DROITE */
.align-right {
    margin-left: auto;
    margin-right: 8%;
    align-items: flex-end;
    text-align: right;
}

/* Décalage pour le 3ème bloc (Organisateur) */
.text-block:last-child {
    margin-left: 15%;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .text-block,
    .align-right,
    .text-block:last-child {
        max-width: 100%;
        margin: 0 auto;
        text-align: left !important;
        align-items: flex-start !important;
        padding: 50px 20px;
        min-height: auto;
    }

    .text-block h2 {
        font-size: 2.5rem;
    }
}

/* --- SERVICES (Grille Côte à Côte) --- */
.services-section {
    background: var(--off-white);
    color: var(--dark);
    padding: 100px 50px;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--dark);
    color: var(--off-white);
    height: 550px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
    transition: 0.3s;
    border-radius: 4px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: 0.5s;
    filter: grayscale(100%);
}

.service-card:hover img {
    opacity: 0.5;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card ul {
    font-size: 1rem;
    color: #ccc;
}

.service-card li {
    margin-bottom: 8px;
}

.service-card li::before {
    content: '• ';
    color: var(--green-acid);
}

/* --- STATS --- */
.stats-bar {
    background: var(--green-acid);
    color: var(--dark);
    padding: 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- PORTFOLIO --- */
.portfolio-section {
    padding: 100px 50px;
    background: var(--dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.project-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    filter: grayscale(100%);
}

.project-card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-cat {
    color: var(--green-acid);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.project-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: white;
    margin-top: 5px;
}

/* --- CONTACT (Design Sobre et Élégant) --- */
.contact-section {
    padding: 100px 20px 150px;
    background: var(--dark);
    /* Fond uni sombre pour se fondre dans la page */
    display: flex;
    justify-content: center;
}

.form-box {
    background: #131313;
    /* Très légèrement plus clair pour détacher la carte */
    width: 100%;
    max-width: 800px;
    padding: 60px;

    /* Coins arrondis pour la douceur, comme demandé sur les images */
    border-radius: 20px;
    border: 1px solid #222;
    /* Bordure subtile */
    position: relative;
}

/* Suppression de la barre verte du haut (trop daté) */
.form-box::before {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    color: #888;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    background: #000;
    /* Fond noir profond pour les champs */
    border: 1px solid #333;
    color: white;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 8px;
    /* Légers arrondis */
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green-acid);
    /* Juste la couleur de la marque, pas de néon */
    outline: none;
    background: #050505;
}

.btn-submit {
    background: var(--green-acid);
    color: var(--dark);
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 18px 40px;
    width: 100%;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 20px;
    border-radius: 50px;
    /* Forme de pilule moderne */
}

.btn-submit:hover {
    background: white;
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    .nav-dock {
        width: 95%;
        justify-content: space-between;
        padding: 10px;
        gap: 5px;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 10px;
        justify-content: center;
    }

    .logo-fixed {
        font-size: 1.2rem;
        left: 20px;
    }

    /* Reset du ZigZag sur Mobile pour meilleure lecture */
    .text-block,
    .align-right,
    .text-block:last-child {
        max-width: 100%;
        margin: 0 auto;
        text-align: left !important;
        align-items: flex-start !important;
        padding: 50px 20px;
        min-height: auto;
    }

    .text-block h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: auto;
        min-height: 400px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 30px 20px;
    }
}

/* =========================================
   STYLE DES PAGES PROJETS (PORTFOLIO)
   ========================================= */

/* Bouton Retour Flottant */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.back-btn:hover {
    background: var(--green-acid);
    color: var(--dark);
    border-color: var(--green-acid);
}

/* Header Projet */
.project-header {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--dark));
    z-index: 1;
}

.project-title-box {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.project-title-box h1 {
    font-size: 4rem;
    margin: 20px 0;
    -webkit-text-stroke: 0;
    color: var(--off-white);
}

.tag-category {
    color: var(--green-acid);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--green-acid);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-subtitle {
    font-size: 1.3rem;
    color: #ccc;
}

/* Barre d'infos */
.project-infos-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    background: #111;
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #222;
}

.info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-col .label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-col .value {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--off-white);
}

/* Contenu */
.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.text-part {
    flex: 1;
}

.text-part h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-part p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 20px;
    text-align: justify;
}

.img-part {
    flex: 1;
}

/* MODIFICATION : Arrondi des images et Taille Fixe */
.img-part img {
    width: 100%;
    height: 400px;
    /* Taille fixe imposée */
    object-fit: cover;
    /* Recadre l'image pour remplir le bloc sans déformer */
    border-radius: 20px;
    border: 1px solid #333;
    filter: grayscale(20%);
    transition: 0.3s;
}

.img-part:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Galerie */
.project-gallery h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Carousel */
.gallery-carousel {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    cursor: grab;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-track {
    display: flex;
    gap: 20px;
}

/* MODIFICATION : Carousel Images */
.carousel-track img {
    height: 300px;
    width: auto;
    /* Preserve aspect ratio */
    min-width: 250px;
    /* Ensure they aren't too thin */
    max-width: 450px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.3s;
    filter: grayscale(50%);
    flex-shrink: 0;
}


/* Carousel Wrapper (Container avec Boutons) */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Boutons Navigation */
.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--green-acid);
    color: var(--dark);
    border-color: var(--green-acid);
    transform: scale(1.1);
}

.carousel-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive Projets */
@media (max-width: 900px) {
    .project-header {
        height: 60vh;
    }

    .project-title-box h1 {
        font-size: 2.5rem;
    }

    .project-infos-bar {
        gap: 30px;
    }

    .content-row {
        flex-direction: column !important;
        gap: 30px;
    }

}