:root {
    --sw-bg: #07111f;
    --sw-bg-soft: #0c1a2c;
    --sw-bg-deep: #050c17;
    --sw-card: rgba(255,255,255,.075);
    --sw-card-strong: rgba(255,255,255,.11);
    --sw-border: rgba(255,255,255,.10);
    --sw-border-strong: rgba(255,255,255,.18);
    --sw-text: #f8fafc;
    --sw-muted: #a9b7ca;
    --sw-muted-2: #dbeafe;
    --sw-primary: #44f2a6;
    --sw-secondary: #6ee7ff;
    --sw-warning: #ffcf70;
    --sw-danger: #ff6b6b;
    --sw-radius: 24px;
    --sw-radius-sm: 18px;
    --sw-shadow: 0 24px 70px rgba(0,0,0,.25);
    --sw-shadow-soft: 0 14px 40px rgba(0,0,0,.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(68,242,166,.17), transparent 34%),
        radial-gradient(circle at 90% 0, rgba(110,231,255,.14), transparent 30%),
        linear-gradient(135deg, var(--sw-bg) 0%, var(--sw-bg-soft) 55%, #081323 100%);
    color: var(--sw-text);
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.sw-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER PUBLIC */

.sw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,17,31,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--sw-border);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand.big,
.brand-footer {
    align-items: center;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    display: grid;
    place-items: center;
    box-shadow: 0 14px 40px rgba(68,242,166,.22);
    flex: 0 0 auto;
}

.brand-mark span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 4px solid #07111f;
}

.brand-copy strong {
    display: block;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
}

.brand-copy small {
    display: block;
    color: var(--sw-muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--sw-muted);
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 999px;
    font-weight: 800;
    transition: .2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 999px;
}

/* BOUTONS */

.btn,
.btn-primary,
.btn-ghost,
.btn-light,
.btn-outline,
.button,
.button-primary,
.button-ghost,
.hero-actions a,
.actions a,
.cta-row a,
.hero-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary,
.button-primary,
.hero-actions a:first-child,
.actions a:first-child,
.cta-row a:first-child,
.hero-cta a:first-child {
    color: #07111f;
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    box-shadow: 0 16px 35px rgba(68,242,166,.16);
}

.btn-ghost,
.btn-light,
.button-ghost,
.btn-outline,
.hero-actions a:nth-child(2),
.actions a:nth-child(2),
.cta-row a:nth-child(2),
.hero-cta a:nth-child(2) {
    color: #dbeafe;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

.btn.full,
.full {
    width: 100%;
}

/* MEGA PANEL */

.mega-panel {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(8,22,37,.96);
    padding: 14px 0 16px;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.mega-card {
    display: block;
    min-height: 92px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: #fff;
    transition: .2s ease;
}

.mega-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.10);
}

.mega-card strong {
    display: block;
    font-size: .96rem;
    line-height: 1.25;
}

.mega-card span {
    display: block;
    margin-top: 7px;
    color: var(--sw-muted);
    font-size: .86rem;
}

/* TYPOGRAPHIE */

main {
    display: block;
}

section {
    position: relative;
}

h1,
.hero-title,
.sw-hero h1,
.home-hero h1,
.ecosystem-hero h1,
.main-hero h1 {
    margin: 18px 0 18px;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: -.055em;
    color: #fff;
    max-width: 1100px;
}

h2 {
    margin: 0 0 16px;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    color: #fff;
}

h3 {
    margin: 0 0 10px;
    color: #fff;
}

p {
    line-height: 1.65;
}

.lead,
.hero-text,
.hero p,
.sw-hero p,
.home-hero p,
.ecosystem-hero p,
.main-hero p {
    color: #dbeafe;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.6;
    max-width: 980px;
}

.text-muted,
.muted {
    color: var(--sw-muted);
}

.hero-badge,
.kicker,
.eyebrow,
.section-kicker,
.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sw-primary);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

/* HERO */

.hero,
.sw-hero,
.home-hero,
.ecosystem-hero,
.main-hero {
    padding: 76px 0 74px;
    background:
        radial-gradient(circle at 5% 10%, rgba(68,242,166,.13), transparent 36%),
        radial-gradient(circle at 95% 0, rgba(110,231,255,.12), transparent 32%);
}

