:root{
  --bg:#ffffff;
  --bg-soft:#f7fafc;
  --bg-tint:#eef4ff;
  --surface:#ffffff;
  --surface-muted:#f4f7fa;
  --surface-strong:#eef3f7;
  --text:#0f172a;
  --text-muted:#5f6f83;
  --text-soft:#8a98aa;
  --border:#e2e8f0;
  --border-strong:#cbd5e1;
  --primary:#2563eb;
  --primary-dark:#1e3a8a;
  --primary-soft:#dbeafe;
  --accent:#2563eb;
  --accent-soft:#dbeafe;
  --danger:#b42318;
  --danger-soft:#fff1f0;
  --warning:#a15c07;
  --warning-soft:#fff7e6;
  --success:#16703c;
  --success-soft:#ecfdf3;
  --radius-xs:10px;
  --radius-sm:14px;
  --radius-md:18px;
  --radius-lg:24px;
  --radius-xl:32px;
  --shadow-xs:0 1px 2px rgba(15,23,42,.05);
  --shadow-sm:0 10px 24px rgba(15,23,42,.06);
  --shadow-md:0 22px 56px rgba(15,23,42,.08);
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 8% -4%, rgba(37,99,235,.07), transparent 28rem),
    radial-gradient(circle at 92% 2%, rgba(37,99,235,.07), transparent 26rem),
    linear-gradient(180deg,#fff 0%,#f8fbfc 46rem,#fff 100%);
  line-height:1.6;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img,svg{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}
.container{width:min(var(--max),calc(100% - 32px));margin-inline:auto}
.section{padding:36px 0 76px}
.small,.hint{font-size:.9rem;color:var(--text-muted)}
.muted{color:var(--text-muted)}
.value{font-weight:750;letter-spacing:-.03em;color:var(--text)}
.sep{height:1px;background:var(--border);margin:24px 0}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(226,232,240,.85);
  backdrop-filter:blur(18px) saturate(160%);
}
.site-header__inner,.clean-header__inner{
  min-height:76px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
}
.brand,.clean-brand{display:inline-flex;align-items:center;gap:10px;font-weight:780;color:var(--text);letter-spacing:-.03em;white-space:nowrap}
.brand__mark{
  width:36px;height:36px;border-radius:12px;display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  box-shadow:0 10px 22px rgba(37,99,235,.16);
  font-size:.98rem;font-weight:800;
}
.site-nav,.clean-nav{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
.site-nav a{
  padding:9px 10px;border-radius:999px;color:var(--text-muted);
  font-size:.89rem;font-weight:650;white-space:nowrap;transition:background .18s ease,color .18s ease,transform .18s ease;
}
.site-nav a:hover,.site-nav a[aria-current="page"]{background:var(--surface-muted);color:var(--text);transform:translateY(-1px)}
.site-nav a.nav-standalone{color:var(--text-muted);background:transparent;border:1px solid transparent}
.site-nav a.nav-standalone:hover,.site-nav a.nav-standalone[aria-current="page"]{background:var(--surface-muted);color:var(--text)}
.clean-login{
  display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:999px;
  border:1px solid var(--border);background:rgba(255,255,255,.72);color:var(--text);font-size:.91rem;font-weight:700;white-space:nowrap;
}
.clean-login:hover{border-color:var(--border-strong);box-shadow:var(--shadow-xs)}

/* Buttons */
.button,.clean-button,button,input[type="submit"]{
  appearance:none;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 17px;border-radius:999px;cursor:pointer;
  font-weight:760;font-size:.94rem;line-height:1;background:var(--text);color:#fff;
  box-shadow:var(--shadow-xs);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease;
}
.button:hover,.clean-button:hover,button:hover,input[type="submit"]:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.button--primary,.clean-button--primary{background:var(--primary);color:#fff}
.button--primary:hover,.clean-button--primary:hover{background:var(--primary-dark)}
.button--soft,.button--ghost,.clean-button{background:#fff;color:var(--text);border-color:var(--border)}
.button--soft:hover,.button--ghost:hover,.clean-button:hover{background:var(--surface-muted);border-color:var(--border-strong)}
.inline-actions,.clean-actions,.hero-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}

/* Typography */
.kicker,.clean-eyebrow,.eyebrow,.card__eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;
  color:var(--primary-dark);font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.kicker::before,.clean-eyebrow::before,.eyebrow::before,.card__eyebrow::before{
  content:"";width:7px;height:7px;border-radius:999px;background:var(--primary);
}
h1,h2,h3,p{margin-top:0}
h1,.page-title{font-size:clamp(2.2rem,6vw,4.7rem);line-height:.98;letter-spacing:-.07em;margin:0 0 18px;color:var(--text)}
h2{font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.08;letter-spacing:-.05em;margin:0 0 12px;color:var(--text)}
h3{font-size:1.08rem;line-height:1.25;letter-spacing:-.03em;margin:0 0 8px;color:var(--text)}
p{color:var(--text-muted)}
.page-lead,.clean-lead,.section-intro{font-size:clamp(1rem,2vw,1.18rem);line-height:1.72;color:var(--text-muted);max-width:760px;margin-bottom:0}

/* Page shells */
.page-shell,.hero-shell,.panel,.card,.soft-panel,.notice,.theme-search,.result-box,.modal,.clean-strip{
  border:1px solid var(--border);background:rgba(255,255,255,.86);box-shadow:var(--shadow-xs);
}
.page-shell,.hero-shell{border-radius:var(--radius-xl);padding:clamp(28px,5vw,56px);overflow:hidden;position:relative}
.page-shell::after,.hero-shell::after,.clean-hero::after{
  content:"";position:absolute;right:-9rem;top:-10rem;width:24rem;height:24rem;border-radius:999px;
  background:radial-gradient(circle, rgba(37,99,235,.14), transparent 68%);pointer-events:none;
}
.page-hero{margin-top:8px;margin-bottom:24px;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(247,250,252,.92))}
.panel,.card,.soft-panel{border-radius:var(--radius-lg);padding:22px}
.card,.theme-tile,.resource-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;background:#fff}
.card:hover,.theme-tile:hover,.resource-card:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.soft-panel{background:var(--surface-muted);box-shadow:none}
.notice{border-radius:var(--radius-md);padding:16px 18px;margin:18px 0;color:var(--text-muted);background:#fff}
.notice strong{color:var(--text)}
.notice--warning{background:var(--warning-soft);border-color:#fedf89;color:#7a4a08}
.notice--danger{background:var(--danger-soft);border-color:#fecdca;color:var(--danger)}
.notice--success{background:var(--success-soft);border-color:#abefc6;color:var(--success)}
.empty-state{border:1px dashed var(--border-strong);border-radius:var(--radius-md);padding:20px;color:var(--text-muted);background:var(--surface-muted)}
.danger-link{color:var(--danger);font-weight:760}

/* Grids and cards */
.grid,.clean-card-grid,.theme-grid,.catalog-intro,.result-grid,.spotlight-grid{display:grid;gap:16px}
.grid--two,.catalog-intro,.spotlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--cards,.theme-grid,.clean-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.stack{display:grid;gap:14px}
.clean-section{padding:54px 0}
.clean-section__head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:18px}
.clean-section__head h2{max-width:720px}
.clean-card,.theme-tile,.resource-card{
  display:block;border:1px solid var(--border);border-radius:var(--radius-lg);padding:22px;background:#fff;box-shadow:var(--shadow-xs)
}
.clean-card span{display:inline-flex;margin-bottom:22px;color:var(--text-soft);font-size:.82rem;font-weight:760}
.clean-card p,.theme-tile p,.resource-card p,.card p{margin-bottom:0}
.clean-card:hover h3{color:var(--primary-dark)}
.meta-line,.badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.badge{
  display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:var(--primary-soft);color:var(--primary-dark);
  font-size:.75rem;font-weight:760;line-height:1;border:1px solid rgba(37,99,235,.14)
}
.badge--neutral{background:var(--surface-muted);color:var(--text-muted);border-color:var(--border)}
.card__meta,.theme-tile__meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.helper-list{padding:0;margin:16px 0 0;list-style:none;display:grid;gap:9px;color:var(--text-muted)}
.helper-list li{position:relative;padding-left:18px}
.helper-list li::before{content:"";position:absolute;left:0;top:.68em;width:6px;height:6px;border-radius:50%;background:var(--primary)}

/* Homepage */
.clean-home{overflow:hidden}
.clean-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.72fr);gap:28px;align-items:center;padding:clamp(46px,8vw,96px) 0 42px}
.clean-hero__content{max-width:790px;position:relative;z-index:1}
.clean-hero h1{font-size:clamp(2.75rem,8vw,6.35rem);max-width:11ch;margin-bottom:20px}
.clean-lead{max-width:720px}
.clean-hero__aside{position:relative;z-index:1;border:1px solid var(--border);border-radius:var(--radius-xl);padding:22px;background:rgba(255,255,255,.78);box-shadow:var(--shadow-sm)}
.clean-hero__aside strong{display:block;font-size:.92rem;color:var(--text);margin-bottom:6px}
.clean-hero__aside p{font-size:.93rem;margin:0}
.home-mini-list{display:grid;gap:10px;margin-top:18px}
.home-mini-list a{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:var(--radius-md);background:var(--surface-muted);color:var(--text);font-weight:720;font-size:.92rem}
.home-mini-list a span{color:var(--text-soft);font-weight:760}
.clean-strip{border-radius:var(--radius-xl);padding:26px 28px;margin:22px auto 76px;background:linear-gradient(135deg,#fff,var(--bg-soft))}
.clean-strip p:last-child{margin-bottom:0;max-width:900px}
.principles-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.principle{border:0;background:transparent;padding:0}
.principle p{font-size:.96rem}

/* Forms */
.toolbar{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin:18px 0 20px}
.field{display:grid;gap:7px}
.field label{font-size:.84rem;font-weight:760;color:var(--text);letter-spacing:-.01em}
input,select,textarea{
  width:100%;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:14px;padding:12px 13px;outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
textarea{min-height:128px;resize:vertical}
input::placeholder,textarea::placeholder{color:var(--text-soft)}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.search-input input{padding-left:14px}
form.stack{gap:16px}
label:has(input[type="checkbox"]){display:inline-flex;align-items:center;gap:8px;margin-right:12px;color:var(--text-muted);font-weight:600}
input[type="checkbox"]{width:auto;accent-color:var(--primary)}

/* Resource and job cards */
.resource-card{padding:22px}
.resource-card__head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.resource-card__title{font-size:1.3rem;margin:0}
.resource-card__desc{margin:8px 0 0}
.resource-card__dates,.job-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.date-chip{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:var(--surface-muted)}
.date-chip strong{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft);margin-bottom:3px}
.date-chip span{display:block;color:var(--text);font-weight:700;font-size:.92rem}
.resource-card__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.job-detail-panel p{margin:0 0 8px}
.row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;background:#fff}
.row__top{display:flex;justify-content:space-between;gap:12px;align-items:start}

/* Theme pages */
.breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px;color:var(--text-muted);font-size:.9rem}
.breadcrumbs a{color:var(--primary-dark);font-weight:700}
.theme-page{padding:34px 0 78px}
.theme-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.36fr);gap:18px;align-items:stretch}
.theme-hero-stats{display:grid;gap:12px}
.stat-card{border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;background:#fff}
.stat-card .value{font-size:1.35rem}
.theme-search{border-radius:var(--radius-lg);padding:18px;margin:22px 0;background:#fff}
.theme-list{display:grid;gap:14px}
.theme-footer-nav{display:flex;justify-content:space-between;gap:16px;margin-top:28px}
.icon-button{border:1px solid var(--border);background:#fff;border-radius:999px;width:40px;height:40px;display:grid;place-items:center;color:var(--text)}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.36);display:grid;place-items:center;padding:18px;z-index:80}
.modal{width:min(560px,100%);border-radius:var(--radius-xl);padding:22px;background:#fff;box-shadow:var(--shadow-md)}
.modal__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}

/* Tables and results */
table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:#fff}
th,td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
th{background:var(--surface-muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft)}
tr:last-child td{border-bottom:0}
tr:hover td{background:#fbfdfe}
.result-box{border-radius:var(--radius-lg);padding:20px;background:#fff}
.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-list{display:grid;gap:10px;margin-top:16px}
.profile-item{border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;background:#fff}
.profile-item__label{font-size:.78rem;color:var(--text-soft);text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.profile-item__value{font-weight:760;color:var(--text)}
.profile-item__value--caps{text-transform:uppercase}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff;color:var(--text-muted)}
.clean-footer__inner{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:30px 0;font-size:.9rem}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{color:var(--text-muted);font-weight:650}
.footer-links a:hover{color:var(--text)}

@media (max-width:960px){
  .site-header__inner,.clean-header__inner{grid-template-columns:1fr auto;gap:10px;padding:12px 0}
  .site-nav,.clean-nav{grid-column:1/-1;justify-content:flex-start;overflow-x:auto;padding:3px 0 5px;scrollbar-width:none}
  .site-nav::-webkit-scrollbar{display:none}
  .clean-hero,.theme-hero,.spotlight-grid,.grid--two,.catalog-intro{grid-template-columns:1fr}
  .grid--three,.grid--cards,.theme-grid,.clean-card-grid,.principles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar{grid-template-columns:1fr}
  .resource-card__dates,.job-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clean-footer__inner{align-items:flex-start;flex-direction:column}
}
@media (max-width:640px){
  .container{width:min(100% - 24px,var(--max))}
  .section{padding:26px 0 56px}
  .site-header__inner,.clean-header__inner{min-height:64px}
  .brand__mark{width:34px;height:34px;border-radius:11px}
  .site-nav a{font-size:.86rem;padding:8px 10px}
  .clean-login{min-height:34px;padding:0 12px;font-size:.86rem}
  .page-shell,.hero-shell{border-radius:24px;padding:24px 20px}
  h1,.page-title{letter-spacing:-.055em}
  .clean-hero{grid-template-columns:1fr;padding:38px 0 28px}
  .clean-hero h1{max-width:none}
  .clean-actions,.inline-actions,.resource-card__actions{align-items:stretch;flex-direction:column}
  .button,.clean-button,button,input[type="submit"]{width:100%}
  .grid--three,.grid--cards,.theme-grid,.clean-card-grid,.principles-grid,.result-grid{grid-template-columns:1fr}
  .resource-card__head{display:block}
  .resource-card__dates,.job-quick-grid{grid-template-columns:1fr}
  .panel,.card,.soft-panel,.theme-tile,.resource-card,.clean-card{border-radius:20px;padding:18px}
  table{display:block;overflow-x:auto;white-space:nowrap}
  .clean-section__head{display:block}
  .theme-footer-nav{flex-direction:column}
}

.theme-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px}
.formula-list{display:grid;gap:10px;margin-top:6px}
.formula-list div{border:1px solid var(--border);border-radius:var(--radius-md);padding:13px 14px;background:var(--surface-muted)}
.formula-list strong{display:block;color:var(--text);font-size:.92rem;margin-bottom:2px}
.formula-list span{display:block;color:var(--text-muted);font-size:.9rem}
.result-list{display:grid;gap:10px}
.result-line{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border:1px solid var(--border);border-radius:var(--radius-md);padding:15px;background:#fff}
.result-line__label{display:grid;gap:3px}.result-line__label strong{font-size:.98rem}.result-line__label span{font-size:.86rem;color:var(--text-muted)}
.result-line__value{text-align:right;font-weight:800;color:var(--text);letter-spacing:-.02em;white-space:nowrap}
@media (max-width:960px){.theme-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}}
@media (max-width:640px){.theme-grid--compact{grid-template-columns:1fr}.result-line{display:grid}.result-line__value{text-align:left;white-space:normal}}


/* Forum themes */
.forum-theme-band{
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  padding:20px;
  margin:22px 0 28px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(247,250,252,.86));
  box-shadow:var(--shadow-xs);
}
.forum-theme-band__head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:16px}
.forum-theme-band__head h2{margin-bottom:6px}
.forum-theme-band__head p{margin:0;max-width:760px}
.forum-theme-strip{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}
.forum-theme-pill{
  flex:0 0 min(300px,82vw);
  scroll-snap-align:start;
  display:grid;
  gap:7px;
  min-height:132px;
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
  background:#fff;
  box-shadow:var(--shadow-xs);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.forum-theme-pill:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.forum-theme-pill[aria-current="page"]{border-color:rgba(37,99,235,.45);background:linear-gradient(135deg,#fff,rgba(219,234,254,.52))}
.forum-theme-pill strong{font-size:1.02rem;line-height:1.2;letter-spacing:-.03em;color:var(--text)}
.forum-theme-pill span{font-size:.9rem;line-height:1.45;color:var(--text-muted)}
.forum-theme-pill em{margin-top:auto;font-style:normal;font-size:.78rem;font-weight:800;color:var(--primary-dark);letter-spacing:.04em;text-transform:uppercase}
.forum-question-row{align-items:flex-start}
.forum-theme-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.35fr);gap:16px;align-items:start}
.forum-theme-summary{display:grid;gap:12px}
.forum-theme-stat{border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;background:#fff}
.forum-theme-stat strong{display:block;font-size:1.7rem;line-height:1;color:var(--text);letter-spacing:-.05em}
.forum-theme-stat span{display:block;margin-top:5px;color:var(--text-muted);font-size:.9rem}
@media (max-width:960px){.forum-theme-band__head,.forum-theme-layout{display:grid;grid-template-columns:1fr}.forum-theme-band__head .button{width:max-content}}
@media (max-width:640px){.forum-theme-band{border-radius:24px;padding:16px}.forum-theme-band__head .button{width:100%}.forum-theme-pill{flex-basis:86vw;min-height:126px}}


/* Emploi V4 */
.toolbar--jobs{grid-template-columns:minmax(220px,1.3fr) repeat(5,minmax(138px,.72fr));align-items:end}
.job-card__subtitle{margin:8px 0 0;color:var(--text-muted);font-weight:620;line-height:1.45}
.date-chip--wide{grid-column:span 2}
.job-offer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.34fr);gap:18px;align-items:start;margin-top:18px}
.job-offer-hero{margin-bottom:0}
.job-offer-main{display:grid;gap:28px}
.job-offer-section{border-top:1px solid var(--border);padding-top:22px}
.job-offer-section p{margin:8px 0 0;color:var(--text-muted);line-height:1.75}
.job-offer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.job-apply-card{position:sticky;top:88px;display:grid;gap:14px}
.job-apply-card h2{font-size:1.25rem;margin:0}
.job-apply-card p{margin:0;color:var(--text-muted)}
.rich-text p{color:var(--text-muted);line-height:1.75;margin:0 0 10px}
.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:4px}
.checkbox-grid label{border:1px solid var(--border);border-radius:14px;padding:11px 12px;background:#fff;margin:0;color:var(--text);font-size:.92rem;font-weight:650;align-items:flex-start}
.button.disabled{opacity:.55;pointer-events:none}
@media (max-width: 980px){
  .toolbar--jobs{grid-template-columns:1fr 1fr}
  .job-offer-layout{grid-template-columns:1fr}
  .job-apply-card{position:static}
  .job-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .toolbar--jobs,.checkbox-grid,.job-offer-grid{grid-template-columns:1fr}
  .date-chip--wide{grid-column:auto}
}


/* Logo */
.brand__logo{
  width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;
}
.brand__logo img{width:38px;height:38px;display:block;filter:drop-shadow(0 8px 18px rgba(37,99,235,.16));}

/* Home V2 */
.clean-hero--homev2 .clean-hero__content{max-width:820px}
.clean-card-grid--home-v2{grid-template-columns:repeat(3,minmax(0,1fr));}
.clean-card-grid--home-v2 .clean-card{min-height:220px}
.clean-card-grid--home-v2 .clean-card h3{max-width:18ch}
.clean-card-grid--home-v2 .clean-card p{max-width:34ch}

/* Jobs */
.resource-card--job{padding:24px;border-radius:24px}
.resource-card__head--job{align-items:flex-start}
.job-card-pro .resource-card__title{font-size:1.42rem}
.job-card__subtitle{margin:8px 0 0;color:var(--text-muted);font-weight:600}
.job-quick-grid--full{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.job-info{
  border:1px solid var(--border);
  background:var(--surface-muted);
  border-radius:16px;
  padding:12px 14px;
  min-height:82px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.job-info strong{font-size:.78rem;line-height:1.25;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft)}
.job-info span{font-size:.97rem;line-height:1.45;font-weight:650;color:var(--text)}
.job-info--wide{grid-column:span 2}
.job-offer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.job-offer-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:20px;align-items:start}
.job-offer-side{position:sticky;top:96px}
.toolbar--directory-simple{max-width:360px}
.resource-card--directory .resource-card__dates{grid-template-columns:repeat(2,minmax(0,1fr))}

@media (max-width: 1080px){
  .job-quick-grid--full{grid-template-columns:repeat(3,minmax(0,1fr))}
  .job-offer-layout{grid-template-columns:1fr}
  .job-offer-side{position:static}
}
@media (max-width: 820px){
  .clean-card-grid--home-v2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .job-quick-grid--full,.job-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .clean-card-grid--home-v2{grid-template-columns:1fr}
  .job-quick-grid--full,.job-offer-grid,.resource-card--directory .resource-card__dates{grid-template-columns:1fr}
  .job-info--wide{grid-column:auto}
}


/* V7 — Ressources publiques */
.resources-page .container,.jobs-page .container{width:min(1180px,calc(100% - 32px))}
.resource-hero-v2,.jobs-hero-v2{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:end}
.resource-hero-card,.jobs-hero-card{border:1px solid var(--border);background:rgba(255,255,255,.74);border-radius:22px;padding:20px;box-shadow:var(--shadow-xs)}
.resource-hero-card strong,.jobs-hero-card strong{display:block;margin-bottom:8px;color:var(--text);letter-spacing:-.02em}
.resource-hero-card p,.jobs-hero-card p{margin:0;color:var(--text-muted);font-size:.96rem}
.resource-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.resource-stats div{border:1px solid var(--border);background:rgba(255,255,255,.78);border-radius:20px;padding:18px 20px;box-shadow:var(--shadow-xs)}
.resource-stats strong{display:block;font-size:1.8rem;line-height:1;letter-spacing:-.06em;color:var(--text)}
.resource-stats span{display:block;margin-top:7px;color:var(--text-muted);font-weight:650;font-size:.9rem}
.resource-command-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(420px,1fr);gap:22px;align-items:end;border:1px solid var(--border);background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,251,255,.86));border-radius:26px;padding:22px;margin:20px 0 18px;box-shadow:var(--shadow-xs)}
.resource-command-panel h2{margin:4px 0 8px;font-size:1.35rem;letter-spacing:-.04em}
.resource-command-panel p{margin:0;color:var(--text-muted)}
.resource-command-panel__controls{display:grid;grid-template-columns:1.35fr .75fr;gap:12px}
.resource-summary-row{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:6px 0 14px}
.theme-grid--resources-v2{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.theme-tile--resource-v2{padding:22px;border-radius:24px;display:flex;flex-direction:column;min-height:360px}
.theme-tile__topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.resource-count{font-size:.82rem;font-weight:750;color:var(--text-muted);white-space:nowrap}
.theme-tile--resource-v2 h3{font-size:1.28rem;margin:0 0 8px;letter-spacing:-.04em}
.theme-tile--resource-v2 p{color:var(--text-muted);margin:0 0 16px}
.resource-tile-meta{display:grid;gap:8px;margin-top:auto;border-top:1px solid var(--border);padding-top:14px}
.resource-tile-meta div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;align-items:start}
.resource-tile-meta strong{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft)}
.resource-tile-meta span{font-size:.88rem;color:var(--text);font-weight:620;line-height:1.35}

