/* =============================================
   LEADMIA — Design system du site public
   Poppins, indigo. Base partagée avec reviewmia.com.
   ============================================= */

/* ---------------------------------------------
   1. TOKENS
   --------------------------------------------- */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #6366f1;
    --secondary-light: #e0e7ff;
    --violet: #7c3aed;

    --bg-app: #f7f8fb;
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-muted2: #94a3b8;

    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --star: #fbbf24;

    --border: #e8ecf4;
    --border-light: rgba(148, 163, 184, 0.25);

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 18px 55px rgba(15, 23, 42, 0.1);
    --shadow-primary: 0 10px 30px rgba(79, 70, 229, 0.3);

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 999px;

    --font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1140px;
    --header-height: 72px;
}

/* ---------------------------------------------
   2. RESET & BASE
   --------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

/* ---------------------------------------------
   3. LAYOUT
   --------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--tight {
    padding: 64px 0;
}

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

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

.section-head p {
    color: var(--text-muted);
    font-size: 1.0625rem;
}

/* ---------------------------------------------
   4. TYPOGRAPHIE
   --------------------------------------------- */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ---------------------------------------------
   5. BOUTONS
   --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--violet) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(79, 70, 229, 0.38);
}

.btn-ghost {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 17px 36px;
    font-size: 1rem;
}

/* ---------------------------------------------
   6. HEADER
   --------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(247, 248, 251, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.88);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1875rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

/* :not(.btn) — sinon la règle l'emporte sur .btn-primary et grise le libellé */
.nav > a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.nav > a:not(.btn):hover {
    color: var(--primary);
}

/* ---------------------------------------------
   7. HERO
   --------------------------------------------- */
.hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 130%;
    background:
        radial-gradient(
            900px 480px at 12% 12%,
            rgba(99, 102, 241, 0.22),
            transparent 60%
        ),
        radial-gradient(
            800px 460px at 88% 4%,
            rgba(251, 191, 36, 0.18),
            transparent 58%
        ),
        radial-gradient(
            700px 420px at 60% 100%,
            rgba(56, 189, 248, 0.16),
            transparent 60%
        );
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 10px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge .dot {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    display: grid;
    place-items: center;
}

.badge .dot svg {
    width: 13px;
    height: 13px;
    color: var(--primary);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero .lead {
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-note svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
}

/* Marge basse supplémentaire : la carte flottante déborde sur le padding,
   jamais sur le contenu de l'e-mail. */
.hero-visual .mock-body {
    padding-bottom: 36px;
}

/* ---------------------------------------------
   8. MOCKUPS — cadre commun
   --------------------------------------------- */
.mock {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.mock-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.mock-bar i:nth-child(1) {
    background: #fca5a5;
}

.mock-bar i:nth-child(2) {
    background: #fcd34d;
}

.mock-bar i:nth-child(3) {
    background: #86efac;
}

.mock-bar span {
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted2);
}

.mock-body {
    padding: 22px;
}

.mock-float {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-float .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.mock-float .icon svg {
    width: 18px;
    height: 18px;
}

.mock-float strong {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.mock-float small {
    font-size: 0.75rem;
    color: var(--text-muted2);
}

/* Placées sur les zones vides du mockup (barre de fenêtre à droite, marge
   basse) pour ne masquer aucun contenu. */
.mock-float--tl {
    top: -26px;
    right: -26px;
    animation: float 6s ease-in-out infinite;
}

.mock-float--br {
    bottom: -26px;
    left: -26px;
    animation: float 6s ease-in-out infinite 1.6s;
}

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

/* --- Mockup e-mail --- */
.email-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.email-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.email-meta strong {
    display: block;
    font-size: 0.9375rem;
}

.email-meta span {
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.email-subject {
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 10px;
}

.email-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.email-stars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 18px;
}

.email-stars svg {
    width: 26px;
    height: 26px;
    color: var(--star);
}

.email-cta {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.email-secondary {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    text-align: center;
}

.email-secondary p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.email-secondary a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Mockup assistant --- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.chip {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.chip.is-on {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.draft {
    border: 1px solid #c7d2fe;
    background: #f8faff;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 108px;
}

.draft .caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--primary);
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.mock-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.mock-actions .btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

/* --- Mockup réponse aux avis --- */
.review {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: #fff;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #e0e7ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.review-head strong {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    width: 14px;
    height: 14px;
    color: var(--star);
}

.review-stars svg.off {
    color: #e2e8f0;
}

.review-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted2);
}

.review-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.review-reply {
    margin-top: 14px;
    margin-left: 24px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    border-left: 3px solid var(--secondary);
}

.review-reply .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 8px;
}

.review-reply .tag svg {
    width: 13px;
    height: 13px;
}

.review-reply p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------------------------------------------
   9. STATS
   --------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat b {
    display: block;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

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

/* ---------------------------------------------
   10. FEATURES
   --------------------------------------------- */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

.feature + .feature {
    margin-top: 112px;
}

.feature--reverse .feature-text {
    order: 2;
}

.feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 7px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.feature-eyebrow .n {
    width: 21px;
    height: 21px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.6875rem;
}

.feature-text h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
}

.feature-text > p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 26px;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 14px;
}

.checklist li {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.checklist svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--success);
}

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

