/* Charte graphique du portail de révision — partagée par l'accueil et les hubs */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: local("Barlow"), url("fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: local("Barlow SemiBold"), url("fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: local("Barlow Condensed Bold"), url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); }

:root {
  --navy: #0F2340;
  --navy-hi: #1D3E6A;
  --ink: #12283F;
  --ink-soft: #3A4E62;
  --page: #E8EEF5;
  --white: #FFFFFF;
  --blason-red: #B8321E;
  --blason-gold: #D9A95C;
  --f-title: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 8px 14px -8px rgba(15, 35, 64, 0.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--f-body); background: var(--page); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* HERO */
.hero { background: radial-gradient(130% 160% at 15% 0%, var(--navy-hi) 0%, var(--navy) 62%); color: var(--white); border-bottom: 4px solid var(--blason-red); box-shadow: 0 2px 0 0 var(--blason-gold), 0 2px 0 4px var(--blason-red); position: relative; z-index: 1; }
.hero-in { max-width: 1040px; margin: 0 auto; padding: 0.45rem 1.25rem 0.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.hero h1 { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.05; text-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.hero p { margin-top: 0.05rem; color: #BFD0E3; font-size: 0.78rem; }
.hero-stats { margin-top: 0; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero-stats span { background: rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 0 rgba(0,0,0,0.25); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.78rem; color: #E3ECF6; }
.hero-stats b { font-family: var(--f-title); font-size: 1rem; margin-right: 0.25rem; color: var(--white); }
.hero-logo { display: block; height: 84px; width: auto; border-radius: 8px; border: 2px solid var(--blason-gold); box-shadow: 0 3px 0 rgba(0,0,0,0.3), 0 9px 14px -4px rgba(0,0,0,0.45); }

main { max-width: 1040px; margin: 0 auto; padding: 1.9rem 1.25rem 3rem; }

/* NEWS */
.news { display: flex; gap: 0.8rem; align-items: baseline; background: linear-gradient(180deg, #FDEAE6, #F8D5CF); border-radius: 14px; padding: 0.8rem 1.1rem; margin-bottom: 1.4rem; font-size: 0.95rem; box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 3px 0 #E0948B, var(--shadow-soft); color: var(--ink); }
.news strong { font-family: var(--f-title); font-size: 1.1rem; font-weight: 700; color: #B8321E; flex-shrink: 0; }

/* OBJETS 3D (progression + plaques) */
.btn3d { --bg: #CBDDF0; --top: #DCE9F6; --edge: #94B4D6; --deep: #1F5C99;
  display: flex; text-decoration: none; color: var(--ink); border-radius: 18px;
  background: linear-gradient(180deg, var(--top) 0%, var(--bg) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.85), inset 0 -2px 0 rgba(0,0,0,0.05), 0 3px 0 var(--edge), var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn3d:hover { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(255,255,255,0.85), inset 0 -2px 0 rgba(0,0,0,0.05), 0 2px 0 var(--edge), 0 6px 10px -6px rgba(15,35,64,0.2); }
.btn3d:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 0 0 var(--edge); }
.accent-indigo { --bg: #DCD4F0; --top: #EAE5F8; --edge: #A99BD2; --deep: #4B3A8C; }
.accent-amber  { --bg: #F4E0AE; --top: #FAEDC8; --edge: #D2B063; --deep: #7A4A05; }
.accent-orange { --bg: #F8D0B8; --top: #FCE1D1; --edge: #DE9C7A; --deep: #A33812; }
.accent-blue   { --bg: #CBDDF0; --top: #DCE9F6; --edge: #94B4D6; --deep: #1F5C99; }
.accent-teal   { --bg: #C3E6D8; --top: #D6F0E6; --edge: #8CC4AD; --deep: #12755A; }
.accent-red    { --bg: #F6C6C0; --top: #FBD9D4; --edge: #DE918A; --deep: #A5231A; }

.badge { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #FFFFFF 0%, #F2F5F9 60%, #DCE3EC 100%); color: var(--deep); font-size: 1.2rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.07), 0 2px 0 rgba(0,0,0,0.1), 0 4px 6px -3px rgba(15,35,64,0.18); flex-shrink: 0; }

.progress { align-items: center; gap: 0.9rem; padding: 0.7rem 1.1rem; margin-bottom: 0.7rem; }
.progress-t { flex: 1; min-width: 0; }
.progress-t b { display: block; font-family: var(--f-title); font-size: 1.3rem; line-height: 1.1; font-weight: 700; }
.progress-t span { font-size: 0.85rem; color: var(--ink-soft); }
.chev { font-size: 1.4rem; color: var(--deep); }
.warn { font-size: 0.82rem; color: var(--ink-soft); margin: 0.5rem 0.3rem 1.4rem; max-width: 80ch; }

.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem 1rem; }
.plate { flex-direction: column; min-height: 0; padding: 0.95rem 1.1rem 0.8rem; }
.plate .badge { margin-bottom: 0.5rem; }
.plate h2 { font-family: var(--f-title); font-size: 1.3rem; line-height: 1.1; font-weight: 700; margin-bottom: 0.3rem; }
.plate p { font-size: 0.88rem; line-height: 1.4; color: var(--ink-soft); }
.plate-foot { margin-top: auto; padding-top: 0.7rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--deep); }
.plate-foot .cta { display: inline-flex; align-items: center; gap: 0.1rem; }
.plate-foot.end { justify-content: flex-end; }
.plate.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 0.9rem; min-height: 0; padding: 0.65rem 1.1rem; }
.plate.wide .badge { margin: 0; }
.plate.wide h2 { margin: 0; font-size: 1.35rem; }
.plate.wide .wide-t { flex: 1; min-width: 0; }
.plate.wide .plate-foot { margin: 0; padding: 0; }

/* AVIS */
.feedback { margin-top: 2.2rem; background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.fb-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.fb-head h2 { font-family: var(--f-title); font-size: 1.5rem; font-weight: 700; }
.fb-avg { font-size: 0.85rem; color: var(--ink-soft); }
.fb-avg .stars { color: #B98A1A; letter-spacing: 0.05em; font-size: 1.05rem; }
.fb-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fb-body label, .fb-body .lbl { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.fb-stars { display: flex; gap: 0.2rem; }
.fb-stars button { background: none; border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1; color: #C9D2DD; padding: 0.1rem; transition: transform 0.1s; }
.fb-stars button.on { color: #E0A82E; transform: translateY(-1px); }
textarea { width: 100%; min-height: 4.5rem; resize: vertical; padding: 0.6rem 0.75rem; border: 0; border-radius: 12px; background: #EEF2F7; box-shadow: inset 0 3px 6px rgba(15,35,64,0.14); font: inherit; font-size: 0.9rem; color: var(--ink); }
.btn { margin-top: 0.7rem; background: linear-gradient(180deg, var(--navy-hi), var(--navy)); color: var(--white); border: 0; border-radius: 12px; padding: 0.55rem 1.3rem; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #07142A, 0 6px 10px -6px rgba(15,35,64,0.3); transition: transform 0.1s, box-shadow 0.1s; }
.btn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 #07142A; }

footer { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #C3CEDB; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }
footer a { font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .hero-in { gap: 0.6rem; }
  .hero-logo { height: 58px; }
  .fb-body { grid-template-columns: 1fr; }
  .plate { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn3d, .btn, .fb-stars button { transition: none; } }

.plate-foot .cta { margin-left: auto; }
.news-text { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.fb-stars button.hovered, .fb-stars button.selected { color: #E0A82E; }
.fb-stars.disabled button { cursor: default; pointer-events: none; }
.btn-fb-submit:disabled { opacity: 0.6; cursor: default; }
.feedback-rate-msg, .feedback-suggest-msg { font-size: 0.78rem; color: #0E5A44; margin-top: 0.5rem; min-height: 1.1em; }
.footer { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #C3CEDB; text-align: center; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; }
.footer a { font-weight: 600; text-underline-offset: 3px; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; background: #fff; border-radius: 16px; color: var(--ink-soft); box-shadow: inset 0 2px 0 #fff, 0 3px 0 #C3CEDB; }
.domain-group { margin-top: 1.4rem; background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 18px; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.domain-group summary { list-style: none; cursor: pointer; padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 0.8rem; }
.domain-group summary::-webkit-details-marker { display: none; }
.domain-title { font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.domain-desc { display: block; font-size: 0.84rem; color: var(--ink-soft); }
.domain-group .count { margin-left: auto; font-weight: 600; font-size: 0.8rem; background: #E1E9F3; border-radius: 999px; padding: 0.1rem 0.7rem; flex-shrink: 0; }
.domain-group .chev-d { color: var(--ink-soft); transition: transform 0.15s; }
.domain-group[open] .chev-d { transform: rotate(90deg); }
.domain-group-body { padding: 0.3rem 1.1rem 1.2rem; }
.domain-group .plates { margin-top: 0.4rem; }

/* ===== Hubs de domaine ===== */
.main-wrap { max-width: 1040px; margin: 0 auto; padding: 1.9rem 1.25rem 3rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0; padding: 0.1rem 0.7rem 0.1rem 0.35rem; background: rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 0 rgba(0,0,0,0.25); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; transition: transform 0.12s; }
.back-link:hover { transform: translateY(1px); }
.hero h1 span { color: #F2C98A; }
.hero p { max-width: 90ch; }
.notice { display: flex; gap: 0.8rem; align-items: flex-start; background: linear-gradient(180deg, #FBF0D2, #F4E0AE); border-radius: 14px; padding: 0.55rem 1rem; margin-bottom: 1.2rem; font-size: 0.8rem; line-height: 1.4; color: #4A3008; box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 3px 0 #D2B063, var(--shadow-soft); }
.notice .i { font-size: 1.15rem; color: #8A2A14; margin-top: 0.05rem; }
.section-title { display: flex; align-items: center; gap: 0.55rem; font-family: var(--f-title); font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin: 2.4rem 0 1rem; }
.section-title .i { font-size: 1.45rem; color: var(--ink-soft); }
.accent-brown { --bg: #E9D8C6; --top: #F3E6D8; --edge: #C2A07F; --deep: #6B3F1D; }

/* Tuile verrouillée (lib/tile-lock.php) */
.plate.locked { cursor: pointer; position: relative; }
.tile-lock-badge { position: absolute; top: 0.9rem; right: 0.9rem; font-size: 1.2rem; color: var(--deep); display: flex; }
.tile-cta { margin-top: auto; padding-top: 0.7rem; font-size: 0.85rem; font-weight: 600; color: var(--deep); }
.tile-lock-prompt { display: none; margin-top: 0.6rem; }
.tile-lock-prompt.open { display: flex; flex-direction: column; gap: 0.4rem; }
.tile-lock-row { display: flex; gap: 0.4rem; }
.tile-lock-prompt input[type="password"] { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 0; border-radius: 10px; background: rgba(255,255,255,0.75); box-shadow: inset 0 2px 4px rgba(15,35,64,0.15); font: inherit; font-size: 0.85rem; }
.tile-lock-submit { flex-shrink: 0; border: 0; border-radius: 10px; padding: 0.4rem 0.9rem; font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; background: var(--deep); color: #fff; }
.tile-lock-error { font-size: 0.78rem; color: #8A1A12; min-height: 1em; }

/* Classements (hubs) */
.classement-section { margin-top: 2.6rem; }
.classement-section .section-title { margin-top: 0; }
.classement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem 1rem; }
.classement-block { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.classement-block-title { display: flex; align-items: center; gap: 0.45rem; font-family: var(--f-title); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.6rem; }
.classement-block-title .i { font-size: 1.15rem; color: var(--ink-soft); }
.classement-list { list-style: none; counter-reset: rank; display: flex; flex-direction: column; }
.classement-item { counter-increment: rank; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; padding: 0.35rem 0; border-bottom: 1px solid #E1E7EF; }
.classement-item:last-child { border-bottom: 0; }
.classement-item::before { content: counter(rank); width: 1.5rem; font-family: var(--f-title); font-weight: 700; font-size: 1rem; color: var(--ink-soft); flex-shrink: 0; }
.classement-pseudo { flex: 1; display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.classement-pseudo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.classement-score { font-weight: 600; font-variant-numeric: tabular-nums; }
.classement-empty, .classement-loading { font-size: 0.82rem; color: var(--ink-soft); }
.badge-admin { flex-shrink: 0; background: #4B3A8C; color: #fff; font-size: 0.62rem; font-weight: 600; border-radius: 999px; padding: 0.08rem 0.5rem; }

/* ===== Catalogues de modules (index d'espaces) ===== */
body.dom-ssuap { --bg: #DCD4F0; --top: #EAE5F8; --edge: #A99BD2; --deep: #4B3A8C; }
body.dom-tc { --bg: #F8D0B8; --top: #FCE1D1; --edge: #DE9C7A; --deep: #A33812; }
.section-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--deep, #1F5C99); margin-bottom: 0.15rem; }
.section-label + .section-title { margin: 0 0 0.3rem; }
.section-sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.section-block { margin-bottom: 2.5rem; }
.section-block:last-child { margin-bottom: 0; }
.section-block.fdf { --bg: #F8D0B8; --edge: #DE9C7A; --deep: #A33812; padding-top: 2rem; border-top: 1px solid #C3CEDB; }
.cards-grid, .modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 0.85rem; }
.module-card { position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 14px; padding: 0.85rem 1rem 0.8rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 var(--edge, #C3CEDB), var(--shadow-soft); transition: transform 0.12s, box-shadow 0.12s; }
.module-card:hover, .module-card:focus-visible { transform: translateY(1px); box-shadow: inset 0 2px 0 #FFFFFF, 0 2px 0 var(--edge, #C3CEDB), 0 5px 9px -6px rgba(15,35,64,0.2); }
.module-card:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #FFFFFF, 0 0 0 var(--edge, #C3CEDB); }
.module-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 0.4rem; }
.module-title { font-weight: 600; font-size: 0.95rem; line-height: 1.3; margin-bottom: 0.4rem; }
.module-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.module-code { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--deep, #1F5C99); background: var(--bg, #E1E9F3); border-radius: 999px; padding: 0.08rem 0.55rem; margin-bottom: 0.4rem; }
.module-code .i { margin-right: 0.2rem; vertical-align: -0.12em; }
.module-code-fdf { color: #A33812; background: #F8D0B8; }
.module-code-avance { color: #1F5C99; background: #CBDDF0; }
.module-cta { display: flex; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--deep, #1F5C99); }
.module-card.pending { opacity: 0.45; pointer-events: none; }
.module-card.pending .module-cta::after { content: " (à venir)"; font-weight: 400; }
.module-card-disabled { opacity: 0.55; cursor: default; }
.module-card-disabled:hover { transform: none; }
.module-cta-disabled { color: var(--ink-soft); }
.module-card.hidden, .partie-group.hidden, .partie-block.hidden, .section-block.hidden { display: none; }

.partie-block { margin-bottom: 2rem; }
.partie-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.partie-icon { font-size: 1.4rem; }
.partie-title { font-family: var(--f-title); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.partie-code { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }

.partie-group { margin-bottom: 0.9rem; background: rgba(255,255,255,0.55); border-radius: 16px; box-shadow: inset 0 0 0 1px #D5DDE8; }
.partie-group summary { list-style: none; cursor: pointer; padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; font-family: var(--f-title); font-weight: 700; font-size: 1.25rem; }
.partie-group summary::-webkit-details-marker { display: none; }
.partie-group summary .count { font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; color: var(--deep, #1F5C99); background: var(--bg, #E1E9F3); border-radius: 999px; padding: 0.1rem 0.65rem; }
.partie-group summary .chevron { margin-left: auto; width: 1.2rem; height: 1.2rem; font-size: 0; background: var(--ink-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.15s; flex-shrink: 0; }
.partie-group[open] summary .chevron { transform: rotate(90deg); }
.partie-group-body { padding: 0.2rem 1rem 1rem; }

.qcm-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; background: linear-gradient(180deg, #D6F0E6, #C3E6D8); border-radius: 16px; padding: 0.9rem 1.2rem; margin-bottom: 1.6rem; box-shadow: inset 0 2px 0 rgba(255,255,255,0.85), 0 3px 0 #8CC4AD, var(--shadow-soft); }
.qcm-cta-text strong { display: flex; align-items: center; gap: 0.45rem; font-family: var(--f-title); font-size: 1.3rem; color: #0E5A44; }
.qcm-cta-text p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.15rem; }
.qcm-cta a.btn-qcm { display: inline-flex; align-items: center; gap: 0.2rem; background: linear-gradient(180deg, #1A8F6C, #12755A); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.55rem 1.1rem; border-radius: 12px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 0 #0B4D3B; transition: transform 0.1s, box-shadow 0.1s; }
.qcm-cta a.btn-qcm:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 #0B4D3B; }

.search-wrap { margin: 0 0 1.4rem; }
.search-input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.7rem; border: 0; border-radius: 14px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A4E62' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 0.95rem 50% / 1.1rem; box-shadow: inset 0 3px 6px rgba(15,35,64,0.14); font: inherit; font-size: 0.92rem; color: var(--ink); }
.search-empty { display: none; padding: 1.2rem 0.5rem 0; color: var(--ink-soft); font-size: 0.9rem; }
.search-empty.show { display: block; }
@media (prefers-reduced-motion: reduce) { .module-card, .qcm-cta a.btn-qcm { transition: none; } }

/* Hero compact : retour, titre et compteur sur une même ligne, sous-titre dessous */
.hero-in > div:first-child { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.7rem; row-gap: 0.1rem; min-width: 0; }
.hero-in .back-link { order: 0; }
.hero-in h1 { order: 1; }
.hero-in .hero-stats { order: 2; }
.hero-in p { order: 3; flex: 0 0 100%; }
