/* ==========================================
   123territorial.fr v2 — CSS principal enrichi
   Design premium multi-FP (FPT / FPE / FPH)
   ========================================== */

/* Variables */
:root {
    --t123-blue:        #1a237e;
    --t123-blue-light:  #3949ab;
    --t123-blue-pale:   #e8eaf6;
    --t123-text:        #111827;
    --t123-text-sec:    #6b7280;
    --t123-text-light:  #9ca3af;
    --t123-border:      #e5e7eb;
    --t123-bg:          #f8fafc;
    --t123-white:       #ffffff;
    --t123-shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --t123-shadow:      0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
    --t123-shadow-lg:   0 12px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
    --t123-shadow-xl:   0 24px 48px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.08);
    --t123-radius:      12px;
    --t123-radius-sm:   8px;
    --t123-radius-lg:   20px;
    --t123-transition:  all .22s cubic-bezier(.4,0,.2,1);
    --t123-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--t123-font);
    color: var(--t123-text);
    background: var(--t123-bg);
    line-height: 1.65;
    font-size: 16px;
}
a { color: var(--t123-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==========================================
   HEADER
   ========================================== */
.t123-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--t123-border);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.t123-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.t123-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.t123-logo-text { font-size: 1.1rem; color: var(--t123-text); line-height: 1; }
.t123-logo-text strong { color: var(--t123-blue); }
.t123-logo-dot { color: var(--t123-text-sec); }

/* Navigation */
.t123-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.t123-nav-link {
    padding: 8px 13px;
    border-radius: var(--t123-radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--t123-text);
    transition: var(--t123-transition);
    white-space: nowrap;
    background: none;
}
.t123-nav-link:hover, .t123-nav-link.active {
    background: var(--t123-blue-pale);
    color: var(--t123-blue);
    text-decoration: none;
}

/* Dropdown */
.t123-nav-dropdown { position: relative; }
.t123-nav-dropdown-btn { display: flex; align-items: center; gap: 4px; }
.t123-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--t123-white);
    border: 1px solid var(--t123-border);
    border-radius: var(--t123-radius);
    box-shadow: var(--t123-shadow-xl);
    min-width: 230px;
    padding: 8px;
    z-index: 200;
    animation: dropdown-in .15s ease;
}
@keyframes dropdown-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
/* Ouverture au clic (JS) ou hover avec délai */
.t123-nav-dropdown-menu.open { display: block; }
/* Pont invisible pour éviter la fermeture entre btn et menu */
.t123-nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
}
.t123-nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--t123-radius-sm);
    font-size: .875rem;
    color: var(--t123-text);
    transition: var(--t123-transition);
    margin: 2px 0;
}
.t123-nav-dropdown-menu a:hover { background: var(--t123-bg); text-decoration: none; }

/* Search header */
.t123-header-search { margin-left: auto; }
.t123-search-wrap { position: relative; display: flex; align-items: center; }
.t123-header-search input {
    width: 240px;
    padding: 8px 40px 8px 14px;
    border: 1.5px solid var(--t123-border);
    border-radius: 24px;
    font-size: .875rem;
    background: var(--t123-bg);
    transition: var(--t123-transition);
    font-family: inherit;
}
.t123-header-search input:focus {
    outline: none;
    border-color: var(--t123-blue-light);
    background: var(--t123-white);
    width: 300px;
    box-shadow: 0 0 0 3px rgba(57,73,171,.1);
}
.t123-header-search button {
    position: absolute;
    right: 10px;
    color: var(--t123-text-sec);
    display: flex;
    align-items: center;
    transition: var(--t123-transition);
}
.t123-header-search button:hover { color: var(--t123-blue); }

/* Burger mobile */
.t123-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.t123-burger span { display: block; width: 22px; height: 2px; background: var(--t123-text); border-radius: 2px; transition: var(--t123-transition); }

/* Banniere AdSense */
.t123-ad-banner { text-align: center; background: var(--t123-white); border-bottom: 1px solid var(--t123-border); min-height: 50px; overflow: hidden; }

/* ==========================================
   HERO — Version enrichie avec particules
   ========================================== */
.t123-hero {
    background: linear-gradient(135deg, #0d1b6e 0%, #1a237e 35%, #283593 65%, #1565C0 100%);
    color: var(--t123-white);
    padding: 88px 24px 0;
    position: relative;
    overflow: hidden;
}
/* Cercles decoratifs */
.t123-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.t123-hero::after {
    content: '';
    position: absolute;
    bottom: 60px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
/* Grille subtile en fond */
.t123-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.t123-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.t123-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 24px;
    padding: 7px 18px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: .03em;
    animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
}
.t123-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -.025em;
}
.t123-hero h1 span {
    background: linear-gradient(135deg, #90caf9, #e3f2fd, #b3e5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.t123-hero-subtitle { font-size: 1.15rem; opacity: .88; margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Hero Search */
.t123-hero-search { margin-bottom: 52px; }
.t123-hero-search-wrap {
    display: flex;
    align-items: center;
    background: var(--t123-white);
    border-radius: 56px;
    padding: 8px 8px 8px 22px;
    gap: 12px;
    max-width: 660px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.12);
    position: relative;
    transition: var(--t123-transition);
}
.t123-hero-search-wrap:focus-within {
    box-shadow: 0 24px 64px rgba(0,0,0,.32), 0 0 0 3px rgba(255,255,255,.3);
}
.t123-hero-search-wrap input {
    flex: 1;
    border: none;
    font-size: 1.05rem;
    color: var(--t123-text);
    background: transparent;
    font-family: inherit;
    min-width: 0;
}
.t123-hero-search-wrap input:focus { outline: none; }
.t123-hero-search-wrap input::placeholder { color: var(--t123-text-light); }
.t123-hero-search-wrap button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--t123-blue);
    color: var(--t123-white);
    padding: 13px 26px;
    border-radius: 48px;
    font-size: .95rem;
    font-weight: 600;
    transition: var(--t123-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.t123-hero-search-wrap button:hover { background: var(--t123-blue-light); transform: scale(1.02); }

/* Hero stats */
.t123-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.t123-hero-stat { text-align: center; }
.t123-hero-stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.t123-hero-stat span { font-size: .82rem; opacity: .72; letter-spacing: .02em; text-transform: uppercase; }
.t123-hero-stat-point {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 12px 22px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

/* Wave amelioree */
.t123-hero-wave { margin-top: 0; line-height: 0; }
.t123-hero-wave svg { width: 100%; display: block; }

/* Autocomplete */
.t123-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--t123-white);
    border: 1px solid var(--t123-border);
    border-radius: var(--t123-radius);
    box-shadow: var(--t123-shadow-xl);
    z-index: 50;
    overflow: hidden;
    animation: dropdown-in .15s ease;
}
.t123-autocomplete.open { display: block; }
.t123-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--t123-text);
    border-bottom: 1px solid var(--t123-border);
    transition: var(--t123-transition);
}
.t123-autocomplete-item:last-child { border-bottom: none; }
.t123-autocomplete-item:hover { background: var(--t123-bg); }

