/* ===================================================
   Portfolio Amélie Gleave – SAE 2.03
   Palette extraite du cahier de conception :
   Violet #3B2D9B · Bleu #AADAFF · Menthe #C6EDC3
   Jaune #FBF5A9 · Lilas #FEBEFF
   Polices : Space Grotesk (titres) + DM Sans (corps)
   =================================================== */

:root {
    --bg:        #FFFFFF;
    --bg-alt:    #F7F5FF;
    --dark:      #1A1535;
    --purple:    #3B2D9B;
    --purple-lt: #EAE7FF;
    --blue:      #AADAFF;
    --blue-lt:   #E3F5FF;
    --mint:      #C6EDC3;
    --mint-lt:   #EBF9EA;
    --yellow:    #FBF5A9;
    --yellow-lt: #FEFCE6;
    --lilac:     #FEBEFF;
    --lilac-lt:  #FEF0FF;
    --text:      #2D2A4A;
    --muted:     #8B87AA;
    --border:    #E4DFFA;
    --white:     #FFFFFF;
    --shadow:    0 4px 24px rgba(59,45,155,.10);
    --shadow-sm: 0 2px 8px  rgba(59,45,155,.07);
    --radius:    16px;
    --radius-sm: 8px;
    --ff-display:'Space Grotesk', system-ui, sans-serif;
    --ff-body:   'DM Sans', system-ui, sans-serif;
    --transition:.25s ease;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main.main-content { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: #2a1f80; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────── */
.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

/* ─── Hero (index) ──────────────────────────────────── */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-formation {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    margin-bottom: 1rem;
    font-family: var(--ff-display);
}
.hero-name {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.hero-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 1.25rem;
    font-family: var(--ff-display);
}
.hero-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 48ch;
}
.hero-contacts { display: flex; gap: .75rem; }
.hero-photo {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    border: 3px solid var(--border);
    display: block;
}
.hero-photo-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--purple-lt), var(--blue-lt));
    border-radius: var(--radius);
    border: 3px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 5rem;
    font-weight: 700;
    color: var(--purple);
    opacity: .35;
}
.hero-color-bar {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}
.hero-color-bar div {
    height: 8px;
    flex: 1;
    border-radius: 4px;
}

/* ─── Home numbered sections ─────────────────────────── */
.section-divider { border: none; border-top: 2px solid var(--border); margin: 0; }
.home-section { padding-block: 3.5rem; }
.home-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.home-section-num {
    font-family: var(--ff-display);
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .1em;
    min-width: 28px;
}
.home-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
    flex: 1;
}
.home-section-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--purple);
    font-family: var(--ff-display);
    white-space: nowrap;
}
.home-section-link:hover { text-decoration: underline; }

/* ─── Traces grid ────────────────────────────────────── */
.traces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.traces-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.trace-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.trace-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--purple-lt);
}
.trace-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
}
.trace-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.trace-card:hover .trace-card-thumb img { transform: scale(1.04); }
.trace-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--purple-lt));
}
.trace-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.trace-card-meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.trace-card-title { font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--dark); margin: 0; }
.trace-card-desc { font-size: .83rem; color: var(--muted); line-height: 1.6; flex: 1; margin: 0; }
.trace-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.trace-card-date { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ─── About preview (home) ───────────────────────────── */
.about-preview { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.about-preview-text p { font-size: 1rem; line-height: 1.85; color: var(--text); }
.skills-inline { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.skills-inline span {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 100px;
    padding: .3rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--ff-display);
}
.about-preview-stats { display: flex; flex-direction: column; gap: 1rem; }
.mini-stat {
    border-radius: var(--radius);
    border: 2px solid;
    padding: 1.5rem;
    text-align: center;
}
.mini-stat strong { display: block; font-family: var(--ff-display); font-size: 3rem; font-weight: 700; color: var(--purple); line-height: 1; }
.mini-stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

/* ─── About home grid ────────────────────────────────── */
.about-home-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}
.about-home-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    border: 3px solid var(--border);
    display: block;
}
.about-home-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--purple-lt), var(--blue-lt));
    border-radius: var(--radius);
    border: 3px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--purple);
    opacity: .35;
}
.interest-tag {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    border: 2px solid;
    font-family: var(--ff-display);
}
@media (max-width: 700px) {
    .about-home-grid { grid-template-columns: 1fr; }
    .about-home-photo img, .about-home-photo-placeholder { aspect-ratio: 4/3; max-height: 260px; }
}