/* V7 — Emploi public */
.jobs-layout-v2{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.job-filter-panel{position:sticky;top:96px;border:1px solid var(--border);background:rgba(255,255,255,.86);border-radius:24px;padding:18px;box-shadow:var(--shadow-xs);display:grid;gap:14px}
.job-filter-panel__small{gap:10px}
.jobs-results-v2{min-width:0}
.jobs-results-head{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:14px}
.jobs-results-head h2{font-size:1.4rem;margin:4px 0 0;letter-spacing:-.04em}
.stack--jobs-v2{gap:16px}
.job-listing{border:1px solid var(--border);background:rgba(255,255,255,.92);border-radius:28px;padding:0;overflow:hidden;box-shadow:var(--shadow-xs);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.job-listing:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.job-listing__main{padding:24px}
.job-listing__head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
.job-listing__head h2{font-size:1.46rem;margin:8px 0 4px;letter-spacing:-.045em;line-height:1.15}
.job-listing__head p{margin:0;color:var(--text-muted);font-weight:650}
.job-listing__date{min-width:142px;border:1px solid var(--border);background:var(--surface-muted);border-radius:16px;padding:11px 13px;text-align:left}
.job-listing__date strong{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft);margin-bottom:4px}
.job-listing__date span{font-weight:750;color:var(--text);font-size:.91rem}
.job-matrix{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.job-matrix .job-info{min-height:76px;background:#f8fafc;border-radius:15px;padding:11px 12px}
.job-matrix .job-info--wide{grid-column:span 2}
.job-listing__foot{border-top:1px solid var(--border);background:linear-gradient(180deg,#fbfdff,#f8fbff);padding:18px 24px;display:flex;justify-content:space-between;gap:18px;align-items:center}
.job-listing__foot p{margin:0;color:var(--text-muted);font-size:.93rem;max-width:680px}

@media (max-width: 1080px){
  .resource-hero-v2,.jobs-hero-v2,.jobs-layout-v2{grid-template-columns:1fr}
  .job-filter-panel{position:static}
  .theme-grid--resources-v2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .job-matrix{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 780px){
  .resource-command-panel,.resource-command-panel__controls{grid-template-columns:1fr}
  .resource-stats{grid-template-columns:1fr}
  .theme-grid--resources-v2{grid-template-columns:1fr}
  .resource-summary-row,.jobs-results-head,.job-listing__head,.job-listing__foot{display:block}
  .job-listing__date{margin-top:14px}
  .job-listing__foot .button{margin-top:14px;width:100%}
  .job-matrix{grid-template-columns:1fr}
  .job-matrix .job-info--wide{grid-column:auto}
}

/* HOTFIX V8: les modales doivent être fermées par défaut. */
.modal-backdrop:not(.is-open){display:none;}
.modal-backdrop.is-open{display:grid;}

/* Forum question detail */
.forum-question-row--linked{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}
.forum-question-title{
  display:inline-block;
  margin-top:10px;
  color:var(--text);
  font-weight:780;
  font-size:1.04rem;
  text-decoration:none;
  line-height:1.45;
}
.forum-question-title:hover{color:var(--primary-dark)}
.forum-reply-count{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:92px;
  min-height:70px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface-muted);
  text-decoration:none;
  color:var(--text-muted);
}
.forum-reply-count strong{font-size:1.28rem;color:var(--text);line-height:1}
.forum-reply-count span{font-size:.78rem;font-weight:700;margin-top:5px}
.forum-reply-count:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-dark)}
.forum-question-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:20px;align-items:start}
.forum-replies-list{display:grid;gap:12px;margin-top:16px}
.forum-reply-card{border:1px solid var(--border);border-radius:20px;background:var(--surface-muted);padding:16px}
.forum-reply-card__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.forum-reply-card__head strong{color:var(--text)}
.forum-reply-card__head span:not(.badge){color:var(--text-soft);font-size:.9rem;font-weight:650}
.forum-reply-card__body p{margin:0;color:var(--text-muted);line-height:1.65}
.forum-question-hero .meta-line{margin-top:18px}
@media (max-width: 860px){
  .forum-question-layout{grid-template-columns:1fr}
  .forum-question-row--linked{grid-template-columns:1fr}
  .forum-reply-count{align-items:flex-start;min-height:auto;min-width:0;padding:10px 12px;flex-direction:row;gap:6px;width:max-content}
}


/* Lancement public */
.notice--warning{border-color:#fde68a;background:#fffbeb;color:#78350f}
.notice--warning strong{color:#78350f}
.resource-list .row strong{display:block;margin-bottom:6px;color:var(--text)}
@media (max-width: 980px){.clean-nav{gap:4px}.clean-nav a{padding-inline:8px}}

/* V22 community-first additions */
.community-first-section .card--accent{border-color:rgba(37,99,235,.22);box-shadow:0 18px 44px rgba(15,23,42,.08)}
.community-action-grid .card h3{margin-bottom:10px}
.community-notice{margin:18px 0;border-color:rgba(37,99,235,.18);background:linear-gradient(135deg,rgba(239,246,255,.9),rgba(255,255,255,.95))}
.community-notice a{font-weight:800;color:var(--primary-dark)}
input[type="file"]{width:100%;border:1px solid var(--border);border-radius:16px;background:#fff;padding:12px;color:var(--text-muted)}


/* V23 — Accueil plus court et community-first */
.clean-hero--homev2 h1{font-size:clamp(3.15rem,6.8vw,5.8rem);max-width:8.5ch;letter-spacing:-.075em;line-height:.91}
.clean-hero--homev2 .clean-lead{max-width:720px;font-size:clamp(1.08rem,1.8vw,1.35rem)}
.home-mini-list--plain a{justify-content:flex-start;font-weight:760}
.home-mini-list--plain a::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--primary);margin-top:.45em;flex:0 0 auto}
@media (max-width: 760px){.clean-hero--homev2 h1{max-width:none;font-size:clamp(3rem,18vw,4.6rem)}}