/* ==========================================
   SECTIONS
   ========================================== */
.t123-section { padding: 72px 24px; }
.t123-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.t123-section-header { text-align: center; margin-bottom: 52px; }
.t123-section-header h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.t123-section-header p { color: var(--t123-text-sec); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ==========================================
   FILIERES GRID — Cards avec bordure top
   ========================================== */
.t123-filieres-section { background: var(--t123-white); }
.t123-filieres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t123-filieres-grid-sm { grid-template-columns: repeat(4, 1fr); gap: 12px; }

.t123-filiere-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: var(--t123-white);
    border: 1.5px solid color-mix(in srgb, var(--filiere-color, #1565C0) 18%, transparent);
    border-radius: var(--t123-radius);
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 4%, white);
    text-decoration: none;
    transition: var(--t123-transition);
    position: relative;
    overflow: hidden;
}
.t123-filiere-card:hover {
    border-color: color-mix(in srgb, var(--filiere-color, #1565C0) 40%, transparent);
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 7%, white);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--filiere-color, #1565C0) 18%, transparent);
    transform: translateY(-4px);
    text-decoration: none;
}
.t123-filiere-icon {
    width: 56px; height: 56px;
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 12%, white);
    border-radius: var(--t123-radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--t123-transition);
}
.t123-filiere-card:hover .t123-filiere-icon {
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 18%, white);
    transform: scale(1.08);
}
.t123-filiere-content { flex: 1; min-width: 0; }
.t123-filiere-content h3 { font-size: 1rem; font-weight: 600; color: var(--t123-text); margin-bottom: 3px; }
.t123-filiere-count {
    font-size: .78rem; color: var(--t123-text-sec);
    background: var(--t123-bg); padding: 2px 8px; border-radius: 10px;
    display: inline-block; margin-top: 2px;
}
.t123-filiere-arrow { flex-shrink: 0; opacity: .6; transition: var(--t123-transition); }
.t123-filiere-card:hover .t123-filiere-arrow { opacity: 1; transform: translateX(3px); }

/* ==========================================
   SECTION 3 FONCTIONS PUBLIQUES
   ========================================== */