/* ─── Filter pills (portfolio) ───────────────────────── */
.filters-area { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    max-width: 420px;
}
.search-form input {
    flex: 1;
    padding: .65rem 1rem;
    border: none;
    font-family: var(--ff-body);
    font-size: .9rem;
    color: var(--dark);
    background: transparent;
    outline: none;
}
.search-form button {
    padding: 0 1rem;
    background: var(--purple);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}
.search-form button:hover { background: #2a1f80; }
.filter-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.filter-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-family: var(--ff-display);
    min-width: 80px;
}
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--ff-display);
    border: 2px solid var(--border);
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    text-decoration: none;
}
.pill:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-lt); }
.pill.active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.pill-count {
    background: rgba(255,255,255,.25);
    border-radius: 100px;
    padding: .05rem .4rem;
    font-size: .68rem;
}
.pill.active .pill-count { background: rgba(255,255,255,.3); }
.reset-link {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    transition: color var(--transition);
    align-self: flex-start;
}
.reset-link:hover { color: var(--purple); }
.results-count { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; font-family: var(--ff-display); }

/* ─── Social icons ───────────────────────────────────── */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}
.social-icon:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-lt); }

/* ─── Footer (minimal) ───────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    padding-block: 1.75rem;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-copy { font-size: .8rem; font-weight: 500; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: .82rem; color: rgba(255,255,255,.55); font-weight: 500; }
.footer-nav a:hover { color: var(--blue); }
.footer-socials { display: flex; gap: .5rem; }
.footer-socials .social-icon {
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.55);
    width: 34px;
    height: 34px;
}
.footer-socials .social-icon:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

/* Nav sep */
.nav-sep { width: 1px; height: 20px; background: var(--border); }
.btn-nav-ghost {
    padding: .45rem 1.1rem;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--dark) !important;
    transition: all var(--transition);
    font-family: var(--ff-display);
}
.btn-nav-ghost:hover { border-color: var(--purple); color: var(--purple) !important; }
.btn-nav-ghost::after { display: none !important; }

