/* ========================================
   VARIABLES
======================================== */

:root {
    --green-dark: #173f35;
    --green: #245548;
    --green-light: #dfe9e3;

    --beige: #f5f1e8;
    --beige-dark: #ebe4d5;

    --white: #ffffff;
    --text: #20302b;
    --text-light: #64716c;

    --border: #dfe3dd;

    --max-width: 1160px;

    --radius: 18px;
}


/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--beige);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* ========================================
   GLOBAL
======================================== */

.container {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: 0 auto;
}

section {
    padding: 110px 0;
}

.eyebrow {
    margin-bottom: 16px;

    color: var(--green);
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-bottom: 20px;

    color: var(--green-dark);

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading h2 span {
    color: var(--green);
}

.section-heading > p:last-child {
    max-width: 650px;

    color: var(--text-light);
    font-size: 1.05rem;
}


/* ========================================
   NAVBAR
======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(245, 241, 232, 0.92);

    border-bottom: 1px solid rgba(23, 63, 53, 0.08);

    backdrop-filter: blur(12px);
}

.navbar-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--green-dark);

    font-size: 1.05rem;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    color: var(--text-light);

    font-size: 0.92rem;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.nav-links .nav-contact {
    padding: 9px 17px;

    color: var(--white);
    background: var(--green-dark);

    border-radius: 999px;
}

.nav-links .nav-contact:hover {
    color: var(--white);
}


/* ========================================
   BUTTONS
======================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--green-dark);
}

.button-primary:hover {
    background: var(--green);
}

.button-secondary {
    color: var(--green-dark);

    border: 1px solid var(--green-dark);
}

.button-secondary:hover {
    color: var(--white);
    background: var(--green-dark);
}

.button-light {
    color: var(--green-dark);
    background: var(--white);
}

.button-light:hover {
    background: var(--beige);
}


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

.hero {
    padding: 90px 0 115px;

    background: var(--beige);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    gap: 80px;

    align-items: center;
}

.hero-text {
    max-width: 670px;
}

.hero h1 {
    margin-bottom: 28px;

    color: var(--green-dark);

    font-size: clamp(2.8rem, 6vw, 5.1rem);
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;

    color: var(--green);
}

.hero-description {
    max-width: 610px;

    margin-bottom: 26px;

    color: var(--text-light);

    font-size: 1.12rem;
    line-height: 1.75;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 34px;
}

.tags span {
    padding: 6px 12px;

    color: var(--green);

    background: var(--green-light);

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-placeholder {
    width: min(100%, 470px);
    aspect-ratio: 4 / 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--green);

    background: var(--beige-dark);

    border: 1px solid rgba(23, 63, 53, 0.1);
    border-radius: 30px;
}

.placeholder-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    color: var(--white);
    background: var(--green-dark);

    border-radius: 50%;

    font-size: 1.5rem;
}

.visual-placeholder p {
    font-weight: 600;
}

.visual-placeholder span {
    margin-top: 5px;

    color: var(--text-light);

    font-size: 0.85rem;
}




/* ========================================
   SOLUTIONS
======================================== */

.solutions {
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.solution-card {

    padding: 30px;

    background: var(--beige);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.solution-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(23, 63, 53, 0.08);
}


/* Icônes des solutions */

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    color: var(--green-dark);
    background: #dfe9e3;

    border-radius: 14px;
}

.solution-icon svg {
    width: 25px;
    height: 25px;

    stroke-width: 1.7;
}

.solution-card h3 {
    margin-bottom: 10px;

    color: var(--green-dark);

    font-size: 1.1rem;
}

.solution-card p {
    color: var(--text-light);

    font-size: 0.94rem;
}


/* ========================================
   DEMONSTRATEURS
======================================== */

.demonstrateurs {
    background: var(--beige);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.demo-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.demo-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 40px rgba(23, 63, 53, 0.09);
}

.demo-visual {
    height: 190px;

    overflow: hidden;

    background: var(--green-light);
}

.demo-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.demo-visual .thumbnail-documents {
    width: auto;
    max-width: none;
    height: 100%;

    object-fit: initial;

    margin: 0;
}

.demo-content {
    display: flex;
    flex-direction: column;

    flex: 1;
    padding: 28px;
}

.demo-category {
    margin-bottom: 10px;

    color: var(--green);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.demo-content h3 {
    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: 1.25rem;
    line-height: 1.25;
}

.demo-content > p:not(.demo-category) {
    margin-bottom: 22px;

    color: var(--text-light);

    font-size: 0.92rem;
}

.demo-link {
    margin-top: auto;
    padding: 0;

    align-self: flex-start;

    color: var(--green);
    background: none;

    border: none;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;
}

.demo-link:hover {
    text-decoration: underline;
}


/* ========================================
   POP-UP VIDEO DEMONSTRATEURS
======================================== */



/* Fenêtre générale */

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.demo-modal.is-open {
    display: flex;
}


/* Fond sombre */

.demo-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 25, 21, 0.72);
    backdrop-filter: blur(4px);
}