.t123-3fp-section { background: #f0f4f8; padding: 72px 24px; }
.t123-3fp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.t123-fp-card {
    border-radius: var(--t123-radius-lg);
    overflow: hidden;
    background: var(--t123-white);
    box-shadow: var(--t123-shadow);
    text-decoration: none;
    transition: var(--t123-transition);
    display: flex;
    flex-direction: column;
}
.t123-fp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t123-shadow-xl);
    text-decoration: none;
}
.t123-fp-card-top {
    padding: 32px 28px 28px;
    color: white;
    position: relative;
    overflow: hidden;
}
.t123-fp-card-top::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
}
.t123-fp-card-code {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.t123-fp-card-desc {
    font-size: 1rem;
    font-weight: 600;
    opacity: .95;
    margin-bottom: 4px;
    line-height: 1.3;
}
.t123-fp-card-top small { font-size: .8rem; opacity: .78; }
.t123-fp-card-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--t123-border);
}
.t123-fp-card-stat {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    border-right: 1px solid var(--t123-border);
}
.t123-fp-card-stat:last-child { border-right: none; }
.t123-fp-card-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--fp-color, var(--t123-blue));
    letter-spacing: -.01em;
}
.t123-fp-card-stat span { font-size: .75rem; color: var(--t123-text-sec); text-transform: uppercase; letter-spacing: .04em; }
.t123-fp-card-cta {
    padding: 14px 20px;
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
    background: var(--t123-bg);
    transition: var(--t123-transition);
}
.t123-fp-card:hover .t123-fp-card-cta { background: color-mix(in srgb, var(--fp-color, #1565C0) 6%, white); }

/* ==========================================
   POINT D INDICE
   ========================================== */
.t123-point-section { background: linear-gradient(135deg, #eef2ff, #f3e5f5); }
.t123-point-card {
    display: flex;
    align-items: center;
    gap: 36px;
    background: var(--t123-white);
    border-radius: var(--t123-radius-lg);
    padding: 44px;
    box-shadow: var(--t123-shadow-lg);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.t123-point-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(26,35,126,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.t123-point-icon {
    width: 88px; height: 88px;
    background: linear-gradient(135deg, var(--t123-blue), var(--t123-blue-light));
    border-radius: var(--t123-radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(26,35,126,.25);
}
.t123-point-content { flex: 1; }
.t123-point-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.t123-point-value { font-size: 2.6rem; font-weight: 900; color: var(--t123-blue); letter-spacing: -.03em; line-height: 1; }
.t123-point-content p { color: var(--t123-text-sec); margin-top: 8px; }
.t123-point-note { font-size: .85rem; background: var(--t123-bg); padding: 10px 14px; border-radius: var(--t123-radius-sm); margin-top: 14px !important; border: 1px solid var(--t123-border); }

/* ==========================================
   ARTICLES
   ========================================== */
.t123-articles-section { background: var(--t123-bg); }
.t123-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t123-articles-grid-large { grid-template-columns: repeat(2, 1fr); }
.t123-article-card {
    background: var(--t123-white);
    border: 1px solid var(--t123-border);
    border-radius: var(--t123-radius);
    padding: 26px;
    transition: var(--t123-transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.t123-article-card:hover { box-shadow: var(--t123-shadow); transform: translateY(-2px); }
.t123-article-cat {
    display: inline-block;
    background: var(--t123-blue-pale);
    color: var(--t123-blue);
    font-size: .73rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 24px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.t123-article-card h2, .t123-article-card h3 { font-size: 1.05rem; font-weight: 600; }
.t123-article-card h2 a, .t123-article-card h3 a { color: var(--t123-text); }
.t123-article-card h2 a:hover, .t123-article-card h3 a:hover { color: var(--t123-blue); text-decoration: none; }
.t123-article-card p { font-size: .9rem; color: var(--t123-text-sec); flex: 1; }
.t123-article-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.t123-article-date, .t123-article-author { font-size: .8rem; color: var(--t123-text-light); display: flex; align-items: center; gap: 4px; }
.t123-article-link { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--t123-blue); }
.t123-section-header .t123-link-more { font-size: .9rem; font-weight: 600; color: var(--t123-blue); }

/* ==========================================
   GUIDE
   ========================================== */
.t123-guide-section { background: var(--t123-white); }
.t123-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.t123-guide-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--t123-radius-lg);
    border: 1.5px solid var(--t123-border);
    transition: var(--t123-transition);
    background: var(--t123-white);
}
.t123-guide-card:hover { box-shadow: var(--t123-shadow); transform: translateY(-2px); }
.t123-guide-num {
    width: 52px; height: 52px;
    background: var(--t123-blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(26,35,126,.3);
}
.t123-guide-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.t123-guide-card p { font-size: .9rem; color: var(--t123-text-sec); line-height: 1.6; }

/* ==========================================
   BADGES
   ========================================== */
.t123-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 24px;
    font-size: .75rem;
    font-weight: 700;
    color: white;
    letter-spacing: .02em;
}
.t123-badge-current { background: var(--t123-blue); font-size: .7rem; padding: 2px 8px; }
.t123-tag { display: inline-flex; padding: 5px 14px; border: 1.5px solid; border-radius: 24px; font-size: .85rem; font-weight: 500; transition: var(--t123-transition); }
.t123-tag:hover { opacity: .75; text-decoration: none; }

/* ==========================================
   BREADCRUMB
   ========================================== */
.t123-breadcrumb { margin-bottom: 24px; }
.t123-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; }
.t123-breadcrumb li { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.t123-breadcrumb li::after { content: '›'; color: var(--t123-text-light); }
.t123-breadcrumb li:last-child::after { display: none; }
.t123-breadcrumb a { color: var(--t123-text-sec); }
.t123-breadcrumb a:hover { color: var(--t123-blue); }
.t123-breadcrumb [aria-current] { color: var(--t123-text); font-weight: 500; }

/* ==========================================
   FILIERE PAGE
   ========================================== */
.t123-filiere-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 32px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--filiere-color) 8%, white), white);
    border: 1.5px solid color-mix(in srgb, var(--filiere-color) 20%, white);
    border-radius: var(--t123-radius-lg);
    margin-bottom: 40px;
}
.t123-filiere-header-icon {
    width: 80px; height: 80px;
    background: color-mix(in srgb, var(--filiere-color) 15%, white);
    border-radius: var(--t123-radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.t123-filiere-header h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; }
.t123-filiere-header p { color: var(--t123-text-sec); margin-top: 4px; }
.t123-cadres-group { margin-bottom: 44px; }
.t123-cadres-group-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.t123-cadres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.t123-cadre-card {
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 4%, white);
    border: 1.5px solid color-mix(in srgb, var(--filiere-color, #1565C0) 18%, transparent);
    border-radius: var(--t123-radius);
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--t123-transition);
}
.t123-cadre-card:hover {
    background: color-mix(in srgb, var(--filiere-color, #1565C0) 8%, white);
    border-color: color-mix(in srgb, var(--filiere-color, #1565C0) 40%, transparent);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--filiere-color, #1565C0) 18%, transparent);
    transform: translateY(-3px);
    text-decoration: none;
}
.t123-cadre-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.t123-cadre-card-header h3 { font-size: .95rem; font-weight: 600; color: var(--t123-text); line-height: 1.4; }
.t123-cadre-card-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.t123-cadre-card-meta span { font-size: .8rem; color: var(--t123-text-sec); display: flex; align-items: center; gap: 4px; }
.t123-cadre-card-arrow { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--filiere-color, #1565C0); margin-top: auto; }

/* ==========================================
   PAGE CADRE (fiche complete)
   ========================================== */
.t123-cadre-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}
.t123-cadre-header {
    background: linear-gradient(135deg, color-mix(in srgb, var(--filiere-color) 8%, white), white);
    border: 1.5px solid color-mix(in srgb, var(--filiere-color) 20%, white);
    border-radius: var(--t123-radius-lg);
    padding: 36px;
    margin-bottom: 24px;
}
.t123-cadre-header-top { margin-bottom: 22px; }
.t123-cadre-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.t123-badge-filiere { display: inline-flex; padding: 4px 12px; border-radius: 24px; font-size: .8rem; font-weight: 600; }
.t123-cadre-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.t123-cadre-desc { color: var(--t123-text-sec); font-size: 1rem; }
.t123-cadre-header-stats { display: flex; gap: 28px; padding-top: 22px; border-top: 1px solid var(--t123-border); }
.t123-cadre-stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--filiere-color); letter-spacing: -.02em; }
.t123-cadre-stat span { font-size: .78rem; color: var(--t123-text-sec); text-transform: uppercase; letter-spacing: .04em; }

/* Tabs grades */
.t123-grades-tabs { margin-bottom: 36px; }
.t123-tabs-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--t123-border);
}
.t123-tab-btn {
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--t123-text-sec);
    border-radius: var(--t123-radius-sm) var(--t123-radius-sm) 0 0;
    white-space: nowrap;
    transition: var(--t123-transition);
    background: transparent;
    position: relative;
    bottom: -2px;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}
.t123-tab-btn:hover { color: var(--t123-blue); background: var(--t123-blue-pale); }
.t123-tab-btn.active { color: var(--t123-blue); font-weight: 700; border-bottom-color: var(--t123-blue); }
.t123-tab-panel { display: none; padding-top: 28px; }
.t123-tab-panel.active { display: block; }
.t123-grade-info { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.t123-grade-info h2 { font-size: 1.2rem; font-weight: 700; }
.t123-grade-statut { font-size: .8rem; color: var(--t123-text-sec); background: var(--t123-bg); padding: 4px 10px; border-radius: 6px; }

/* Table grilles — version enrichie */
.t123-table-wrap {
    overflow-x: auto;
    border-radius: var(--t123-radius);
    border: 1px solid var(--t123-border);
    box-shadow: var(--t123-shadow-sm);
}
/* Scrollbar indicator */
.t123-table-wrap::-webkit-scrollbar { height: 4px; }
.t123-table-wrap::-webkit-scrollbar-track { background: var(--t123-bg); }
.t123-table-wrap::-webkit-scrollbar-thumb { background: var(--t123-blue-light); border-radius: 4px; }

.t123-grille-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t123-grille-table caption { text-align: left; padding: 12px 18px; font-size: .8rem; color: var(--t123-text-sec); border-bottom: 1px solid var(--t123-border); background: var(--t123-bg); caption-side: top; }
.t123-grille-table thead th {
    background: linear-gradient(135deg, var(--t123-blue), var(--t123-blue-light));
    color: white;
    padding: 13px 18px;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.t123-grille-table tbody tr { border-bottom: 1px solid var(--t123-border); transition: var(--t123-transition); }
.t123-grille-table tbody tr:last-child { border-bottom: none; }
.t123-grille-table tbody tr:nth-child(even) { background: #fafbfc; }
.t123-grille-table tbody tr:hover { background: var(--t123-blue-pale); }
.t123-grille-table tbody tr.t123-row-current { background: #e8f5e9; font-weight: 600; }
.t123-grille-table td { padding: 12px 18px; vertical-align: middle; }
.t123-echelon-num { font-weight: 700; color: var(--t123-blue); }
.t123-im { font-weight: 700; }
.t123-traitement { color: #2E7D32; font-weight: 700; font-family: 'SF Mono', 'Fira Code', monospace; font-size: .88rem; }

/* Decrets */
.t123-decrets { margin-top: 36px; }
.t123-decrets h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.t123-decrets-list { display: flex; flex-direction: column; gap: 8px; }
.t123-decret-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--t123-white); border: 1px solid var(--t123-border); border-radius: var(--t123-radius-sm); transition: var(--t123-transition); }
.t123-decret-item:hover { box-shadow: var(--t123-shadow-sm); }
.t123-decret-icon { width: 34px; height: 34px; background: var(--t123-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--t123-text-sec); }
.t123-decret-content { flex: 1; }
.t123-decret-content strong { display: block; font-size: .9rem; margin-bottom: 3px; }
.t123-decret-date { font-size: .8rem; color: var(--t123-text-sec); display: block; }
.t123-decret-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--t123-blue); margin-top: 5px; font-weight: 500; }

/* Note calcul */
.t123-note-calcul { margin-top: 36px; padding: 22px; background: linear-gradient(135deg, #f0f4ff, #f8fafc); border: 1px solid var(--t123-border); border-radius: var(--t123-radius); }
.t123-note-calcul h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--t123-blue); }
.t123-note-calcul p { font-size: .9rem; color: var(--t123-text-sec); margin-bottom: 8px; line-height: 1.6; }
.t123-note-calcul p:last-child { margin-bottom: 0; }

/* Sidebar */
.t123-cadre-sidebar { position: sticky; top: 80px; }
.t123-ad-sidebar { margin-bottom: 20px; min-height: 250px; }
.t123-sidebar-card { background: var(--t123-white); border: 1px solid var(--t123-border); border-radius: var(--t123-radius); padding: 22px; margin-bottom: 16px; }
.t123-sidebar-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.t123-sidebar-point-value { font-size: 1.7rem; font-weight: 900; color: var(--t123-blue); margin-bottom: 14px; letter-spacing: -.02em; }
.t123-sidebar-filiere-link { font-weight: 600; font-size: .9rem; }
.t123-sidebar-cat-links { font-size: .85rem; color: var(--t123-text-sec); line-height: 2.2; }

/* ==========================================
   VALEUR DU POINT
   ========================================== */
.t123-vp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-bottom: 52px; }
.t123-vp-hero-content h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.t123-vp-hero-content p { color: var(--t123-text-sec); margin-bottom: 24px; }
.t123-vp-current { padding: 28px; background: linear-gradient(135deg, var(--t123-blue), var(--t123-blue-light)); border-radius: var(--t123-radius-lg); color: white; box-shadow: 0 12px 32px rgba(26,35,126,.3); }
.t123-vp-value { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; }
.t123-vp-since { font-size: .9rem; opacity: .8; margin-top: 6px; }
.t123-vp-formula-card { background: var(--t123-white); border: 1.5px solid var(--t123-border); border-radius: var(--t123-radius-lg); padding: 32px; }
.t123-vp-formula-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.t123-formula { background: var(--t123-bg); border-radius: var(--t123-radius); padding: 22px; margin-bottom: 22px; text-align: center; border: 1px solid var(--t123-border); }
.t123-formula-line { font-size: .85rem; color: var(--t123-text-sec); margin-bottom: 10px; }
.t123-formula-main { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.t123-formula-part { padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 1rem; }
.t123-formula-im { background: var(--t123-blue); color: white; }
.t123-formula-vp { background: #E8F5E9; color: #2E7D32; }
.t123-formula-12 { background: var(--t123-border); color: var(--t123-text); }
.t123-formula-op { font-size: 1.3rem; color: var(--t123-text-sec); font-weight: 700; }
.t123-formula-legend { font-size: .8rem; color: var(--t123-text-sec); }
.t123-vp-examples { display: flex; flex-direction: column; gap: 8px; }
.t123-vp-examples h3 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; }
.t123-vp-example-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--t123-border); font-size: .85rem; }
.t123-vp-example-row:last-child { border-bottom: none; }
.t123-vp-example-row strong { color: #2E7D32; }
.t123-vp-historique { margin-top: 44px; }
.t123-vp-historique h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 22px; }
.t123-vp-timeline { position: relative; padding-left: 36px; }
.t123-vp-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--t123-border); }
.t123-timeline-item { position: relative; margin-bottom: 28px; }
.t123-timeline-dot { position: absolute; left: -30px; top: 6px; width: 13px; height: 13px; background: var(--t123-border); border-radius: 50%; border: 2px solid white; }
.t123-timeline-item.current .t123-timeline-dot { background: var(--t123-blue); box-shadow: 0 0 0 4px rgba(26,35,126,.15); }
.t123-timeline-content { display: flex; flex-direction: column; gap: 3px; }
.t123-timeline-content strong { font-size: 1.15rem; font-weight: 800; color: var(--t123-blue); }
.t123-timeline-content span { font-size: .85rem; color: var(--t123-text-sec); }
.t123-timeline-content em { font-size: .8rem; color: var(--t123-text-light); font-style: normal; }

/* ==========================================
   SEARCH PAGE
   ========================================== */
.t123-search-page-header { margin-bottom: 36px; }
.t123-search-page-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 18px; }
.t123-search-form { max-width: 640px; }
.t123-search-large { position: relative; }
.t123-search-large input {
    flex: 1;
    padding: 14px 20px 14px 50px;
    font-size: 1rem;
    border: 2px solid var(--t123-border);
    border-radius: var(--t123-radius);
    background: var(--t123-white);
    font-family: inherit;
    transition: var(--t123-transition);
    width: 100%;
}
.t123-search-large input:focus { outline: none; border-color: var(--t123-blue-light); box-shadow: 0 0 0 3px rgba(57,73,171,.1); }
.t123-search-large svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--t123-text-sec); }
.t123-search-large button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--t123-blue); color: white; padding: 8px 18px; border-radius: var(--t123-radius-sm); font-size: .9rem; font-weight: 600; transition: var(--t123-transition); }
.t123-search-large button:hover { background: var(--t123-blue-light); }
.t123-search-no-results, .t123-empty { text-align: center; padding: 60px 24px; }
.t123-search-no-results h2, .t123-empty h2 { font-size: 1.4rem; font-weight: 700; margin: 16px 0 8px; }
.t123-search-no-results p, .t123-empty p { color: var(--t123-text-sec); margin-bottom: 24px; }
.t123-search-filieres-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.t123-search-results-header { margin-bottom: 16px; color: var(--t123-text-sec); font-size: .9rem; }
.t123-search-results { display: flex; flex-direction: column; gap: 10px; }
.t123-search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--t123-white);
    border: 1px solid var(--t123-border);
    border-radius: var(--t123-radius);
    text-decoration: none;
    transition: var(--t123-transition);
}
.t123-search-result-item:hover { border-color: #d1d5db; background: #f9fafb; box-shadow: var(--t123-shadow); text-decoration: none; transform: translateX(2px); }
.t123-result-color-bar { display: none; }
.t123-result-content { flex: 1; }
.t123-result-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.t123-result-header h3 { font-size: 1rem; font-weight: 600; color: var(--t123-text); }
.t123-result-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--t123-text-sec); }
.t123-result-filiere { font-weight: 600; }
.t123-search-intro { margin-top: 44px; }
.t123-search-intro h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 22px; }

