﻿/* ═══════════════════════════════════════════════════════════
   VARIABLES GLOBALES
═══════════════════════════════════════════════════════════ */
:root {
    --bleu: rgb(56, 123, 181);
    --gris: rgb(179, 179, 179);
    --blanc: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHIE GLOBALE
═══════════════════════════════════════════════════════════ */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bleu);
    line-height: 1.15;
}

h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--bleu);
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bleu);
    line-height: 1.3;
}

p {
    font-size: 1rem;
    color: #222;
    line-height: 1.75;
    text-align: justify;
}

.intro {
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    scroll-margin-top: 80px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}

    header.scrolled {
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    height: 60px;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

    nav a:hover {
        color: var(--bleu);
    }

header.scrolled nav a {
    color: #333;
}

    header.scrolled nav a:hover {
        color: var(--bleu);
    }

header.scrolled .contact-btn {
    color: white !important;
}

/* Navigation sur pages secondaires (fond clair dès le départ) */
.nav-legal a {
    color: #333;
}

.contact-btn {
    background: var(--bleu);
    color: white !important;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 20px;
    font-size: 1.1rem;
}

    .contact-btn:hover {
        opacity: 0.9;
    }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("img/fond_hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white;
}

    .hero h1,
    .hero h2,
    .hero p {
        color: white;
    }

.hero-content {
    width: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.cta {
    display: inline-block;
    margin-top: 30px;
    margin-left: 20px;
    background: var(--bleu);
    color: white !important;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

    .cta:hover {
        opacity: 0.9;
    }

/* ═══════════════════════════════════════════════════════════
   SECTION SERVICES — CARDS
═══════════════════════════════════════════════════════════ */
.section {
    padding: 80px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 30px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

    .card h3,
    .card p {
        color: white;
    }

    .card > img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
        border-radius: 30px;
    }

    .card.visible {
        opacity: 1;
        transform: translateY(0);
    }

.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
}

.card-icon {
    width: 32px;
    height: auto;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.card p {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.9s;
    max-height: 0;
    overflow: hidden;
}

.card:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

.card:hover .card-content {
    padding-bottom: 35px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: 0.3s;
}

.card hr {
    border: none;
    height: 1px;
    background: var(--gris);
    margin: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.9s;
}

.card:hover hr {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   SECTION METHODOLOGY
═══════════════════════════════════════════════════════════ */
#methodology {
    height: 400vh;
    position: relative;
}

.sticky-frame {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    overflow: hidden;
}

.panel-left {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

    .panel-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.panel-right {
    width: 50%;
    height: 100%;
    background: var(--white);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding-right: max(20px, calc((100vw - 1500px) / 2));
}

.panel-right-inner {
    max-width: 750px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.intro-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 60px 52px 44px;
    background: var(--white);
    z-index: 20;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.intro-label {
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 20px;
}

.intro-title {
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.intro-rule {
    width: 36px;
    height: 2px;
    background: var(--bleu);
    margin-bottom: 22px;
}

.intro-text {
    line-height: 1.8;
    max-width: 460px;
}

/* Cards methodology — couleurs pilotées en JS */
.s-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 52px 32px;
    background: var(--white);
    will-change: transform;
}

.s-card-num {
    position: absolute;
    top: 6px;
    right: 46px;
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    pointer-events: none;
    user-select: none;
}

.s-card-step {
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.s-card-bar {
    height: 2px;
    margin-bottom: 14px;
}

.s-card-title {
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
}

.s-card-body {
    line-height: 1.75;
    max-width: 450px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION CHIFFRES
═══════════════════════════════════════════════════════════ */
.chiffres {
    background: var(--bleu);
    color: white;
    padding: 40px 0 100px;
}

    .chiffres h2,
    .chiffres h3 {
        color: white;
    }

    .chiffres .section-intro {
        color: rgba(255, 255, 255, 0.85);
        max-width: 700px;
        margin: 10px auto 0;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
    text-align: center;
    position: relative;
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

    .stat:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -20px;
        top: 20%;
        height: 30%;
        width: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

.stat-number {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

    .stat-number::after {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background: white;
        margin: 12px auto 0;
        opacity: 0.6;
    }

.stat-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 160px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.stat-label {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════
   SECTION PROJETS
═══════════════════════════════════════════════════════════ */
.projects {
    background: white;
    padding: 50px 0;
    position: relative;
    margin-top: -80px;
    border-radius: 50px 50px 0 0;
    z-index: 2;
}

    .projects .container {
        position: relative;
        z-index: 1;
    }

.projects-header {
    margin-bottom: 60px;
}

.projects-label {
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /*.project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
    }*/
    .project-card:hover .project-visual img {
        transform: scale(1.04);
    }

.project-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--bleu);
}

    .project-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.project-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(56, 123, 181, 0.3) 0%, rgba(15, 23, 42, 0.6) 100% );
    display: flex;
    align-items: flex-end;
    padding: 16px 20px;
}


.project-figure {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.project-figure-unit {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 4px;
}

.project-content {
    padding: 28px 30px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bleu);
    margin-bottom: 12px;
}

.project-content h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-content p {
    flex: 1;
}

.project-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bleu);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 123, 181, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
    align-self: flex-start;
}

    .project-link:hover {
        border-color: var(--bleu);
    }

/* Modal projets */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 680px;
    width: 90%;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: var(--bleu);
    padding: 36px 40px 28px;
    color: white;
}

    .modal-header h3 {
        color: white;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

.modal-sector {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-stat {
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

    .modal-stat:last-child {
        border-right: none;
    }

.modal-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bleu);
    line-height: 1;
    margin-bottom: 6px;
}

.modal-stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-body {
    padding: 28px 40px 36px;
}

    .modal-body h4 {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        color: var(--gris);
        margin-bottom: 10px;
        margin-top: 24px;
    }

        .modal-body h4:first-child {
            margin-top: 0;
        }

.modal-challenge {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    font-style: italic;
    border-left: 3px solid var(--bleu);
    padding-left: 16px;
    margin-bottom: 0;
}

.modal-body ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

    .modal-body ul li {
        padding: 6px 0 6px 20px;
        position: relative;
        font-size: 0.9rem;
        color: #444;
        border-bottom: 1px solid #f5f5f5;
    }

        .modal-body ul li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--bleu);
            font-weight: 700;
        }

.modal-result {
    background: #f4f7fb;
    border-radius: 10px;
    padding: 16px 20px;
    font-weight: 600;
    color: #111;
    font-size: 0.92rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: white;
    }

@media (max-width: 600px) {
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-stat:nth-child(2) {
        border-right: none;
    }

    .modal-body {
        padding: 24px 20px 28px;
    }

    .modal-header {
        padding: 28px 20px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════
   SECTION FAQ
═══════════════════════════════════════════════════════════ */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

/* Colonne gauche */
.faq-left {
    position: sticky;
    top: 100px;
}

.faq-left-content {
    position: relative;
}

.faq-label {
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.faq-heading {
    line-height: 1.05;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.faq-sub {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #777;
    position: relative;
    z-index: 1;
}

.faq-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 14vw, 13rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(56, 123, 181, 0.07);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* Colonne droite : accordions */
.faq-right {
    padding-top: 6px;
    padding-left: 80px;
    border-left: 1px solid #dde3ec;
}

.faq-item {
    border-bottom: 1px solid #dde3ec;
}

    .faq-item:first-child {
        border-top: 1px solid #dde3ec;
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.25s ease;
}

    .faq-question h3 {
        color: #111;
        transition: color 0.25s ease;
        padding: 18px 0;
    }

        .faq-question h3:hover,
        .faq-item.active .faq-question h3 {
            color: var(--bleu);
        }

/* Icône chevron */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

    .faq-icon::before,
    .faq-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 10px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.35s ease;
    }

    .faq-icon::before {
        left: 1px;
        transform: translateY(-50%) rotate(45deg);
    }

    .faq-icon::after {
        right: 1px;
        transform: translateY(-50%) rotate(-45deg);
    }

.faq-item.active .faq-icon::before {
    transform: translateY(-50%) rotate(-45deg);
}

.faq-item.active .faq-icon::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 0 22px 16px;
    border-left: 2px solid var(--bleu);
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* ═══════════════════════════════════════════════════════════
   SECTION CONTACT
═══════════════════════════════════════════════════════════ */
.contact {
    padding: 80px 0;
    background: #f7f9fc;
}

.contact-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .form-group label {
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 6px;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.95rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--bleu);
            box-shadow: 0 0 0 3px rgba(56, 123, 181, 0.15);
        }

textarea {
    resize: vertical;
    min-height: 110px;
}

#submitBtn {
    margin-top: 30px;
    padding: 10px 18px;
    background: var(--bleu);
    color: white !important;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: opacity 0.2s ease;
}

    #submitBtn:hover {
        opacity: 0.9;
    }

.form-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #6b7280;
}

.contact-info {
    padding-left: 40px;
    border-left: 1px solid #e5e7eb;
}

    .contact-info h3 {
        margin-bottom: 30px;
    }

    .contact-info strong {
        display: block;
        margin-bottom: 4px;
        color: #111;
    }

    .contact-info p {
        color: #555;
    }

.contact-quote {
    margin-top: 40px;
    padding: 25px;
    background: #f7f9fc;
    border-left: 4px solid var(--bleu);
    border-radius: 6px;
    font-style: italic;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #e9edf3;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.contact-icon {
    background: var(--bleu);
    color: white;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

    .contact-icon img {
        width: 22px;
        height: auto;
    }

/* Popup confirmation envoi */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 2000;
}

    .popup.show {
        opacity: 1;
        pointer-events: all;
    }

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

    .popup-content button {
        margin-top: 20px;
        padding: 10px 20px;
        border: none;
        background: var(--bleu);
        color: white;
        border-radius: 25px;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
    }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
    background: #0f172a;
    color: var(--gris);
    padding: 50px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
    display: block;
}

.footer-tagline {
    line-height: 1.7;
    color: var(--gris);
}

.footer h4 {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-contact p {
    color: var(--gris);
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-contact a,
.footer-legal-col a {
    color: var(--gris);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-contact a:hover,
    .footer-legal-col a:hover {
        color: white;
    }

.footer-legal-col ul {
    list-style: none;
    padding: 0;
}

    .footer-legal-col ul li {
        margin-bottom: 12px;
    }

.footer-legal-col a {
    font-size: 0.88rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gris);
}

    .footer-bottom p {
        color: var(--gris);
    }

.footer-top {
    color: var(--gris);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

    .footer-top:hover {
        color: white;
    }

/* ═══════════════════════════════════════════════════════════
   PAGES LÉGALES (mentions légales / politique confidentialité)
═══════════════════════════════════════════════════════════ */
.hero-legal {
    position: relative;
    padding: 120px 0 80px;
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

    .hero-legal::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 60vw;
        height: 60vw;
        max-width: 900px;
        max-height: 900px;
        background: url("img/logo.png") center no-repeat;
        background-size: contain;
        opacity: 0.065;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 0;
    }

.legal-wrapper {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-legal h1 {
    margin-bottom: 40px;
}

.hero-legal h2 {
    margin-top: 40px;
    margin-bottom: 12px;
}

.hero-legal p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    color: #444;
}

.hero-legal a {
    color: var(--bleu);
    text-decoration: none;
}

    .hero-legal a:hover {
        text-decoration: underline;
    }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── BURGER MENU ─────────────────────────────────────────── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    margin-right: 16px; /* ← ajouter */
}

    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

/* .burger span:nth-child(1) {
            width: 100%;
        }

        .burger span:nth-child(2) {
            width: 70%;
        }

        .burger span:nth-child(3) {
            width: 85%;
        }*/

header.scrolled .burger span {
    background: #333;
}

/* Animation burger → croix */
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .nav-overlay.open {
        opacity: 1;
    }

/* ── TABLETTE : 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {

    /* Services : 2 colonnes */
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Methodology : réduire les paddings */
    .intro-block {
        padding: 40px 36px 32px;
    }

    .s-card {
        padding: 24px 36px 26px;
    }

    /* Stats : 2×2 */
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    /* Projets : 2 colonnes */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FAQ : 1 colonne */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-left {
        position: static;
    }

    .faq-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #dde3ec;
        padding-top: 40px;
    }

    .faq-watermark {
        font-size: 8rem;
    }

    /* Contact : 1 colonne */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-top: 40px;
    }

    /* Footer : 2 colonnes */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ── MOBILE : 768px ──────────────────────────────────────── */
@media (max-width: 768px) {

    /* Burger visible */
    .burger {
        display: flex;
    }

    /* Nav mobile : panneau latéral droit */
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #0f172a;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 36px;
        gap: 8px;
        transition: right 0.35s ease;
    }

        #main-nav.open {
            right: 0;
        }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

        .nav-overlay.open {
            pointer-events: all;
        }

    #main-nav a {
        font-size: 1.1rem;
        color: #cbd5e1;
        margin-left: 0;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

        #main-nav a:last-child {
            border-bottom: none;
        }

    #main-nav .contact-btn {
        margin-top: 20px;
        margin-left: 0;
        display: inline-block;
        width: auto;
    }

    /* Hero : pleine largeur */
    .hero-content {
        width: 100%;
    }

    /* Services : 1 colonne */
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Methodology : version mobile sans image ────────────
       La section perd son comportement sticky et devient
       un bloc vertical classique                           */
    #methodology {
        height: auto;
    }

    .sticky-frame {
        position: static;
        height: auto;
        flex-direction: column;
    }

    /* Image cachée sur mobile */
    .panel-left {
        display: none;
    }

    .panel-right {
        width: 100%;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .panel-right-inner {
        height: auto;
        max-width: 100%;
    }

    .intro-block {
        position: static;
        padding: 40px 24px 28px;
        box-shadow: none;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Les cards redeviennent des blocs normaux */
    .s-card {
        position: static;
        transform: none !important; /* écrase le JS */
        opacity: 1 !important;
        padding: 28px 24px;
        border-top: 1px solid rgba(56, 123, 181, 0.15);
        box-shadow: none !important;
    }

    .s-card-num {
        font-size: 4rem;
        top: 12px;
        right: 20px;
        color: rgba(56, 123, 181, 0.11) !important;
    }

    .s-card-title {
        color: var(--bleu) !important;
    }

    .s-card-body {
        color: #555 !important;
    }

    /* Chiffres : 1 colonne */
    .stats {
        grid-template-columns: 1fr;
    }

    /* Projets : 1 colonne */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects {
        margin-top: -40px;
        border-radius: 30px 30px 0 0;
    }

    /* Contact card : supprimer le padding excessif */
    .contact-card {
        padding: 30px 20px;
    }

    /* Footer : 1 colonne */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Pages légales */
    .hero-legal {
        padding: 100px 0 60px;
    }
}

/* ── SMARTPHONE : 480px ──────────────────────────────────── */
@media (max-width: 480px) {

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Hero */
    .hero .container {
        padding-top: 80px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
    /* Stat number plus petit */
    .stat-number {
        font-size: 3rem;
    }

    /* FAQ watermark discret */
    .faq-watermark {
        font-size: 6rem;
    }

    /* Contact */
    .contact-card {
        padding: 24px 16px;
    }

    .contact-grid {
        gap: 28px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
}
