/* =========================================================
   StatutPro — style.css
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #17191c;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --background: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f0f2f5;

    --text: #17191c;
    --text-light: #6d737c;

    --border: #dfe3e8;

    --primary: #1f6feb;
    --primary-dark: #174ea6;
    --primary-soft: #eaf2ff;

    --violet: #7c3aed;
    --violet-soft: #f3e8ff;

    --success: #137a50;
    --success-soft: #eaf8f1;

    --danger: #b83b31;
    --danger-soft: #fceeed;

    --dark: #111827;
    --dark-soft: #192232;

    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 24px;

    --shadow-small:
        0 4px 16px rgba(0, 0, 0, 0.05);

    --shadow:
        0 16px 40px rgba(0, 0, 0, 0.08);

    --container: 1180px;

    /* Hauteur utilisée par les éléments sticky */
    --header-height: 72px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 40px;
}

.section-title h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-title p {
    margin: 0;
    max-width: 760px;
    color: var(--text-light);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;

    border-radius: 999px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 700;
}

.small-title {
    display: block;
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(223, 227, 232, 0.8);
}

.header-container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.navigation a {
    color: var(--text-light);

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.navigation a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}


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

.hero {
    padding: 100px 0 80px;

    background:
        radial-gradient(
            circle at top right,
            rgba(31, 111, 235, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--background) 100%
        );
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);

    gap: 60px;

    align-items: center;
}

.hero-content h1 {
    margin: 18px 0;

    max-width: 800px;

    font-size: clamp(2.7rem, 7vw, 5.5rem);
    line-height: 0.98;

    letter-spacing: -0.045em;
}

.hero-content h1 strong {
    color: var(--primary);
}

.hero-description {
    max-width: 720px;
    margin: 0;

    color: var(--text-light);

    font-size: 1.18rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 22px;

    margin: 28px 0;
}

.hero-features span {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 12px;

    background: var(--primary);
    color: #ffffff;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-summary {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: rgba(255, 255, 255, 0.9);

    box-shadow: var(--shadow);
}

.summary-label {
    display: block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-summary > strong {
    display: block;

    margin-bottom: 22px;

    font-size: 1.8rem;
    line-height: 1.15;
}

.hero-summary ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: grid;
    gap: 14px;
}

.hero-summary li {
    padding: 14px 16px;

    border-radius: 12px;

    background: var(--surface-soft);

    font-weight: 600;
}


/* =========================================================
   SIMULATEUR
   ========================================================= */

.simulator {
    background: var(--surface);
}

.simulator-box {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
}

.form-group small {
    color: var(--text-light);
    line-height: 1.4;
}

input,
select {
    width: 100%;
    min-height: 50px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #ffffff;
    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.1);
}

.input-money {
    display: flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;
}

.input-money:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.1);
}

.input-money input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.input-money input:focus {
    box-shadow: none;
}

.input-money span {
    padding: 0 14px;

    color: var(--text-light);

    white-space: nowrap;
}