/* ==========================================
   ARTICLES
   ========================================== */
.t123-articles-page-header { margin-bottom: 36px; }
.t123-articles-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.t123-articles-page-header p { color: var(--t123-text-sec); }
.t123-article-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.t123-filter-btn { padding: 7px 16px; border: 1.5px solid var(--t123-border); border-radius: 24px; font-size: .85rem; font-weight: 500; color: var(--t123-text-sec); transition: var(--t123-transition); cursor: pointer; background: var(--t123-white); }
.t123-filter-btn.active, .t123-filter-btn:hover { background: var(--t123-blue); color: white; border-color: var(--t123-blue); text-decoration: none; }
.t123-article-layout { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.t123-article-header { margin-bottom: 26px; }
.t123-article-cat-large { font-size: .85rem; padding: 5px 14px; margin-bottom: 12px; }
.t123-article-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.t123-article-lead { font-size: 1.15rem; color: var(--t123-text-sec); margin-bottom: 16px; }
.t123-article-meta { display: flex; gap: 16px; font-size: .85rem; color: var(--t123-text-light); }
.t123-article-image { width: 100%; border-radius: var(--t123-radius); margin-bottom: 24px; }
.t123-ad-article { margin: 24px 0; }
.t123-article-content { line-height: 1.85; font-size: 1rem; }
.t123-article-content h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; }
.t123-article-content h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 8px; }
.t123-article-content p { margin-bottom: 18px; }
.t123-article-content ul, .t123-article-content ol { margin: 12px 0 18px 24px; }
.t123-article-content li { margin-bottom: 6px; }
.t123-article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.t123-article-content th, .t123-article-content td { padding: 10px 14px; border: 1px solid var(--t123-border); }
.t123-article-content th { background: var(--t123-bg); font-weight: 600; }
.t123-article-footer-nav { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--t123-border); }
.t123-article-sidebar { position: sticky; top: 80px; }

