/* ============================================================================
   MASTER+ - CSS REFONTE COMPLÈTE
   Mobile-first, fidèle à la maquette Figma
============================================================================ */
/* ============================================================================
VARIABLES CSS
============================================================================ */
:root {
    /* Couleurs principales */
    --primary: #E41F74;
    --primary-dark: #C41964;
    --primary-light: #FF6BA9;
    --secondary: #233C84;
    --secondary-dark: #1A2B6D;
    --secondary-light: #34448C;
    --accent: #4A5FCC;
    /* Couleurs UI */
    --white: #FFFFFF;
    --black: #000000;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-page: #F5F5F5;
    --bg-card: #FFFFFF;
    --border: #B7B7B7;
    --border-light: #E0E0E0;
    /* Couleurs spéciales */
    --blue-chip: #EEF2FF;
    --blue-chip-text: #1A2B6D;
    /* Spacing system (4px base)*/
    --space-xs: 0.25rem;
    /* 4px*/
    --space-sm: 0.5rem;
    /* 8px*/
    --space-md: 1rem;
    /* 16px*/
    --space-lg: 1.5rem;
    /* 24px*/
    --space-xl: 2rem;
    /* 32px*/
    --space-2xl: 2.5rem;
    /* 40px*/
    --space-3xl: 3rem;
    /* 48px*/
    --space-4xl: 4rem;
    /* 64px */
    /* Border radius*/
    --radius-sm: 0.5rem;
    /* 8px*/
    --radius-md: 0.75rem;
    /* 12px*/
    --radius-lg: 1rem;
    /* 16px*/
    --radius-xl: 1.25rem;
    /* 20px */
    --radius-full: 999px;
    /* Shadows */
    --shadow-sm: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.08);
    --shadow-md: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 0.5rem 1.2rem rgba(228, 31, 116, 0.25);
    --shadow-secondary: 0 0.5rem 1.2rem rgba(35, 60, 132, 0.25);
    /* Typography */
    --font-family: 'Poppins',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    --font-serif: 'Instrument Serif',
        Georgia,
        serif;
    /* Font sizes*/
    --text-xs: 0.75rem;
    /* 12px*/
    --text-sm: 0.875rem;
    /* 14px*/
    --text-base: 1rem;
    /* 16px*/
    --text-lg: 1.125rem;
    /* 18px*/
    --text-xl: 1.25rem;
    /* 20px*/
    --text-2xl: 1.5rem;
    /* 24px*/
    --text-3xl: 2rem;
    /* 32px*/
    --text-4xl: 2.5rem;
    /* 40px */
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    /* Breakpoints (for JS) */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1280px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
}

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

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================================================
LAYOUT UTILITIES
============================================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 900px;
}

.container-lg {
    max-width: 1400px;
}

section {
    padding: var(--space-2xl) var(--space-md);
}

/* ============================================================================
BUTTONS - SYSTÈME COMPLET
============================================================================ */
button,
.btn {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 800;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Primary (CTA principal) */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 2rem rgba(228, 31, 116, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Button Secondary */
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-secondary);
    border-radius: var(--radius-sm);
}

.btn-secondary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Button Pill (filtres) */
.btn-pill,
.filter-chip {
    background: var(--blue-chip);
    color: var(--blue-chip-text);
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.btn-pill:hover {
    background: #E3E9FF;
    transform: translateY(-1px);
}

.btn-pill.active,
.filter-chip.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

/* Button Ghost */
.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    font-weight: 700;
}

.btn-ghost:hover {
    background: rgba(228, 31, 116, 0.08);
}

/* ============================================================================
HEADER GLOBAL
============================================================================ */
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    position: relative;
    z-index: 100;
}

header nav img {
    width: 120px;
    height: auto;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Active page indicator */
#active-page .btn-primary {
    background: var(--primary-dark);
}

/* ============================================================================
PAGE ACCUEIL - HERO
============================================================================ */
.accueil-body header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("../images/fond.png") center/cover no-repeat;
    color: var(--white);
}

/* Overlay gradient */
.accueil-body header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.7));
    z-index: 0;
}

/* Contenu hero */
.accueil-body header>* {
    position: relative;
    z-index: 1;
}

.accueil-body header>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.accueil-body header h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.accueil-body header p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    line-height: 1.65;
    opacity: 0.95;
    max-width: 700px;
}

/* Nav style spécial accueil */
.accueil-body header nav .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.accueil-body header nav .btn-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================================
PAGE ACCUEIL - SECTION INFOS
============================================================================ */
.accueil-body .infos {
    background: var(--white);
    padding: var(--space-3xl) var(--space-md);
}

