/*
Theme Name: ESCEP-Niger Concours
Theme URI: https://www.escep-niger.net/
Author: ESCEP-Niger
Author URI: https://www.escep-niger.net/
Description: Thème officiel de l'ESCEP-Niger pour la gestion du concours d'entrée du Second Cycle. Design aux couleurs du logo (bleu, jaune signal, rouge), icônes FontAwesome, comptes candidats avec tableau de bord, suivi de dossier et notifications. Thème classique compatible avec toutes les versions de WordPress.
Version: 1.0.0
Requires at least: 4.6
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: escep-niger
Tags: education, custom-menu, custom-logo, featured-images, translation-ready, right-sidebar, two-columns, front-page-post-form
*/

/* ============================================================
   Jetons de conception (couleurs du logo ESCEP-NIGER)
   ============================================================ */
:root {
  --escep-blue: #1b4db1;
  --escep-blue-600: #1746a0;
  --escep-night: #12235c;
  --escep-yellow: #f4c300;
  --escep-yellow-soft: #ffe9a3;
  --escep-red: #e01e26;
  --escep-ink: #0e1a2b;
  --escep-slate: #47566b;
  --escep-mist: #eef2f9;
  --escep-ivory: #f7f9fc;
  --escep-line: #dde5f0;
  --escep-white: #ffffff;
  --escep-green: #16a34a;

  --escep-radius: 14px;
  --escep-radius-sm: 9px;
  --escep-shadow: 0 18px 40px -18px rgba(18, 35, 92, .35);
  --escep-shadow-sm: 0 6px 18px -10px rgba(18, 35, 92, .35);
  --escep-maxw: 1180px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--escep-ink);
  background: var(--escep-ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--escep-blue); text-decoration: none; }
a:hover { color: var(--escep-blue-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--escep-night); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--escep-yellow); outline-offset: 2px; }

.escep-container { width: 100%; max-width: var(--escep-maxw); margin: 0 auto; padding: 0 22px; }
.escep-section { padding: 82px 0; }
.escep-section--tight { padding: 54px 0; }
.escep-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--escep-blue); background: #e8eefb;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.escep-eyebrow i { color: var(--escep-red); }
.escep-lead { font-size: 1.14rem; color: var(--escep-slate); max-width: 62ch; }

/* Bande diagonale jaune — motif signature (éclair du logo) */
.escep-swoosh {
  position: relative; display: inline-block;
}
.escep-swoosh::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .42em;
  background: var(--escep-yellow);
  transform: skewX(-18deg); z-index: -1; border-radius: 3px;
}

/* ============================================================
   Boutons
   ============================================================ */