.advanced-options {
    margin-top: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

.advanced-options summary {
    list-style: none;

    padding: 20px 24px;

    font-weight: 800;

    cursor: pointer;
}

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

.advanced-options summary::after {
    content: "+";

    float: right;

    color: var(--primary);

    font-size: 1.4rem;
}

.advanced-options[open] summary::after {
    content: "−";
}

.advanced-content {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;

    padding: 0 24px 24px;
}


/* =========================================================
   POURCENTAGES
   ========================================================= */

.ca-percent {
    color: var(--violet) !important;
    font-weight: 800 !important;
}

.amount-value {
    font-weight: inherit;
}


/* =========================================================
   TABLEAU
   ========================================================= */

.comparison {
    background: var(--surface);
}

.table-container {
    width: 100%;

    /*
       Important : sur ordinateur on laisse le débordement vertical visible.
       Ainsi l'en-tête sticky reste lié à la hauteur réelle du tableau et
       disparaît naturellement lorsque le tableau est terminé.
    */
    overflow: visible;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

table {
    width: 100%;
    min-width: 1000px;

    border-collapse: collapse;
}

th,
td {
    padding: 17px 18px;

    border-bottom: 1px solid var(--border);

    text-align: right;
    white-space: nowrap;
}

thead th {
    position: sticky;
    top: var(--header-height);

    background: var(--dark);
    color: #ffffff;

    /* Le tableau passe sous le menu principal, jamais au-dessus. */
    z-index: 20;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

thead th:first-child,
tbody th {
    text-align: left;
}

thead th:first-child,
tbody th {
    position: sticky;
    left: 0;
}

thead th:first-child {
    z-index: 30;
}

tbody th {
    z-index: 10;
}

tbody th {
    background: var(--surface);
}

tbody td {
    font-variant-numeric: tabular-nums;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   TABLEAU — DÉDUCTIONS
   ========================================================= */

.row-deduction th,
.row-deduction td {
    background: var(--success-soft);
}

.row-deduction th {
    color: var(--success);
}

.row-deduction:hover th,
.row-deduction:hover td {
    background: #dcf4e8;
}


/* =========================================================
   TABLEAU — TAXES
   ========================================================= */

.row-tax th,
.row-tax td {
    background: var(--danger-soft);
}

.row-tax th {
    color: var(--danger);
}

.row-tax:hover th,
.row-tax:hover td {
    background: #f8dfdc;
}


/* =========================================================
   TABLEAU — POSITIF
   ========================================================= */

.row-positive th,
.row-positive td {
    background: #f4faf7;
}

.row-positive:hover th,
.row-positive:hover td {
    background: #eaf6ef;
}


/* =========================================================
   TABLEAU — IMPORTANT
   ========================================================= */

.important-row th,
.important-row td {
    background: var(--primary-soft);

    font-weight: 800;
}

.important-row th {
    color: var(--primary-dark);
}

.important-row:hover th,
.important-row:hover td {
    background: #dceaff;
}

tbody tr:not(.row-tax):not(.row-deduction):not(.row-positive):not(.important-row):hover th,
tbody tr:not(.row-tax):not(.row-deduction):not(.row-positive):not(.important-row):hover td {
    background: #f8fbff;
}

.mobile-table-help {
    display: block;

    margin-top: 12px;

    color: var(--text-light);

    line-height: 1.5;
}


/* =========================================================
   SECTION RÉPARTITION DU CA
   ========================================================= */

.money-section {
    background:
        linear-gradient(
            180deg,
            #111827 0%,
            #0d1421 100%
        );

    color: #ffffff;
}

.money-section .section-title {
    margin-bottom: 32px;
}

.money-section .section-title h2 {
    color: #ffffff;
}

.money-section .section-title p {
    color: rgba(255, 255, 255, 0.68);
}

.money-section .small-title {
    color: #9bbcff;
}


/* =========================================================
   SÉLECTEUR DU RÉGIME
   ========================================================= */

.money-regime-area {
    margin-bottom: 28px;
}

.money-selector-label {
    display: block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.85rem;
    font-weight: 700;
}

.regime-selector {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.regime-button {
    min-width: 95px;

    padding: 11px 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);

    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.regime-button:hover {
    border-color: rgba(255, 255, 255, 0.45);

    color: #ffffff;

    transform: translateY(-1px);
}

.regime-button.active {
    background: #ffffff;
    color: var(--dark);

    border-color: #ffffff;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   RÉSULTAT PRINCIPAL
   ========================================================= */

.money-result-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.5fr);

    gap: 18px;

    margin-bottom: 22px;
}

.money-summary {
    padding: 28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: var(--radius-large);

    background:
        rgba(255, 255, 255, 0.055);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.money-main-result {
    background:
        linear-gradient(
            135deg,
            rgba(31, 111, 235, 0.18),
            rgba(124, 58, 237, 0.08)
        );

    border-color:
        rgba(84, 144, 255, 0.32);
}

.money-company-result {
    background:
        rgba(255, 255, 255, 0.045);
}

.money-summary-label {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.88rem;
    font-weight: 700;
}

.money-summary > strong {
    display: block;

    margin: 4px 0 10px;

    font-size:
        clamp(
            2rem,
            5vw,
            3.4rem
        );

    line-height: 1.05;
}

.money-main-result #selected-personal-net {
    color: #ffffff;
}

.money-summary-description {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.66);
}

.money-company-icon {
    width: 46px;
    height: 46px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 4px 0 14px !important;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 1.2rem !important;
}

#selected-company-cash {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1rem;
}


/* =========================================================
   LÉGENDE
   ========================================================= */

.money-legend {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 30px;
}

.money-legend-item {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.04);

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.85rem;
}

.money-legend-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    flex: 0 0 auto;
}

.money-legend-dot.deduction {
    background: #62d79e;
}

.money-legend-dot.tax {
    background: #ef8e86;
}

