/* =============================================
   PORTFOLIO CORENTIN CHAPUIS — Feuille de style
   Charte graphique 2026
   ============================================= */

/* Import police Arial Nova (fallback) */
@font-face {
    font-family: 'Arial Nova';
    src: local('Arial Nova'), local('ArialNova'), local('Arial');
}

/* ---- Variables ---- */
:root {
    --gold:        #E3B156;
    --gold-light:  #FFD891;
    --grey:        #6D6D6D;
    --white:       #FFFFFF;
    --purple-dark: #3C0049;
    --purple-mid:  #2C2B73;
    --black:       #000000;

    /* Fond principal : dégradé radial comme la charte */
    --bg-gradient: radial-gradient(ellipse at 40% 30%, #3b1870 0%, #1e0d4a 40%, #0e0826 100%);

    --font-title:   'Orbitron', sans-serif;
    --font-body:    'Oxanium', sans-serif;
    --font-content: 'Arial Nova', 'Arial', sans-serif;

    --border-radius: 6px;
    --transition: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-content);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

/* ---- Typographie ---- */
h1 { font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold); letter-spacing: .05em; }
h2 { font-family: var(--font-title); font-size: clamp(1.3rem, 3vw, 2.2rem); color: var(--gold); letter-spacing: .04em; }
h3 { font-family: var(--font-title); font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--gold-light); }
p, li { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.88); }

/* Soulignage titre style charte */
.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2rem;
}
.section-title img.underline-svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 18px;
    object-fit: fill;
    opacity: .85;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; }
