:root {
    /* Palette ultra minimaliste / Graphique */
    --bg: #030303;
    --bg-alt: #0a0a0a;
    --fg: #ffffff;
    --fg-muted: #666666;
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.4);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --pad: clamp(20px, 5vw, 60px);
    --max-w: 1440px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--fg);
    color: var(--bg);
}

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

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.text-mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

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

/* --- LAYOUT --- */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

section {
    padding: clamp(80px, 15vh, 180px) 0;
    border-bottom: 1px solid var(--border);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    background: #e0e0e0;
}

.btn-outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--fg);
    color: var(--bg);
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 24px var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
    padding: 16px var(--pad);
    border-bottom-color: var(--border);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 48px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a {
    color: var(--fg-muted);
    transition: color 0.3s ease;
    position: relative;
}

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

@media (max-width: 900px) {
    .nav-links { display: none; }
}

/* --- HERO --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-size: 100px 100px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-dynamic-wrapper {
    min-height: clamp(100px, 18vw, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.hero-dynamic-text {
    font-family: var(--font-display);
    font-size: clamp(40px, 7.5vw, 110px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    color: var(--fg-muted);
    word-spacing: 0.15em;
    overflow-wrap: break-word;
}

/* The active letters Y T T Y will be pure white */
.hl-ytty {
    color: var(--fg);
}

.hero-sub {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* --- MARQUEE --- */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--border-hover);
    color: transparent;
    padding: 0 40px;
    white-space: nowrap;
}

@keyframes scroll-left {
    to { transform: translateX(-50%); }
}

/* --- EXPERTISE --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin-top: 80px;
}

.pillar {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 32px;
    transition: background 0.4s ease;
    position: relative;
    background: var(--bg);
}

.pillar:hover {
    background: var(--bg-alt);
}

.pillar .num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 300;
    color: var(--fg-muted);
    margin-bottom: 40px;
}

.pillar h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.pillar p {
    color: var(--fg-muted);
    font-size: 14px;
}

@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars-grid { grid-template-columns: 1fr; } }

/* --- PROMESSE (STICKY) --- */
.promises-container {
    margin-top: 80px;
    position: relative;
}

.promise-card {
    position: sticky;
    top: 120px; /* Stacking offset */
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: clamp(40px, 6vw, 80px);
    margin-bottom: 40px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
}

.promise-card:nth-child(1) { top: 120px; z-index: 1; }
.promise-card:nth-child(2) { top: 140px; z-index: 2; }
.promise-card:nth-child(3) { top: 160px; z-index: 3; }

.promise-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
}

.promise-idx {
    font-family: var(--font-display);
    font-size: clamp(80px, 10vw, 160px);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-hover);
}

.promise-content h3 {
    font-size: clamp(32px, 4vw, 56px);
    margin-bottom: 32px;
}

.promise-content p {
    color: var(--fg-muted);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 24px;
}

.promise-gain {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg);
    display: flex;
    gap: 24px;
}
.promise-gain span { color: var(--fg-muted); text-transform: uppercase; }

@media (max-width: 800px) {
    .promise-grid { grid-template-columns: 1fr; gap: 24px; }
    .promise-idx { font-size: 80px; }
    .promise-card {
        position: relative;
        top: auto !important; /* Désactive l'effet sticky sur mobile */
    }
}

/* --- METHODE (CANVAS) --- */
.method-canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    display: grid;
    place-items: center;
}

canvas#pyramidCanvas {
    width: 80%;
    height: 80%;
    display: block;
}

.method-list {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    list-style: none;
}

.method-list li {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
}

.method-list .num {
    font-family: var(--font-mono);
    color: var(--fg-muted);
}

.method-list h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

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

.method-list p {
    color: var(--fg-muted);
    font-size: 14px;
}

/* --- STATS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-box {
    padding: 80px 40px;
    border-right: 1px solid var(--border);
    text-align: center;
}
.stat-box:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(60px, 8vw, 120px);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 200px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-box { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 20px; }
    .stat-box:last-child { border-bottom: none; }
}

/* --- FAQ --- */
.faq-list {
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    text-align: left;
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--fg-muted);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
    padding-bottom: 40px;
    color: var(--fg-muted);
    max-width: 800px;
}

.faq-item.active .faq-content { max-height: 400px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- FOOTER & FINAL CTA --- */
.final-cta {
    text-align: center;
    padding: 120px 0;
    background: var(--bg-alt);
}

.final-cta h2 {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 120px;
}

.footer h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer ul a {
    font-size: 14px;
    color: var(--fg);
    transition: color 0.3s ease;
}
.footer ul a:hover { color: var(--fg-muted); }

.footer-massive {
    font-family: var(--font-display);
    font-size: 18vw;
    line-height: 0.75;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    user-select: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.98);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--fg);
    z-index: 10;
    background: var(--bg);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.modal-side {
    background: var(--bg-alt);
    padding: 40px;
    border-right: 1px solid var(--border);
}
.modal-body { padding: 40px; }

@media (max-width: 800px) {
    .modal-content { grid-template-columns: 1fr; }
    .modal-side { display: none; }
    .nav .btn{display:none;}
    .promise-content h3{font-size:20px;}
    .hero-dynamic-text{font-size:30px;}
}
