/* =============================================================================
   QUPIDON Site vitrine
   Palette et typographie alignées sur l'app (STYLE.txt / ColorConstant.ts).
============================================================================= */

@font-face {
    font-family: 'Nunito';
    src: url('assets/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('assets/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    /* Palette brand thème SOMBRE de l'app (bgGradient / halo / text).
       Les noms « prune » sont conservés pour ne pas casser les règles, mais
       portent désormais l'indigo→violet : prune = stop médian #2A18A0,
       prune-dark = stop profond #1A1080, prune-deep = fond le plus sombre. */
    --prune: #2A18A0;
    --prune-dark: #1A1080;
    --prune-deep: #140A5E;
    --mauve: #8060D0;        /* halo violet de l'app */
    --creme: #FFFFFF;        /* text.title de l'app */
    --or: #C89840;           /* accent OR - identique app ↔ web */
    --terracotta: #B85848;
    --bleu: #3585CD;
    --vert: #42A36E;

    --text: var(--creme);
    --text-muted: rgba(255, 255, 255, 0.82);   /* text.body app */
    --text-faint: rgba(255, 255, 255, 0.56);   /* text.muted app */

    --radius: 15px;
    --radius-lg: 24px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--prune-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--or);
    color: var(--prune-deep);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 3px;
}

/* ============================ CHAMP D'ÉTINCELLES ============================
   Portage web du composant <StarField /> de l'app : des lueurs 4 branches qui
   apparaissent, tournent, descendent et disparaissent - désynchronisées par un
   délai aléatoire. Les éléments sont générés en JS (script.js), le CSS ne fait
   que porter l'animation (composited : opacity + transform uniquement).
=========================================================================== */

.starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sparkle {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    animation: twinkle var(--dur, 3.6s) var(--delay, 0s) infinite ease-in-out;
}

.sparkle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sparkle.glow {
    filter: drop-shadow(0 0 6px currentColor);
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.2) rotate(calc(var(--spin) * -1));
    }
    50% {
        opacity: var(--max-opacity, 0.85);
        transform: translateY(calc(var(--fall) / 2)) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(var(--fall)) scale(0.2) rotate(var(--spin));
    }
}

.starfield-soft .sparkle {
    opacity: 0;
}

/* ================================= HEADER ================================= */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
                backdrop-filter 0.4s var(--ease);
}

#site-header.scrolled {
    background: rgba(26, 16, 128, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--creme);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Le logo du header est le lockup complet (732 x 271, ratio ~2.7:1) : on le
   dimensionne par la HAUTEUR et on laisse la largeur suivre, sinon il s'écrase.
   Le footer garde l'icône carrée, d'où les deux règles séparées. */
#site-header .logo img {
    height: 60px;
    width: auto;
}

footer .logo img {
    width: 30px;
    height: 30px;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

#nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.25s;
}

#nav-menu a:hover {
    color: var(--creme);
}

#nav-menu .nav-cta {
    background: var(--or);
    color: var(--prune-deep);
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#nav-menu .nav-cta:hover {
    color: var(--prune-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 152, 64, 0.35);
}

/* Bouton Beta Test : même prominence que Télécharger, mais en or contourné
   pour distinguer les deux appels à l'action côte à côte. */
#nav-menu .nav-cta-alt {
    color: var(--or);
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    border: 1.5px solid var(--or);
    transition: color 0.25s, background 0.25s, transform 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
}

#nav-menu .nav-cta-alt:hover {
    color: var(--prune-deep);
    background: var(--or);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 152, 64, 0.35);
}

/* Page active : le bouton passe en or plein (au lieu du contour) pour indiquer
   « vous êtes ici ». Il ne se soulève pas au survol - inutile de suggérer une
   navigation vers la page où l'on se trouve déjà. */
#nav-menu .nav-cta-alt[aria-current="page"] {
    background: var(--or);
    color: var(--prune-deep);
    cursor: default;
}

#nav-menu .nav-cta-alt[aria-current="page"]:hover {
    transform: none;
    box-shadow: none;
}

.nav-toggle {
    /* Au-dessus du menu plein écran, sinon le bouton « fermer » est inatteignable. */
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--creme);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================== HERO ================================== */