.hero .sw-container,
.sw-hero .sw-container,
.home-hero .sw-container,
.ecosystem-hero .sw-container,
.main-hero .sw-container,
.hero-grid,
.hero-layout,
.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 44px;
    align-items: center;
}

.hero-content,
.hero-copy,
.home-hero-content {
    min-width: 0;
}

.hero-actions,
.actions,
.cta-row,
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.offer-badge,
.price-badge,
.hero-offer,
.special-offer,
.hero-actions span,
.actions span,
.cta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

/* STATS */

.hero-stats,
.hero-metrics,
.stats-grid,
.metric-grid,
.metrics-grid,
.stats,
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    max-width: 780px;
}

.hero-stats > *,
.hero-metrics > *,
.stats-grid > *,
.metric-grid > *,
.metrics-grid > *,
.stats > *,
.home-stats > *,
.stat-card,
.metric-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
}

.hero-stats strong,
.hero-metrics strong,
.stats-grid strong,
.metric-grid strong,
.metrics-grid strong,
.stats strong,
.home-stats strong,
.stat-card strong,
.metric-card strong,
.hero-stats b,
.hero-metrics b,
.stats-grid b,
.metric-grid b,
.metrics-grid b,
.stats b,
.home-stats b {
    display: block;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
}

.hero-stats span,
.hero-metrics span,
.stats-grid span,
.metric-grid span,
.metrics-grid span,
.stats span,
.home-stats span,
.stat-card span,
.metric-card span,
.hero-stats small,
.hero-metrics small,
.stats-grid small,
.metric-grid small,
.metrics-grid small,
.stats small,
.home-stats small {
    display: block;
    margin-top: 7px;
    color: var(--sw-muted);
    line-height: 1.35;
}

/* CARTES ET GRILLES */

.hero-card,
.visual-card,
.hero-visual,
.ecosystem-card,
.platform-card,
.service-card,
.program-card,
.feature-card,
.card,
.premium-card,
.info-card {
    border: 1px solid var(--sw-border);
    background: var(--sw-card);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    padding: 24px;
}

.hero-visual,
.visual-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.04)),
        radial-gradient(circle at top right, rgba(110,231,255,.12), transparent 34%);
}

.card p,
.platform-card p,
.service-card p,
.program-card p,
.feature-card p,
.premium-card p,
.info-card p {
    color: var(--sw-muted);
    line-height: 1.65;
}

.card,
.platform-card,
.service-card,
.program-card,
.feature-card,
.premium-card,
.info-card {
    transition: .2s ease;
}

.card:hover,
.platform-card:hover,
.service-card:hover,
.program-card:hover,
.feature-card:hover,
.premium-card:hover,
.info-card:hover {
    transform: translateY(-3px);
    background: var(--sw-card-strong);
}

.grid,
.cards-grid,
.platform-grid,
.services-grid,
.programs-grid,
.features-grid,
.modules-grid,
.ecosystem-grid,
.blog-grid,
.posts-grid,
.references-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid.two,
.cards-grid.two,
.platform-grid.two,
.services-grid.two,
.programs-grid.two,
.features-grid.two,
.modules-grid.two,
.ecosystem-grid.two,
.blog-grid.two,
.references-grid.two,
.split-grid,
.two-column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* TAGS / PILLS */

.platform-stack,
.ecosystem-stack,
.orbit-stack,
.orbit-tags,
.module-stack,
.module-tags,
.platform-pills,
.ecosystem-pills,
.hero-pills,
.tags,
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.platform-stack span,
.ecosystem-stack span,
.orbit-stack span,
.orbit-tags span,
.module-stack span,
.module-tags span,
.platform-pills span,
.ecosystem-pills span,
.hero-pills span,
.tags span,
.badges span,
.platform-stack a,
.ecosystem-stack a,
.orbit-stack a,
.orbit-tags a,
.module-stack a,
.module-tags a,
.platform-pills a,
.ecosystem-pills a,
.hero-pills a,
.tags a,
.badges a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    font-weight: 850;
    text-decoration: none;
    color: #fff;
}

/* SECTIONS */