/* ==========================================
   PAGINATION
   ========================================== */
.t123-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.t123-page-btn { padding: 8px 14px; border: 1.5px solid var(--t123-border); border-radius: var(--t123-radius-sm); font-size: .875rem; font-weight: 500; color: var(--t123-text); background: var(--t123-white); transition: var(--t123-transition); }
.t123-page-btn.active { background: var(--t123-blue); color: white; border-color: var(--t123-blue); }
.t123-page-btn:hover:not(.active) { background: var(--t123-bg); text-decoration: none; }

/* ==========================================
   BOUTONS
   ========================================== */
.t123-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--t123-blue);
    color: white;
    border-radius: var(--t123-radius-sm);
    font-size: .9rem;
    font-weight: 600;
    transition: var(--t123-transition);
    text-decoration: none;
}
.t123-btn:hover { background: var(--t123-blue-light); text-decoration: none; color: white; transform: scale(1.02); }
.t123-btn-outline { background: transparent; color: var(--t123-blue); border: 1.5px solid var(--t123-blue); }
.t123-btn-outline:hover { background: var(--t123-blue-pale); color: var(--t123-blue); }
.t123-btn-white { background: white; color: var(--t123-blue); box-shadow: var(--t123-shadow-sm); }
.t123-btn-white:hover { background: var(--t123-blue-pale); }
.t123-btn-sm { padding: 8px 16px; font-size: .8rem; }

/* ==========================================
   ADS
   ========================================== */
.t123-ad-inline { text-align: center; padding: 20px 24px; }

/* ==========================================
   404
   ========================================== */
.t123-404 { text-align: center; padding: 80px 24px; }
.t123-404-code { font-size: 7rem; font-weight: 900; color: var(--t123-border); line-height: 1; }
.t123-404 h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.t123-404 p { color: var(--t123-text-sec); margin-bottom: 28px; }
.t123-404-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.t123-404-suggest h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* ==========================================
   LEGAL
   ========================================== */
.t123-legal { padding: 40px 24px; max-width: 800px; }
.t123-legal h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }
.t123-legal h2 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.t123-legal p { color: var(--t123-text-sec); margin-bottom: 10px; font-size: .95rem; }
.t123-legal em { font-style: italic; display: block; padding: 12px 16px; background: var(--t123-bg); border-radius: 6px; border-top: 3px solid var(--t123-border); margin-bottom: 16px; }

/* ==========================================
   FOOTER
   ========================================== */
