/* ============================================================
   MIM — Landing page (PartPublic)
   Design system sombre, cohérent avec l'application MIM
   ============================================================ */

:root {
    --bg-0: #251d02;
    --bg-1: #3d2103ee;
    --bg-2: #42047d;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #f3eefc;
    --text-soft: #c9bfe0;
    --dim: #998bb8;

    --violet: #8b5cf6;
    --violet-2: #7c3aed;
    --magenta: #d946ef;
    --gold: #e5a017;
    --gold-2: #f0b429;
    --green: #34d399;
    --red: #fb7185;

    --radius: 18px;
    --radius-sm: 12px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: left;
    
}

/* Le décor du hero (hero-bg) déborde volontairement de part et d'autre :
   on le clippe au niveau de main pour éviter tout scroll horizontal. */
main {
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* ============================================================
   BARRE SUPÉRIEURE
   ============================================================ */

.topbar {
    position: relative;
    z-index: 60;
    padding: 9px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-soft);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.16), rgba(124, 58, 237, 0.18));
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

.topbar strong {
    color: var(--gold-2);
    font-weight: 700;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 5, 20, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-nav.scrolled {
    border-bottom-color: var(--line);
    background: rgba(10, 5, 20, 0.85);
}

.nav-inner {
    width: min(1160px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
}

.brand-text strong {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn-lg {
    padding: 15px 26px;
    font-size: 15.5px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #221200;
    box-shadow: 0 10px 26px rgba(229, 160, 23, 0.35);
}

.btn-gold:hover {
    box-shadow: 0 14px 34px rgba(229, 160, 23, 0.5);
}

.btn-violet {
    background: linear-gradient(135deg, var(--violet-2), var(--violet));
    color: #fff;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
}

.btn-violet:hover {
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-soft);
}

.btn-ghost:hover {
    border-color: var(--violet);
    color: var(--text);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */

.section {
    position: relative;
    width: min(1160px, 92%);
    margin: 0 auto;
    padding: 92px 0;
}

.section-alt {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold-2);
    background: rgba(229, 160, 23, 0.1);
    border: 1px solid rgba(229, 160, 23, 0.28);
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

.section-head p {
    font-size: 16.5px;
    color: var(--dim);
}

.grad {
    background: linear-gradient(90deg, var(--violet), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    width: min(1160px, 92%);
    margin: 0 auto;
    padding: 74px 0 90px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: -30% -20%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 12% 18%, rgba(124, 58, 237, 0.22), transparent 65%),
        radial-gradient(560px 400px at 88% 30%, rgba(217, 70, 239, 0.16), transparent 65%),
        radial-gradient(520px 380px at 60% 92%, rgba(229, 160, 23, 0.07), transparent 65%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(36px, 5.2vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 6px 0 22px;
}

.hero-sub {
    font-size: 17.5px;
    color: var(--text-soft);
    margin-bottom: 34px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 14px;
    color: var(--dim);
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot-check {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.14);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

/* Lien secondaire du hero : le système agence reste découvrable SANS
   occuper la place d'un CTA principal. */
.hero-more {
    margin: -14px 0 22px;
    font-size: 14.5px;
    color: var(--dim);
}

.hero-more a {
    color: var(--text-soft);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-more a:hover {
    color: #fff;
    border-color: var(--magenta);
}

/* --- Mockup du dashboard --- */

.hero-mock {
    position: relative;
}

.mock-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.12), 0 0 60px rgba(124, 58, 237, 0.12);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.mock-bar span:nth-child(1) { background: #ef4444; }
.mock-bar span:nth-child(2) { background: #f59e0b; }
.mock-bar span:nth-child(3) { background: #22c55e; }

.mock-bar em {
    margin-left: 10px;
    font-size: 11.5px;
    font-style: normal;
    color: var(--dim);
    letter-spacing: 0.2px;
}

.mock-frame img {
    width: 100%;
    height: auto;
}

.mock-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 13px;
    background: rgba(18, 10, 32, 0.85);
    border: 1px solid var(--line-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: float 5s ease-in-out infinite;
}

.chip-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.mock-chip div {
    display: flex;
    flex-direction: column;
}

.mock-chip strong {
    font-size: 13px;
    color: var(--text);
}

.mock-chip small {
    font-size: 11.5px;
    color: var(--dim);
}

.chip-payment {
    top: 18%;
    right: -6%;
    animation-delay: 0s;
}

.chip-payment .chip-icon {
    background: rgba(52, 211, 153, 0.16);
    color: var(--green);
}

.chip-due {
    bottom: 16%;
    left: -6%;
    animation-delay: 2.4s;
}

.chip-due .chip-icon {
    background: rgba(229, 160, 23, 0.16);
    color: var(--gold-2);
}

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

/* ============================================================
   STATS BAND
   ============================================================ */

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(217, 70, 239, 0.06));
    padding: 30px 26px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    background: linear-gradient(90deg, var(--violet), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--dim);
}

/* ============================================================
   OBJECTIF
   ============================================================ */

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

.objectif-item {
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.objectif-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.objectif-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.objectif-item p {
    font-size: 14.5px;
    color: var(--dim);
}

/* ============================================================
   FONCTIONNALITÉS
   ============================================================ */

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

.feature {
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet-2), var(--magenta));
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.feature h3 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14.5px;
    color: var(--dim);
}

/* La grille fait 3 colonnes : avec 10 cartes, la dernière serait laissée
   seule à 1/3 de largeur. On l'étale pour ne pas creuser la rangée.
   Neutralisé plus bas dès que la grille passe à 2 puis 1 colonne. */
.features-grid > .feature:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

/* ============================================================
   ÉTAPES
   ============================================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 34px 28px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 10px 24px rgba(229, 160, 23, 0.3);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14.5px;
    color: var(--dim);
}

/* ============================================================
   GALERIE BENTO
   ============================================================ */

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
}

.bento-item {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--panel-strong);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.06);
}

.bento .b1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .b2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento .b3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento .b4 { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento .b5 { grid-column: 4 / 5; grid-row: 2 / 3; }

/* ============================================================
   POURQUOI MIM
   ============================================================ */

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

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-item:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.35);
}

.why-item .dot-check {
    margin-top: 3px;
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.why-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.why-item p {
    font-size: 14.5px;
    color: var(--dim);
}

/* ============================================================
   TARIFS
   ============================================================ */

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.tcard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tcard:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.tcard h3 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tprice {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.6px;
}

.tprice span {
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
}

.tcard ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 0 2px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text-soft);
    text-align: left;
    flex: 1;
}

.tcard li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tcard li::before {
    content: "✓";
    flex: none;
    color: var(--green);
    font-weight: 800;
    margin-top: 1px;
}

.tbtn {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #221200;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(229, 160, 23, 0.28);
}

.tbtn:hover {
    box-shadow: 0 12px 28px rgba(229, 160, 23, 0.45);
}

/* Mention essai gratuit sous le CTA de chaque carte tarifaire */
.ttrial {
    margin: -6px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: var(--dim);
}

.tcard.popular {
    border-color: rgba(229, 160, 23, 0.65);
    background: linear-gradient(160deg, rgba(229, 160, 23, 0.1), var(--panel));
    box-shadow: 0 22px 50px rgba(229, 160, 23, 0.14);
    z-index: 1;
}

.tbadge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #221200;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(229, 160, 23, 0.35);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-list details[open] {
    border-color: rgba(139, 92, 246, 0.4);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 22px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-2);
    background: rgba(229, 160, 23, 0.12);
    transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list details p {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--dim);
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-panel {
    position: relative;
    padding: 64px 40px;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background:
        radial-gradient(500px 260px at 20% 10%, rgba(124, 58, 237, 0.28), transparent 60%),
        radial-gradient(480px 260px at 85% 90%, rgba(217, 70, 239, 0.2), transparent 60%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(217, 70, 239, 0.08));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-panel h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
}