/* Fenêtre contenant la vidéo */

.demo-modal-content {
    position: relative;
    z-index: 1;

    width: min(100%, 1000px);

    padding: 20px;

    background: var(--white);

    border-radius: 22px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}


/* Haut de la fenêtre */

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.demo-modal-header h2 {
    color: var(--green-dark);

    font-size: 1.1rem;
}


/* Croix */

.demo-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    color: var(--green-dark);
    background: var(--beige);

    border: none;
    border-radius: 50%;

    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;
}

.demo-modal-close:hover {
    background: var(--beige-dark);
}


/* Vidéo horizontale */

.demo-modal-video {
    display: block;

    width: 100%;
    max-height: calc(100vh - 150px);

    background: #000;

    border-radius: 14px;
}


/* Empêche la page de défiler derrière la pop-up */

body.modal-open {
    overflow: hidden;
}


@media (max-width: 650px) {

    .demo-modal {
        padding: 12px;
    }

    .demo-modal-content {
        padding: 14px;
        border-radius: 18px;
    }

    .demo-modal-video {
        max-height: calc(100vh - 120px);
    }

}


/* ========================================
   EXPERTISE
======================================== */

.expertise {
    background: var(--white);
}

.expertise-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* ========================================
   CARTE DE PRESENTATION
======================================== */

.expertise-profile {
    display: flex;
    flex-direction: column;

    padding: 48px;

    color: var(--white);
    background: var(--green-dark);

    border-radius: 24px;
}

.expertise-profile .eyebrow {
    color: var(--green-light);
}

.expertise-profile h2 {
    margin-bottom: 24px;

    font-size: clamp(2rem, 2.7vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.expertise-profile > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);

    font-size: 1rem;
    line-height: 1.8;
}

.expertise .section-heading {
    margin-bottom: 32px;
}

.expertise .section-heading h2 {
    margin-bottom: 0;
}


/* Compétences techniques dans la carte verte */

.expertise-profile .expertise-technologies {
    margin-top: auto;
    padding-top: 28px;
}

.expertise-profile .expertise-technologies::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.expertise-profile .expertise-technologies .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.expertise-profile .competence-tags span {
    color: #ffffff;
    background: #2d5147;
    border: 1px solid rgba(255, 255, 255, 0.12);
}


/* ========================================
   CARTE DES REALISATIONS
======================================== */

.expertise-competences {
    padding: 40px;

    background: var(--beige);

    border: 1px solid var(--border);
    border-radius: 24px;
}

.expertise-competences > .eyebrow {
    margin-bottom: 12px;
}

/* Chaque réalisation */