.accueil-body .infos h2 {
    color: var(--secondary);
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    margin-bottom: var(--space-xl);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-page);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
}

.accueil-body .infos p {
    max-width: 820px;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

.accueil-body .infos p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
PAGE TOOLS - RECHERCHE
============================================================================ */
.tools-container {
    min-height: 100vh;
}

.tools-intro {
    background: var(--secondary-light);
    color: var(--white);
    padding: var(--space-2xl) var(--space-md);
    margin: var(--space-md);
    border-radius: var(--radius-xl);
}

.tools-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: var(--space-sm);
}

.tools-description {
    text-align: center;
    font-size: var(--text-base);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Search wrapper */
.tools-search-wrapper {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

/* Search bar */
.tools-search-bar {
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-md);
}

.tools-search-bar img {
    width: 20px;
    opacity: 0.5;
    margin-right: var(--space-sm);
}

.tools-search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.tools-search-bar input::placeholder {
    color: var(--text-light);
}

/* Filtres domaines */
.tools-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.tools-search-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-weight: 800;
    font-size: var(--text-base);
    box-shadow: var(--shadow-primary);
}

.tools-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================================
RÉSULTATS RECHERCHE
============================================================================ */
.resultats {
    padding: var(--space-2xl) var(--space-md);
}

.status {
    text-align: center;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
}

#results {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Result card */
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-header {
    height: 100px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: var(--space-md);
}

.logo-result {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.result-card strong {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.result-card small {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.card-button {
    align-self: flex-end;
    margin-top: auto;
}

/* ============================================================================
PAGE MASTER - FICHE HEADER
============================================================================ */
.fiche-master {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2xl) var(--space-md);
}

.fiche-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.infos-master h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.infos-master p {
    font-size: var(--text-base);
    opacity: 0.95;
    margin-bottom: var(--space-sm);
}

.infos-master strong {
    font-weight: 700;
}

.etab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.etab img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.badge-master {
    display: flex;
    justify-content: flex-start;
}

#btn-monmaster {
    width: 100%;
    max-width: 340px;
}

/* ============================================================================
FORMATION LOCATION (carte + mapping)
============================================================================ */
.forma {
    background: var(--white);
}

.forma h2 {
    background: var(--secondary);
    color: var(--white);
    padding: var(--space-sm) var(--space-2xl);
    border-radius: var(--radius-md);
    width: fit-content;
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

.forma>div {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.forma-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.formation-location {
    line-height: 1.5;
}

.formation-location .etab {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.formation-location .mention {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.formation-location .street {
    color: var(--text-primary);
    margin-bottom: 0;
}

.formation-location .city {
    font-weight: 600;
    color: var(--text-primary);
}

.formation-location .fallback {
    font-style: italic;
    color: var(--text-light);
}

/* SVG Map */
.svgmap {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
}

.svgmap path {
    cursor: pointer;
    transition: all var(--transition-base);
}

.svgmap path:hover {
    filter: brightness(1.15);
}

.region-blue {
    fill: var(--secondary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.region-red {
    fill: var(--primary);
    filter: drop-shadow(0 4px 8px rgba(228, 31, 116, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* ============================================================================
STATISTIQUES - CAROUSEL
============================================================================ */
.stats {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-page);
}

.stats-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
}

.stats-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Header stats */
.stats-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stats-scope {
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--secondary-dark);
    background: var(--blue-chip);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.stats-switch--global {
    display: flex;
    gap: var(--space-sm);
}

.stats-switch--global button {
    background: transparent;
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 900;
    font-size: var(--text-sm);
    border: 2px solid transparent;
}

.stats-switch--global button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Arrows */
.stats-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    z-index: 20;
    box-shadow: var(--shadow-md);
    border: none;
}

.stats-arrow:hover {
    background: var(--secondary-dark);
    transform: translateY(-50%) scale(1.05);
}

.stats-arrow--prev {
    left: -20px;
}

.stats-arrow--next {
    right: -20px;
}

/* Slider */
.stats-slider {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.stats-track {
    display: flex;
    transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stats-slide {
    width: 100%;
    flex-shrink: 0;
    padding: var(--space-md) 0;
}

/* Slide header */
.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.stats-header h3 {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--secondary);
}

/* KPIs */
.kpis--chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.kpi-chip {
    background: var(--blue-chip);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(35, 60, 132, 0.1);
}

.kpi-chip span {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--blue-chip-text);
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.kpi-chip strong {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--secondary);
}

/* Gauge */
.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
}

#gauge-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.gauge-number {
    margin-top: -1rem;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.gauge-pill {
    margin-top: var(--space-md);
    background: var(--secondary);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: var(--text-base);
}

.stats-insight {
    text-align: center;
    margin-top: var(--space-lg);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* Dots navigation */
.stats-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.stats-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D6D8DE;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.stats-dots button.active {
    background: var(--secondary);
    width: 28px;
    border-radius: var(--radius-full);
}

/* Charts containers */
#genre,
#profil-chart,
#details-chart {
    width: 100%;
    min-height: 280px;
}

/* Mobilité bars */
.mob {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.mob-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.mob-label {
    font-weight: 800;
    color: var(--secondary);
    font-size: var(--text-base);
}

.mob-bar {
    height: 16px;
    background: var(--blue-chip);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mob-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: var(--radius-full);
    transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-val {
    font-weight: 900;
    color: var(--secondary);
    font-size: var(--text-lg);
}

/* ============================================================================
ADMISSION DETAILS (Accordéons)
============================================================================ */
.admis {
    padding: var(--space-3xl) var(--space-md);
}

.admis h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
}

#admission-details {
    display: none;
}

.acc-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-sm);
}

.acc-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-md);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--secondary);
    transition: background var(--transition-base);
}

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

.acc-summary:hover {
    background: var(--bg-page);
}

.acc-chevron {
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
}

.acc-chevron::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--text-secondary);
    border-bottom: 3px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform var(--transition-base);
}