#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 8rem 1.5rem 6rem;
    /* Image de fond en couche de base ; le halo violet + un voile indigo
       semi-transparent passent PAR-DESSUS pour garder le texte lisible tout en
       laissant transparaître le décor. Le fallback couleur couvre le temps de
       chargement de la webp. */
    background:
        radial-gradient(ellipse 110% 80% at 50% 0%, rgba(96, 48, 192, 0.45), transparent 60%),
        linear-gradient(165deg, rgba(42, 24, 160, 0.70) 0%, rgba(26, 16, 128, 0.78) 55%, rgba(20, 10, 94, 0.90) 100%),
        url('assets/images/BigBackground.webp') center / cover no-repeat;
    background-color: var(--prune-dark);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    top: -14%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(200, 152, 64, 0.16), transparent 62%);
    filter: blur(40px);
    animation: breathe 9s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;    transform: translateX(-50%) scale(1.12); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 1.1rem;
}

#hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    margin-bottom: 1.4rem;
}

.grad {
    background: linear-gradient(105deg, var(--or) 0%, #E8C87E 40%, var(--terracotta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lede {
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.4rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
                background 0.28s, border-color 0.28s;
}

.btn-primary {
    background: var(--or);
    color: var(--prune-deep);
    box-shadow: 0 10px 30px rgba(200, 152, 64, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(200, 152, 64, 0.42);
}

.btn-ghost {
    color: var(--creme);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--creme);
    background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    list-style: none;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--creme);
    line-height: 1.1;
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.hero-visual {
    position: absolute;
    right: -6%;
    bottom: -6%;
    width: min(46vw, 520px);
    opacity: 0.14;
    z-index: 1;
    pointer-events: none;
}

.hero-logo {
    width: 100%;
    animation: float 7s ease-in-out infinite;
}

.hero-arrow {
    position: absolute;
    width: 42%;
    top: 8%;
    left: -18%;
    animation: float 5.5s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(-3deg); }
}

.scroll-hint {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    z-index: 2;
}

.scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--or);
    border-radius: 2px;
    animation: scrollDot 1.9s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(15px); }
}

/* ============================== SECTIONS BASE ============================= */

section h2 {
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    margin-bottom: 1.1rem;
    max-width: 32ch;
}

.section-lede {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 60ch;
    margin-bottom: 3.5rem;
}

section .container > .eyebrow,
section .container > h2,
section .container > .section-lede {
    position: relative;
    z-index: 2;
}

/* =============================== QUOTIENTS =============================== */

#quotients {
    position: relative;
    background: linear-gradient(180deg, var(--prune-deep) 0%, var(--prune) 100%);
    overflow: hidden;
}

.quotients-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.quotient-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}

.quotient-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

/* Bandeau en dégradé de la couleur du quotient (--q-light / --q-color / --q-dark par carte). */
.quotient-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
        linear-gradient(135deg, var(--q-light) 0%, var(--q-color) 50%, var(--q-dark) 100%);
    transition: transform 0.6s var(--ease);
}

.quotient-visual span {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.quotient-card:hover .quotient-visual {
    transform: scale(1.06);
}

.quotient-body {
    padding: 1.8rem;
}

.q-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
}

.quotient-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.quotient-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* Une couleur brand par quotient - valeurs reprises de QuotientsConstant.ts :
   indigo QC #5B5AD7, terracotta QE #B85848, or QS #C89840, rose ardent QSe #E0245E. */