/* ─── Header ────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .9rem;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--dark);
}
.logo-ag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--purple);
    color: var(--white);
    border-radius: 10px;
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .02em;
}
.logo-name {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    border-radius: 2px;
    transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--purple); }

.btn-nav, .btn-login {
    padding: .5rem 1.25rem;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--purple);
    color: var(--white) !important;
    transition: background var(--transition), transform var(--transition);
    font-family: var(--ff-display);
}
.btn-nav:hover, .btn-login:hover {
    background: #2a1f80;
    transform: translateY(-1px);
}
.btn-nav::after, .btn-login::after { display: none !important; }

.nav-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--muted);
}
.btn-logout {
    font-size: .8rem;
    padding: .35rem .9rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    color: var(--text) !important;
    font-weight: 500;
}
.btn-logout:hover { border-color: var(--purple); color: var(--purple) !important; }
.btn-logout::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero ──────────────────────────────────────────── */
.hero {
    padding-block: clamp(4rem, 10vw, 8rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-kicker {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    font-family: var(--ff-display);
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title em {
    font-style: normal;
    color: var(--purple);
    position: relative;
}
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--lilac);
    z-index: -1;
    border-radius: 4px;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 45ch;
    line-height: 1.8;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual — blocs de couleur style "pretty tiles" */
.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    aspect-ratio: 1;
}
.hero-tile {
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .85rem;
    color: var(--dark);
    opacity: .9;
}
.hero-tile:nth-child(1) { background: var(--blue);   grid-column: 1; grid-row: 1; }
.hero-tile:nth-child(2) { background: var(--mint);   grid-column: 2; grid-row: 1; }
.hero-tile:nth-child(3) { background: var(--yellow); grid-column: 1; grid-row: 2; }
.hero-tile:nth-child(4) {
    background: var(--purple);
    color: var(--white);
    grid-column: 2;
    grid-row: 2;
    font-size: 2.5rem;
}
.hero-tile-label { font-size: .75rem; text-align: center; padding: .5rem; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--ff-display);
    letter-spacing: -.01em;
}
.btn-primary {
    background: var(--purple);
    color: var(--white);
}
.btn-primary:hover {
    background: #2a1f80;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,45,155,.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--dark);
}
.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-danger { background: #E63946; color: var(--white); }
.btn-danger:hover { background: #c1121f; color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: var(--mint); color: var(--dark); }
.btn-secondary:hover { background: #a8dda5; color: var(--dark); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: #f5ee7a; transform: translateY(-1px); }

/* ─── Section labels ────────────────────────────────── */
.section-label {
    display: inline-block;
    background: var(--purple-lt);
    color: var(--purple);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    font-family: var(--ff-display);
}
.section-title { margin-bottom: 2.5rem; }
.section-title.center { text-align: center; }

/* ─── Cards ─────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--purple-lt);
}
.card-body { padding: 1.75rem; }
.card-meta {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Badges colorés selon la palette */
.badge {
    display: inline-block;
    padding: .25rem .8rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-family: var(--ff-display);
}
.badge-type { background: var(--blue);   color: #1a5f8a; }
.badge-year { background: var(--mint);   color: #2a6b27; }
.badge-comp { background: var(--lilac);  color: #8a1a8a; }
.badge-ok   { background: var(--mint);   color: #2a6b27; }
.badge-pending { background: var(--yellow); color: #7a6800; }
.badge-evaluateur { background: var(--blue); color: #1a5f8a; }
.badge-concepteur { background: var(--purple-lt); color: var(--purple); }

.card-title { margin-bottom: .5rem; font-size: 1.1rem; }
.card-text { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.card-footer {
    padding: 1rem 1.75rem;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-alt);
}

/* ─── Grid layouts ──────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 1.5rem; }

/* ─── Section spacing ───────────────────────────────── */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-yellow { background: var(--yellow-lt); }
.section-blue   { background: var(--blue-lt); }

/* ─── Stats row ─────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: 1rem;
    padding-block: 3rem;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1;
    min-width: 140px;
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
}
.stat-item:nth-child(1) { background: var(--blue-lt); }
.stat-item:nth-child(2) { background: var(--mint-lt); }
.stat-item:nth-child(3) { background: var(--yellow-lt); }
.stat-item:nth-child(4) { background: var(--lilac-lt); }
.stat-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--purple);
    line-height: 1;
    margin-bottom: .4rem;
    letter-spacing: -.03em;
}
.stat-label {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

/* ─── Skills ────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-top: 2rem; }
.skill-item {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
    font-weight: 500;
    font-family: var(--ff-display);
    transition: all var(--transition);
}
.skill-item:hover { border-color: var(--purple); background: var(--purple-lt); color: var(--purple); }
.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    flex-shrink: 0;
}

/* ─── Filter bar ─────────────────────────────────────── */
.filter-bar {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 150px; }
.filter-group label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-family: var(--ff-display);
}
.filter-group select,
.filter-group input {
    padding: .6rem .9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    font-family: var(--ff-body);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--purple); }

/* ─── Trace detail ──────────────────────────────────── */
.trace-detail { max-width: 800px; }
.trace-header { margin-bottom: 2.5rem; }
.trace-body { font-size: 1.05rem; line-height: 1.9; color: var(--text); margin-bottom: 2.5rem; }
.trace-meta-list {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border: 2px solid var(--border);
}
.trace-meta-item { display: flex; flex-direction: column; gap: .25rem; }
.trace-meta-item strong {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 700;
    font-family: var(--ff-display);
}
.trace-meta-item span { font-size: .95rem; color: var(--dark); font-weight: 500; }

/* ─── Comments ───────────────────────────────────────── */
.comments-section {
    background: var(--blue-lt);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
    border: 2px solid var(--blue);
}
.comments-section h3 { margin-bottom: 1.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.comment-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--purple);
}
.comment-author { font-size: .8rem; font-weight: 700; color: var(--purple); margin-bottom: .35rem; font-family: var(--ff-display); }
.comment-date { font-size: .73rem; color: var(--muted); }
.comment-text { margin: .5rem 0 0; color: var(--text); }
.comment-form { display: flex; flex-direction: column; gap: .75rem; }
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .95rem;
    color: var(--dark);
    background: var(--white);
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color var(--transition);
}
.comment-form textarea:focus { border-color: var(--purple); }

/* ─── Forms ──────────────────────────────────────────── */
.form-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--bg-alt);
}
.form-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    width: min(500px, 100%);
    box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--ff-display);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: .8rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .95rem;
    color: var(--dark);
    background: var(--bg-alt);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-footer { margin-top: 1.5rem; text-align: center; font-size: .875rem; color: var(--muted); }
.form-footer a { color: var(--purple); font-weight: 600; }

/* ─── Alerts ─────────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 500;
    border: 2px solid;
    font-family: var(--ff-display);
}
.alert-error   { background: #fff0f0; color: #c1121f; border-color: #ffc4c4; }
.alert-success { background: var(--mint-lt); color: #2a6b27; border-color: var(--mint); }
.alert-info    { background: var(--blue-lt); color: #1a5f8a; border-color: var(--blue); }

/* ─── Page hero ──────────────────────────────────────── */
.page-hero {
    padding-block: clamp(2.5rem, 7vw, 5rem);
    border-bottom: 2px solid var(--border);
    margin-bottom: 3rem;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* ─── Admin layout ───────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-block: 2rem; }
.admin-sidebar { position: sticky; top: 90px; align-self: start; }
.admin-sidebar-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--muted);
    margin-bottom: .6rem;
    margin-top: 1.5rem;
    padding-left: .75rem;
    font-weight: 700;
    font-family: var(--ff-display);
}
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
    font-family: var(--ff-display);
}
.admin-nav a:hover { background: var(--purple-lt); color: var(--purple); }
.admin-nav a.active { background: var(--purple); color: var(--white); }