.feature-visual {
    position: relative;
}

/* ---------------------------------------------
   11. ÉTAPES
   --------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 26px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.step-icon svg {
    width: 23px;
    height: 23px;
    color: #fff;
}

.step-num {
    position: absolute;
    top: 26px;
    right: 26px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-light);
    letter-spacing: -0.04em;
}

.step h3 {
    font-size: 1.125rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ---------------------------------------------
   12. CTA FINAL
   --------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: 64px 48px;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.35);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            600px 300px at 15% 0%,
            rgba(255, 255, 255, 0.2),
            transparent 60%
        ),
        radial-gradient(
            500px 300px at 85% 100%,
            rgba(251, 191, 36, 0.22),
            transparent 60%
        );
    pointer-events: none;
}

.cta > * {
    position: relative;
}

.cta h2 {
    color: #fff;
    max-width: 700px;
    margin: 0 auto 16px;
}

.cta p {
    max-width: 580px;
    margin: 0 auto 32px;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
}

.cta .btn-ghost {
    background: #fff;
    border-color: transparent;
    color: var(--primary);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.cta-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 28px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

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

.cta-points svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------------------------------------------
   13. FAQ
   --------------------------------------------- */
.faq {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px 22px;
    box-shadow: var(--shadow-sm);
}

.faq summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    flex-shrink: 0;
    border-right: 2px solid var(--text-muted2);
    border-bottom: 2px solid var(--text-muted2);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details p {
    padding: 0 0 20px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ---------------------------------------------
   14. FOOTER
   --------------------------------------------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-top p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 420px;
}