.q-cq  { --q-light: #8E8DF0; --q-color: #5B5AD7; --q-dark: #2E2D8A; }
.q-eq  { --q-light: #E08A74; --q-color: #B85848; --q-dark: #6E2A22; }
.q-sq  { --q-light: #EBC873; --q-color: #C89840; --q-dark: #7A5718; }
.q-seq { --q-light: #FF6F93; --q-color: #E0245E; --q-dark: #8A0F37; }

.q-cq .q-tag { background: rgba(91, 90, 215, 0.2); color: #A9A8F0; }
.q-cq:hover  { border-color: rgba(91, 90, 215, 0.55); }

.q-eq .q-tag { background: rgba(184, 88, 72, 0.2); color: #E39A8D; }
.q-eq:hover  { border-color: rgba(184, 88, 72, 0.55); }

.q-sq .q-tag { background: rgba(200, 152, 64, 0.2); color: #E8C87E; }
.q-sq:hover  { border-color: rgba(200, 152, 64, 0.55); }

.q-seq .q-tag { background: rgba(224, 36, 94, 0.2); color: #F5809F; }
.q-seq:hover  { border-color: rgba(224, 36, 94, 0.55); }

/* Le QSe est facultatif : le badge le dit avant même qu'on lise la carte. */
.q-optional {
    display: inline-block;
    margin: 0 0 0.9rem 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.q-meta {
    margin-top: 0.9rem;
    color: var(--text-faint);
    font-size: 0.85rem !important;
    letter-spacing: 0.03em;
}

.quotients-note {
    position: relative;
    z-index: 2;
    max-width: 78ch;
    margin: 3rem auto 0;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 16, 128, 0.45);
    color: var(--text-faint);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* =============================== FEATURES =============================== */

#features {
    background: var(--prune);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    background: rgba(26, 16, 128, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.feature-item:hover {
    transform: translateY(-6px);
    background: rgba(26, 16, 128, 0.75);
    border-color: rgba(200, 152, 64, 0.4);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(200, 152, 64, 0.14);
    margin-bottom: 1.3rem;
    font-size: 1.6rem;
}

.feature-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feature-icon[data-emoji]::before {
    content: attr(data-emoji);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ============================== COMMENT ÇA MARCHE ======================== */

#how {
    position: relative;
    background: linear-gradient(180deg, var(--prune) 0%, var(--prune-deep) 100%);
    overflow: hidden;
}

.steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 4.2rem;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(200, 152, 64, 0.45);
    background: rgba(200, 152, 64, 0.1);
    color: var(--or);
    font-weight: 700;
    font-size: 1.15rem;
}

.steps h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-top: 0.55rem;
}

.steps p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ============================ POURQUOI QUPIDON =========================== */

#why {
    background: var(--prune-deep);
}

.why-compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.why-col {
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.why-col ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.why-col li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.why-col li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.why-before {
    background: rgba(255, 255, 255, 0.03);
}

.why-before h3 {
    color: var(--text-faint);
}

.why-before li::before {
    content: "✕";
    color: var(--text-faint);
}

.why-after {
    background: rgba(200, 152, 64, 0.08);
    border-color: rgba(200, 152, 64, 0.35);
}

.why-after h3 {
    color: var(--or);
}

.why-after li::before {
    content: "✓";
    color: var(--or);
}

.why-text {
    max-width: 72ch;
}

.why-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.why-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.why-text p:last-child {
    margin-bottom: 0;
}

.why-text a {
    color: var(--or);
    text-underline-offset: 3px;
}

/* ================================== FAQ ================================== */

#faq {
    background: linear-gradient(180deg, var(--prune-deep) 0%, var(--prune-dark) 100%);
}

.faq-list {
    display: grid;
    gap: 0.9rem;
    max-width: 860px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    transition: border-color 0.3s, background 0.3s;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(200, 152, 64, 0.4);
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 3.2rem 1.2rem 1.4rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Le « + » pivote en « × » quand la question est ouverte. */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--or);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 1.4rem 1.3rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.faq-item a {
    color: var(--or);
}

@media (min-width: 720px) {
    .why-compare {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================== TÉLÉCHARGEMENT ========================== */

#downloads {
    position: relative;
    text-align: center;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(96, 48, 192, 0.6), transparent 65%),
        var(--prune-deep);
    overflow: hidden;
}

#downloads .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#downloads h2 {
    max-width: 18ch;
}

.dl-logo {
    width: 200px;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: float 7s ease-in-out infinite;
}

#downloads p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.8rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.85rem;
    background: var(--creme);
    color: var(--prune-deep);
    padding: 0.9rem 1.9rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.download-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.download-btn small {
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* ============================= RÉSEAUX SOCIAUX =========================== */

.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.socials a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--creme);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s var(--ease), color 0.25s, background 0.25s,
                border-color 0.25s;
}

.socials a:hover {
    transform: translateY(-3px);
    color: var(--prune-deep);
    background: var(--or);
    border-color: var(--or);
}

.socials svg {
    width: 20px;
    height: 20px;
}

/* Section « Suivez-nous » - dédiée, centrée, une carte par réseau qui
   s'illumine aux couleurs de la marque au survol. */
#social {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, var(--prune-deep) 0%, #120840 100%);
}

#social .eyebrow,
#social h2 {
    position: relative;
    z-index: 2;
}

#social h2 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.social-lede {
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 52ch;
    margin: 0 auto 3.2rem;
}

.social-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    max-width: 860px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 2.6rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: var(--creme);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s;
}

/* Voile de marque : caché au repos, révélé au survol. Placé en z-index -1 il
   recouvre le fond de verre de la carte mais reste DERRIÈRE l'icône et le texte. */
.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
}

