/* ============================================================
   CALCULATEUR BRUT EN NET — Global Stylesheet
   Fonts: Outfit (headings) + Inter (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --white:         #FFFFFF;
    --navy:          #1A2B4A;
    --navy-light:    #2C4270;
    --blue:          #0066CC;
    --blue-hover:    #0052A3;
    --blue-light:    #E8F0FE;
    --blue-border:   #C5D8F5;
    --green:         #00A651;
    --green-light:   #E6F7EE;
    --green-border:  #B3E5CC;
    --grey-bg:       #F0F4F8;
    --grey-border:   #D8E2EE;
    --grey-light:    #F7F9FC;
    --text-primary:  #1A2B4A;
    --text-secondary:#6B7A99;
    --text-muted:    #9AA5BC;
    --red:           #DC3545;
    --red-light:     #FFF0F0;
    --orange:        #E8760A;
    --orange-light:  #FEF3E6;

    --font-heading:  'Outfit', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;

    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;

    --shadow-sm:     0 1px 3px rgba(26,43,74,0.08);
    --shadow:        0 4px 16px rgba(26,43,74,0.10);
    --shadow-lg:     0 8px 32px rgba(26,43,74,0.12);

    --container:     1100px;
    --container-sm:  760px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--blue-hover);
}

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

ul, ol {
    padding-left: 1.4em;
    margin-bottom: 1rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }

p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

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

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

.container-sm {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--grey-bg);
    padding: 56px 0;
}

.section-title {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--grey-border);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo:hover { text-decoration: none; }

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--blue);
    background: var(--blue-light);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy);
}

/* ============================================================
   HERO / CALCULATOR SECTION
   ============================================================ */
.hero {
    background: var(--white);
    padding: 48px 0 0;
}

.hero-head {
    margin-bottom: 32px;
}