.experience-item {
    padding: 19px 0;

    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    margin-bottom: 8px;

    color: var(--green-dark);

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.experience-item p {
    color: var(--text-light);

    font-size: 0.9rem;
    line-height: 1.65;
}



/* ========================================
   COMPETENCES TECHNIQUES
======================================== */


.expertise-technologies .eyebrow {
    margin-bottom: 14px;

    font-size: 0.72rem;
}

.competence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competence-tags span {
    padding: 6px 11px;

    color: var(--green);
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 500;
}

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


@media (max-width: 650px) {

    .expertise-profile,
    .expertise-competences {
        padding: 28px;
    }

    .expertise-profile h2 {
        font-size: 2rem;
    }

    .experience-item h3 {
        font-size: 1rem;
    }

}

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

.contact {
    background: var(--green-dark);

    color: var(--white);
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.contact-text {
    max-width: 700px;
}

.contact .eyebrow {
    color: var(--green-light);
}

.contact h2 {
    margin-bottom: 22px;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;

    letter-spacing: -0.04em;
}

.contact h2 span {
    color: var(--green-light);
}

.contact-text > p:last-child {
    max-width: 620px;

    color: rgba(255, 255, 255, 0.72);
}


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

.footer {
    padding: 28px 0;

    color: rgba(255, 255, 255, 0.6);

    background: #102f28;

    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
   RESPONSIVE — TABLET
======================================== */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero-text {
        max-width: 760px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .visual-placeholder {
        width: 100%;
        max-width: 500px;
        aspect-ratio: 16 / 9;
    }


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

    .demo-card {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .demo-visual {
        height: 100%;
        min-height: 250px;
    }

    .expertise-inner {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ========================================
   RESPONSIVE — MOBILE
======================================== */

@media (max-width: 650px) {

    section {
        padding: 75px 0;
    }

    .container {
        width: min(
            calc(100% - 32px),
            var(--max-width)
        );
    }

    .navbar-inner {
        min-height: 68px;
    }

    .nav-links a:not(.nav-contact) {
        display: none;
    }

    .hero {
        padding: 65px 0 80px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .visual-placeholder {
        aspect-ratio: 4 / 3;
    }

    .section-heading {
        margin-bottom: 38px;
    }

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


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

    .demo-card {
        display: block;
    }

    .demo-visual {
        height: 170px;
        min-height: 0;
    }

    .contact-inner {
        gap: 35px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }
}
/* ========================================
   TITRE PERSONNEL ET SOUS-TITRE
======================================== */
.hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 6vw, 5.1rem);
}
.hero-subtitle {
    margin-bottom: 25px;
    color: var(--green-dark);
    font-size: clamp(1.45rem, 2.7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 600;
}
.hero-subtitle span {
    display: block;
    color: var(--green);
}
/* Apparition progressive, activée uniquement par le script. */
.reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-ready { opacity: 1; transform: none; transition: none; }
}


/* ========================================
   VIDEO DE PRESENTATION
======================================== */

.presentation-video-wrapper {
    position: relative;
    width: min(100%, 470px);
}

.presentation-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;

    padding: 7px 12px;

    color: var(--white);
    background: var(--green-dark);

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    pointer-events: none;
}

.presentation-video {
    display: block;

    width: 100%;
    aspect-ratio: 31 / 40;

    object-fit: cover;
    object-position: center 55%;

    background: var(--beige-dark);

    border: 1px solid rgba(23, 63, 53, 0.1);
    border-radius: 24px;
}

@media (max-width: 900px) {

    .presentation-video-wrapper {
        width: 100%;
        max-width: 500px;
    }

}

@media (max-width: 650px) {

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

}

/* ========================================
   MENTIONS LEGALES
======================================== */

.legal-page {
    background: var(--beige);
}

.legal-header {
    padding: 32px 0;
}

.legal-back {
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-back:hover {
    text-decoration: underline;
}

.legal-main {
    padding: 20px 0 100px;
}

.legal-container {
    max-width: 820px;
}

.legal-main h1 {
    margin-bottom: 35px;

    color: var(--green-dark);

    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.legal-section {
    padding: 22px 0;

    border-top: 1px solid var(--border);
}

.legal-section h2 {
    margin-bottom: 18px;

    color: var(--green-dark);

    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.legal-section p {
    margin-bottom: 8px;

    color: var(--text-light);

    line-height: 1.55;
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section a {
    color: var(--green);
}

.legal-update {
    margin-top: 35px;

    color: var(--text-light);

    font-size: 0.8rem;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}