/* ==========================================================
   Evust - Landing Page
   ========================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
    --bg-primary: #0a0a0a;    --bg-elevated: #111111;    --surface: #161616;    --surface-2: #1c1c1c;    --surface-3: #222222;
    --text-primary: #f4f4f5;    --text-secondary: #a1a1aa;    --text-muted: #9ca3af;

    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.10);
    --border-hover: rgba(255,255,255,0.18);

    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --accent-soft: rgba(167, 139, 250, 0.12);
    --accent-border: rgba(167, 139, 250, 0.28);
    --accent-glow: rgba(167, 139, 250, 0.45);

    --studio: #c084fc;
    --studio-soft: rgba(192, 132, 252, 0.12);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --measure: 65ch; /* longueur de ligne optimale pour les blocs de texte long */

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 180ms var(--ease);
    --t-base: 280ms var(--ease);
    --t-slow: 520ms var(--ease);
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    position: relative;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

dfn {
    font-style: inherit;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
/* Caché visuellement (technique clip-path 2026) tant que pas focus/actif.
   clip-path est préféré à une translation off-screen : screen magnifiers
   suivent l'élément correctement et la sémantique reste intacte. */
.skip-link:not(:focus):not(:active) {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    width: 1px;
}
.skip-link:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* Évite la bordure de focus visible sur le <main> ciblé par le skip link.
   :focus-visible ne s'applique que quand un indicateur est pertinent ;
   le focus programmatique via skip link clavier l'est, donc on le neutralise. */
main:focus-visible {
    outline: none;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}
body::before {
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    opacity: 0.5;
}
body::after {
    bottom: -400px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, transparent 65%);
    opacity: 0.55;
}

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

.container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

@supports (padding: env(safe-area-inset-left)) {
    .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1080px;
    z-index: 100;
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

nav.is-scrolled {
    background: rgba(10, 10, 10, 0.65);
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    max-width: none;
    margin: 0;
    padding: 10px 12px 10px 22px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-logo::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 999px;
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a[aria-current="location"] {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px var(--accent-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: 0.005em;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .accent,
.section-title .accent {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.005em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px var(--accent-glow);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
}

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

.section-header.center {
    text-align: center;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.problem-card,
.benefit-card,
.deal-card,
.cta-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    isolation: isolate;
    transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.problem-card::before,
.benefit-card::before,
.deal-card::before,
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--gradient-angle),
        transparent 0%,
        transparent 65%,
        var(--accent) 80%,
        transparent 95%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t-slow);
    pointer-events: none;
    z-index: 1;
}

.problem-card:hover,
.benefit-card:hover,
.deal-card:hover,
.cta-card:hover {
    background: var(--surface-2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.problem-card:hover::before,
.benefit-card:hover::before,
.deal-card:hover::before,
.cta-card:hover::before {
    opacity: 1;
    animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
    to { --gradient-angle: 360deg; }
}

.problem-section { background: var(--bg-elevated); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.problem-card .p-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.problem-card .p-stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.problem-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.benefit-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.benefit-source {
    color: var(--accent);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.4);
    text-underline-offset: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
    list-style: none;
}

.step-card {
    text-align: center;
    counter-increment: step;
    padding: 16px 8px;
}

.step-number {
    position: relative;
    isolation: isolate;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 20px;
    box-shadow: 0 0 24px -6px var(--accent-glow);
}

@property --step-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes step-pulse-rotate {
    0%   { opacity: 0; --step-angle: 0deg; }
    3%   { opacity: 1; --step-angle: 0deg; }
    25%  { opacity: 1; --step-angle: 360deg; }
    28%  { opacity: 0; --step-angle: 360deg; }
    100% { opacity: 0; --step-angle: 360deg; }
}

.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--step-angle),
        transparent 0%,
        transparent 60%,
        var(--accent-light) 80%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: step-pulse-rotate 16s linear infinite;
}

.step-card:nth-child(1) .step-number::before { animation-delay: 0s; }
.step-card:nth-child(2) .step-number::before { animation-delay: -12s; }
.step-card:nth-child(3) .step-number::before { animation-delay: -8s; }
.step-card:nth-child(4) .step-number::before { animation-delay: -4s; }

.step-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.deal-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.deal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--accent-soft) 0%, transparent 60%);
    pointer-events: none;
}

.deal-section .container {
    position: relative;
    z-index: 1;
}

.deal-section .section-label { color: var(--accent); }
.deal-section .section-title { color: var(--text-primary); }
.deal-section .section-subtitle { color: var(--text-secondary); }

.deal-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.deal-card {
    text-align: center;
    padding: 36px;
}

.deal-card.featured {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
    border-color: var(--accent-border);
}