.section,
.sw-section,
.public-section,
.home-section,
.ecosystem-section,
.page-section {
    padding: 78px 0;
}

.section.alt,
.sw-section.alt,
.public-section.alt,
.home-section.alt {
    background: rgba(3,9,18,.22);
}

.section-head,
.sw-section-head,
.section-header,
.page-head {
    max-width: 860px;
    margin-bottom: 34px;
}

.section-head.center,
.sw-section-head.center,
.section-header.center,
.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head p,
.sw-section-head p,
.section-header p,
.page-head p {
    color: var(--sw-muted);
    line-height: 1.65;
}

/* LISTES */

.check-list,
.feature-list,
.service-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.check-list li,
.feature-list li,
.service-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--sw-muted-2);
}

/* FORMULAIRES PUBLICS */

.public-form,
.form-card,
.contact-form,
.auth-card {
    border: 1px solid var(--sw-border);
    background: var(--sw-card);
    border-radius: var(--sw-radius);
    padding: 24px;
    box-shadow: var(--sw-shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field,
.field {
    display: grid;
    gap: 8px;
}

.form-field label,
.field label {
    color: var(--sw-muted);
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea,
.field input,
.field select,
.field textarea,
.public-form input,
.public-form select,
.public-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(7,17,31,.72);
    color: #fff;
    padding: 14px 16px;
    outline: none;
}

.form-field textarea,
.field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 4px rgba(68,242,166,.12);
}

.form-notice,
.notice,
.alert {
    padding: 15px 17px;
    border-radius: 16px;
    margin: 18px 0;
    line-height: 1.5;
}

.form-notice.success,
.notice.success,
.alert.success {
    background: rgba(68,242,166,.14);
    border: 1px solid rgba(68,242,166,.3);
    color: #dfffee;
}

.form-notice.error,
.notice.error,
.alert.error {
    background: rgba(255,99,99,.14);
    border: 1px solid rgba(255,99,99,.3);
    color: #ffe4e4;
}

/* FOOTER PREMIUM */

.premium-footer,
.sw-footer,
footer {
    border-top: 1px solid var(--sw-border);
    background:
        radial-gradient(circle at top left, rgba(68,242,166,.12), transparent 32%),
        linear-gradient(135deg, rgba(3,9,18,.92), rgba(7,17,31,.96));
    padding: 64px 0 28px;
    color: var(--sw-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-brand p {
    margin: 18px 0 20px;
    color: var(--sw-muted);
    line-height: 1.7;
    max-width: 360px;
}

.footer-column h4,
.footer-contact-box h4,
.footer-grid h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.footer-column a,
.footer-grid > div > a,
.footer-contact-box a:not(.btn),
.footer-brand a:not(.brand) {
    display: block;
    color: var(--sw-muted);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.45;
    transition: .2s ease;
}

.footer-column a:hover,
.footer-grid > div > a:hover,
.footer-contact-box a:not(.btn):hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
    transition: .2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    color: #07111f;
}

.footer-contact {
    color: var(--sw-muted);
    line-height: 1.75;
    margin: 0 0 18px;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--sw-muted);
    font-size: .92rem;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: fixed;
        top: 82px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 16px;
        border-radius: 22px;
        background: rgba(8,22,37,.98);
        border: 1px solid rgba(255,255,255,.12);
        box-shadow: var(--sw-shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-radius: 14px;
    }

    .nav-actions {
        display: none;
    }

    .mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero .sw-container,
    .sw-hero .sw-container,
    .home-hero .sw-container,
    .ecosystem-hero .sw-container,
    .main-hero .sw-container,
    .hero-grid,
    .hero-layout,
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .grid,
    .cards-grid,
    .platform-grid,
    .services-grid,
    .programs-grid,
    .features-grid,
    .modules-grid,
    .ecosystem-grid,
    .blog-grid,
    .posts-grid,
    .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .sw-container {
        width: min(100% - 28px, 1180px);
    }

    .nav-wrap {
        min-height: 72px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-copy small {
        font-size: .62rem;
    }

    .hero,
    .sw-hero,
    .home-hero,
    .ecosystem-hero,
    .main-hero {
        padding: 48px 0 54px;
    }

    h1,
    .hero-title,
    .sw-hero h1,
    .home-hero h1,
    .ecosystem-hero h1,
    .main-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
    }

    .hero-stats,
    .hero-metrics,
    .stats-grid,
    .metric-grid,
    .metrics-grid,
    .stats,
    .home-stats,
    .grid,
    .cards-grid,
    .platform-grid,
    .services-grid,
    .programs-grid,
    .features-grid,
    .modules-grid,
    .ecosystem-grid,
    .blog-grid,
    .posts-grid,
    .references-grid,
    .grid.two,
    .cards-grid.two,
    .platform-grid.two,
    .services-grid.two,
    .programs-grid.two,
    .features-grid.two,
    .modules-grid.two,
    .ecosystem-grid.two,
    .mega-grid,
    .form-grid,
    .footer-grid,
    .split-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .actions,
    .cta-row,
    .hero-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a,
    .actions a,
    .cta-row a,
    .hero-cta a,
    .offer-badge,
    .price-badge,
    .hero-offer,
    .special-offer,
    .hero-actions span,
    .actions span,
    .cta-row span {
        width: 100%;
    }

    .premium-footer,
    .sw-footer,
    footer {
        padding: 46px 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================
   SMARTWAY PUBLIC FIX FINAL
   Stabilisation globale des pages publiques
   À conserver tout à la fin de premium.css
   ========================================================= */

/* Sécurité générale */
.public-body main {
    background:
        radial-gradient(circle at 0 0, rgba(68,242,166,.08), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #0c1a2c 55%, #081323 100%);
}

/* Titres : éviter les H1 trop énormes sur toutes les pages internes */
.public-body h1 {
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(2.35rem, 5.2vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    max-width: 1120px;
}

/* La page d’accueil garde un titre plus spectaculaire */
.public-body.page-home h1,
.public-body .home-hero h1,
.public-body .main-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
}

/* Pages internes : réduire la hauteur du hero */
.public-body:not(.page-home) .hero,
.public-body:not(.page-home) .sw-hero,
.public-body:not(.page-home) .home-hero,
.public-body:not(.page-home) .ecosystem-hero,
.public-body:not(.page-home) .main-hero,
.public-body:not(.page-home) .page-hero {
    padding: 64px 0 56px;
}

/* Page services : titre plus propre */
.public-body.page-services h1,
.public-body.page-services .hero-title,
.public-body.page-services .sw-hero h1,
.public-body.page-services .main-hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.7rem);
    line-height: 1.03;
    max-width: 1160px;
}

/* Paragraphes de hero mieux contenus */
.public-body .hero p,
.public-body .sw-hero p,
.public-body .main-hero p,
.public-body .page-hero p,
.public-body .lead {
    max-width: 1080px;
}

/* Réduire les grands vides entre sections */
.public-body .section,
.public-body .sw-section,
.public-body .public-section,
.public-body .home-section,
.public-body .ecosystem-section,
.public-body .page-section {
    padding: 64px 0;
    min-height: auto;
}

/* Page services : éviter le grand trou avant l’offre */
.public-body.page-services .section,
.public-body.page-services .sw-section,
.public-body.page-services .public-section,
.public-body.page-services .page-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

/* Grilles de cartes stables */
.public-body .services-grid,
.public-body .programs-grid,
.public-body .features-grid,
.public-body .platform-grid,
.public-body .cards-grid,
.public-body .modules-grid,
.public-body .ecosystem-grid,
.public-body .blog-grid,
.public-body .references-grid,
.public-body .grid {
    align-items: stretch;
}

/* Cartes internes plus équilibrées */
.public-body .service-card,
.public-body .program-card,
.public-body .feature-card,
.public-body .platform-card,
.public-body .card,
.public-body .premium-card,
.public-body .info-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Prix / texte important dans les cartes */
.public-body .service-card strong,
.public-body .program-card strong,
.public-body .feature-card strong,
.public-body .card strong {
    color: #fff;
}

/* Filtres : Tous / Technologie / Academy / Visibilité / Édition */
.public-body main button:not(.nav-toggle),
.public-body .filter-btn,
.public-body .filters a,
.public-body .filters button,
.public-body .service-filters a,
.public-body .service-filters button,
.public-body .category-filters a,
.public-body .category-filters button,
.public-body [data-filter] {
    appearance: none;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: #dbeafe;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 6px 8px 0;
}

.public-body main button:not(.nav-toggle):hover,
.public-body .filter-btn:hover,
.public-body .filters a:hover,
.public-body .filters button:hover,
.public-body .service-filters a:hover,
.public-body .service-filters button:hover,
.public-body .category-filters a:hover,
.public-body .category-filters button:hover,
.public-body [data-filter]:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.public-body main button.active,
.public-body .filter-btn.active,
.public-body .filters .active,
.public-body .service-filters .active,
.public-body .category-filters .active,
.public-body [data-filter].active {
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    color: #07111f;
    border-color: transparent;
}

/* Offre spéciale / bloc CTA */
.public-body .offer-section,
.public-body .pricing-section,
.public-body .cta-section,
.public-body .special-offer-section {
    padding: 72px 0;
    background:
        radial-gradient(circle at 0 0, rgba(68,242,166,.12), transparent 32%),
        rgba(3,9,18,.18);
}

.public-body .offer-section h2,
.public-body .pricing-section h2,
.public-body .cta-section h2,
.public-body .special-offer-section h2 {
    font-size: clamp(2.1rem, 4.8vw, 4rem);
}

/* Footer : correction définitive */
.premium-footer,
.sw-footer,
footer {
    border-top: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at top left, rgba(68,242,166,.12), transparent 32%),
        linear-gradient(135deg, rgba(3,9,18,.94), rgba(7,17,31,.98));
    padding: 64px 0 28px;
    color: var(--sw-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-brand p {
    margin: 18px 0 20px;
    color: var(--sw-muted);
    line-height: 1.7;
    max-width: 360px;
}

.footer-grid h4,
.footer-column h4,
.footer-contact-box h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.footer-grid > div > a:not(.btn),
.footer-column a,
.footer-contact-box a:not(.btn) {
    display: block;
    color: var(--sw-muted);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.45;
    transition: .2s ease;
}

.footer-grid > div > a:not(.btn):hover,
.footer-column a:hover,
.footer-contact-box a:not(.btn):hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
    transition: .2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    color: #07111f;
}

/* Très important : empêcher le footer d’écraser le bouton principal */
.premium-footer .btn-primary,
.sw-footer .btn-primary,
footer .btn-primary,
.footer-grid > div > a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07111f !important;
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary)) !important;
    border-color: transparent !important;
    font-weight: 900;
    text-decoration: none;
}