.admin-main { padding-bottom: 3rem; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header-row h2 { margin: 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    font-size: .9rem;
}
.data-table th {
    background: var(--bg-alt);
    padding: .9rem 1.25rem;
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 700;
    font-family: var(--ff-display);
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-alt); }
.data-table .actions { display: flex; gap: .5rem; }

/* ─── Stat cards (admin) ─────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}
.stat-card:nth-child(1) { background: var(--blue-lt);   border-color: var(--blue); }
.stat-card:nth-child(2) { background: var(--mint-lt);   border-color: var(--mint); }
.stat-card:nth-child(3) { background: var(--lilac-lt);  border-color: var(--lilac); }
.stat-card:nth-child(4) { background: var(--yellow-lt); border-color: var(--yellow); }
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--white);
}
.stat-card-value { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--dark); line-height: 1; letter-spacing: -.03em; }
.stat-card-label { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* ─── Back link ──────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color var(--transition);
}
.back-link:hover { color: var(--purple); }

/* ─── Evaluateur ─────────────────────────────────────── */
.eval-welcome {
    background: linear-gradient(135deg, var(--purple-lt) 0%, var(--blue-lt) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

/* ─── File upload ────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    background: var(--bg-alt);
}
.file-upload-area:hover { border-color: var(--purple); background: var(--purple-lt); }
.file-upload-area input[type="file"] { display: none; }
.file-upload-label { font-size: .9rem; color: var(--muted); }
.file-upload-label strong { color: var(--purple); }

/* ─── Pagination ─────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 700;
    font-family: var(--ff-display);
}
.pagination a { border: 2px solid var(--border); color: var(--text); }
.pagination a:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-lt); }
.pagination span { background: var(--purple); color: var(--white); border: 2px solid var(--purple); }

/* ─── Empty state ────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--muted); margin-bottom: .5rem; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding-block: 3rem;
    margin-top: auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .logo-ag { background: var(--purple); }
.footer-brand p { font-size: .8rem; line-height: 1.5; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.6); font-weight: 500; }
.footer-nav a:hover { color: var(--blue); }
.footer-copy { font-size: .78rem; text-align: right; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { max-width: 400px; margin: 0 auto; aspect-ratio: 1; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; }
    .footer-nav { justify-content: center; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .trace-meta-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        top: 68px;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 2px solid var(--border);
        align-items: flex-start;
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .form-card { padding: 2rem 1.5rem; }
    .filter-bar { flex-direction: column; }
    .stats-row { flex-direction: column; }
    .data-table { font-size: .8rem; }
    .data-table th, .data-table td { padding: .6rem .75rem; }
    .hero-title em::after { display: none; }
}

/* ─── Utilitaires ────────────────────────────────────── */
.text-muted    { color: var(--muted); }
.text-purple   { color: var(--purple); }
.fw-700        { font-weight: 700; }
.mb-0          { margin-bottom: 0; }
.mt-1          { margin-top: 1rem; }
.mt-2          { margin-top: 2rem; }
.flex          { display: flex; }
.items-center  { align-items: center; }
.gap-1         { gap: 1rem; }
.justify-between { justify-content: space-between; }