.escep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--escep-radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; line-height: 1;
}
.escep-btn i { font-size: .95em; }
.escep-btn--primary { background: var(--escep-blue); color: #fff; box-shadow: var(--escep-shadow-sm); }
.escep-btn--primary:hover { background: var(--escep-blue-600); color: #fff; transform: translateY(-2px); }
.escep-btn--accent { background: var(--escep-yellow); color: var(--escep-night); }
.escep-btn--accent:hover { background: #ffce1a; color: var(--escep-night); transform: translateY(-2px); }
.escep-btn--ghost { background: transparent; color: var(--escep-night); border-color: var(--escep-line); }
.escep-btn--ghost:hover { border-color: var(--escep-blue); color: var(--escep-blue); }
.escep-btn--danger { background: var(--escep-red); color: #fff; }
.escep-btn--danger:hover { background: #c2181f; color: #fff; }
.escep-btn--block { width: 100%; }
.escep-btn--sm { padding: 9px 16px; font-size: .9rem; }

/* ============================================================
   En-tête / navigation
   ============================================================ */
.escep-topbar {
  background: var(--escep-night); color: #cdd8ef;
  font-size: .86rem;
}
.escep-topbar .escep-container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.escep-topbar a { color: #fff; }
.escep-topbar span i { color: var(--escep-yellow); margin-right: 6px; }
.escep-topbar .escep-topbar-social a { margin-left: 12px; color: #cdd8ef; }
.escep-topbar .escep-topbar-social a:hover { color: var(--escep-yellow); }

.escep-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--escep-line); position: sticky; top: 0; z-index: 50; }
.escep-header .escep-container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.escep-brand { display: flex; align-items: center; gap: 12px; }
.escep-brand img { height: 46px; width: auto; }
.escep-brand .escep-brand-text { font-family: var(--font-display); font-weight: 700; color: var(--escep-night); line-height: 1; font-size: 1.15rem; }
.escep-brand .escep-brand-text small { display: block; font-size: .64rem; letter-spacing: .16em; color: var(--escep-red); font-weight: 600; margin-top: 3px; }

.escep-nav { display: flex; align-items: center; gap: 4px; }
.escep-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.escep-nav a { font-family: var(--font-display); font-weight: 500; color: var(--escep-ink); padding: 10px 14px; border-radius: 8px; font-size: .98rem; }
.escep-nav a:hover, .escep-nav .current-menu-item > a { color: var(--escep-blue); background: var(--escep-mist); }
.escep-header-actions { display: flex; align-items: center; gap: 10px; }

.escep-burger { display: none; background: none; border: 0; color: var(--escep-night); font-size: 1.5rem; cursor: pointer; padding: 6px 8px; }

/* ============================================================
   Héros
   ============================================================ */
.escep-hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 90% -10%, rgba(27,77,177,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--escep-ivory) 100%);
  padding: 68px 0 84px; }
.escep-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.escep-hero h1 { margin-bottom: 18px; }
.escep-hero .escep-lead { margin-bottom: 28px; }
.escep-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.escep-hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.escep-hero-meta div { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--escep-slate); }
.escep-hero-meta i { color: var(--escep-blue); font-size: 1.15rem; }

/* Arcs "signal" décoratifs (rappel des ondes rouges du logo) */
.escep-hero-arcs { position: absolute; top: -60px; right: -60px; width: 260px; height: 260px; opacity: .5; pointer-events: none; }
.escep-hero-arcs span { position: absolute; inset: 0; margin: auto; border: 3px solid var(--escep-red); border-radius: 50%; opacity: .22; }
.escep-hero-arcs span:nth-child(1) { width: 90px; height: 90px; }
.escep-hero-arcs span:nth-child(2) { width: 160px; height: 160px; opacity: .15; }
.escep-hero-arcs span:nth-child(3) { width: 230px; height: 230px; opacity: .09; }

/* Carte concours (façon carte d'admission) */
.escep-card-concours {
  background: #fff; border: 1px solid var(--escep-line); border-radius: var(--escep-radius);
  box-shadow: var(--escep-shadow); overflow: hidden;
}
.escep-card-concours .cc-head { background: linear-gradient(120deg, var(--escep-night), var(--escep-blue)); color: #fff; padding: 20px 24px; position: relative; }
.escep-card-concours .cc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--escep-yellow); transform: skewY(-1.4deg) translateY(4px); }
.escep-card-concours .cc-head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.escep-card-concours .cc-head p { margin: 4px 0 0; color: #cdd8ef; font-size: .9rem; }
.escep-card-concours .cc-body { padding: 8px 24px 22px; }
.escep-cc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--escep-mist); }
.escep-cc-row:last-child { border-bottom: 0; }
.escep-cc-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--escep-mist); color: var(--escep-blue); font-size: 1.05rem; }
.escep-cc-row .cc-label { font-size: .78rem; color: var(--escep-slate); text-transform: none; }
.escep-cc-row .cc-value { font-family: var(--font-display); font-weight: 600; color: var(--escep-night); }
.escep-card-concours .cc-foot { padding: 0 24px 24px; }

/* ============================================================
   Bandeau statistiques
   ============================================================ */
