:root {
    --bg: #0a0a0a;
    --bg-soft: #131313;
    --bg-alt: #1a1a1a;
    --ink: #f0ede5;
    --ink-soft: #8a877f;
    --line: #2a2a2a;
    --gold: #d4a93a;
    --gold-soft: #e6c163;
    --steel: #3d4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───── NAV ───── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, padding 0.4s;
}

nav.scrolled { border-bottom-color: var(--line); padding: 0.9rem 3rem; }

.nav-brand { display: flex; align-items: center; gap: 0.9rem; }
.nav-logo { height: 36px; transition: height 0.4s; }
nav.scrolled .nav-logo { height: 30px; }

.nav-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--gold);
    border-left: 1px solid var(--line);
    padding-left: 0.9rem;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 500;
    align-items: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--gold-soft); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold);
    color: var(--bg) !important;
    padding: 0.7rem 1.3rem;
    font-weight: 600;
    transition: background 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-soft); color: var(--bg) !important; }

/* ───── HERO ───── */
.hero {
    min-height: 100vh;
    padding: 9rem 3rem 5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    top: -300px; right: -300px;
    background: radial-gradient(circle, rgba(212, 169, 58, 0.08), transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.hero-eyebrow::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero h1 em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    text-transform: none;
    letter-spacing: -0.01em;
}

.hero-lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 65ch;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-lede strong { color: var(--ink); font-weight: 500; }

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2rem;
    background: var(--gold);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    transition: all 0.4s;
    border: 1px solid var(--gold);
}

.cta:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}

.cta-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.cta-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.arrow { transition: transform 0.4s; }
.cta:hover .arrow { transform: translateX(4px); }

/* Hero visual */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-svg {
    width: 100%;
    max-width: 620px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 80px rgba(212, 169, 58, 0.08));
    animation: laptopFloat 6s ease-in-out infinite;
}

@keyframes laptopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-frame { position: absolute; inset: 0; border: 1px solid var(--line); }

.hero-frame::before, .hero-frame::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.hero-frame::before { top: -1px; left: -1px; width: 30px; height: 1px; }
.hero-frame::after { top: -1px; left: -1px; width: 1px; height: 30px; }

.hero-shape {
    position: absolute;
    inset: 1.5rem;
    background: linear-gradient(135deg, #1c2230 0%, #0d1119 100%);
    overflow: hidden;
}

.hero-shape::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 169, 58, 0.25), transparent 50%);
    animation: drift 18s ease-in-out infinite;
}

.hero-shape::after {
    content: '';
    position: absolute;
    top: -10%; bottom: -10%;
    left: 50%;
    width: 6px;
    background: var(--gold);
    transform: rotate(15deg);
    box-shadow: 0 0 30px rgba(212, 169, 58, 0.6);
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8%, 5%); }
}

.hero-mark {
    position: absolute;
    bottom: 2rem; left: 2rem;
    color: var(--ink);
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    z-index: 2;
    line-height: 1.8;
}

.hero-mark span {
    display: block;
    color: var(--gold);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    text-transform: none;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem; left: 3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-hint::after {
    content: '';
    width: 60px; height: 1px;
    background: var(--ink-soft);
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: left;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleX(0.4); }
    50% { transform: scaleX(1); }
}

/* ───── SECTIONS ───── */
section { padding: 8rem 3rem; position: relative; }

.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.section-label::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 22ch;
    text-transform: uppercase;
}

.section-title em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    text-transform: none;
}

/* ───── ABOUT ───── */
.about {
    background: var(--bg-soft);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    max-width: 56ch;
}