.footer-powered {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.footer-powered img {
    height: 26px;
    width: auto;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.footer-bottom nav {
    margin-left: auto;
    display: flex;
    gap: 22px;
}

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

/* ---------------------------------------------
   15. ANIMATION D'APPARITION
   --------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

/* ---------------------------------------------
   16. RESPONSIVE
   --------------------------------------------- */
@media (max-width: 980px) {
    .hero-grid,
    .feature {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature--reverse .feature-text {
        order: 0;
    }

    .feature + .feature {
        margin-top: 80px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 18px;
    }

    .nav > a:not(.btn) {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .container {
        padding: 0 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 48px 24px;
    }

    .mock-float--tl {
        top: -16px;
        right: -8px;
    }

    .mock-float--br {
        bottom: -16px;
        left: -8px;
    }

    .mock-float small {
        display: none;
    }

    .review-reply {
        margin-left: 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-powered,
    .footer-bottom nav {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

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

/* ---------------------------------------------
   17. LIEN D'ÉVITEMENT
   --------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------
   18. SÉLECTEUR DE LANGUE
   --------------------------------------------- */
.langsel {
    position: relative;
    flex-shrink: 0;
}

.langsel summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

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

.langsel summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted2);
    border-bottom: 2px solid var(--text-muted2);
    transform: rotate(45deg) translate(-1px, -1px);
}

.langsel[open] summary::after {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.langsel summary:hover {
    border-color: var(--secondary-light);
}

.langsel-flag {
    font-size: 0.9375rem;
    line-height: 1;
}

.langsel ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 172px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 60;
}

.langsel ul a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.15s ease;
}

.langsel ul a:hover {
    background: var(--bg-soft);
}

.langsel ul a[aria-current] {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* ---------------------------------------------
   19. MAQUETTES — variantes
   --------------------------------------------- */
.review.is-bare {
    border: none;
    padding: 0;
}

.request-row + .request-row {
    margin-top: 10px;
}

.request-mail {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.review-time.is-done {
    color: var(--success);
    font-weight: 600;
}

/* ---------------------------------------------
   20. LANGUES EN PIED DE PAGE
   --------------------------------------------- */
.footer-langs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.footer-langs a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

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

.footer-langs a[aria-current] {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 980px) {
    /* Le sélecteur de langue reste accessible quand la nav se réduit. */
    .langsel {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .langsel-code {
        display: none;
    }

    .langsel summary {
        padding: 7px 10px;
    }
}

/* =============================================
   COMPOSANTS ÉDITORIAUX (site www)
   ============================================= */

/* --- Fil d'Ariane --- */
.breadcrumb {
    padding: 22px 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: var(--text-muted2);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current] {
    color: var(--text-muted);
}

/* --- En-tête d'article --- */
.article-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-head h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.article-head .lead {
    font-size: 1.1875rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-top: 22px;
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* --- Grille article + sommaire --- */
.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 56px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.toc h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted2);
    margin-bottom: 14px;
}

.toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 10px;
}

.toc li {
    counter-increment: toc;
}

.toc a {
    display: flex;
    gap: 9px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.toc a::before {
    content: counter(toc);
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.toc a:hover,
.toc a.is-active {
    color: var(--primary);
}

/* --- Corps rédactionnel --- */
.prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.prose > * + * {
    margin-top: 22px;
}

.prose h2 {
    font-size: 1.625rem;
    margin-top: 48px;
    margin-bottom: 0;
    color: var(--text-primary);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.prose h3 {
    font-size: 1.1875rem;
    margin-top: 34px;
    margin-bottom: 0;
    color: var(--text-primary);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.prose ul,
.prose ol {
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.prose li::marker {
    color: var(--secondary);
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

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

.prose code {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs, 6px);
    padding: 2px 6px;
    font-size: 0.9em;
}

.prose blockquote {
    border-left: 3px solid var(--secondary);
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 22px;
    font-style: italic;
}

.prose blockquote > * + * {
    margin-top: 12px;
}

/* --- Encadrés --- */
.callout {
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
}

.callout > * + * {
    margin-top: 12px;
}

.callout--astuce {
    background: var(--primary-light);
    border-color: var(--secondary-light);
}

.callout--attention {
    background: var(--warning-light, rgba(245, 158, 11, 0.12));
    border-color: rgba(245, 158, 11, 0.3);
}

.callout--exemple {
    background: var(--bg-soft);
}

/* --- Encart CTA en cours d'article --- */
.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 26px 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.cta-box div {
    flex: 1 1 300px;
}

.cta-box strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-box p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-box .btn {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

/* --- Cartes d'article --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.card-tag--tool {
    background: var(--success-light);
    color: #15803d;
}

.card h3 {
    font-size: 1.0625rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.card-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.card:hover .card-more {
    gap: 11px;
}

.card-more svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

/* --- Pied de page en colonnes --- */
.footer-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-cols h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted2);
    margin-bottom: 14px;
}

.footer-cols ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-cols a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 320px;
}

/* --- 404 --- */
.error-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .toc {
        position: static;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 22px;
    }

    .cta-box .btn {
        width: 100%;
    }
}

/* =============================================
   OUTILS INTERACTIFS
   ============================================= */
.tool-panel {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.tool-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.tool-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tool-field input,
.tool-field select {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.tool-field input:focus,
.tool-field select:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
}

.tool-hint {
    font-size: 0.75rem;
    color: var(--text-muted2);
    margin-top: 6px;
}

.tool-result {
    margin-top: 8px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--primary-light);
    border: 1px solid var(--secondary-light);
    text-align: center;
}

.tool-result-big {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.tool-result p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.tool-output {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.tool-output input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem;
    background: #fff;
}

.tool-note {
    margin-top: 18px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.tool-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}

.tool-stars svg {
    width: 24px;
    height: 24px;
    color: var(--star);
}

.tool-stars svg.off {
    color: #e2e8f0;
}

/* =============================================
   BLOCS DE LA PAGE D'ACCUEIL
   ============================================= */

/* --- Réassurance sous le CTA principal --- */
.reassurance {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.reassurance img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.reassurance-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.reassurance-text span {
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.reassurance-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.reassurance-stars svg {
    width: 13px;
    height: 13px;
    color: var(--star);
}

/* --- Ils parlent de nous --- */
.press {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.press-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted2);
    margin-bottom: 26px;
}

.press-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px 48px;
}

.press-logos img {
    height: 34px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(1);
    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

.press-logos img:hover {
    opacity: 1;
    filter: none;
}

/* --- Le constat : cartes de problèmes --- */
.problems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.problem {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
}

.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--error-light, rgba(239, 68, 68, 0.1));
    color: var(--error, #ef4444);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.problem-icon svg {
    width: 21px;
    height: 21px;
}

.problem h3 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
}

.problem p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* --- Grille de fonctionnalités --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.fcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.fcard-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.fcard-icon svg {
    width: 21px;
    height: 21px;
    color: #fff;
}

.fcard h3 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.fcard p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.fcard-badge {
    margin-top: auto;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-more {
    margin-top: 28px;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Vidéo --- */
.video-frame {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #000;
    line-height: 0;
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Témoignages --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    color: var(--star);
}

.testimonial blockquote {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.testimonial footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.testimonial cite {
    font-style: normal;
}

.testimonial cite strong {
    display: block;
    font-size: 0.9375rem;
}

.testimonial cite span {
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    padding: 18px 26px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rating-badge b {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rating-badge span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .press-logos {
        gap: 20px 28px;
    }

    .press-logos img {
        height: 26px;
    }

    .reassurance {
        flex-wrap: wrap;
    }
}

.mock-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* 4 indicateurs sur l'accueil : la grille doit s'adapter. */
.stats {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* =============================================
   MAQUETTES : SCORE, PUBLICATION, BENCHMARK
   ============================================= */
.score-head {
    position: relative;
    display: grid;
    place-items: center;
    padding: 6px 0 22px;
}

.score-ring {
    width: 148px;
    height: 148px;
    transform: rotate(-90deg);
}

.score-ring circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.score-track {
    stroke: var(--border);
}

.score-value {
    stroke: url(#score-grad);
    stroke: var(--secondary);
    transition: stroke-dashoffset 0.8s ease;
}

.score-num {
    position: absolute;
    top: 52px;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary);
}

.score-num small {
    font-size: 1.125rem;
    font-weight: 700;
}

.score-label {
    margin-top: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.score-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.score-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.score-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.score-list .is-done svg {
    color: var(--success);
}

.score-list .is-todo svg {
    color: var(--warning);
}

.score-list .is-todo {
    background: var(--warning-light, rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.28);
}

.score-list em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Benchmark --- */
.bench {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bench th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted2);
    padding: 0 10px 10px;
}

.bench th:not(:first-child),
.bench td:not(:first-child) {
    text-align: center;
}

.bench td {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.bench tr.is-you td {
    background: var(--primary-light);
    font-weight: 700;
    color: var(--primary);
}

.bench tr.is-you td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.bench tr.is-you td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bench-score {
    display: inline-block;
    min-width: 42px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.8125rem;
}

.bench tr.is-you .bench-score {
    background: #fff;
    border-color: var(--secondary-light);
    color: var(--primary);
}

/* =============================================
   NAVIGATION : 5 entrées + langue + CTA
   ============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Les libellés sont longs : l'en-tête a besoin de plus de largeur que le corps. */
.site-header .container {
    max-width: 1340px;
    gap: 20px;
}

.nav {
    gap: 18px;
}

.site-header .nav > a:not(.btn) {
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav > a[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    place-items: center;
}

.nav-toggle-bars {
    display: grid;
    gap: 4px;
}

.nav-toggle-bars i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-secondary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Pied de page : deux colonnes de liens + la marque */
.footer-cols {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
}

.footer-langs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom span {
    line-height: 1.6;
}

/* En dessous de 1240px, les 5 entrées ne tiennent plus : menu déroulant. */
@media (max-width: 1240px) {
    .nav-toggle {
        display: grid;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-header.nav-open {
        position: sticky;
    }

    .site-header.nav-open .nav {
        display: flex;
    }

    .site-header .nav > a:not(.btn) {
        display: block;
        padding: 12px 14px;
        border-radius: var(--radius-md);
        font-size: 0.9375rem;
    }

    .site-header .nav > a:not(.btn):hover {
        background: var(--bg-soft);
    }

    .nav .langsel {
        margin: 6px 0;
    }

    .nav .langsel summary {
        width: 100%;
        justify-content: space-between;
    }

    .nav .langsel ul {
        position: static;
        box-shadow: none;
        margin-top: 6px;
    }

    .nav .btn {
        width: 100%;
        margin-top: 6px;
    }
}

/* --- Témoignages : présentation soignée --- */
.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    right: 14px;
    font-size: 6rem;
    line-height: 1;
    font-weight: 800;
    color: var(--primary-light);
    pointer-events: none;
}

.testimonial > * {
    position: relative;
}

.testimonial blockquote {
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* La première carte porte le témoignage le plus fort : on lui donne du poids. */
.testimonials .testimonial:first-child {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.testimonials .testimonial:first-child::before {
    color: rgba(255, 255, 255, 0.18);
}

.testimonials .testimonial:first-child blockquote {
    color: #fff;
}

.testimonials .testimonial:first-child footer {
    border-top-color: rgba(255, 255, 255, 0.25);
}

.testimonials .testimonial:first-child cite strong {
    color: #fff;
}

.testimonials .testimonial:first-child cite span {
    color: rgba(255, 255, 255, 0.75);
}

.testimonials .testimonial:first-child .testimonial-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.testimonials .testimonial:first-child .testimonial-stars svg {
    color: #fde68a;
}

/* Le logo ne doit pas être comprimé par une navigation devenue plus dense. */
.brand {
    flex-shrink: 0;
}

.site-header .brand img {
    min-width: 118px;
}

/* =============================================
   CORRECTIFS DE MISE EN PAGE
   ============================================= */

/* --- Fil d'Ariane intégré au contenu, plus de bandeau flottant --- */
.breadcrumb {
    padding: 0 0 26px;
}

.breadcrumb ol {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    width: fit-content;
    max-width: 100%;
}

.section--top {
    padding-top: 30px;
}

/* --- Hero sans visuel : contenu centré --- */
.hero--centered .hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.hero--centered .hero-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero--centered .lead {
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero-actions,
.hero--centered .hero-note,
.hero--centered .reassurance {
    justify-content: center;
}

.hero--centered .breadcrumb ol {
    margin: 0 auto;
}

/* --- Indicateurs prolongeant le hero --- */
.hero-stats {
    margin-top: 64px;
}

/* --- Logos presse plus lisibles --- */
.press-logos img {
    height: 46px;
    opacity: 0.7;
}

.press-logos {
    gap: 28px 56px;
}

/* --- Pastille de marque (Google au-dessus du constat) --- */
.brand-badge {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.brand-badge svg {
    width: 28px;
    height: 28px;
}

/* --- Grille de fonctionnalités : 2 colonnes quand il y en a 4 --- */
.feature-grid--half {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    max-width: 940px;
    margin: 0 auto;
}

/* --- Complément de fonctionnalités : marqué comme un « en plus » --- */
.feature-more {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.feature-more-plus {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
}

/* --- Pastille Leadmia au-dessus du CTA final --- */
.cta-badge {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.cta-badge img {
    width: 34px;
    height: 34px;
}

/* --- Teintes des cartes flottantes --- */
.mock-float .icon--success {
    background: var(--success-light);
    color: var(--success);
}

.mock-float .icon--primary {
    background: var(--primary-light);
    color: var(--primary);
}

.mock-float .icon--warning {
    background: var(--warning-light, rgba(245, 158, 11, 0.12));
    color: var(--warning);
}

@media (max-width: 640px) {
    .press-logos img {
        height: 34px;
    }

    .feature-more {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   NAVIGATION SUR DEUX LIGNES
   ============================================= */
.site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.nav-item:hover {
    background: var(--bg-soft);
}

.nav-item-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item-icon svg {
    width: 17px;
    height: 17px;
}

.nav-item-label {
    display: grid;
    line-height: 1.25;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-item-label span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.nav-item:hover .nav-item-label span:last-child,
.nav-item[aria-current="page"] .nav-item-label span:last-child {
    color: var(--primary);
}

.nav-item[aria-current="page"] .nav-item-icon {
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    color: #fff;
}

.nav {
    gap: 4px;
}

.site-header .container {
    gap: 14px;
}

/* La langue et le CTA gardent un peu d'air par rapport aux entrées. */
.nav .langsel {
    margin-left: 10px;
}

@media (max-width: 1240px) {
    .nav-item {
        padding: 10px 12px;
    }

    .nav-item-label {
        white-space: normal;
    }

    .site-header {
        padding: 0;
        height: var(--header-height);
    }
}

/* =============================================
   MAQUETTE FICHE ÉTABLISSEMENT GOOGLE
   ============================================= */
.gbp-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.gbp-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary), var(--violet));
    color: #fff;
}

.gbp-avatar svg {
    width: 22px;
    height: 22px;
}

.gbp-id strong {
    display: block;
    font-size: 1.0625rem;
    line-height: 1.25;
}

.gbp-id span {
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.gbp-verified {
    margin-left: auto;
    color: var(--success);
}

.gbp-verified svg {
    width: 20px;
    height: 20px;
}

.gbp-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 15px 0;
}

.gbp-rating b {
    font-size: 1.125rem;
    font-weight: 700;
}

.gbp-rating small {
    font-size: 0.8125rem;
    color: var(--text-muted2);
}

.gbp-rows {
    list-style: none;
    display: grid;
    gap: 2px;
}

.gbp-rows li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gbp-rows svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--text-muted2);
}

.gbp-rows em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--success-light);
    color: #15803d;
}

.gbp-rows em.warn {
    background: var(--warning-light, rgba(245, 158, 11, 0.12));
    color: #b45309;
}

.gbp-score {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    border: 1px solid var(--secondary-light);
}

.gbp-score-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gbp-score-top span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.gbp-score-top b {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.gbp-bar {
    height: 8px;
    border-radius: var(--radius-full);
    background: #fff;
    overflow: hidden;
}

.gbp-bar i {
    display: block;
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--secondary), var(--violet));
}

.gbp-score p {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* La carte flottante basse ne doit pas recouvrir le bloc de score. */
.hero-visual .mock-float--br {
    bottom: -30px;
    left: -46px;
}

@media (max-width: 980px) {
    .hero-visual .mock-float--br {
        left: -10px;
    }
}

/* --- #3 Bouton de connexion : le CTA reste sur les pages, mais le bouton
   garde l'identité indigo. La marge gauche l'écarte du sélecteur de langue,
   dont il paraissait solidaire. --- */
.btn-login {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--violet) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
    margin-left: 12px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(79, 70, 229, 0.38);
}

/* --- #4 L'intitulé de l'encart CTA doit rester lisible sur le dégradé --- */
.cta-box strong {
    color: #fff;
}

/* --- #5 Bloc de note client : étoiles plus grandes, mention explicite --- */
.rating-badge {
    flex-direction: column;
    gap: 6px;
    padding: 20px 32px;
    border-radius: var(--radius-xl);
}

.rating-badge .rating-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-badge b {
    font-size: 2rem;
}

.rating-badge .testimonial-stars svg {
    width: 22px;
    height: 22px;
}

.rating-badge span.rating-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* =============================================
   CORRECTIFS MOBILE
   Ces règles closent la feuille : elles doivent l'emporter sur les
   déclarations de base réintroduites plus haut.
   ============================================= */
/* État par défaut : liste de liens visible, sélecteur masqué. Déclaré avant
   les media queries pour que celles-ci puissent inverser les deux. */
.footer-langs-list {
    display: contents;
}

.footer-langs-select {
    display: none;
}

@media (max-width: 980px) {
    .footer-cols {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    /* Une colonne par bloc : trois colonnes serrées sont illisibles. */
    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .footer-brand p {
        max-width: none;
    }

    /* Le sélecteur natif remplace la liste de six langues. */
    .footer-langs-list {
        display: none;
    }

    .footer-langs-select {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .footer-langs {
        gap: 12px;
    }
}



.footer-langs-select select {
    width: 100%;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    cursor: pointer;
}

.footer-langs-select select:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
}

/* --- Menu déroulant mobile : aérer les entrées --- */
.langsel-name {
    display: none;
}

@media (max-width: 1240px) {
    .nav-item {
        padding: 9px 12px;
        gap: 13px;
    }

    .nav-item-label {
        gap: 3px;
        line-height: 1.35;
        font-size: 0.875rem;
    }

    .nav-item-icon {
        width: 36px;
        height: 36px;
    }

    /* Le nom complet remplace le code langue : le drapeau seul fait vide. */
    .nav .langsel summary {
        padding: 11px 14px;
    }

    .langsel-code {
        display: none;
    }

    .langsel-name {
        display: inline;
        font-size: 0.9375rem;
        font-weight: 600;
    }
}

@media (max-width: 1240px) {
    /* Une règle « display: block » plus haut mettait l'icône au-dessus du texte.
       On l'assume, mais en colonne explicite pour maîtriser les écarts. */
    .site-header .nav > a.nav-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
        padding: 8px 12px;
    }

    .site-header .nav-item-label {
        gap: 5px;
    }
}

@media (max-width: 1240px) {
    /* Entrées centrées dans le menu déroulant, avec un filet de séparation.
       Le sélecteur « + » ne cible que les entrées consécutives : aucun filet
       n'apparaît donc avant le bloc langue ni avant le bouton de connexion. */
    .site-header .nav > a.nav-item {
        align-items: center;
        text-align: center;
        padding: 14px 12px;
    }

    .site-header .nav-item-label {
        justify-items: center;
    }

    .site-header .nav > a.nav-item + a.nav-item {
        border-top: 1px solid var(--border);
    }

    .btn-login {
        margin-left: 0;
    }
}
