/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    background: #f7f9fc;
}

/* Langues */
body.lang-fr .lang-en { display: none; }
body.lang-en .lang-fr { display: none; }

/* SLIDES */
.slide {
    min-height: 100vh;
    padding: 120px 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 900px) {
    .slide {
        padding: 100px 24px 60px;
    }
}

/* NAVIGATION */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffffcc;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    padding: 12px 28px;
    z-index: 100;
}

.logo {
    font-weight: 600;
    color: #0b3c5d;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-hint {
    color: #6b7280;
    font-size: 0.85rem;
}

.lang-toggle {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #21b6a8;
    background: #e8faf7;
    color: #0b3c5d;
    font-weight: 600;
    cursor: pointer;
}

/* TAGS & TITLES */
.tag {
    display: inline-block;
    background: #e7f7f5;
    color: #21b6a8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

h1, h2 {
    font-weight: 700;
    color: #0b3c5d;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }

h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #1f2937;
}

/* INTRO */
.intro-layout {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
}

.intro-main {
    flex: 1;
}

.intro-main p {
    font-size: 1rem;
    line-height: 1.45;
    color: #374151;
    margin-top: 10px;
}

.intro-qr {
    width: 260px;
    display: flex;
    justify-content: center;
}

.qr-card {
    background: #fff;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    text-align: center;
}

.qr-card img {
    width: 100%;
    border-radius: 12px;
}

.qr-caption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
}

/* GRID & CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label {
    font-size: 0.8rem;
    color: #21b6a8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* LISTES AVEC PETITS RONDS */
.card ul {
    list-style: none;
    margin-top: 6px;
}

.card ul li {
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.95rem;
    position: relative;
    padding-left: 14px;
}

.card ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #21b6a8;
    position: absolute;
    left: 0;
    top: 0.55em;
}

/* IMAGE BLOCKS */
.image-block {
    margin-top: 18px;
}

.image-block img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* TIMELINE IMPAYÉS */
.relance-flow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.relance-step {
    background: #e7f7f5;
    border: 1px solid #21b6a852;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.relance-j {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b3c5d;
}

.relance-label {
    font-size: 0.85rem;
    color: #374151;
}

.relance-arrow {
    font-size: 1.6rem;
    color: #6b7280;
}

/* FOOTER NOTE */
.footer-note {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* FOCUS BAND */
.focus-band {
    margin-top: 28px;
    padding: 18px 24px;
    border-radius: 18px;
    background: #e8f1fb;
    border: 1px solid #d0e2f5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    color: #0b3355;
    font-size: 1rem;
    font-weight: 500;
}

.focus-band p {
    line-height: 1.45;
}

/* RH SLIDE PILL STYLE */
.rh-main-card {
    /* même card mais on laisse la possibilité d’accentuer plus tard */
}

.rh-simple-card p {
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.5;
}

.rh-baseline {
    margin-bottom: 10px;
    color: #374151;
    font-size: 0.95rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e293b;
    font-size: 0.85rem;
}

/* NEXT BUTTON */
.next-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    padding: 10px 18px;
    background: #21b6a8;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(33,182,168,0.3);
    font-size: 0.95rem;
    z-index: 200;
    transition: transform 0.15s;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
    .intro-layout {
        flex-direction: column;
        text-align: center;
    }
    .intro-qr {
        width: 180px;
    }
    .qr-card {
        width: 100%;
    }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
}

@media (max-width: 650px) {
    .next-btn {
        right: 16px;
        bottom: 20px;
        padding: 9px 16px;
    }
}

.pill-wide {
    display: block;
    width: 100%;
    text-align: left;
}

.kpi-top-grid {
    display: flex;
    gap: 28px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
}

.kpi-top-block {
    flex: 1;
    min-width: 260px;
    background: #e8f1fb;
    padding: 34px 28px;
    border-radius: 22px;
    border: 1px solid #d6e4f5;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.kpi-top-number {
    font-size: 3.3rem;
    font-weight: 700;
    color: #0b3c5d;
}

.kpi-top-label {
    margin-top: 8px;
    font-size: 1.2rem;
    color: #1f3347;
}

.card-highlight {
    background: #f0f7ff !important;
    border: 1px solid #cddff6 !important;
}

.overview-grid {
    display: flex;
    gap: 20px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.kpi-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 24px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    min-width: 180px;
}

.kpi-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0b3c5d;
}

.kpi-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.big-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b3c5d;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.step-card {
    background: #fff;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #21b6a8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.lang-fr,
.lang-en {
    display: inline;
}

body.lang-en .lang-fr {
    display: none;
}

body.lang-en .lang-en {
    display: inline;
}

body:not(.lang-en) .lang-en {
    display: none;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-hint {
    font-size: 0.85rem;
    color: #6b7280;
}

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

.lang-toggle {
    border: 1px solid #cbd5f5;
    background: #e5edff;
    color: #1e3a8a;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lang-toggle:hover {
    background: #d7e3ff;
}

.quit-btn {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.quit-btn:hover {
    background: #f3f4f6;
}

.intro-qr{
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px){
    .top-nav{ padding: 0 4vw; }
    .slide{ padding: 72px 6vw 56px; }
    .nav-hint{ display: none; }
    .intro-layout{ flex-direction: column; }
    .intro-qr{ justify-content: flex-start; }
}

/* ===== INTRO SLIDE – QR EN HAUT À DROITE ===== */

.slide-intro{
    justify-content: flex-start;
}

.intro-top{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.intro-left{
    flex: 1;
}

.slide-intro .intro-qr{
    flex: 0 0 220px;
    margin-top: 10px; /* ajustable si besoin */
}

/* Responsive */
@media (max-width: 900px){
    .intro-top{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .slide-intro .intro-qr{
        margin-top: 20px;
    }
}