.money-legend-dot.neutral {
    background: #aab4c5;
}


/* =========================================================
   ENTÊTE DÉTAIL
   ========================================================= */

.money-details-header {
    margin-bottom: 14px;
}

.money-details-header h3 {
    margin: 0 0 4px;

    font-size: 1.15rem;
}

.money-details-header p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.9rem;
}


/* =========================================================
   CARTES DE VENTILATION
   ========================================================= */

.money-breakdown {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.money-breakdown > div {
    min-height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.045);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.money-breakdown > div:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255, 255, 255, 0.18);
}

.money-breakdown span {
    display: block;

    margin-bottom: 8px;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 0.88rem;
}

.money-breakdown strong {
    display: block;

    font-size: 1.22rem;
    line-height: 1.25;
}

.money-breakdown small {
    display: block;

    margin-top: 8px;

    color:
        rgba(255, 255, 255, 0.55);
}


/* =========================================================
   VENTILATION — DÉDUCTIONS
   ========================================================= */

.money-item-deduction {
    border-color:
        rgba(66, 190, 125, 0.28)
        !important;

    background:
        rgba(26, 135, 78, 0.13)
        !important;
}


/* =========================================================
   VENTILATION — TAXES
   ========================================================= */

.money-item-tax {
    border-color:
        rgba(220, 85, 75, 0.28)
        !important;

    background:
        rgba(171, 57, 49, 0.13)
        !important;
}


/* =========================================================
   VENTILATION — POSITIF
   ========================================================= */

.money-item-positive {
    border-color:
        rgba(123, 168, 255, 0.25)
        !important;

    background:
        rgba(31, 111, 235, 0.09)
        !important;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.money-information {
    margin-top: 22px;

    padding: 18px 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.035);
}

.money-information strong {
    display: block;

    margin-bottom: 6px;

    color: #ffffff;
}

.money-information p {
    margin: 0;

    max-width: 900px;

    color:
        rgba(255, 255, 255, 0.6);

    font-size: 0.9rem;
}


/* =========================================================
   RÉGIMES
   ========================================================= */

.regime-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.regime-card {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

.regime-card > span {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 7px 10px;

    border-radius: 8px;

    background: var(--primary-soft);
    color: var(--primary);

    font-weight: 800;
}

.regime-card h3 {
    margin: 0 0 10px;
}

.regime-card p {
    margin: 0;

    color: var(--text-light);
}


/* =========================================================
   MÉTHODOLOGIE
   ========================================================= */

.methodology {
    background: var(--surface-soft);
}

.methodology-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.methodology-grid article {
    padding: 34px;

    border-radius: var(--radius-large);

    background: #ffffff;

    box-shadow: var(--shadow-small);
}

.methodology-grid h2 {
    margin: 0 0 14px;

    font-size: 2rem;
}

.methodology-grid p {
    margin: 0;

    color: var(--text-light);
}


/* =========================================================
   SOURCES
   ========================================================= */

.sources {
    background: var(--surface);
}

.source-list {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.source-list span {
    padding: 10px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-soft);

    font-weight: 700;
}

.fiscal-version {
    margin-top: 24px;

    color: var(--text-light);
}


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

.faq {
    background: var(--background);
}

.faq-list {
    display: grid;

    gap: 12px;

    max-width: 900px;
}

.faq-list details {
    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    overflow: hidden;
}

.faq-list summary {
    padding: 20px 22px;

    font-weight: 800;

    cursor: pointer;
}

.faq-list p {
    margin: 0;

    padding: 0 22px 22px;

    color: var(--text-light);
}


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

.footer {
    padding: 60px 0 30px;

    background: #0b1020;
    color: #ffffff;
}

.footer-main {
    display: grid;

    grid-template-columns:
        1.3fr
        0.7fr;

    gap: 50px;

    padding-bottom: 36px;
}

.footer-main p {
    max-width: 550px;

    color:
        rgba(255, 255, 255, 0.65);
}

.footer-main nav {
    display: grid;

    gap: 10px;

    align-content: start;
}

.footer-main nav a {
    color:
        rgba(255, 255, 255, 0.75);
}

.footer-main nav a:hover {
    color: #ffffff;
}


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

.footer-logo {
    display: inline-block;

    margin-bottom: 16px;
}

.footer-logo img {
    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 56px;

    object-fit: contain;
}


/* =========================================================
   AVERTISSEMENT
   ========================================================= */

.legal-warning {
    padding: 20px 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.04);
}