.t123-footer {
    background: linear-gradient(180deg, #0d1b4b 0%, #0a1035 100%);
    color: rgba(255,255,255,.75);
    padding: 60px 24px 0;
}
.t123-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.t123-footer-logo { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.t123-footer-brand p { font-size: .875rem; line-height: 1.65; }
.t123-footer-valeur { font-size: .85rem; margin-top: 18px; background: rgba(255,255,255,.08); padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); }
.t123-footer-valeur strong { color: white; }
.t123-footer-col h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.t123-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.t123-footer-col a { font-size: .875rem; color: rgba(255,255,255,.68); transition: var(--t123-transition); }
.t123-footer-col a:hover { color: white; text-decoration: none; }
.t123-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.t123-footer-bottom p { font-size: .8rem; }
.t123-footer-bottom a { color: rgba(255,255,255,.55); }
.t123-footer-bottom a:hover { color: white; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .t123-filieres-grid { grid-template-columns: repeat(2, 1fr); }
    .t123-filieres-grid-sm { grid-template-columns: repeat(3, 1fr); }
    .t123-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .t123-guide-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .t123-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .t123-cadre-layout { grid-template-columns: 1fr; }
    .t123-cadre-sidebar { position: static; }
    .t123-vp-hero { grid-template-columns: 1fr; }
    .t123-article-layout { grid-template-columns: 1fr; }
    .t123-article-sidebar { position: static; }
    .t123-3fp-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 900px) {
    .t123-3fp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .t123-3fp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .t123-nav { display: none; }
    .t123-header-search { display: none; }
    .t123-burger { display: flex; }
    .t123-nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: white; padding: 24px; z-index: 99; overflow-y: auto; gap: 8px; }
    .t123-nav-dropdown-menu { display: none !important; }
    .t123-hero { padding: 48px 20px 0; }
    .t123-hero h1 { font-size: 1.9rem; }
    .t123-hero-search-wrap button span { display: none; }
    .t123-hero-stats { gap: 20px; }
    .t123-hero-stat strong { font-size: 1.5rem; }
    .t123-filieres-grid { grid-template-columns: 1fr; }
    .t123-filieres-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .t123-articles-grid { grid-template-columns: 1fr; }
    .t123-articles-grid-large { grid-template-columns: 1fr; }
    .t123-guide-grid { grid-template-columns: 1fr; }
    .t123-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .t123-point-card { flex-direction: column; text-align: center; }
    .t123-cadre-header { padding: 22px; }
    .t123-cadre-header h1 { font-size: 1.5rem; }
    .t123-container { padding: 16px; }
    .t123-vp-value { font-size: 2.2rem; }
    .t123-section { padding: 52px 20px; }
}
@media (max-width: 480px) {
    .t123-footer-inner { grid-template-columns: 1fr; }
    .t123-footer-bottom { flex-direction: column; text-align: center; }
    .t123-filieres-grid { grid-template-columns: repeat(2, 1fr); }
    .t123-filieres-grid-sm { grid-template-columns: 1fr; }
    .t123-hero-stats { flex-direction: column; gap: 14px; }
    .t123-point-card { padding: 24px; }
}

/* ==========================================
   BADGES FP & CATÉGORIES (recherche multi-FP)
   ========================================== */
.t123-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    white-space: nowrap;
}
.t123-fp-badge-sm {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 2px 7px;
    border-radius: 5px;
    background: currentColor;
}
.t123-fp-badge-sm { background: transparent !important; }

/* Groupes de résultats multi-FP */
.t123-search-group-header h2 { margin: 0; }
.t123-empty-grade { color: var(--t123-text-sec); font-size: .9rem; padding: 16px 0; }

/* ==========================================
   FP HOME (FPE / FPH accueil)
   ========================================== */
.t123-fp-home-hero {
    padding: 60px 24px 48px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.t123-fp-home-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.t123-fp-home-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.t123-fp-home-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.025em; }
.t123-fp-home-hero p { font-size: 1.1rem; opacity: .88; margin-bottom: 32px; }
.t123-fp-home-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.t123-fp-home-stat strong { display: block; font-size: 2.2rem; font-weight: 900; }
.t123-fp-home-stat span { font-size: .8rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.t123-fp-filieres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.t123-fp-filiere-card {
    background: white;
    border-radius: var(--t123-radius);
    padding: 22px;
    text-decoration: none;
    transition: var(--t123-transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1.5px solid var(--t123-border);
}
.t123-fp-filiere-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t123-shadow-lg);
    text-decoration: none;
    border-color: var(--fp-color, #546E7A);
}
.t123-fp-filiere-card h3 { font-size: 1rem; font-weight: 700; color: var(--t123-text); }
.t123-fp-filiere-card-meta { font-size: .82rem; color: var(--t123-text-sec); }
.t123-fp-filiere-card-link { font-size: .82rem; font-weight: 600; margin-top: auto; }

/* FP filière page */
.t123-fp-filiere-header {
    border-radius: var(--t123-radius-lg);
    padding: 32px;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.t123-fp-filiere-header::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.08); border-radius: 50%;
    pointer-events: none;
}
.t123-fp-filiere-header h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; position: relative; }
.t123-fp-filiere-header p { opacity: .85; position: relative; }
.t123-fp-corps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.t123-fp-corps-card {
    background: white;
    border: 1.5px solid var(--t123-border);
    border-radius: var(--t123-radius);
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--t123-transition);
}
.t123-fp-corps-card:hover {
    border-color: var(--fp-color, #546E7A);
    box-shadow: var(--t123-shadow);
    transform: translateX(3px);
    text-decoration: none;
}
.t123-fp-corps-card h3 { font-size: .9rem; font-weight: 600; color: var(--t123-text); flex: 1; line-height: 1.35; }
.t123-fp-corps-cat { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: white; flex-shrink: 0; white-space: nowrap; }

/* ==========================================
   BOUTONS EXPORT (PDF / Image)
   ========================================== */
.t123-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--t123-border);
    background: #fff;
    color: var(--t123-text-sec);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t123-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.t123-btn-export:hover {
    border-color: var(--t123-primary);
    color: var(--t123-primary);
    background: #f0f3ff;
}
.t123-btn-export svg { width: 15px; height: 15px; }
.t123-export-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================
   MOBILE — Pas de scroll horizontal
   ========================================== */
* { box-sizing: border-box; }
body { overflow-x: hidden; max-width: 100%; }