.about-text p:first-child {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    font-style: italic;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.stat-num {
    font-family: 'Archivo', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    margin-top: 0.6rem;
    font-weight: 500;
}

/* ───── MODULES (ex-services) ───── */
.modules-intro {
    max-width: 60ch;
    margin-top: 1.5rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.modules-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.module {
    padding: 3rem 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.4s;
    cursor: default;
    position: relative;
}

.module:nth-child(3n) { border-right: none; }
/* Last row (5 items total): items 4 and 5 lose bottom border */
.module:nth-last-child(-n+2) { border-bottom: none; }
.module:hover { background: var(--bg-soft); }

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.module-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 300;
}

.badge {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 2px;
    white-space: nowrap;
}

.module h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.module-pitch {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.module-list {
    list-style: none;
    padding: 0;
}

.module-list li {
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.module-list li:last-child { border-bottom: none; }

.module-list li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ───── CONTACT ───── */
.contact {
    background: var(--bg);
    text-align: center;
    padding: 10rem 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.contact::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 169, 58, 0.06), transparent 70%);
    pointer-events: none;
}

.contact .section-label { justify-content: center; }

.contact h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.contact h2 em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    text-transform: none;
}

.contact-intro {
    max-width: 50ch;
    margin: 1.5rem auto 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.contact-statement {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    max-width: none;
}

.contact-statement em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    text-transform: none;
}

.contact-baseline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--ink-soft);
    margin-top: 0;
    letter-spacing: 0.01em;
}

.contact-email {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-style: italic;
    font-weight: 300;
    color: var(--ink);
    text-decoration: none;
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
    transition: border-color 0.4s, color 0.4s;
}

.contact-email:hover {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

.contact-info {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
    text-align: left;
    position: relative;
}

.info-block-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gold);
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.info-block-value {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.6;
}

/* ───── FOOTER ───── */
footer {
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    background: var(--bg);
}

footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold); }

/* ───── REVEAL ANIM ───── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.menu-toggler {
    display: none; /* Caché sur PC */
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    line-height: 1;
}

.menu-toggler:hover {
    color: var(--gold);
}

/* ───── RESPONSIVE ───── */
@media (max-width: 1024px) {
    /* -- NAV -- */
    nav { padding: 1rem 1.25rem; }
    nav.scrolled { padding: 0.75rem 1.25rem; }
    .nav-logo { height: 28px; }
    .nav-tagline { display: none; }
    
    .menu-toggler {
        display: block; /* Affiche le burger sur mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-bottom: 1px solid transparent;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 2rem 0;
        border-bottom: 1px solid var(--line);
    }

    /* -- RESTE DU SITE (ce qui avait été effacé) -- */
    .hero {
        grid-template-columns: 1fr;
        padding: 7rem 1.25rem 4rem;
        gap: 3rem;
        min-height: auto;
    }
    .scroll-hint { display: none; }
    section { padding: 5rem 1.25rem; }
    .about { grid-template-columns: 1fr; gap: 3rem; }
    .about-stats { grid-template-columns: 1fr; gap: 2rem; }
    .modules-grid { grid-template-columns: 1fr; }
    .module { border-right: none !important; }
    .contact { padding: 6rem 1.25rem; }
    .contact-info { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    footer { flex-direction: column; gap: 1rem; padding: 2rem 1.25rem; text-align: center; }
}

.modal {
    --bs-modal-color: #212529;
}


.btn-primary {
    --bs-btn-color: var(--bg);
    --bs-btn-bg: var(--gold);
    --bs-btn-border-color: var(--gold);
    --bs-btn-hover-color: var(--gold);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: var(--gold);
    --bs-btn-focus-shadow-rgb: 73, 85, 242;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #212cc0;
    --bs-btn-active-border-color: #1f29b4;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ddac2c;
    --bs-btn-disabled-border-color: #ddac2c;
}

/* ───── BANNIÈRE FACTURATION ÉLECTRONIQUE ───── */
.widget_banner-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem; /* Espace avant les boutons CTA */
    max-width: 100%;
    backdrop-filter: blur(10px);
}

.widget_banner-section-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget_banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget_banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(212, 169, 58, 0.1); /* Fond légèrement doré */
    color: var(--gold);
    border-radius: 8px;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.widget_banner-title {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.widget_banner-subtitle {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

/* Ajustement sur mobile */
@media (max-width: 1024px) {
    .widget_banner-section {
        max-width: 100%;
        padding: 1rem;
    }

    .widget_banner-content {
        align-items: flex-start;
    }

    .widget_banner-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}
