/* ============================================================
   CMANEL — Feuille de style (design moderne, responsive)
   ============================================================ */

:root {
    --bg: #0f172a;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text: #1e293b;
    --text-soft: #64748b;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --accent: #06b6d4;
    --danger: #dc2626;
    --success: #16a34a;
    --border: #e2e8f0;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, .12);
    --maxw: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-soft);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--primary);
    color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
    font: inherit; font-weight: 600; border: 0; border-radius: var(--radius-sm);
    padding: .7rem 1.3rem; transition: .18s ease; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-small { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { background: transparent; padding: .35rem .5rem; font-size: 1rem; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: #fef2f2; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
    font-size: 1.6rem; width: 42px; height: 42px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 11px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .3px; }
.brand-text small { color: var(--text-soft); font-size: .72rem; }

.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
    color: var(--text-soft); font-weight: 500; font-size: .92rem;
    padding: .5rem .7rem; border-radius: 8px; transition: .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.site-nav a.is-active { color: var(--primary); background: var(--primary-light); }
.site-nav .nav-admin { color: var(--primary); font-weight: 600; }

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

/* ---------- Flash / alertes ---------- */
.flash { padding: .8rem 0; font-weight: 500; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #fff 0%, var(--primary-light) 100%); padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero-kicker {
    display: inline-block; font-size: .8rem; color: var(--primary-dark);
    background: #fff; border: 1px solid var(--border); padding: .35rem .8rem;
    border-radius: 999px; margin-bottom: 1.2rem; font-weight: 500;
}
.hero-kicker--scroll { display: block; width: 100%; max-width: 340px; overflow: hidden; white-space: nowrap; }
.hero-kicker-track { display: inline-block; padding-left: 100%; animation: kicker-scroll 14s linear infinite; }
@keyframes kicker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-kicker-track { animation: none; padding-left: 0; }
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 1rem; letter-spacing: -.5px; }
.hero-lead { font-size: 1.12rem; color: var(--text-soft); margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-signature { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: 1.1rem 0 0; }
.hero-signature img { height: 42px; width: auto; mix-blend-mode: multiply; }
.hero-signature .hero-signature-emoji { height: 30px; mix-blend-mode: normal; }

.hero-media { position: relative; }
.hero-placeholder {
    background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 3rem 1.5rem; text-align: center; color: var(--text-soft);
}
.hero-placeholder span { font-size: 3rem; }

/* ---------- Carrousel ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 10; }
.carousel-slide { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7)); padding: 1.4rem 1rem .9rem; font-size: .9rem;
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .85); color: var(--text); font-size: 1.4rem; line-height: 1;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: .7rem; }
.carousel-btn.next { right: .7rem; }
.carousel-dots { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .4rem; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.carousel-dots button.is-active { background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-title { font-size: 1.7rem; margin: 0 0 1.8rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.8rem; flex-wrap: wrap; gap: .5rem; }
.section-head .section-title { margin: 0; }
.link-more { font-weight: 600; }

.page-header { background: var(--bg); color: #fff; padding: 2.8rem 0; }
.page-header h1 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-header p { color: #cbd5e1; margin: 0; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; transition: .2s ease; box-shadow: var(--shadow-sm);
}
.card-link { color: var(--text); display: block; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.card-icon { font-size: 2rem; display: block; margin-bottom: .7rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip {
    padding: .45rem 1rem; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text-soft); font-weight: 500; font-size: .9rem;
}
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Liste de ressources ---------- */
.resource-list { display: flex; flex-direction: column; gap: .8rem; }
.resource {
    display: flex; align-items: center; gap: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem;
    transition: .15s; box-shadow: var(--shadow-sm);
}
.resource:hover { border-color: var(--primary); }
.resource-icon { font-size: 1.9rem; flex-shrink: 0; }
.resource-body { flex: 1; min-width: 0; }
.resource-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.resource-desc { margin: .1rem 0 .4rem; color: var(--text-soft); font-size: .92rem; }
.resource-meta { margin: 0; font-size: .8rem; color: var(--text-soft); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.resource-actions { display: flex; flex-direction: column; gap: .4rem; flex-shrink: 0; }
.resource-actions .btn { white-space: nowrap; text-align: center; }
.viewer-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.viewer-back { display: inline-block; margin-bottom: .5rem; color: #cbd5e1; font-size: .9rem; text-decoration: none; }
.viewer-back:hover { text-decoration: underline; }
.viewer-desc { margin: .3rem 0 0; opacity: .85; }
.viewer-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.viewer-frame { width: 100%; height: 80vh; min-height: 480px; border: 0; display: block; }
.viewer-img { display: block; max-width: 100%; margin: 0 auto; }
.viewer-hint { margin: .8rem 0 0; text-align: center; font-size: .85rem; }

.serie-title { font-size: 1.15rem; margin: 2rem 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.serie-title:first-of-type { margin-top: 0; }
.serie-title--none { color: var(--text-soft); }
.serie-count { background: var(--primary-light); color: var(--primary-dark); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; }
.serie-list { margin-bottom: .4rem; }
.serie-move { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; }
.serie-move input { font-size: .8rem; padding: .25rem .45rem; width: 130px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.serie-move input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.cat-move select { font-size: .8rem; padding: .28rem .4rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; max-width: 130px; }
.cat-move select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.order-move { display: inline-flex; gap: .1rem; }
.order-move button { font-size: 1.05rem; line-height: 1; padding: .3rem .45rem; }
.order-move button[disabled] { opacity: .25; cursor: default; }
.serie-order { list-style: none; margin: .5rem 0 0; padding: 0; }
.serie-order li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .4rem; background: var(--card, #fff); }
.serie-order-name { font-weight: 600; }
.panel-narrow { max-width: 560px; margin: 0 auto; }
.panel-narrow + .panel-narrow { margin-top: 1.5rem; }
.submission-deadline { font-size: .82rem; color: var(--text-soft); margin: .3rem 0 0; }
.submission-deadline.locked { color: #b45309; }
.submission-edit { margin-top: .5rem; }
.submission-edit summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; }
.submission-edit .form { margin-top: .8rem; }
.submission-delete { margin-top: .6rem; }
.code-notice { border: 2px solid var(--primary); }
.deposit-code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1.7rem; font-weight: 700; letter-spacing: 3px; color: var(--primary-dark); background: var(--primary-light); display: inline-block; padding: .5rem 1.1rem; border-radius: 8px; margin: .2rem 0 .8rem; }
.dep-code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 700; letter-spacing: 1px; background: var(--surface-alt, #f1f5f9); padding: .1rem .4rem; border-radius: 5px; white-space: nowrap; }
.pw-current { font-weight: 400; font-size: .85rem; color: var(--text-soft); }
.pw-current strong { font-family: ui-monospace, Menlo, monospace; color: var(--primary-dark); background: var(--primary-light); padding: .06rem .4rem; border-radius: 5px; }
.pw-field { display: flex; gap: .5rem; align-items: center; }
.pw-field input { flex: 1; }
.banner-color-row { display: flex; align-items: center; gap: .7rem; }
.banner-color-row input[type=color] { width: 48px; height: 34px; min-width: 48px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; flex: none; background: #fff; }
.banner-color-row .muted { font-size: .82rem; font-weight: 400; }

.badge {
    display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #fff; background: var(--text-soft);
}
.badge-cours { background: #4f46e5; }
.badge-td { background: #0ea5e9; }
.badge-tp { background: #f59e0b; }
.badge-ressource_tp { background: #7c3aed; }
.badge-projet { background: #ec4899; }
.badge-document { background: #14b8a6; }

/* ---------- Classes (Première / Terminale) ---------- */
.classe-bar { background: var(--bg); padding: .6rem 0; }
.classe-bar-inner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.classe-bar-label { color: #cbd5e1; font-size: .82rem; font-weight: 500; }
.classe-tabs { display: flex; gap: .5rem; }
.classe-tab {
    padding: .4rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
    color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .25); background: transparent;
}
.classe-tab:hover { text-decoration: none; border-color: var(--primary); color: #fff; }
.classe-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.tag-classe {
    display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem;
    font-weight: 600; background: transparent; border: 1px solid var(--border); color: var(--text-soft);
}
.tag-seconde { border-color: #059669; color: #059669; }
.tag-premiere { border-color: var(--primary); color: var(--primary); }
.tag-terminale { border-color: #d97706; color: #d97706; }
.tag-lock {
    display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem;
    font-weight: 600; background: #fef3c7; border: 1px solid #f59e0b; color: #92400e;
}

.classe-gate p { max-width: 32rem; margin: 0 auto 1.4rem; font-size: 1.02rem; }
.classe-gate-choices { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Écran d'accueil : choix de la classe ---------- */
.landing { background: linear-gradient(160deg, #fff 0%, var(--primary-light) 100%); padding: 4rem 0 5rem; text-align: center; min-height: 62vh; display: flex; align-items: center; }
.landing-inner { width: 100%; }
.landing h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .6rem; letter-spacing: -.5px; }
.landing-sub { color: var(--text-soft); font-size: 1.1rem; margin: 0 auto 2.6rem; max-width: 40rem; }
.landing-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 820px; margin: 0 auto; }
.landing-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2.2rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--text); transition: .2s ease; box-shadow: var(--shadow-sm); }
.landing-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.landing-card-ico { font-size: 2.4rem; }
.landing-card strong { font-size: 1.2rem; }
.landing-card-go { color: var(--primary); font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) { .landing-choices { grid-template-columns: 1fr; } }
.tag-commun { border-color: var(--border); color: var(--text-soft); }

/* ---------- États vides ---------- */
.empty, .hero-placeholder { text-align: center; }
.empty { padding: 3.5rem 1rem; color: var(--text-soft); }
.empty span { font-size: 3rem; display: block; margin-bottom: .6rem; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
    font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form small { font-weight: 400; }
.form-hp { position: absolute; left: -9999px; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: .6rem !important; }
.checkbox-label input { width: auto; }
.muted { color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.contact-info .contact-ico { margin-right: .4rem; }

/* ---------- Connexion ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--bg), #1e293b); padding: 1.5rem; }
.login-box { background: #fff; border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 410px; box-shadow: var(--shadow); }
.login-brand { display: block; font-weight: 700; font-size: 1.2rem; color: var(--primary); margin-bottom: 1.5rem; }
.login-box h1 { margin: 0 0 .3rem; font-size: 1.5rem; }
.login-box .muted { margin-top: 0; }
.login-back { display: inline-block; margin-top: 1.2rem; font-size: .9rem; color: var(--text-soft); }
.login-forgot { display: block; margin-top: 1rem; font-size: .9rem; color: var(--primary); font-weight: 500; }

/* ---------- Admin ---------- */
.admin-bar { background: var(--bg); color: #fff; padding: 1.4rem 0; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-bar h1 { color: #fff; margin: 0; font-size: 1.4rem; }
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-nav a { color: #cbd5e1; padding: .45rem .8rem; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: var(--primary); color: #fff; }
.admin-nav a.danger { color: #fca5a5; }

.admin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.panel h2 { margin: 0 0 1.2rem; font-size: 1.2rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; color: var(--text-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; padding: .5rem .4rem; border-bottom: 2px solid var(--border); }
.admin-table td { padding: .65rem .4rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table form { display: inline; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.img-tile { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--surface-alt); }
.img-tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.img-tile figcaption { padding: .5rem .6rem; font-size: .78rem; color: var(--text-soft); }
.img-tile form { position: absolute; top: .4rem; right: .4rem; }
.img-tile .btn-icon { background: rgba(255, 255, 255, .9); border-radius: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg); color: #cbd5e1; margin-top: 2rem; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.site-footer a { display: block; color: #cbd5e1; font-size: .9rem; padding: .15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-size: 1.1rem; }
.site-footer p { font-size: .88rem; margin: .3rem 0 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.2rem; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem;
        gap: .2rem; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav a { padding: .8rem .7rem; font-size: 1rem; }
    .hero-grid, .contact-grid, .admin-grid, .footer-inner { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0; }
    .hero-media { order: -1; }
    .hero-signature { align-items: center; margin: 1rem 0 1.4rem; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
    .resource { flex-wrap: wrap; }
    .resource .btn { width: 100%; justify-content: center; }
    .admin-bar-inner { flex-direction: column; align-items: flex-start; }
}
