:root {
    --bg: #080c14;
    --surface: #0f172a;
    --surface2: #1a2540;
    --accent: #3b82f6;
    --accent2: #06b6d4;
    --border: rgba(59, 130, 246, 0.2);
    --text: #e2e8f0;
    --muted: #94a3b8;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6,182,212,0.12) 0%, transparent 60%),
        var(--bg);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; padding: 0 20px;
    animation: fadeUp 0.9s ease both;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59,130,246,0.1); border: 1px solid var(--border);
    border-radius: 100px; padding: 6px 18px; font-size: 0.8rem;
    color: var(--accent2); letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 28px; animation: fadeUp 0.9s 0.1s ease both;
}
.hero-eyebrow .dot, .category-tag .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent2); animation: blink 1.5s infinite;
}
h1.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800; line-height: 1.05;
    background: linear-gradient(135deg, #fff 30%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: fadeUp 0.9s 0.2s ease both; margin-bottom: 20px;
}
.hero-name {
    font-size: 1.3rem; color: var(--muted); font-weight: 400;
    animation: fadeUp 0.9s 0.3s ease both; margin-bottom: 12px;
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-weight: 600; font-size: 0.9rem;
    padding: 8px 22px; border-radius: 100px;
    animation: fadeUp 0.9s 0.4s ease both;
}
.scroll-hint {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em;
    text-transform: uppercase; animation: fadeIn 1s 1s ease both;
}
.scroll-hint::after {
    content: ''; width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 1.5s infinite;
}

/* ===================== INTRO ===================== */
.intro { display: flex; justify-content: center; padding: 80px 20px; }
.intro-card {
    background: var(--surface); border: 1px solid var(--border);
    padding: 48px; border-radius: 24px; width: min(860px, 100%);
    text-align: center; position: relative; overflow: hidden;
}
.intro-card::before {
    content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}
.intro-card h2 {
    font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
    margin-bottom: 24px; color: #fff;
}
.intro-card p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; margin-bottom: 12px; }
.intro-card strong { color: var(--text); }

/* ===================== SECTION TITLE ===================== */
.section-title { text-align: center; padding: 60px 20px 0; }
.section-title h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
}
.section-title h2 span {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin: 16px auto 0; border-radius: 2px;
}

/* ===================== CATALOGUE ===================== */
.catalogue { padding: 40px clamp(20px, 5vw, 70px) 80px; }
.category { margin-bottom: 80px; }
.category-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 36px; flex-wrap: wrap;
}
.category-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
    border: 1px solid var(--border); border-radius: 100px; padding: 8px 20px;
    font-size: 0.85rem; font-weight: 600; color: var(--accent2);
    letter-spacing: 0.05em; white-space: nowrap;
}
.category-line { flex: 1; height: 1px; background: var(--border); min-width: 20px; }
.category h3 {
    font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700;
    color: #fff; white-space: nowrap;
}
.cards { display: flex; flex-wrap: wrap; gap: 24px; }

/* ===================== CARD ===================== */
.card {
    background: var(--surface); border: 1px solid var(--border);
    width: 260px; border-radius: 20px; overflow: hidden;
    cursor: pointer; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.04));
    opacity: 0; transition: 0.3s; z-index: 0;
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.5);
}
.card:hover::before { opacity: 1; }

/* IMAGE : contain pour ne pas trop zoomer */
.card-img-wrap {
    width: 100%; height: 190px; overflow: hidden;
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.card-img-wrap img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    transition: 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.06); }

.card h4 {
    padding: 16px 20px; text-align: center;
    font-size: 1.05rem; font-weight: 600; position: relative; z-index: 1;
}
.card-arrow {
    position: absolute; bottom: 14px; right: 14px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; opacity: 0; transition: 0.3s; z-index: 2;
}
.card:hover .card-arrow { opacity: 1; }

/* ===================== SPOTLIGHT C# ===================== */
.spotlight {
    padding: 60px clamp(20px, 5vw, 60px) 100px;
}
.spotlight-intro {
    text-align: center; color: var(--muted); font-size: 1.1rem;
    line-height: 1.8; max-width: 700px; margin: 0 auto 70px;
}
.spotlight-intro strong { color: var(--accent2); }

/* Grille 3×3 : raison | vide | raison / vide | centre | vide / raison | vide | raison */
.spider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Centre */
.spider-center {
    grid-column: 2;
    grid-row: 1 / 4;
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 130px;
}
.spider-glow {
    position: absolute; inset: -30px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}
.spider-logo {
    position: relative; z-index: 2;
    width: 160px; height: 160px; border-radius: 50%;
    background: var(--surface2);
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px rgba(59,130,246,0.5);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    overflow: hidden;
}
.spider-logo img {
    width: 110px; height: 110px; object-fit: contain;
}
.spider-logo span {
    font-family: 'Syne', sans-serif; font-size: 1.4rem;
    font-weight: 800; color: #fff; letter-spacing: .05em;
}