.footer-contact {
    color: var(--sw-muted);
    line-height: 1.75;
    margin: 0 0 18px;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--sw-muted);
    font-size: .92rem;
}

/* Mega menu : réduire un peu son poids visuel */
.mega-panel {
    padding: 12px 0 14px;
}

.mega-card {
    min-height: 82px;
}

/* Responsive final */
@media (max-width: 1050px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .public-body h1 {
        font-size: clamp(2.2rem, 7vw, 4rem);
    }
}

@media (max-width: 680px) {
    .public-body:not(.page-home) .hero,
    .public-body:not(.page-home) .sw-hero,
    .public-body:not(.page-home) .home-hero,
    .public-body:not(.page-home) .ecosystem-hero,
    .public-body:not(.page-home) .main-hero,
    .public-body:not(.page-home) .page-hero {
        padding: 44px 0 42px;
    }

    .public-body h1,
    .public-body.page-services h1,
    .public-body.page-services .hero-title {
        font-size: clamp(2rem, 11vw, 3.1rem);
        line-height: 1.05;
    }

    .public-body .section,
    .public-body .sw-section,
    .public-body .public-section,
    .public-body .home-section,
    .public-body .ecosystem-section,
    .public-body .page-section {
        padding: 44px 0;
    }

    .public-body .service-card,
    .public-body .program-card,
    .public-body .feature-card,
    .public-body .platform-card,
    .public-body .card,
    .public-body .premium-card,
    .public-body .info-card {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .premium-footer,
    .sw-footer,
    footer {
        padding: 46px 0 24px;
    }
}