.cta-panel p {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto 30px;
}

.cta-panel .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 0;
    margin-top: 30px;
}

.footer-grid {
    width: min(1160px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 46px;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 14px;
    color: var(--dim);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14.5px;
    color: var(--dim);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--gold-2);
}

.footer-bottom {
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    width: min(1160px, 92%);
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--dim);
}

/* ============================================================
   RÉVÉLATION AU DÉFILEMENT
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .mock-chip {
        animation: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 56px;
    }
    .hero-content {
        max-width: 680px;
    }
    .chip-payment { right: 2%; }
    .chip-due { left: 2%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    /* La grille n'est plus à 3 colonnes : l'étalement de la dernière
       carte ne s'applique plus (10 cartes se répartissent en 5 rangées
       paires). */
    .features-grid > .feature:last-child:nth-child(3n + 1) { grid-column: auto; }
    .objectif-grid { grid-template-columns: 1fr; }
    .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-links.open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 4%;
        background: rgba(10, 5, 20, 0.97);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .nav-links.open a {
        padding: 15px 8px;
        border-bottom: 1px solid var(--line);
    }
    .nav-burger {
        display: flex;
    }
    .steps { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr; gap: 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
    .topbar { font-size: 12px; }
    .section { padding: 64px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .tarifs-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .bento .b1 {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    .bento .b2,
    .bento .b3,
    .bento .b4,
    .bento .b5 {
        grid-column: auto;
        grid-row: auto;
    }
    .cta-panel {
        padding: 46px 22px;
    }
    .hero {
        padding: 40px 0 64px;
        gap: 38px;
    }
    .mock-chip {
        display: none;
    }
}

/* ============================================================
   SYSTÈMES / MODES D'UTILISATION
   ============================================================ */

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

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 28px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.profile-tag {
    align-self: flex-start;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.42);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-card h3 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.profile-lead {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dim);
}

.profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.profile-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-soft);
}