.deal-card.featured::before {
    opacity: 0.5;
    animation: rotate-border 8s linear infinite;
}

.deal-card.featured:hover::before {
    opacity: 1;
}

.deal-card .deal-headline {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.deal-card.featured .deal-headline { color: var(--accent-light); }

.deal-card .deal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.roles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.role-box {
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    transition: border-color var(--t-base), transform var(--t-base);
}

.role-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.role-box.creator {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
    border-color: var(--accent-border);
}

.role-box.studio {
    background: linear-gradient(135deg, var(--studio-soft) 0%, var(--surface) 100%);
    border-color: rgba(192, 132, 252, 0.28);
}

.role-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}

.role-box.creator h3 { color: var(--accent-light); }
.role-box.studio h3 { color: var(--studio); }

.role-list {
    list-style: none;
}

.role-list li {
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

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

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.role-list .icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
.role-list .icon svg { width: 100%; height: 100%; display: block; }
.role-box.studio .role-list .icon { color: var(--studio); }
.role-box.creator .role-list .icon { color: var(--accent-light); }

.ref-section,
.section-elevated { background: var(--bg-elevated); }

.experience-bio {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.experience-bio-photo { text-align: center; }

.experience-portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-border);
    box-shadow: 0 0 60px -10px var(--accent-glow);
}

.experience-name {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    color: var(--text-primary);
}

.experience-role {
    font-size: 14px;
    color: var(--text-secondary);
}

.experience-bio-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.experience-bio-text p + p { margin-top: 20px; }

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.experience-stat-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.experience-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}

.experience-stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.experience-quote-block {
    margin-top: 48px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 40px;
}

.experience-quote-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.experience-quote {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin: 0;
    max-width: var(--measure);
}

.experience-quote p {
    margin: 0;
}

.experience-quote p + p {
    margin-top: 1.6em;
}

.faq-list {
    max-width: var(--measure);
    margin: 0 auto;
}

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

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

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 28px 44px 28px 0;
    position: relative;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    transition: color var(--t-fast);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--t-base), border-color var(--t-fast);
}

.faq-item[open] .faq-question::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: var(--accent);
}

.faq-item[open] .faq-question {
    color: var(--accent);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-answer {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 0 28px 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cta-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 100%, var(--accent-soft) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section .section-title { color: var(--text-primary); }
.cta-section .section-subtitle {
    color: var(--text-secondary);
    margin: 0 auto 40px;
}

.cta-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 40px;
    max-width: 400px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}

.cta-card {
    text-align: center;
    flex: 1;
    max-width: 400px;
    min-width: 280px;
    padding: 36px;
}

.cta-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cta-card h3 .icon { flex: none; width: 20px; height: 20px; color: var(--accent); }
.cta-card h3 .icon svg { width: 100%; height: 100%; display: block; }

.cta-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
}

.cta-card .btn-primary {
    width: 100%;
    justify-content: center;
}

.cta-card .btn-primary:hover {
}

.contact-form {
    max-width: 580px;
    margin: 0 auto;
    text-align: left;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.form-optional {
    font-weight: 400;
    color: var(--text-secondary);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14.5px;
    transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--accent);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}

.form-submit {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    font-family: var(--font-sans);
}

.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px -8px var(--accent-glow);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.form-hp {
    display: none;
}

.form-consent {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.form-consent a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-message {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-message.success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.30);
}

.form-message.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.30);
}

footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: 'Evust';
    display: block;
    font-size: clamp(7rem, 22vw, 16rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.06em;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
    margin-bottom: 30px;
    font-family: var(--font-sans);
}

footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 13.5px;
    color: var(--text-muted);
}

footer p + p { margin-top: 8px; }

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}

footer a:hover { color: var(--text-primary); }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes btn-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.btn-primary,
.nav-cta,
.form-submit {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    background: linear-gradient(
        110deg,
        #6d28d9 0%,
        #7c3aed 16%,
        #a78bfa 33%,
        #c084fc 50%,
        #d946ef 66%,
        #ec4899 83%,
        #6d28d9 100%
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
    animation: btn-shimmer 8s linear infinite;
}

.nav-cta,
.form-submit {
    background: rgba(15, 15, 15, 0.4) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    text-shadow: none !important;
    animation: none !important;
    position: relative;
    isolation: isolate;
    border: 1px solid var(--accent-border);
}

.nav-cta::before,
.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--gradient-angle),
        transparent 0%,
        transparent 60%,
        var(--accent-light) 80%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: rotate-border 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover,
.nav-cta:hover,
.form-submit:hover {
    animation-duration: 3s;
}