.escep-stats { background: var(--escep-night); color: #fff; }
.escep-stats .escep-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.escep-stat { text-align: center; }
.escep-stat .num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--escep-yellow); }
.escep-stat .lbl { color: #cdd8ef; font-size: .92rem; }

/* ============================================================
   Filières
   ============================================================ */
.escep-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.escep-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.escep-filiere {
  background: #fff; border: 1px solid var(--escep-line); border-top: 4px solid var(--escep-blue);
  border-radius: var(--escep-radius); padding: 26px 24px; transition: transform .14s ease, box-shadow .14s ease;
}
.escep-filiere:hover { transform: translateY(-4px); box-shadow: var(--escep-shadow); }
.escep-filiere:nth-child(2) { border-top-color: var(--escep-red); }
.escep-filiere:nth-child(3) { border-top-color: var(--escep-yellow); }
.escep-filiere:nth-child(4) { border-top-color: var(--escep-green); }
.escep-filiere-ico { width: 54px; height: 54px; border-radius: 13px; background: var(--escep-mist); color: var(--escep-blue); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.escep-filiere h3 { margin-bottom: 8px; }
.escep-filiere p { color: var(--escep-slate); font-size: .96rem; margin: 0; }
.escep-filiere .tag { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--escep-blue); background: #e8eefb; padding: 4px 11px; border-radius: 999px; }

/* ============================================================
   Étapes d'inscription (séquence numérotée = justifiée)
   ============================================================ */
.escep-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.escep-step-card { position: relative; background: #fff; border: 1px solid var(--escep-line); border-radius: var(--escep-radius); padding: 30px 22px 24px; }
.escep-step-card .step-n {
  counter-increment: step; position: absolute; top: -18px; left: 22px;
  width: 40px; height: 40px; border-radius: 11px; background: var(--escep-night); color: #fff;
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: var(--escep-shadow-sm);
}
.escep-step-card .step-n::before { content: counter(step); }
.escep-step-card i { color: var(--escep-blue); font-size: 1.3rem; margin: 6px 0 10px; }
.escep-step-card h3 { font-size: 1.08rem; }
.escep-step-card p { color: var(--escep-slate); font-size: .93rem; margin: 0; }

/* ============================================================
   Dates clés
   ============================================================ */
.escep-timeline { border-left: 3px solid var(--escep-line); margin-left: 8px; padding-left: 0; }
.escep-tl-item { position: relative; padding: 0 0 26px 30px; }
.escep-tl-item::before { content: ""; position: absolute; left: -10px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--escep-yellow); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--escep-yellow); }
.escep-tl-item.is-key::before { background: var(--escep-red); box-shadow: 0 0 0 2px var(--escep-red); }
.escep-tl-item .tl-date { font-family: var(--font-display); font-weight: 700; color: var(--escep-night); }
.escep-tl-item .tl-text { color: var(--escep-slate); }

/* ============================================================
   FAQ (accordéon)
   ============================================================ */
.escep-faq-item { background: #fff; border: 1px solid var(--escep-line); border-radius: var(--escep-radius-sm); margin-bottom: 12px; overflow: hidden; }
.escep-faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.03rem; color: var(--escep-night); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.escep-faq-q i { color: var(--escep-blue); transition: transform .2s ease; }
.escep-faq-item.is-open .escep-faq-q i { transform: rotate(45deg); }
.escep-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.escep-faq-a .inner { padding: 0 22px 20px; color: var(--escep-slate); }

/* ============================================================
   Bandeau d'appel à l'action
   ============================================================ */
.escep-cta-band { background: linear-gradient(120deg, var(--escep-blue), var(--escep-night)); color: #fff; border-radius: var(--escep-radius); padding: 44px; position: relative; overflow: hidden; }
.escep-cta-band::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px; background: var(--escep-yellow); opacity: .16; transform: skewX(-18deg); }
.escep-cta-band h2 { color: #fff; }
.escep-cta-band p { color: #dbe4f7; max-width: 60ch; }

/* ============================================================
   Espace candidat (auth + tableau de bord)
   ============================================================ */
.escep-auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.escep-panel { background: #fff; border: 1px solid var(--escep-line); border-radius: var(--escep-radius); box-shadow: var(--escep-shadow-sm); padding: 28px; }
.escep-panel h2 { font-size: 1.4rem; }
.escep-panel h2 i, .escep-panel h3 i { color: var(--escep-blue); margin-right: 8px; }
.escep-field { margin-bottom: 15px; }
.escep-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--escep-night); margin-bottom: 6px; }
.escep-field input, .escep-field select, .escep-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--escep-line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--escep-ink); background: #fff;
}
.escep-field input:focus, .escep-field select:focus, .escep-field textarea:focus { border-color: var(--escep-blue); outline: none; box-shadow: 0 0 0 3px rgba(27,77,177,.14); }

.escep-alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; border-left: 4px solid; }
.escep-alert--ok { background: #f0fdf4; border-color: var(--escep-green); color: #166534; }
.escep-alert--err { background: #fef2f2; border-color: var(--escep-red); color: #b91c1c; }
.escep-alert--info { background: #eff6ff; border-color: var(--escep-blue); color: #1746a0; }

.escep-dash-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, var(--escep-night), var(--escep-blue)); color: #fff; border-radius: var(--escep-radius); padding: 26px 28px; margin-bottom: 24px; }
.escep-dash-head h2 { color: #fff; margin: 0; }
.escep-dash-head p { color: #cdd8ef; margin: 4px 0 0; }
.escep-dash-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: start; }

.escep-status-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.st-submitted { background: #fef3c7; color: #b45309; }
.st-verified, .st-payment_verified { background: #dcfce7; color: #15803d; }
.st-convocation_ready { background: #dbeafe; color: #1746a0; }
.st-rejected, .st-payment_rejected { background: #fee2e2; color: #b91c1c; }
.st-cancelled { background: #e5e7eb; color: #475569; }
.st-none { background: var(--escep-mist); color: var(--escep-slate); }

.escep-timeline-dossier { list-style: none; margin: 0; padding: 0; }
.escep-timeline-dossier li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--escep-mist); }
.escep-timeline-dossier li:last-child { border-bottom: 0; }
.escep-timeline-dossier .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--escep-mist); color: var(--escep-blue); flex-shrink: 0; }
.escep-timeline-dossier .done .ti { background: #dcfce7; color: var(--escep-green); }

/* Notifications */
.escep-notif { border: 1px solid var(--escep-line); border-radius: 11px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.escep-notif.is-unread { border-left: 4px solid var(--escep-red); background: #fff8f8; }
.escep-notif .n-title { font-family: var(--font-display); font-weight: 600; color: var(--escep-night); margin: 0 0 4px; }
.escep-notif .n-meta { font-size: .8rem; color: var(--escep-slate); }
.escep-notif .n-body { color: var(--escep-slate); font-size: .95rem; margin: 6px 0 0; }
.escep-notif-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--escep-red); color: #fff; font-size: .72rem; font-weight: 700; font-family: var(--font-display); }

/* ============================================================
   Pied de page
   ============================================================ */
.escep-footer { background: var(--escep-night); color: #b9c5e0; margin-top: 60px; }
.escep-footer .escep-container { padding-top: 56px; padding-bottom: 30px; }
.escep-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.escep-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.escep-footer a { color: #b9c5e0; }
.escep-footer a:hover { color: var(--escep-yellow); }
.escep-footer ul { list-style: none; margin: 0; padding: 0; }
.escep-footer ul li { margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.escep-footer ul li i { color: var(--escep-yellow); width: 18px; text-align: center; }
.escep-footer .escep-brand-text { color: #fff; }
.escep-footer-brand img { height: 52px; background: #fff; padding: 6px; border-radius: 10px; margin-bottom: 14px; }
.escep-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .86rem; color: #8ea0c4; }

/* ============================================================
   Contenu WordPress générique (pages/articles)
   ============================================================ */
.escep-page-hero { background: linear-gradient(120deg, var(--escep-night), var(--escep-blue)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.escep-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--escep-yellow); transform: skewY(-.6deg) translateY(5px); }
.escep-page-hero h1 { color: #fff; margin: 0; }
.escep-page-hero .crumbs { color: #cdd8ef; font-size: .9rem; margin-bottom: 8px; }
.escep-page-hero .crumbs a { color: #fff; }
.escep-content { max-width: 820px; margin: 0 auto; }
.escep-content img { border-radius: var(--escep-radius-sm); margin: 20px 0; }
.escep-content h2, .escep-content h3 { margin-top: 1.6em; }
.escep-content blockquote { border-left: 4px solid var(--escep-yellow); background: #fff; margin: 20px 0; padding: 14px 20px; border-radius: 0 10px 10px 0; }
.escep-content ul, .escep-content ol { padding-left: 1.2em; }
.escep-content code { background: var(--escep-mist); padding: 2px 6px; border-radius: 5px; font-size: .92em; }

.escep-section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.escep-section-head.left { margin-left: 0; text-align: left; }

/* WordPress core alignment/caption classes */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--escep-slate); text-align: center; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

.escep-pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.escep-pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--escep-line); border-radius: 9px; background: #fff; color: var(--escep-ink); }
.escep-pagination .page-numbers.current { background: var(--escep-blue); color: #fff; border-color: var(--escep-blue); }

.escep-post-card { background: #fff; border: 1px solid var(--escep-line); border-radius: var(--escep-radius); overflow: hidden; margin-bottom: 26px; }
.escep-post-card .thumb img { width: 100%; height: 220px; object-fit: cover; }
.escep-post-card .pc-body { padding: 22px 24px; }
.escep-post-card .pc-meta { font-size: .84rem; color: var(--escep-slate); margin-bottom: 8px; }

/* ============================================================
   Utilitaires
   ============================================================ */
.escep-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.escep-muted { color: var(--escep-slate); }
.escep-hide { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .escep-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .escep-stats .escep-container { grid-template-columns: repeat(2, 1fr); }
  .escep-grid-3, .escep-steps { grid-template-columns: repeat(2, 1fr); }
  .escep-dash-grid { grid-template-columns: 1fr; }
  .escep-auth-wrap { grid-template-columns: 1fr; }
  .escep-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .escep-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); background: #fff; flex-direction: column; align-items: stretch; padding: 84px 18px 24px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .22s ease; z-index: 60; }
  .escep-nav.is-open { transform: translateX(0); }
  .escep-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .escep-nav a { padding: 12px 14px; }
  .escep-burger { display: inline-block; }
  .escep-header-actions .escep-btn--ghost { display: none; }
  .escep-grid-2, .escep-grid-3, .escep-steps { grid-template-columns: 1fr; }
  .escep-section { padding: 58px 0; }
  .escep-cta-band { padding: 30px; }
  .escep-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