.profile-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 800;
}

.profile-link {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: var(--gold);
}

/* Bouton de fin de section — centré, sans empiéter sur le contenu */
.section-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
}

/* ============================================================
   SYSTÈME AGENCE — section + flux
   ============================================================ */

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

.agency-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.agency-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.agency-mode {
    align-self: flex-start;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.42);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agency-card h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.agency-lead {
    font-size: 15px;
    line-height: 1.65;
    color: var(--dim);
}

.agency-list {
    list-style: none;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agency-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dim);
}

.agency-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.16);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-list strong {
    color: var(--text);
    font-weight: 700;
}

/* Cycle de vie d'un loyer */
.agency-flow {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 150px;
}

.flow-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.flow-step strong {
    font-size: 14.5px;
    color: var(--text);
}

.flow-step small {
    font-size: 12.5px;
    color: var(--dim);
}

.flow-arrow {
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    opacity: 0.8;
}

/* ============================================================
   TARIFS — onglets, essai, grilles
   ============================================================ */

.trial-band {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto 34px;
    padding: 20px 24px;
    border: 1px solid rgba(229, 160, 23, 0.42);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(229, 160, 23, 0.14), var(--panel));
}

.trial-tag {
    flex-shrink: 0;
    padding: 7px 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #221200;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(229, 160, 23, 0.3);
}

.trial-text {
    flex: 1 1 320px;
}

.trial-text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.trial-text p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--dim);
    margin: 0;
}

.trial-band .btn {
    flex-shrink: 0;
}

/* Onglets */
.tarif-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 34px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ttab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--dim);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ttab:hover {
    color: var(--text-soft);
}

.ttab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #221200;
    box-shadow: 0 8px 20px rgba(229, 160, 23, 0.3);
}

.ttab:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}

/* Grille dissimulée : l'attribut hidden doit gagner sur display:grid */
.tarifs-grid[hidden] {
    display: none;
}

.tarifs-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

/* « Pour qui » — différencie les cartes de capacité à capacité */
.tfor {
    order: -1;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--violet);
    text-transform: none;
    letter-spacing: 0.2px;
}

.tcard.popular .tfor {
    color: var(--gold);
}

.tarif-note {
    max-width: 820px;
    margin: 30px auto 0;
    font-size: 13.5px;
    line-height: 1.7;
    text-align: center;
    color: var(--dim);
}

/* ============================================================
   ADAPTATIONS ÉCRANS
   ============================================================ */

@media (max-width: 1024px) {
    /* Regle placee APRES la definition de .profile-grid (ligne ~1208) :
       un override avant la base serait ecrase par elle. */
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .tarifs-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
    .agency-card h3 {
        font-size: 21px;
    }
}

@media (max-width: 860px) {
    .agency-grid {
        grid-template-columns: 1fr;
    }
    .agency-flow {
        flex-direction: column;
        gap: 16px;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
    .trial-band {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .trial-band .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .tarifs-grid.three {
        grid-template-columns: 1fr;
    }
    .tarif-tabs {
        width: 100%;
    }
    .ttab {
        flex: 1;
        padding: 11px 12px;
        font-size: 13.5px;
    }
    .agency-card {
        padding: 26px 20px 24px;
    }
    .agency-flow {
        padding: 20px 16px;
    }
}