.social-card:hover::before {
    opacity: 1;
}

.sc-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.35s var(--ease), background 0.35s;
}

.sc-icon svg {
    width: 30px;
    height: 30px;
}

.social-card:hover .sc-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.22);
}

.sc-net {
    font-weight: 700;
    font-size: 1.25rem;
}

.sc-handle {
    color: var(--text-faint);
    font-size: 0.92rem;
    transition: color 0.35s;
}

.social-card:hover .sc-handle {
    color: rgba(255, 255, 255, 0.92);
}

/* Dégradés officiels de chaque réseau. */
.sc-instagram::before {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 45%, #8134AF 100%);
}

.sc-tiktok::before {
    background: linear-gradient(135deg, #25F4EE 0%, #0B0B0B 50%, #FE2C55 100%);
}

.sc-x::before {
    background: linear-gradient(135deg, #2B2B2B 0%, #000000 100%);
}

@media (min-width: 720px) {
    .social-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================= FOOTER ================================ */

footer {
    background: #0F0748;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

footer .container {
    padding: 3rem 1.5rem 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    list-style: none;
}

footer a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s;
}

footer a:hover {
    color: var(--or);
}

.copyright {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
    padding-top: 1.6rem;
}

/* ============================ RÉVÉLATION AU SCROLL ======================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* .hero-visual garde son opacité décorative réduite une fois révélée. */
.hero-visual.reveal.visible {
    opacity: 0.14;
}

/* ================================ RESPONSIVE ============================= */

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    #site-header .logo img {
        height: 32px;
    }

    #nav-menu {
        position: fixed;
        inset: 0 0 auto;
        top: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        height: 100vh;
        height: 100svh;
        background: rgba(20, 12, 96, 0.97);
        backdrop-filter: blur(16px);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 1;
    }

    #nav-menu.open {
        transform: none;
    }

    #nav-menu a {
        font-size: 1.3rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 1.8rem;
    }
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .quotients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .quotients-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* En 4 colonnes les cartes sont étroites : on réduit le bandeau et le padding. */
    .quotient-visual {
        height: 175px;
    }

    .quotient-body {
        padding: 1.5rem 1.4rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .container {
        padding: 7rem 2rem;
    }
}

/* ============================ ACCESSIBILITÉ ============================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .starfield {
        display: none;
    }
}

/* Appel vers le mini-test de personnalité, sous la grille des quotients. */
.quotients-cta {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    text-align: center;
}

.quotients-cta p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

/* ============================== MOBILE (≤ 719px) ========================== */
/* Cartes réseaux en ligne (icône à gauche, nom + pseudo à droite) au lieu de
   blocs centrés de ~240 px de haut ; bandeaux des quotients moins hauts. */
@media (max-width: 719px) {
    .social-cards {
        gap: 0.9rem;
    }

    .social-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon net"
            "icon handle";
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.1rem;
        padding: 1rem 1.2rem;
        text-align: left;
    }

    .sc-icon {
        grid-area: icon;
        width: 52px;
        height: 52px;
    }

    .sc-icon svg {
        width: 24px;
        height: 24px;
    }

    .sc-net {
        grid-area: net;
        align-self: end;
        font-size: 1.1rem;
    }

    .sc-handle {
        grid-area: handle;
        align-self: start;
    }

    .quotient-visual {
        height: 140px;
    }

    .quotient-visual span {
        font-size: 2.6rem;
    }
}