.nav-cta:hover,
.form-submit:hover {
    background: var(--studio) !important;
    color: var(--bg-primary) !important;
}

.nav-cta:hover {
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    section { padding: 80px 0; }
    .hero { padding: 160px 0 80px; }

    .container { padding: 0 22px; }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 20px;
    }

    .experience-bio {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }

    .experience-portrait {
        width: 180px;
        height: 180px;
    }

    .experience-stat-card { padding: 26px; }
}

@media (max-width: 768px) {
    nav {
        width: calc(100% - 16px);
        top: 12px;
    }

    .nav-inner {
        padding: 8px 8px 8px 18px;
    }

    .container { padding: 0 18px; }

    .hero { padding: 120px 0 56px; }
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        letter-spacing: -0.025em;
    }
    .hero-sub { font-size: 16px; }

    section { padding: 56px 0; }

    .section-header { margin-bottom: 40px; }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .problem-grid,
    .steps-grid,
    .deal-cards,
    .roles-container,
    .benefit-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .experience-bio {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        margin-bottom: 32px;
    }

    .experience-bio-text {
        text-align: start;
    }

    .experience-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .experience-portrait {
        width: 160px;
        height: 160px;
    }

    .experience-quote {
        font-size: 16px;
        padding-left: 18px;
        line-height: 1.7;
    }

    .experience-stat-card,
    .experience-quote-block { padding: 24px; }

    .experience-quote-block { margin-top: 32px; }

    .experience-stat-number { font-size: 32px; }

    .problem-card,
    .benefit-card,
    .deal-card,
    .cta-card {
        padding: 24px;
    }

    .role-box { padding: 28px 22px; }

    .deal-card.featured { transform: none; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .nav-toggle { display: block; }
    .cta-options { flex-direction: column; align-items: center; }
    .contact-form { padding: 26px 22px; }

    body::before {
        width: 600px;
        height: 500px;
        top: -240px;
        filter: blur(90px);
    }
    body::after {
        width: 500px;
        height: 500px;
        bottom: -300px;
        right: -150px;
        filter: blur(90px);
    }

    footer { padding: 60px 0 24px; }
    footer::before {
        font-size: clamp(5rem, 24vw, 10rem);
        margin-bottom: 20px;
    }

    /* `display: flex` hérité de la règle desktop : on laisse l'élément
       dans l'arbre, on cache via visibility + max-height + opacity
       pour que la transition s'anime correctement. */
    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 16px;
        border: 1px solid var(--border-strong);
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.35s ease,
            opacity 0.3s ease,
            padding 0.35s ease,
            visibility 0s linear 0.35s;
    }

    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 12px 16px;
        transition:
            max-height 0.35s ease,
            opacity 0.3s ease,
            padding 0.35s ease,
            visibility 0s linear 0s;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 8px;
    }

    .nav-links a {
        display: block;
        padding: 14px 8px;
        font-size: 15px;
        border-radius: 8px;
    }

    .nav-cta {
        text-align: center;
        display: block !important;
        padding: 12px 18px !important;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .hero { padding: 104px 0 44px; }
    .hero-badge {
        font-size: 12px;
        padding: 7px 14px;
        margin-bottom: 24px;
    }
    .hero h1 {
        font-size: clamp(1.75rem, 9vw, 2.25rem);
    }
    .hero-sub { font-size: 15px; }

    section { padding: 48px 0; }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .section-subtitle { font-size: 15px; }

    .problem-card,
    .benefit-card,
    .deal-card,
    .cta-card {
        padding: 22px 20px;
    }

    .role-box { padding: 22px 18px; }

    .contact-form {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .experience-portrait {
        width: 140px;
        height: 140px;
    }

    .experience-quote {
        font-size: 15px;
        padding-left: 14px;
    }

    .experience-stat-card,
    .experience-quote-block { padding: 22px; }

    .experience-stat-number { font-size: 28px; }

    .deal-card .deal-headline { font-size: 19px; }
    .deal-card .deal-desc { font-size: 13.5px; }

    .btn-primary {
        padding: 13px 22px;
        font-size: 14.5px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .nav-logo { font-size: 17px; }

    footer::before {
        font-size: clamp(4rem, 22vw, 7rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.legal-content {
    padding: 40px 0 120px;
}

.legal-content .container {
    max-width: 760px;
}

.legal-content article + article {
    margin-top: 12px;
}

.legal-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 56px;
    margin-bottom: 16px;
}

.legal-content article:first-child h2 {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

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

.legal-content ul {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    padding-left: 0;
    list-style: none;
    margin-bottom: 12px;
}

.legal-content ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t-base);
}

.legal-content a:hover {
    text-decoration-color: var(--accent);
}