.hero-head p {
    font-size: 1.05rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--green-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Calculator card */
.calc-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calc-body {
    padding: 28px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

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

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Uniform height for all inputs, selects and toggles */
.form-control {
    height: 44px;
    box-sizing: border-box;
    border: 1.5px solid var(--grey-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.form-control-lg {
    font-size: 1.05rem;
    font-weight: 600;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Period toggle — same height as inputs */
.period-toggle {
    height: 44px;
    box-sizing: border-box;
    display: flex;
    border: 1.5px solid var(--grey-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--grey-bg);
}

.period-toggle input[type="radio"] {
    display: none;
}

.period-toggle label {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid var(--grey-border);
    white-space: nowrap;
}

.period-toggle label:last-of-type {
    border-right: none;
}

.period-toggle input[type="radio"]:checked + label {
    background: var(--white);
    color: var(--blue);
    font-weight: 600;
}

/* Samples strip — label on its own line, buttons on next line */
.samples-strip {
    border-top: 1px solid var(--grey-border);
    padding: 14px 20px;
    background: var(--grey-light);
}

.samples-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.samples-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Submit button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--blue);
    color: white;
    padding: 13px 28px;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(0,102,204,0.25);
    color: white;
}

.btn-primary:active { transform: scale(0.98); }

.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--blue-light);
    color: var(--blue);
}

/* ============================================================
   RESULT DISPLAY
   ============================================================ */
.result-panel {
    background: var(--navy);
    padding: 28px;
    display: none;
}

.result-panel.visible {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-period-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-card {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.result-card-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    font-weight: 500;
}

.result-card-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.result-card-value.highlight {
    color: #4ADEAA;
    font-size: 1.8rem;
}

.result-card-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* Breakdown table */
.breakdown-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.breakdown-table tr:last-child {
    border-bottom: none;
}

.breakdown-table td {
    padding: 8px 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.breakdown-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.breakdown-table .row-total td {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.breakdown-table .row-negative td:last-child {
    color: #FCA5A5;
}

/* Raise simulator */
.raise-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.raise-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.raise-input {
    width: 70px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-align: center;
    outline: none;
}

.raise-result {
    font-size: 0.875rem;
    color: #4ADEAA;
    font-weight: 600;
}

/* ============================================================
   SAMPLE SALARIES STRIP
   ============================================================ */
.samples-strip {
    border-top: 1px solid var(--grey-border);
    padding: 16px 28px;
    background: var(--grey-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.samples-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-right: 4px;
}

.sample-btn {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    font-family: var(--font-body);
    white-space: nowrap;
}

.sample-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* ============================================================
   PROGRAMMATIC PAGES GRID (Homepage)
   ============================================================ */
.prog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.prog-card {
    display: block;
    background: var(--white);
    border: 1.5px solid var(--grey-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.prog-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.prog-card-brut {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.prog-card-amount {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.prog-card-net {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    padding: 56px 0;
}

.content-section + .content-section {
    border-top: 1px solid var(--grey-border);
    padding-top: 56px;
}

/* Info cards row */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.info-card {
    background: var(--grey-light);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.875rem;
    margin: 0 0 0 0;
    flex: 1;
}

.info-card .btn {
    align-self: flex-start;
    margin-top: 16px;
}

/* Worked example */
.worked-example {
    background: var(--grey-light);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0;
}

.we-header {
    background: var(--navy);
    color: white;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.we-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--grey-border);
}

.we-row:last-child { border-bottom: none; }

.we-label {
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border-right: 1px solid var(--grey-border);
    display: flex;
    align-items: center;
}

.we-value {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.we-value strong {
    color: var(--blue);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 16px 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table th {
    background: var(--navy);
    color: white;
    padding: 11px 14px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--grey-border);
    color: var(--text-secondary);
    vertical-align: top;
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--grey-light); }
.data-table tr:nth-child(even) td { background: var(--grey-bg); }

/* SMIC highlight table */
.smic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}

.smic-table th {
    background: var(--blue);
    color: white;
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
}

.smic-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--grey-border);
}

.smic-table td:not(:first-child) {
    font-weight: 600;
    color: var(--navy);
}

.smic-table td.net-value {
    color: var(--green);
}

/* FAQ accordion */
.faq-list { margin: 16px 0; }

details {
    border-bottom: 1px solid var(--grey-border);
}

details:first-child { border-top: 1px solid var(--grey-border); }

summary {
    padding: 18px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
}

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

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--blue);
    flex-shrink: 0;
    font-weight: 400;
    transition: transform 0.2s;
}

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

.faq-answer {
    padding: 0 0 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 70ch;
}

.faq-answer p { max-width: none; }

/* SMIC history */
.smic-history {
    border-left: 3px solid var(--blue);
    padding-left: 20px;
    margin: 20px 0;
}

.smic-history-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--grey-border);
    font-size: 0.875rem;
    gap: 16px;
}

.smic-history-item:last-child { border-bottom: none; }

.smic-history-date { color: var(--text-muted); font-size: 0.8rem; }
.smic-history-brut { font-weight: 600; color: var(--navy); }
.smic-history-net  { color: var(--green); font-weight: 600; }

/* Salary comparison bar */
.comparison-bar {
    background: var(--grey-bg);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.comparison-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.bar-track {
    height: 10px;
    background: var(--grey-border);
    border-radius: 5px;
    position: relative;
    margin-bottom: 8px;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    background: var(--blue);
    transition: width 0.6s ease;
    max-width: 100%;
}

.bar-fill.bar-median { background: var(--green); }
.bar-fill.bar-smic   { background: var(--orange); }

.bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.78rem;
}

.bar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.bar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Notice boxes */
.notice {
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.875rem;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice-icon { flex-shrink: 0; font-size: 1rem; }

.notice-info {
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    color: var(--navy);
}

.notice-warning {
    background: var(--orange-light);
    border: 1px solid #F5C07A;
    color: #7A4500;
}

.notice-success {
    background: var(--green-light);
    border: 1px solid var(--green-border);
    color: #005C2E;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 12px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    list-style: none;
    margin: 0;
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 4px;
    color: var(--grey-border);
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
}

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

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.blog-card h3 a {
    color: var(--navy);
    text-decoration: none;
}

.blog-card h3 a:hover { color: var(--blue); }

.blog-card p {
    font-size: 0.85rem;
    margin: 0 0 16px;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--grey-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 32ch;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 0.875rem;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: white;
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    max-width: none;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-disclaimer {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-red    { color: var(--red); }
.text-small  { font-size: 0.82rem; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.gap-8    { gap: 8px; }
.gap-16   { gap: 16px; }
.gap-24   { gap: 24px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none; }
.visible { display: block; }

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--grey-border);
    margin: 40px 0;
}

/* Tag / pill */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.tag-blue   { background: var(--blue-light);  color: var(--blue); }
.tag-green  { background: var(--green-light); color: var(--green); }
.tag-orange { background: var(--orange-light); color: var(--orange); }

/* Definition cards */
.definition-card {
    background: var(--grey-light);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.definition-card h3 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.definition-card p {
    margin-bottom: 12px;
}

.definition-card p:last-child {
    margin-bottom: 0;
}

.definition-formula {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin: 14px 0;
}

/* SMIC history cards */
.smic-history-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.smic-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    border-top: 3px solid var(--grey-border);
}

.smic-card-current {
    border-top-color: var(--green);
    background: var(--green-light);
    border-color: var(--green-border);
}

.smic-card-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.smic-card-current .smic-card-date {
    color: var(--green);
}

.smic-card-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.smic-card-brut {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    background: var(--grey-bg);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.smic-card-current .smic-card-brut {
    background: var(--white);
}

.smic-card-net {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.smic-card-current .smic-card-net {
    background: var(--white);
}

.smic-card-hourly {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--grey-bg);
}

.smic-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .smic-history-cards {
        grid-template-columns: 1fr;
    }
}

.howto-grid {
    grid-template-columns: repeat(2, 1fr);
}

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



.footer-grid-3 {
    grid-template-columns: 2fr 1fr 1fr;
}

.contact-grid {
    grid-template-columns: 2fr 1fr;
}

.contact-fields-grid {
    grid-template-columns: 1fr 1fr;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .calc-options {
        grid-template-columns: 1fr 1fr;
    }
    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .prog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-options {
        grid-template-columns: 1fr;
    }
    .result-grid {
        grid-template-columns: 1fr !important;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    /* Override any inline grid-template-columns on info-grid on mobile */
    .info-grid[style*="repeat"] {
        grid-template-columns: 1fr !important;
    }
    /* Tables scroll horizontally on mobile */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .prog-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: 1fr !important;
        grid-column: span 1 !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--grey-border);
        padding: 12px 16px;
        flex-direction: column;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .we-row { grid-template-columns: 1fr; }
    .we-label { border-right: none; border-bottom: 1px solid var(--grey-border); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid-3 { grid-template-columns: 1fr; }
    .footer-brand p { max-width: none; margin: 0 auto; }
    .footer-col ul { padding-left: 0; list-style: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-fields-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}