/* SVG lignes par-dessus tout */
.spider-lines {
    position: absolute;
    inset: -120px;
    width: calc(100% + 240px);
    height: calc(100% + 240px);
    pointer-events: none;
    z-index: 1;
}
.sl {
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    opacity: 0.5;
}
.sarrow { fill: var(--accent); opacity: 0.7; }

/* Raisons */
.spider-reason {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 26px;
    max-width: 280px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.spider-reason:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.5);
}
.spider-reason::before {
    content: ''; position: absolute; top: -1px; left: 15%; right: 15%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.top-left  { grid-column: 1; grid-row: 1; justify-self: end; }
.top-right { grid-column: 3; grid-row: 1; justify-self: start; }
.bot-left  { grid-column: 1; grid-row: 3; justify-self: end; }
.bot-right { grid-column: 3; grid-row: 3; justify-self: start; }

.reason-icon { font-size: 2rem; margin-bottom: 10px; }
.spider-reason h4 {
    font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--accent2); margin-bottom: 8px;
}
.spider-reason p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ===================== FUTURE ===================== */
.future { display: flex; justify-content: center; padding: 40px 20px 100px; }
.future-card {
    background: var(--surface); border: 1px solid var(--border);
    width: min(700px, 100%); text-align: center; padding: 60px 48px;
    border-radius: 24px; position: relative; overflow: hidden;
}
.future-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59,130,246,0.1), transparent);
    pointer-events: none;
}
.future-icon {
    width: 80px; height: 80px; border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 28px;
    box-shadow: 0 0 40px rgba(59,130,246,0.4);
}
.future-card h3 {
    font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 20px;
}
.future-card p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ===================== MODAL ===================== */
.modal {
    display: none; position: fixed; z-index: 9999; inset: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    animation: modalFade 0.2s ease;
}
.modal-content {
    background: var(--surface); border: 1px solid var(--border);
    width: min(860px, 92%); max-height: 90vh; overflow-y: auto;
    margin: 5vh auto; padding: 48px; border-radius: 24px;
    position: relative; animation: modalSlide 0.3s ease;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: var(--surface2); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.close {
    position: absolute; top: 20px; right: 24px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; transition: 0.2s; color: var(--muted); line-height: 1;
}
.close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #f87171; }
.modal-content img {
    width: 100%; max-height: 280px; object-fit: contain;
    border-radius: 16px; margin-bottom: 28px;
    background: var(--surface2); padding: 16px;
}
.modal-content h2 {
    font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.modal-content p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: 1rem; }
.modal-content strong { color: var(--text); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp   { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes scrollLine {
    0%  {transform:scaleY(0);transform-origin:top}
    50% {transform:scaleY(1);transform-origin:top}
    51% {transform:scaleY(1);transform-origin:bottom}
    100%{transform:scaleY(0);transform-origin:bottom}
}
@keyframes modalFade  { from{opacity:0} to{opacity:1} }
@keyframes modalSlide { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes pulse      { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.card, .intro-card, .future-card { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .spider { display: flex; flex-direction: column; align-items: center; gap: 24px; }
    .spider-center { margin: 10px 0; }
    .spider-lines { display: none; }
    .spider-reason { max-width: 100%; width: 100%; }
    h1.hero-title { font-size: 2.5rem; }
    .cards { justify-content: center; }
    .intro-card, .future-card, .modal-content { padding: 28px 20px; }
    .category h3 { font-size: 1.2rem; }
}

/* ===================== SOMMAIRE ===================== */
.sommaire-section {
    display: flex;
    justify-content: center;
    padding: 70px 20px 20px;
}

.sommaire-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: min(860px, 100%);
    padding: 40px 48px;
    position: relative;
    overflow: hidden;
}

.sommaire-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.sommaire-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.sommaire-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; color: #fff;
    box-shadow: 0 0 20px rgba(59,130,246,0.35);
}

.sommaire-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem; font-weight: 800; color: #fff;
}

.sommaire-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sommaire-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    cursor: pointer;
}

.sommaire-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--border);
    transform: translateX(6px);
}

.sommaire-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 36px;
}

.sommaire-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sommaire-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.sommaire-text span {
    font-size: 0.83rem;
    color: var(--muted);
}

.sommaire-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    transform: translateX(-6px);
}

.sommaire-item:hover .sommaire-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .sommaire-card { padding: 28px 20px; }
    .sommaire-num  { font-size: 1.1rem; }
}

/* ===================== PRIX ===================== */
.price {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
}
.price.free {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}
.price.paid {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

/* ===================== PROOF BUTTONS ===================== */
.proof-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.proof-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px !important;
}
.proof-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.proof-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    color: var(--accent2);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.proof-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: modalFade 0.2s ease;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.3);
    animation: modalSlide 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--muted);
    transition: 0.2s;
    line-height: 1;
}
.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}