section { padding: 4rem 0; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 8, 38, .92);
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .9rem 2rem;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}
.logo-img { width: 48px; height: 48px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-first { font-family: var(--font-title); font-size: 1.15rem; color: var(--white); letter-spacing: .1em; }
.logo-last  { font-family: var(--font-body); font-size: .85rem; color: var(--gold); }

.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-link {
    font-family: var(--font-body);
    font-size: .95rem;
    color: rgba(255,255,255,.75);
    padding: .3rem .2rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.nav-admin { color: var(--gold-light) !important; }

.header-auth { display: flex; align-items: center; gap: .8rem; }
.user-greeting { display: flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .9rem; color: var(--gold-light); }

.header-separator { display: flex; flex-direction: column; gap: 2px; }
.sep-line { width: 100%; height: 4px; display: block; }

/* ---- Boutons ---- */
.btn {
    font-family: var(--font-title);
    font-size: .85rem;
    letter-spacing: .06em;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    background: transparent;
}
.btn-primary { background: var(--gold); color: var(--purple-dark); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--purple-dark); }
.btn-outline { color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--purple-dark); }
.btn-sm { font-size: .78rem; padding: .4rem 1rem; }
.btn-danger { border-color: #e05; color: #e05; }
.btn-danger:hover { background: #e05; color: #fff; }

/* ---- Icônes ---- */
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 32px; height: 32px; }

/* ---- Hero / Accueil ---- */
.hero {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-text h1 { margin-bottom: 1rem; }
.hero-text h1 span { color: var(--white); }
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}
.hero-desc { margin-bottom: 2rem; max-width: 520px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-logo-big {
    width: 260px;
    height: 260px;
    filter: drop-shadow(0 0 40px rgba(227,177,86,.35));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---- Section présentation CV ---- */
.cv-section { padding: 4rem 0; }
.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.cv-card {
    background: rgba(44, 43, 115, .25);
    border: 1px solid rgba(227,177,86,.25);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cv-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(227,177,86,.15);
}
.cv-card-title {
    font-family: var(--font-title);
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cv-card-title::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.cv-card ul { list-style: none; padding: 0; }
.cv-card ul li {
    padding: .3rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .93rem;
}
.cv-card ul li:last-child { border-bottom: none; }
.cv-skill-tag {
    display: inline-block;
    background: rgba(227,177,86,.15);
    border: 1px solid rgba(227,177,86,.4);
    color: var(--gold-light);
    font-family: var(--font-content);
    font-size: .78rem;
    padding: .2rem .6rem;
    border-radius: 50px;
    margin: .2rem .2rem .2rem 0;
}
.cv-presentation {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255,255,255,.8);
    max-width: 820px;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(44,43,115,.2);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
}

.cv-download { margin-top: 2rem; }

/* ---- Traces liste ---- */
.traces-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.filters-bar {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(44,43,115,.2);
    border: 1px solid rgba(227,177,86,.2);
    border-radius: 10px;
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-family: var(--font-title); font-size: .7rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.filter-group select,
.filter-group input {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(227,177,86,.3);
    color: var(--white);
    padding: .4rem .8rem;
    border-radius: 6px;
    font-family: var(--font-content);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
    min-width: 160px;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--gold); }
.filter-group select option { background: #1a0d40; }

/* Barre de recherche avec icône */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: .9rem;
    width: 20px;
    height: 20px;
    opacity: .65;
    pointer-events: none;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.search-input-wrap input {
    flex: 1;
    padding-left: 2.6rem !important;
}
.search-btn {
    flex-shrink: 0;
    background: var(--gold);
    border: none;
    border-radius: 6px;
    color: var(--purple-dark);
    font-family: var(--font-title);
    font-size: .78rem;
    letter-spacing: .06em;
    padding: .55rem 1.2rem;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.search-btn:hover { background: var(--gold-light); }

.traces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ---- Carte trace (cadre image charte) ---- */
.trace-card {
    background: rgba(14,8,38,.6);
    border: 1px solid rgba(227,177,86,.2);
    border-radius: 4px;
    /* Coins biseautés comme la charte */
    clip-path: polygon(
        0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
        100% calc(100% - 12px), calc(100% - 12px) 100%,
        12px 100%, 0 calc(100% - 12px)
    );
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.trace-card:hover {
    box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(227,177,86,.5), 0 0 70px rgba(227,177,86,.2);
    transform: translateY(-4px);
}
.trace-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.trace-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #3C0049 0%, #2C2B73 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.trace-card-img-placeholder img.placeholder-icon { width: 64px; height: 64px; opacity: .4; }
.trace-card-img-placeholder img.trace-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trace-card-body { padding: 1.2rem; }
.trace-card-type {
    font-family: var(--font-content);
    font-size: .72rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: .15rem .5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: .6rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.trace-card h3 {
    font-size: 1rem;
    margin-bottom: .4rem;
    color: var(--white);
}
.trace-card p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.4; }
.trace-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .8rem;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    font-family: var(--font-content);
}
.trace-card-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.tag {
    font-family: var(--font-content);
    font-size: .7rem;
    background: rgba(44,43,115,.5);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    padding: .1rem .5rem;
    border-radius: 50px;
}

/* ---- Détail trace ---- */
.trace-detail { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.trace-detail-header { margin-bottom: 2rem; }
.trace-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.meta-label { font-family: var(--font-title); font-size: .65rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.meta-value { font-family: var(--font-body); font-size: .95rem; color: var(--white); }
.trace-file-preview {
    margin: 1.5rem 0;
    display: flex;
    justify-content: flex-start;
}
.trace-detail-img {
    display: block;
    width: 100%;
    max-width: 620px;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(227,177,86,.35);
    clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.trace-detail-video {
    display: block;
    width: 100%;
    max-width: 620px;
    height: 380px;
    border-radius: 10px;
    border: 2px solid rgba(227,177,86,.35);
    background: #000;
}
.argumentaire {
    background: rgba(44,43,115,.2);
    border-left: 3px solid var(--gold);
    padding: 1.2rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.argumentaire p { color: rgba(255,255,255,.85); }

/* ---- Commentaires ---- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(227,177,86,.2);
}
.comment-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-author {
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--gold-light);
    font-weight: 600;
}
.comment-date {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-left: .5rem;
}
.comment-text { margin-top: .5rem; font-size: .9rem; }
.comment-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.comment-form textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(227,177,86,.3);
    border-radius: 8px;
    color: var(--white);
    padding: .8rem 1rem;
    font-family: var(--font-body);
    font-size: .9rem;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color var(--transition);
}
.comment-form textarea:focus { border-color: var(--gold); }
.comment-submit-row { display: flex; justify-content: flex-end; }
.comment-submit-row button { display: flex; align-items: center; gap: .5rem; }
.comment-submit-row button img { width: 18px; height: 18px; }

/* ---- Formulaires (login, register, trace) ---- */
.form-page { max-width: 520px; margin: 3rem auto; padding: 0 1.5rem; }
.form-card {
    background: rgba(44,43,115,.2);
    border: 1px solid rgba(227,177,86,.25);
    border-radius: 14px;
    padding: 2.5rem;
}
.form-card h1 { margin-bottom: .5rem; }
.form-subtitle { color: rgba(255,255,255,.55); margin-bottom: 2rem; font-size: .9rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-group label {
    font-family: var(--font-title);
    font-size: .72rem;
    color: var(--gold);
    letter-spacing: .09em;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(227,177,86,.3);
    border-radius: 8px;
    color: var(--white);
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: .95rem;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,177,86,.1); }
.form-group select option { background: #1a0d40; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.rgpd-check { margin-top: .5rem; }
.rgpd-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
}
.rgpd-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: .15rem;
    accent-color: var(--gold);
    cursor: pointer;
}
.rgpd-label span {
    font-family: var(--font-content);
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
}
.rgpd-label span a { color: var(--gold); text-decoration: underline; }
.rgpd-label span a:hover { color: var(--gold-light); }

.form-footer { margin-top: 1.5rem; text-align: center; font-size: .88rem; color: rgba(255,255,255,.55); }
.form-footer a { color: var(--gold); }

.alert {
    padding: .85rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: .9rem;
}
.alert-error { background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.4); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-info { background: rgba(227,177,86,.1); border: 1px solid rgba(227,177,86,.3); color: var(--gold-light); }

/* ---- Admin ---- */
.admin-layout { display: flex; min-height: calc(100vh - 140px); }
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(14,8,38,.7);
    border-right: 1px solid rgba(227,177,86,.15);
    padding: 2rem 1rem;
}
.admin-sidebar h2 {
    font-size: .75rem;
    color: var(--gold);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(227,177,86,.2);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    border-radius: 6px;
    color: rgba(255,255,255,.65);
    font-family: var(--font-body);
    font-size: .9rem;
    margin-bottom: .3rem;
    transition: all var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(227,177,86,.1);
    color: var(--gold);
}
.admin-main { flex: 1; padding: 2rem; overflow: auto; }
.admin-main h1 { margin-bottom: 2rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-content);
    font-size: .9rem;
}
.data-table th {
    font-family: var(--font-title);
    font-size: .7rem;
    color: var(--gold);
    letter-spacing: .09em;
    text-transform: uppercase;
    text-align: left;
    padding: .8rem 1rem;
    border-bottom: 2px solid rgba(227,177,86,.3);
}
.data-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,.03); }
.data-table .actions { display: flex; gap: .5rem; }
.badge {
    display: inline-block;
    font-size: .72rem;
    padding: .15rem .5rem;
    border-radius: 50px;
    font-family: var(--font-content);
    font-weight: 600;
}
.badge-concepteur { background: rgba(227,177,86,.2); color: var(--gold); border: 1px solid var(--gold); }
.badge-evaluateur { background: rgba(44,43,115,.5); color: #a5b4fc; border: 1px solid #4f46e5; }
.badge-valide { background: rgba(34,197,94,.1); color: #86efac; border: 1px solid #22c55e; }
.badge-attente { background: rgba(234,179,8,.1); color: #fde047; border: 1px solid #eab308; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: rgba(44,43,115,.25);
    border: 1px solid rgba(227,177,86,.2);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    text-align: center;
}
.stat-number { font-family: var(--font-title); font-size: 2.2rem; color: var(--gold); }
.stat-label { font-family: var(--font-body); font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .3rem; }

/* ---- Étoiles fond galaxie ---- */
.comets-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: star-twinkle var(--dur, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes star-twinkle {
    0%, 100% { opacity: var(--min-op, .1); transform: scale(1); }
    50%       { opacity: var(--max-op, .9); transform: scale(var(--scale, 1.4)); box-shadow: 0 0 var(--glow, 4px) rgba(255,255,255,.8); }
}

/* S'assurer que le contenu passe par-dessus */
.main-content > *:not(.comets-layer) { position: relative; z-index: 1; }

/* ---- Footer ---- */
.site-footer {
    background: rgba(14,8,38,.95);
    border-top: 1px solid rgba(227,177,86,.15);
    padding-bottom: 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-logo-img { width: 48px; height: 48px; }
.footer-name { font-family: var(--font-title); color: var(--gold); font-size: 1rem; }
.footer-sub { font-family: var(--font-body); color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.footer-nav a { font-family: var(--font-body); font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-nav a:hover { color: var(--gold); }
.footer-separator { display: flex; flex-direction: column; gap: 2px; }

/* ---- Notifications ---- */
.pending-badge {
    background: var(--gold);
    color: var(--purple-dark);
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    margin-left: .4rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 1rem; }
}
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; gap: .8rem; padding: .7rem 1rem; }
    .main-nav { order: 3; width: 100%; justify-content: center; }
    .filters-bar { flex-direction: column; }
    .data-table { display: block; overflow-x: auto; }
}