.legal-warning p {
    margin: 6px 0 0;

    color:
        rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 18px;

    padding-top: 26px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 0.9rem;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

:focus-visible {
    outline:
        3px solid
        rgba(31, 111, 235, 0.45);

    outline-offset: 3px;
}


/* =========================================================
   TABLEAU — RESPONSIVE / SCROLL HORIZONTAL
   ========================================================= */

@media (max-width: 1180px) {

    .table-container {
        /*
           Le scroll horizontal est réactivé lorsque l'écran devient trop
           étroit pour les colonnes. Le sticky vertical reste réglé sous
           le menu et le premier libellé reste figé à gauche.
        */
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 960px) {

    .hero-container {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .hero-summary {
        max-width: 650px;
    }

    .regime-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .money-result-layout {
        grid-template-columns: 1fr;
    }

    .money-breakdown {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    :root {
        --header-height: 64px;
    }

    .container {
        width:
            min(
                100% - 24px,
                var(--container)
            );
    }

    .section {
        padding: 58px 0;
    }

    .header-container {
        min-height: 64px;
    }

    .navigation {
        display: none;
    }

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

    .hero-content h1 {
        font-size:
            clamp(
                2.5rem,
                13vw,
                4rem
            );
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;

        gap: 10px;
    }

    .hero-link {
        width: 100%;
    }

    .hero-summary {
        padding: 22px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .simulator-box {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .advanced-content {
        grid-template-columns: 1fr;

        padding-inline: 18px;
    }

    /* =====================================================
       TABLEAU COMPARATIF — MOBILE SANS SCROLL HORIZONTAL
       ===================================================== */

    .comparison .container {
        width: calc(100% - 12px);
    }

    .table-sticky-scope,
    .table-container {
        width: 100%;
        overflow: visible;
    }

    .comparison table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .comparison th,
    .comparison td {
        padding: 9px 4px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .comparison thead th {
        top: var(--header-height);
        padding: 10px 3px;
        font-size: 0.68rem;
    }

    .comparison thead th:first-child,
    .comparison tbody th {
        position: static;
        left: auto;
    }

    .comparison thead th:first-child {
        width: 28%;
        text-align: left;
    }

    .comparison thead th:not(:first-child) {
        width: 18%;
        text-align: center;
    }

    .comparison tbody th {
        width: 28%;
        text-align: left;
        font-size: 0.68rem;
        font-weight: 700;
    }

    .comparison tbody td {
        width: 18%;
        text-align: center;
        font-size: 0.68rem;
        font-variant-numeric: tabular-nums;
    }

    .comparison .amount-value,
    .comparison .ca-percent {
        display: block;
    }

    .comparison .ca-percent {
        margin-top: 2px;
        font-size: 0.62rem;
    }

    .mobile-table-help {
        display: none;
    }

    .footer-logo img {
        max-width: 150px;
        max-height: 46px;
    }

    .regime-selector {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .regime-button {
        width: 100%;
    }

    .money-summary {
        padding: 22px;
    }

    .money-summary > strong {
        font-size:
            clamp(
                1.8rem,
                9vw,
                2.8rem
            );
    }

    .money-legend {
        display: grid;

        grid-template-columns: 1fr;
    }

    .money-breakdown {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .money-breakdown > div {
        min-height: 112px;
        padding: 14px;
    }

    .money-breakdown strong {
        font-size: 1.05rem;
    }

    .regime-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .regime-card {
        padding: 16px;
    }

    .regime-card > span {
        margin-bottom: 12px;
        padding: 6px 8px;
    }

    .regime-card h3 {
        font-size: 1rem;
    }

    .regime-card p {
        font-size: 0.85rem;
    }

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

    .footer-main {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
    }

}


/* =========================================================
   PETITS MOBILES
   ========================================================= */

@media (max-width: 420px) {

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-summary > strong {
        font-size: 1.5rem;
    }

    .simulator-box {
        padding: 16px;
    }

    .comparison th,
    .comparison td {
        padding: 8px 2px;
        font-size: 0.64rem;
    }

    .comparison thead th {
        font-size: 0.62rem;
    }

    .comparison tbody th,
    .comparison tbody td {
        font-size: 0.62rem;
    }

    .comparison .ca-percent {
        font-size: 0.56rem;
    }

    .footer-logo img {
        max-width: 135px;
        max-height: 42px;
    }

    .regime-selector {
        grid-template-columns: 1fr;
    }

}