.acc-item[open] .acc-chevron::before {
    transform: rotate(-135deg);
}

.acc-content {
    padding: 0 var(--space-md) var(--space-lg);
}

.acc-list {
    margin: var(--space-sm) 0 0;
    padding-left: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.6;
    list-style: disc;
}

.acc-list li {
    list-style: disc;
}

.acc-empty {
    margin: var(--space-sm) 0 0;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================================================
MASTERS SIMILAIRES
============================================================================ */
#similaires-container {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-page);
}

#similaires-container h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
}

#similaires {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
RESPONSIVE - TABLET (768px+)
============================================================================*/
@media (min-width: 768px) {

    /* Layout */
    section {
        padding: var(--space-4xl) var(--space-xl);
    }

    /* Header nav */
    header nav {
        padding: var(--space-xl) var(--space-2xl);
    }

    header nav img {
        width: 150px;
    }

    header nav ul {
        gap: var(--space-lg);
    }

    /* Accueil hero */
    .accueil-body header>div {
        padding: var(--space-4xl) var(--space-xl);
    }

    /* Tools intro */
    .tools-intro {
        margin: var(--space-xl) auto;
        max-width: 900px;
        padding: var(--space-3xl);
    }

    /* Results grid */
    #results {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fiche master */
    .fiche-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #btn-monmaster {
        width: auto;
    }

    /* Formation location */
    .forma>div {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-3xl);
    }

    .forma-content {
        flex: 1;
    }

    .svgmap {
        flex-shrink: 0;
        max-width: 400px;
    }

    /* Stats KPIs */
    .kpis--chips {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mobilité */
    .mob-row {
        grid-template-columns: 200px 1fr 80px;
        align-items: center;
    }

    .mob-val {
        text-align: right;
    }

    /* Similaires */
    #similaires {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Arrows positioning */
    .stats-arrow--prev {
        left: -24px;
    }

    .stats-arrow--next {
        right: -24px;
    }

}

/* ============================================================================
RESPONSIVE - DESKTOP (1024px+)
============================================================================*/
@media (min-width: 1024px) {

    /* Container */
    .container {
        padding: 0 var(--space-xl);
    }

    /* Tools intro */
    .tools-intro {
        max-width: 1100px;
    }

    /* Results grid */
    #results {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Stats card */
    .stats-card,
    .acc-item {
        max-width: 1000px;
        padding: var(--space-2xl) var(--space-3xl);
    }

    /* Similaires */
    #similaires {
        grid-template-columns: repeat(6, 1fr);
    }


    /* ============================================================================
RESPONSIVE - WIDE (1280px+)
============================================================================ */
    @media (min-width: 1280px) {
        #results {
            max-width: 1400px;
        }

        .stats-card,
        .acc-item {
            max-width: 1100px;
        }
    }

    /* ============================================================================
UTILITIES & HELPERS
============================================================================ */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .text-center {
        text-align: center;
    }

    .text-left {
        text-align: left;
    }

    .text-right {
        text-align: right;
    }

    .font-bold {
        font-weight: 700;
    }

    .font-black {
        font-weight: 900;
    }

    .no-result {
        text-align: center;
        padding: var(--space-3xl);
        color: var(--text-light);
        font-weight: 600;
    }
}

/* ============================================================================
ANIMATIONS
============================================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 400ms ease-out;
}