/* Sur mobile : rendre les grilles compactes */
@media (max-width: 600px) {
    /* Tables compactes */
    .t123-grille-table { font-size: .82rem; }
    .t123-grille-table th,
    .t123-grille-table td { padding: 8px 10px; }
    /* Masquer colonnes moins critiques sur très petits écrans */
    .t123-grille-table .t123-col-duree { display: none; }
    .t123-grille-table td.t123-col-duree { display: none; }

    /* Cards */
    .t123-cadre-header,
    .t123-grade-info { padding: 16px; }
    .t123-cadre-header-meta { flex-wrap: wrap; gap: 6px; }

    /* Grade info row (titre + boutons export) */
    .t123-grade-info > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }
    .t123-export-btns { margin-left: 0; }
    .t123-btn-export { padding: 6px 10px; font-size: .75rem; }
    .t123-btn-export span { display: none; } /* icône seulement */

    /* Search */
    .t123-search-filters { flex-wrap: wrap; }

    /* Hero stats */
    .t123-fp-home-stats { gap: 20px; }

    /* Tabs */
    .t123-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .t123-tab-btn { white-space: nowrap; padding: 10px 14px; font-size: .82rem; }

    /* Nav */
    .t123-nav-inner { padding: 0 12px; gap: 4px; }
    .t123-nav-logo-text { font-size: .9rem; }

    /* Grilles filière */
    .t123-fp-corps-grid { grid-template-columns: 1fr; }
    .t123-fp-filieres-grid { grid-template-columns: 1fr; }

    /* Containers */
    .t123-container { padding: 0 12px; }

    /* Cadre page sections */
    .t123-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   IMPRESSION (@media print)
   ========================================== */
@media print {
    /* Masquer nav, sidebar, boutons */
    .t123-nav,
    .t123-footer,
    .t123-tabs,
    .t123-export-btns,
    .t123-btn-export,
    .t123-search-bar,
    .t123-breadcrumb,
    .t123-back-link { display: none !important; }

    body { background: #fff !important; font-size: 12pt; }
    .t123-container { padding: 0 !important; max-width: 100% !important; }

    /* Grille indiciaire */
    .t123-grille-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
    .t123-grille-table th { background: #1a237e !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 8px 12px; }
    .t123-grille-table td { padding: 7px 12px; border-bottom: 1px solid #ddd; }
    .t123-grille-table tr:nth-child(even) td { background: #f8fafc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* Afficher tous les onglets (pas de display:none sur les panels) */
    .t123-tab-panel { display: block !important; page-break-inside: avoid; margin-bottom: 24pt; }
    .t123-tab-panel::before { content: attr(data-grade); font-size: 12pt; font-weight: 700; color: #1a237e; display: block; margin-bottom: 8pt; }

    /* Entête */
    .t123-cadre-header { border: none !important; box-shadow: none !important; padding: 0 0 12pt !important; }
    .t123-grade-info { border: none !important; box-shadow: none !important; }

    @page { margin: 1.5cm; }
}

/* ==========================================
   INDICATEURS AVANCEMENT DE GRADE
   ========================================== */
.t123-row-avancement {
    background: #FFFDE7 !important;
}
.t123-row-avancement:nth-child(even) {
    background: #FFF9C4 !important;
}
.t123-avancement-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 3px;
    transition: opacity .15s;
    line-height: 1.4;
}
.t123-avancement-badge:hover {
    opacity: .8;
    text-decoration: none;
}
.t123-echelon-num {
    vertical-align: top;
    padding-top: 10px !important;
}

/* ==========================================
   TOOLTIP CUSTOM (avancement de grade)
   ========================================== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a237e;
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: pre-wrap;
    max-width: 260px;
    width: max-content;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
    text-align: left;
}
[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a237e;
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 100;
    pointer-events: none;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   BARRE DE RECHERCHE/FILTRAGE LOCALE
   ========================================== */
.t123-local-search-wrap { margin-bottom: 28px; }
.t123-local-search-inner { position: relative; }
.t123-local-search-inner input, .t123-local-search-wrap > input {
    width: 100%; padding: 12px 16px 12px 46px;
    border: 1.5px solid var(--t123-border);
    border-radius: var(--t123-radius);
    font-size: 1rem; font-family: inherit;
    background: #fff; transition: var(--t123-transition);
    box-sizing: border-box;
}
.t123-local-search-inner input:focus, .t123-local-search-wrap > input:focus {
    outline: none;
    border-color: var(--t123-blue);
    box-shadow: 0 0 0 3px rgba(26,35,126,.1);
}
.t123-local-search-icon {
    position: absolute; left: 14px;
    top: 0; bottom: 0; height: 18px; margin: auto;
    color: var(--t123-text-sec); pointer-events: none;
}
.t123-page-subtitle {
    margin: 0 0 20px; color: var(--t123-text-sec); font-size: .95rem;
}
.t123-local-search-count {
    font-size: .85rem; color: var(--t123-text-sec); margin-top: 8px; min-height: 20px;
}
.t123-filtered-hidden { display: none !important; }

/* ==========================================
   LIGNES AVANCEMENT (bannières full-width)
   ========================================== */
.t123-row-avancement-banner td { padding: 0 !important; border: none !important; }
.t123-avancement-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 14px;
    font-size: .82rem;
    text-decoration: none;
    flex-wrap: wrap;
    cursor: pointer;
    transition: filter .15s;
}
a.t123-avancement-row:hover { filter: brightness(.96); text-decoration: none; }
.t123-av-icon { font-size: .9rem; flex-shrink: 0; }
.t123-av-label { font-weight: 700; }
.t123-av-arrow { color: #9ca3af; font-size: .8rem; }
.t123-av-cible { font-weight: 600; }
.t123-av-conditions {
    font-size: .78rem;
    color: #6b7280;
    font-style: italic;
    border-left: 1px solid #e5e7eb;
    padding-left: 8px;
    margin-left: 4px;
}
.t123-av-legifrance {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================
   PERSPECTIVES D'ÉVOLUTION
   ========================================== */
.t123-perspectives {
    margin: 0 0 28px;
    background: #fff;
    border: 1.5px solid #e2f4fc;
    border-radius: var(--t123-radius);
    overflow: hidden;
}
.t123-perspectives-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #006fa0;
    background: #f0faff;
    padding: 12px 20px;
    border-bottom: 1.5px solid #e2f4fc;
}
.t123-perspectives-list {
    display: flex;
    flex-direction: column;
}
.t123-persp-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.t123-persp-item:last-child { border-bottom: none; }
.t123-persp-item-dest {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: .95rem;
}
.t123-persp-item-dest strong { color: #0f172a; font-size: 1rem; }
.t123-persp-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}
.t123-persp-legifrance-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    color: #009ee0;
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
    padding: 3px 8px;
    border: 1px solid #b3e5f7;
    border-radius: 20px;
    background: #f0faff;
    transition: background .15s;
}
.t123-persp-legifrance-sm:hover { background: #e0f4fc; text-decoration: none; }
.t123-persp-voies-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.t123-persp-voies-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    line-height: 1.5;
    color: #374151;
}
.t123-persp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
.t123-persp-text em { font-style: normal; font-weight: 700; color: #0f172a; }
.t123-persp-text strong { color: #0f172a; }
.t123-persp-cond-inline {
    display: block;
    font-size: .8rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 2px;
    padding-left: 18px;
}
@media (max-width: 600px) {
    .t123-persp-item { padding: 14px 14px; }
    .t123-persp-legifrance-sm { margin-left: 0; }
}

/* ========================================================
   Nouvelles pages : NBI, Cotisations, Simulateur
   ======================================================== */

/* Hero réutilisable pour les pages internes */
.t123-page-hero {
    border-radius: 16px;
    padding: 36px 40px;
    color: white;
    margin-bottom: 32px;
}
.t123-page-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}
.t123-page-hero p {
    font-size: 1rem;
    opacity: .88;
    margin: 0;
}
@media (max-width: 600px) {
    .t123-page-hero { padding: 24px 20px; }
    .t123-page-hero h1 { font-size: 1.4rem; }
}

/* Badge "actuel" inline dans les tables */
.t123-badge-current {
    display: inline-block;
    background: #1565C0;
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Note de source générique */
.t123-source-note {
    margin-top: 16px;
    font-size: .82rem;
    color: var(--t123-text-sec);
    border-top: 1px solid var(--t123-border);
    padding-top: 12px;
    line-height: 1.6;
}
.t123-source-note a { color: #1565C0; }

/* Message vide */
.t123-empty-msg {
    text-align: center;
    color: var(--t123-text-sec);
    padding: 40px;
}

/* ---- NBI ---- */
.t123-nbi-intro {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.t123-nbi-intro p { margin: 0 0 8px; font-size: .95rem; }
.t123-nbi-intro p:last-child { margin: 0; }
.t123-nbi-table .t123-nbi-ref {
    font-size: .8rem;
    background: #F3F4F6;
    border-radius: 4px;
    padding: 2px 6px;
    color: #374151;
    font-family: monospace;
}
.t123-nbi-table .t123-nbi-gf { font-size: .88rem; }
.t123-nbi-table .t123-nbi-fonction { font-size: .85rem; color: var(--t123-text-sec); max-width: 360px; }
.t123-nbi-pts {
    display: inline-block;
    background: #EFF6FF;
    color: #1565C0;
    font-weight: 700;
    font-size: .88rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #BFDBFE;
}

/* ---- Cotisations ---- */
.t123-cotis-section { margin-bottom: 40px; }
.t123-cotis-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #EFF6FF;
}
.t123-cotis-intro { color: var(--t123-text-sec); margin-bottom: 20px; font-size: .95rem; }
.t123-cotis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.t123-cotis-card {
    background: white;
    border: 1px solid var(--t123-border);
    border-radius: 12px;
    padding: 20px;
}
.t123-cotis-card-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1565C0;
    margin-bottom: 6px;
}
.t123-cotis-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--t123-text);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.t123-cotis-card-desc { font-size: .78rem; color: var(--t123-text-sec); line-height: 1.5; }
.t123-cotis-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1565C0;
    color: white;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    margin-bottom: 12px;
}
.t123-cotis-total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.t123-sft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
@media (max-width: 700px) { .t123-sft-grid { grid-template-columns: 1fr; } }
.t123-sft-block h3 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.t123-sft-example {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.t123-cotis-cta {
    text-align: center;
    margin: 32px 0 16px;
}
.t123-cotis-cta .t123-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1565C0;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s;
}
.t123-cotis-cta .t123-btn-primary:hover { background: #0D47A1; }

/* ---- Simulateur ---- */
.t123-simu-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) { .t123-simu-layout { grid-template-columns: 1fr; } }
.t123-simu-card, .t123-simu-info-card {
    background: white;
    border: 1px solid var(--t123-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}
.t123-simu-card h2, .t123-simu-info-card h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
}
.t123-simu-info-card { background: #F8FAFF; }
.t123-simu-info-card ul { padding-left: 20px; margin: 8px 0; }
.t123-simu-info-card li { margin-bottom: 6px; font-size: .9rem; }
.t123-simu-info-card p { font-size: .85rem; color: var(--t123-text-sec); margin: 10px 0 0; }
.t123-simu-field { margin-bottom: 20px; }
.t123-simu-field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
}
.t123-simu-field input,
.t123-simu-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--t123-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--t123-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.t123-simu-field input:focus,
.t123-simu-field select:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.t123-simu-hint { font-size: .8rem; color: var(--t123-text-sec); margin: 5px 0 0; }
.t123-simu-hint a { color: #1565C0; }
.t123-simu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #1565C0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.t123-simu-btn:hover { background: #0D47A1; }
.t123-simu-empty {
    background: white;
    border: 1px solid var(--t123-border);
    border-radius: 16px;
    text-align: center;
    padding: 60px 32px;
    color: var(--t123-text-sec);
}
.t123-simu-empty p { margin-top: 14px; font-size: .95rem; }
.t123-simu-result {
    background: white;
    border: 1px solid var(--t123-border);
    border-radius: 16px;
    padding: 28px;
}
.t123-simu-result h2 { margin: 0 0 20px; font-size: 1.1rem; font-weight: 700; }
.t123-simu-result-main { display: flex; flex-direction: column; }
.t123-simu-result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: .92rem;
    border-bottom: 1px solid var(--t123-border);
}
.t123-simu-result-line:last-child { border-bottom: none; }
.t123-simu-result-brut { font-weight: 600; }
.t123-simu-result-brut strong { font-size: 1.15rem; color: #1565C0; }
.t123-simu-result-net { padding-top: 12px; }
.t123-simu-result-net span { font-weight: 700; font-size: 1rem; }
.t123-simu-result-net strong { font-size: 1.4rem; color: #2E7D32; font-weight: 800; }
.t123-simu-result-separator { height: 1px; background: #E0E0E0; margin: 6px 0; }
.t123-simu-deduction { color: #C62828; font-variant-numeric: tabular-nums; }
.t123-simu-vp-ref {
    font-size: .78rem;
    color: var(--t123-text-sec);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--t123-border);
    line-height: 1.6;
}
.t123-simu-vp-ref a { color: #1565C0; }
.t123-simu-disclaimer {
    font-size: .78rem;
    color: var(--t123-text-sec);
    margin-top: 10px;
    background: #FFF8E1;
    padding: 10px 14px;
    border-radius: 8px;
    line-height: 1.5;
}
