@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;700&display=swap');
:root {
  --bg: #050915;
  --bg-2: #081225;
  --panel: rgba(10, 22, 43, .72);
  --panel-strong: rgba(11, 25, 49, .94);
  --line: rgba(151, 191, 255, .16);
  --line-strong: rgba(86, 210, 255, .36);
  --text: #f4f8ff;
  --muted: #98a9c4;
  --cyan: #5ee4ff;
  --blue: #6a8cff;
  --violet: #ad72ff;
  --gold: #63e4ff;
  --danger: #ff7f9a;
  --success: #6fffc1;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 72% 18%, rgba(80, 105, 255, .12), transparent 30%), radial-gradient(circle at 14% 82%, rgba(89, 227, 255, .08), transparent 30%), linear-gradient(150deg, #040813, #07101f 48%, #050916); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.ambient { position: fixed; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(110px); opacity: .14; pointer-events: none; z-index: -2; }
.ambient-one { top: -12rem; right: -8rem; background: var(--blue); }
.ambient-two { bottom: -18rem; left: -12rem; background: var(--violet); }
.grid-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(98, 151, 222, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 151, 222, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%); }
.site-header { max-width: var(--max); margin: 0 auto; padding: 28px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; width: 42px; height: 42px; border: 1px solid rgba(94, 228, 255, .55); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 22px rgba(94, 228, 255, .08), 0 0 28px rgba(94, 228, 255, .08); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(231, 193, 119, .4); border-radius: 50%; }
.brand-mark::after { inset: -5px; border-color: rgba(94, 228, 255, .18); }
.brand-mark span { font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.brand-copy { line-height: 1; display: grid; gap: 3px; }
.brand-copy strong { font-size: 14px; text-transform: uppercase; letter-spacing: .13em; }
.brand-copy small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { text-decoration: none; color: #b8c7dc; font-size: 14px; font-weight: 650; padding: 11px 14px; border-radius: 999px; border: 1px solid transparent; transition: .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line); }
.site-nav .nav-cta { color: #06101e; background: linear-gradient(120deg, var(--cyan), #96f3ff); box-shadow: 0 8px 30px rgba(94,228,255,.12); }
.site-nav .nav-cta:hover, .site-nav .nav-cta.active { color: #06101e; background: linear-gradient(120deg, #8aeeff, #c5f9ff); border-color: transparent; }
.site-main { max-width: var(--max); margin: 0 auto; padding: 32px 28px 80px; }
.hero { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 76px; align-items: center; padding: 56px 0 82px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #a9bed8; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(94,228,255,.08), 0 0 18px rgba(94,228,255,.72); }
.hero h1, .registration-heading h1, .auth-intro h1 { margin: 24px 0 22px; font-size: clamp(54px, 7vw, 96px); line-height: .92; letter-spacing: -.055em; font-weight: 770; }
.hero h1 span, .registration-heading h1 span { color: transparent; -webkit-text-stroke: 1px rgba(167, 223, 255, .7); text-shadow: 0 0 40px rgba(94,228,255,.08); }
.hero-lead, .registration-heading p, .auth-intro > p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; font-weight: 780; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06101d; background: linear-gradient(120deg, var(--cyan), #9bf2ff 52%, #b7f7ff); box-shadow: 0 14px 40px rgba(94,228,255,.16); }
.button-primary:hover { box-shadow: 0 17px 48px rgba(94,228,255,.24); }
.button-ghost { color: var(--text); background: rgba(255,255,255,.035); border-color: var(--line); }
.button-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.button.full { width: 100%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero-meta strong { color: var(--text); font-size: 18px; margin-right: 5px; }
.mission-card { position: relative; min-height: 560px; border: 1px solid rgba(102, 189, 255, .2); border-radius: 34px; padding: 22px; background: linear-gradient(145deg, rgba(9, 21, 42, .82), rgba(9, 14, 31, .58)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04); overflow: hidden; }
.mission-card::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 55% 42%, transparent 0 35px, rgba(94,228,255,.035) 36px 37px); opacity: .6; }
.mission-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 48%, rgba(94,228,255,.035) 49%, transparent 50% 100%); background-size: 26px 26px; pointer-events: none; }
.mission-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #8ea5c5; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.signal { color: var(--gold); }
.map-orbit { position: relative; height: 330px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(94,228,255,.16); border-radius: 50%; animation: spin 22s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); top: 14%; left: 14%; }
.orbit-a { width: 270px; height: 270px; }
.orbit-b { width: 205px; height: 205px; border-style: dashed; animation-direction: reverse; animation-duration: 28s; }
.map-core { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 42px; font-weight: 800; border: 1px solid rgba(231,193,119,.48); background: radial-gradient(circle, rgba(231,193,119,.08), rgba(7,17,32,.88) 68%); box-shadow: 0 0 55px rgba(94,228,255,.08), inset 0 0 30px rgba(231,193,119,.04); }
.coordinate { position: absolute; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: rgba(152,169,196,.6); }
.c1 { top: 76px; left: 30px; }.c2 { right: 24px; bottom: 72px; }
.mission-info { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-top: 20px; }
.mission-info .label { margin: 0 0 8px; color: #8499b7; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.mission-info h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.03em; }
.progress { height: 4px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 16px rgba(94,228,255,.35); }
.mission-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }.mission-stats span { display: grid; gap: 4px; }.mission-stats small { color: #748aa9; font-size: 9px; letter-spacing: .16em; }.mission-stats strong { font-size: 13px; }
.section-block { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 34px; }.section-heading.compact { margin-bottom: 42px; }.section-heading h2 { margin: 12px 0 12px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.045em; }.section-heading p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.glass-card { position: relative; min-height: 260px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); overflow: hidden; }.glass-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; top: -90px; right: -70px; background: rgba(94,228,255,.08); filter: blur(20px); }.glass-card.accent-card::after { background: rgba(173,114,255,.1); }.card-index { color: var(--gold); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .16em; }.glass-card h3 { margin: 54px 0 10px; font-size: 28px; letter-spacing: -.03em; }.glass-card p { color: var(--muted); line-height: 1.7; }.text-link { display: inline-flex; gap: 10px; margin-top: 12px; color: var(--cyan); font-weight: 750; text-decoration: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.feature-grid article { border-top: 1px solid var(--line-strong); padding: 24px 8px 0 0; }.feature-number { color: var(--gold); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .14em; }.feature-grid h3 { margin: 20px 0 8px; font-size: 21px; }.feature-grid p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.auth-shell { min-height: 680px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 86px; align-items: center; padding: 70px 0; }.auth-intro h1 { font-size: clamp(52px, 6vw, 82px); }.security-note { display: flex; gap: 15px; margin-top: 34px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }.security-note p { margin: 0; }.security-note strong { color: var(--text); }.security-icon { color: var(--cyan); font-size: 20px; }
.auth-card, .registration-panel { border: 1px solid rgba(120,176,255,.2); background: linear-gradient(145deg, rgba(12,27,51,.88), rgba(7,14,29,.86)); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }.panel-kicker { color: var(--gold); font-size: 10px; letter-spacing: .18em; font-weight: 800; }.panel-heading h2 { margin: 8px 0 28px; font-size: 30px; letter-spacing: -.035em; }.form-stack { display: grid; gap: 20px; }.choice-fieldset { border: 0; padding: 0; margin: 0; }.choice-fieldset legend { color: #b8c7dc; font-size: 13px; font-weight: 700; margin-bottom: 9px; }.segmented-control { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3,8,18,.55); }.segmented-control label { cursor: pointer; }.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }.segmented-control span { min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 11px; padding: 10px; color: var(--muted); font-size: 13px; font-weight: 750; text-align: center; transition: .18s ease; }.segmented-control input:checked + span { color: var(--text); background: linear-gradient(130deg, rgba(80,139,255,.22), rgba(94,228,255,.10)); box-shadow: inset 0 0 0 1px rgba(94,228,255,.22); }.segmented-control.large span { min-height: 74px; display: grid; place-content: center; gap: 4px; }.segmented-control.large strong { font-size: 14px; }.segmented-control.large small { color: #8ba0be; font-weight: 550; font-size: 11px; }.segmented-control.large input:checked + span small { color: #abc4df; }
.field { display: grid; gap: 8px; }.field > span:first-child { color: #c0cee1; font-size: 13px; font-weight: 700; }.field em { color: #7f91aa; font-style: normal; font-weight: 550; }.field input, .field select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(3,8,18,.56); padding: 0 15px; outline: none; transition: .2s ease; }.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9eb3ce 50%), linear-gradient(135deg, #9eb3ce 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }.field input:focus, .field select:focus { border-color: rgba(94,228,255,.6); box-shadow: 0 0 0 4px rgba(94,228,255,.07); }.field input::placeholder { color: #536783; }.field small { color: #7186a4; font-size: 11px; line-height: 1.5; }.password-wrap { position: relative; display: block; }.password-wrap input { padding-right: 86px; }.icon-button { position: absolute; right: 8px; top: 8px; height: 34px; border: 0; border-radius: 9px; padding: 0 9px; color: #9eb5d2; background: rgba(255,255,255,.05); cursor: pointer; font-size: 11px; font-weight: 700; }.form-row { display: flex; align-items: center; gap: 14px; }.spread { justify-content: space-between; }.subtle-link, .form-foot a { color: var(--cyan); text-decoration: none; }.beta-chip { color: var(--gold); border: 1px solid rgba(231,193,119,.24); border-radius: 999px; padding: 5px 8px; font-size: 9px; letter-spacing: .14em; font-weight: 800; }.form-foot { color: var(--muted); text-align: center; font-size: 13px; margin: 22px 0 0; }
.registration-shell { padding: 64px 0 80px; }.registration-heading { max-width: 760px; margin-bottom: 46px; }.registration-heading h1 { font-size: clamp(54px, 7vw, 88px); }.registration-panel { padding: 18px 34px 34px; }.form-section { padding: 30px 0; border-bottom: 1px solid var(--line); }.form-section:last-child { border-bottom: 0; padding-bottom: 0; }.form-section-title { display: flex; gap: 16px; margin-bottom: 24px; }.form-section-title > span { color: var(--gold); font: 750 11px/1 ui-monospace, monospace; padding-top: 7px; }.form-section-title h2 { margin: 0 0 5px; font-size: 22px; }.form-section-title p { margin: 0; color: var(--muted); font-size: 13px; }.personnel-code { margin-top: 18px; }.personnel-code small strong { color: var(--gold); }.two-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.email-explainer { display: flex; gap: 14px; margin: 18px 0; padding: 16px; border: 1px solid rgba(94,228,255,.15); border-radius: 15px; background: rgba(94,228,255,.035); }.info-icon { flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid rgba(94,228,255,.36); color: var(--cyan); border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 ui-monospace, monospace; }.email-explainer strong { font-size: 13px; }.email-explainer p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.checkbox-line { display: flex; align-items: flex-start; gap: 10px; color: #a9b9cf; font-size: 12px; line-height: 1.55; cursor: pointer; }.checkbox-line input { accent-color: #69e7ff; margin-top: 2px; }.compact-field { width: 220px; }.players-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }.player-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.02); }.player-heading { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); color: #91a7c5; font: 750 10px/1 ui-monospace, monospace; letter-spacing: .12em; }.player-state { color: var(--cyan); }.player-fields { display: grid; gap: 12px; }.rules-line { margin-bottom: 18px; }.microcopy { margin: 10px 0 0; color: #70839f; text-align: center; font-size: 11px; }.notice { margin: 12px 0 8px; border-radius: 15px; padding: 16px 18px; font-size: 13px; line-height: 1.6; }.notice p { margin: 4px 0 0; }.notice ul { margin: 8px 0 0 20px; padding: 0; }.success-notice { border: 1px solid rgba(111,255,193,.22); background: rgba(111,255,193,.055); color: #c9ffe9; }.error-notice { border: 1px solid rgba(255,127,154,.25); background: rgba(255,127,154,.055); color: #ffd2dc; }.recovery-explainer { margin-top: 0; }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: #788ca8; font-size: 12px; }.site-footer p { margin: 0; }.site-footer .muted { color: #526782; }
.beta-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; width: min(560px, calc(100% - 30px)); padding: 15px 18px; border: 1px solid rgba(94,228,255,.35); border-radius: 14px; color: #dffbff; background: rgba(8,21,40,.96); box-shadow: var(--shadow); transition: .25s ease; font-size: 13px; text-align: center; }.beta-toast.show { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 1; transform: none; }.js .reveal { opacity: 0; transform: translateY(14px); transition: .65s ease; }.js .reveal.visible { opacity: 1; transform: none; }.js .delay-1 { transition-delay: .12s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0.01ms !important; } .js .reveal { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .site-header { padding: 22px 20px; }
  .site-main { padding: 20px 20px 60px; }
  .hero, .auth-shell { grid-template-columns: 1fr; gap: 42px; min-height: auto; }
  .hero { padding-top: 48px; }.mission-card { max-width: 620px; width: 100%; justify-self: center; }
  .category-grid, .feature-grid { grid-template-columns: 1fr; }
  .section-block { padding: 70px 0; }
  .auth-shell { padding: 48px 0; }.auth-card { max-width: 650px; width: 100%; }
  .players-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 20px; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; }.brand-copy { display: none; }.site-nav { gap: 3px; }.site-nav a { padding: 9px 10px; font-size: 12px; }.site-nav .nav-cta { padding-inline: 12px; }
  .hero { padding: 36px 0 60px; }.hero h1, .registration-heading h1, .auth-intro h1 { font-size: 52px; }.hero-lead, .registration-heading p, .auth-intro > p { font-size: 16px; }.hero-actions { display: grid; }.hero-actions .button { width: 100%; }.hero-meta { gap: 14px 20px; }
  .mission-card { min-height: 500px; border-radius: 24px; }.map-orbit { height: 300px; }.orbit-a { width: 235px; height: 235px; }.orbit-b { width: 175px; height: 175px; }
  .glass-card { padding: 26px; }.glass-card h3 { margin-top: 42px; }
  .auth-card, .registration-panel { padding: 24px 18px; border-radius: 22px; }.segmented-control, .segmented-control.large { grid-template-columns: 1fr; }.two-cols { grid-template-columns: 1fr; }.compact-field { width: 100%; }
  .form-section-title { gap: 10px; }.site-footer { display: grid; }.mission-stats { grid-template-columns: 1fr 1fr; }
}

.recovery-links { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.recovery-links .beta-chip { margin-left: auto; }
.duplicate-explainer { margin-top: 4px; margin-bottom: 20px; border-color: rgba(111,255,193,.18); background: rgba(111,255,193,.035); }
.duplicate-explainer .info-icon { border-color: rgba(111,255,193,.35); color: var(--success); }
@media (max-width: 620px) { .recovery-links { align-items: flex-start; flex-direction: column; } .recovery-links .beta-chip { margin-left: 0; } }

.segmented-control.compact span { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.member-type-field { margin-bottom: 2px; }
.recovery-student-options { margin-top: 2px; }
.recovery-class-field[hidden], .recovery-student-options[hidden], .member-type-field[hidden], .class-field[hidden], .relation-field[hidden], .brevet-field[hidden] { display: none !important; }

/* Ajustements après retour utilisateur — aperçu bêta */
.brand-copy strong,
.brand-copy small {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.brand-copy small { line-height: 1; }
.site-nav .nav-cta {
  color: #b8c7dc;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.site-nav .nav-cta:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.site-nav .nav-cta.active {
  color: #06101e;
  background: linear-gradient(120deg, var(--cyan), #96f3ff);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(94,228,255,.12);
}
.player-card { transition: opacity .2s ease, filter .2s ease, border-color .2s ease, background .2s ease; }
.player-card.is-disabled {
  opacity: .38;
  filter: grayscale(.45);
  background: rgba(255,255,255,.01);
  border-color: rgba(132,153,185,.10);
}
.player-card.is-disabled .player-state { color: #788aa2; }
.player-card.is-disabled input,
.player-card.is-disabled select,
.player-card.is-disabled button { cursor: not-allowed; }

/* Retours 2 — accueil épuré, portrait de Belleyme et formulaire adaptatif */
.home-hero { padding-bottom: 72px; }
.brand-mark { overflow: visible; }
.brand-mark span { font-size: 22px; line-height: 1; text-shadow: 0 0 18px rgba(231,193,119,.22); }
.brand-mark::before { animation: spin 16s linear infinite; }
.brand-mark::after { border-style: solid; opacity: .7; }

.mission-card.is-open { border-color: rgba(111,255,193,.28); box-shadow: var(--shadow), 0 0 45px rgba(111,255,193,.045), inset 0 1px rgba(255,255,255,.04); }
.mission-card.is-open .signal { color: var(--success); }
.mission-card.is-open .map-core { border-color: rgba(111,255,193,.48); box-shadow: 0 0 55px rgba(111,255,193,.08), inset 0 0 30px rgba(231,193,119,.04); }
.mission-card.is-open .progress span { background: linear-gradient(90deg, var(--blue), var(--success)); }

.belleyme-portrait { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(231,193,119,.16); border-radius: 15px; background: linear-gradient(100deg, rgba(231,193,119,.045), rgba(255,255,255,.018)); }
.belleyme-portrait img { width: 48px; height: 56px; object-fit: cover; border-radius: 10px; filter: grayscale(1) sepia(.18) contrast(1.04); opacity: .88; box-shadow: 0 0 0 1px rgba(231,193,119,.18), 0 8px 24px rgba(0,0,0,.22); }
.belleyme-portrait div { display: grid; gap: 3px; }
.belleyme-portrait strong { font-size: 12px; letter-spacing: .02em; color: #e8edf6; }
.belleyme-portrait small { font-size: 10px; color: #8194af; }

.personnel-only[hidden],
.function-field[hidden],
.recovery-function-field[hidden] { display: none !important; }

@media (max-width: 620px) {
  .home-hero { padding-bottom: 48px; }
  .belleyme-portrait { margin-top: 14px; }
  .belleyme-portrait img { width: 44px; height: 52px; }
}


/* Retours 3 — navigation active, identité, orbites et inscription */
.site-nav a.active,
.site-nav .nav-cta.active {
  color: #06101e;
  background: linear-gradient(120deg, var(--cyan), #96f3ff);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(94,228,255,.14);
}
.site-nav a.active:hover,
.site-nav .nav-cta.active:hover {
  color: #06101e;
  background: linear-gradient(120deg, #8aeeff, #c5f9ff);
  border-color: transparent;
}

.brand { gap: 14px; }
.brand-mark {
  width: 50px;
  height: 50px;
  border-color: rgba(94,228,255,.46);
  background: radial-gradient(circle at 50% 50%, rgba(94,228,255,.08), rgba(5,12,25,.4) 68%);
  box-shadow: inset 0 0 22px rgba(94,228,255,.08), 0 0 30px rgba(94,228,255,.10);
}
.brand-mark::before { inset: 4px; border-style: solid; border-color: rgba(231,193,119,.22); animation: none; }
.brand-mark::after { inset: -5px; border-style: dashed; border-color: rgba(94,228,255,.18); animation: spin 22s linear infinite; }
.brain-lines {
  width: 78%;
  height: 78%;
  fill: none;
  stroke: rgba(94,228,255,.62);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(94,228,255,.16));
}
.brand-question {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(231,193,119,.32);
}
.brand-copy { gap: 2px; }
.brand-copy strong,
.brand-copy small {
  font-size: 16px;
  letter-spacing: .115em;
}
.brand-copy small { font-size: 15px; }

.map-orbit { overflow: visible; }
.orbit {
  transform-origin: 50% 50%;
  border-color: rgba(94,228,255,.18);
}
.orbit::after {
  width: 9px;
  height: 9px;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(224,250,255,.75);
  background: radial-gradient(circle at 35% 30%, #e8fcff 0 20%, var(--cyan) 25% 55%, #3988ff 100%);
  box-shadow: 0 0 6px rgba(94,228,255,.85), 0 0 18px rgba(94,228,255,.58);
}
.orbit-b { border-style: solid; border-color: rgba(231,193,119,.15); }
.orbit-b::after {
  width: 7px;
  height: 7px;
  top: -4px;
  background: radial-gradient(circle at 35% 30%, #fff7dd 0 20%, var(--gold) 30% 60%, #9a6b2d 100%);
  border-color: rgba(255,244,211,.72);
  box-shadow: 0 0 7px rgba(231,193,119,.85), 0 0 18px rgba(231,193,119,.44);
}
.orbit-c {
  width: 146px;
  height: 146px;
  border-color: rgba(173,114,255,.18);
  animation-duration: 16s;
}
.orbit-c::after {
  width: 6px;
  height: 6px;
  top: -3px;
  background: radial-gradient(circle at 35% 30%, #f5eaff 0 20%, var(--violet) 32% 62%, #7549bd 100%);
  border-color: rgba(242,228,255,.7);
  box-shadow: 0 0 6px rgba(173,114,255,.9), 0 0 16px rgba(173,114,255,.48);
}
.brain-core { position: relative; overflow: hidden; }
.brain-core .brain-lines { width: 70%; height: 70%; stroke: rgba(94,228,255,.52); }
.brain-core .brand-question { width: 24px; height: 24px; font-size: 21px; }

.belleyme-hologram {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  width: 142px;
  pointer-events: none;
  opacity: .78;
}
.hologram-frame {
  position: relative;
  width: 116px;
  height: 142px;
  margin-left: auto;
  border: 1px solid rgba(94,228,255,.18);
  border-radius: 10px 10px 26px 10px;
  overflow: hidden;
  background: rgba(7,18,34,.3);
  box-shadow: inset 0 0 30px rgba(94,228,255,.04), 0 0 24px rgba(94,228,255,.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
}
.hologram-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(94,228,255,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.hologram-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0 45%, rgba(94,228,255,.08) 49%, transparent 53% 100%);
}
.hologram-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) sepia(1) saturate(3.4) hue-rotate(135deg) brightness(1.18) contrast(1.18);
  opacity: .45;
  mix-blend-mode: screen;
}
.hologram-caption {
  margin-top: -14px;
  display: grid;
  justify-items: end;
  gap: 3px;
  position: relative;
  z-index: 4;
  text-align: right;
  text-shadow: 0 0 10px rgba(5,9,21,.9);
}
.hologram-caption span { color: rgba(94,228,255,.72); font: 800 8px/1 ui-monospace, monospace; letter-spacing: .18em; }
.hologram-caption strong { color: rgba(225,242,255,.82); font-size: 9px; letter-spacing: .08em; }

.compact-explainer { align-items: center; }
.compact-explainer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.compact-explainer p strong { color: #d9e7f7; }
.email-notification-choice { margin-bottom: 12px; }
.password-row { margin-top: 10px; }

/* L'ancien petit portrait est volontairement neutralisé si une version en cache le conserve. */
.belleyme-portrait { display: none !important; }
.coordinate { display: none !important; }

@media (max-width: 620px) {
  .brand-mark { width: 44px; height: 44px; }
  .orbit-c { width: 126px; height: 126px; }
  .belleyme-hologram { width: 102px; right: -2px; bottom: 8px; opacity: .62; }
  .hologram-frame { width: 86px; height: 108px; }
  .hologram-caption strong { font-size: 7px; }
  .hologram-caption span { font-size: 7px; }
}


/* Retours 4 — édition annuelle + profils d'inscription */
.home-kickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.edition-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(231,193,119,.24);
  border-radius: 999px;
  background: rgba(231,193,119,.045);
  color: var(--gold);
  font: 800 10px/1 ui-monospace, monospace;
  letter-spacing: .14em;
  white-space: nowrap;
}
.member-type-field .segmented-control.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.member-type-field .segmented-control.compact span {
  min-height: 46px;
  padding-inline: 7px;
}
.password-row { margin-top: 24px; }

@media (max-width: 760px) {
  .member-type-field .segmented-control.compact { grid-template-columns: 1fr; }
}


/* Retours 5 — logo tête/cerveau, orbites précises, mobile et compte à rebours */
.brand-copy strong,
.brand-copy small {
  font-size: 18px;
  letter-spacing: .085em;
}
.brand-copy small { font-size: 17px; }

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(94,228,255,.075), rgba(173,114,255,.045));
  border-color: rgba(94,228,255,.32);
  transform: rotate(-2deg);
}
.brand-mark::before {
  inset: 5px;
  border-radius: 14px;
  border-color: rgba(231,193,119,.16);
}
.brand-mark::after {
  inset: -4px;
  border-radius: 21px;
  border-style: solid;
  border-color: rgba(94,228,255,.10);
  animation: none;
}
.mind-logo { width: 82%; height: 82%; overflow: visible; }
.mind-head,
.mind-detail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mind-head { stroke: rgba(226,244,255,.88); stroke-width: 1.9; filter: drop-shadow(0 0 6px rgba(94,228,255,.22)); }
.mind-detail { stroke: rgba(94,228,255,.74); stroke-width: 1.45; }
.mind-node { fill: var(--gold); stroke: rgba(255,247,222,.75); stroke-width: .55; filter: drop-shadow(0 0 3px rgba(231,193,119,.55)); }

/* Toutes les orbites ont exactement le même centre. */
.map-orbit { position: relative; }
.orbit { top: 50%; left: 50%; }
.orbit-a { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
.orbit-b { width: 205px; height: 205px; margin: -102.5px 0 0 -102.5px; }
.orbit-c { width: 146px; height: 146px; margin: -73px 0 0 -73px; }
.orbit::after { top: -5px; left: 50%; transform: translateX(-50%); }
.orbit-b::after { top: -4px; }
.orbit-c::after { top: -3px; }
.mind-core { position: relative; z-index: 2; overflow: visible; }
.mind-core .mind-logo { width: 72%; height: 72%; }
.mission-card.is-open .mind-head { stroke: rgba(226,255,243,.90); }
.mission-card.is-open .mind-detail { stroke: rgba(111,255,193,.75); }

/* Le portrait de Pierre de Belleyme est retiré pour l'instant : on réintégrera
   éventuellement le logo du collège ou un visuel retravaillé plus tard. */
.belleyme-hologram,
.belleyme-portrait { display: none !important; }

.progress span { transition: width .7s ease; }
.mission-info h2 { max-width: 420px; }

@media (max-width: 620px) {
  .hero h1,
  .registration-heading h1,
  .auth-intro h1 {
    font-size: clamp(42px, 13.2vw, 52px);
    line-height: 1.01;
    letter-spacing: -.018em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero h1 span,
  .registration-heading h1 span { letter-spacing: -.012em; }

  .orbit-a { width: 235px; height: 235px; margin: -117.5px 0 0 -117.5px; }
  .orbit-b { width: 175px; height: 175px; margin: -87.5px 0 0 -87.5px; }
  .orbit-c { width: 126px; height: 126px; margin: -63px 0 0 -63px; }
  .mission-topline { gap: 12px; line-height: 1.35; }
  .mission-topline > span:first-child { max-width: 62%; }
  .mission-info h2 { font-size: 21px; line-height: 1.18; }
}


/* Retours 6 — logo choisi, vraie progression et typographie mobile */
.brand-mark {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(94,228,255,.30);
  background: #06101f;
  transform: none;
  box-shadow: 0 0 28px rgba(94,228,255,.12);
}
.brand-mark::before,
.brand-mark::after { display: none !important; }
.brand-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.map-core.mind-core {
  width: 152px;
  height: 152px;
  border: 0;
  border-radius: 34px;
  padding: 0;
  overflow: hidden;
  background: #06101f;
  box-shadow: 0 0 40px rgba(94,228,255,.13), 0 0 0 1px rgba(94,228,255,.15);
}
.mission-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.mission-card.is-open .map-core { border: 0; box-shadow: 0 0 42px rgba(111,255,193,.10), 0 0 0 1px rgba(111,255,193,.20); }

/* Les points sont centrés exactement sur le trait de leur orbite. */
.orbit-a { width: 286px; height: 286px; margin: -143px 0 0 -143px; }
.orbit-b { width: 222px; height: 222px; margin: -111px 0 0 -111px; }
.orbit-c { width: 172px; height: 172px; margin: -86px 0 0 -86px; }
.orbit::after { top: -4.5px; }
.orbit-b::after { top: -3.5px; }
.orbit-c::after { top: -3px; }

.outline-word { display: inline-block; white-space: nowrap; }
.progress { height: 6px; }
.progress span { min-width: 0; }

@media (max-width: 620px) {
  .brand-mark { width: 52px; height: 52px; border-radius: 16px; }
  .brand-copy { display: none; }

  .hero h1,
  .registration-heading h1,
  .auth-intro h1 {
    font-size: clamp(40px, 12.5vw, 48px);
    line-height: 1.03;
    letter-spacing: -.012em;
  }
  .hero h1 .outline-word,
  .registration-heading h1 .outline-word {
    font-size: .82em;
    letter-spacing: .01em;
    -webkit-text-stroke-width: .8px;
  }

  .map-core.mind-core { width: 118px; height: 118px; border-radius: 27px; }
  .orbit-a { width: 238px; height: 238px; margin: -119px 0 0 -119px; }
  .orbit-b { width: 184px; height: 184px; margin: -92px 0 0 -92px; }
  .orbit-c { width: 142px; height: 142px; margin: -71px 0 0 -71px; }
}


/* Retours 7 corrigé — UNIQUE changement visuel : logo rond. */
.brand-mark { border-radius: 50% !important; }
.brand-logo-image { border-radius: 50% !important; }
.map-core.mind-core { border-radius: 50% !important; }
.mission-logo-image { border-radius: 50% !important; }


/* Retours 8 corrigé — logo réellement circulaire et intégré aux orbites. */
.brand-mark {
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
}
.brand-logo-image {
  border-radius: 50% !important;
  object-fit: cover !important;
}
.map-core.mind-core {
  width: 148px !important;
  height: 148px !important;
  padding: 8px !important;
  border-radius: 50% !important;
  overflow: visible !important;
  background: radial-gradient(circle, rgba(94,228,255,.085), rgba(5,13,27,.025) 64%, transparent 72%) !important;
  box-shadow: none !important;
}
.map-core.mind-core::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(94,228,255,.22);
  box-shadow: 0 0 30px rgba(94,228,255,.13), inset 0 0 24px rgba(94,228,255,.055);
  pointer-events: none;
}
.mission-logo-image {
  position: relative;
  z-index: 2;
  width: 116px !important;
  height: 116px !important;
  margin: auto;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 0 26px rgba(94,228,255,.16);
}
.mission-info h2 { max-width: 390px; }
@media (max-width: 620px) {
  .map-core.mind-core { width: 124px !important; height: 124px !important; padding: 7px !important; }
  .mission-logo-image { width: 96px !important; height: 96px !important; }
}


/* Retours 9 — tête/cerveau transparente directement intégrée aux orbites. */
.map-core.mind-core {
  width: 160px !important;
  height: 160px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}
.map-core.mind-core::before,
.map-core.mind-core::after { display: none !important; }
.mission-neural-head {
  width: 154px;
  height: 154px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(94,228,255,.28));
}
.neural-head-outline,
.neural-neck {
  stroke: url(#headStroke);
  stroke-width: 3.2;
}
.brain-line {
  stroke: rgba(89,228,255,.95);
  stroke-width: 2.45;
}
.brain-line.faint {
  stroke: rgba(119,165,255,.58);
  stroke-width: 1.8;
}
.neural-tail {
  stroke: rgba(91,217,255,.72);
  stroke-width: 2.2;
}
.neural-nodes circle {
  fill: #eafcff;
  stroke: #5ee4ff;
  stroke-width: 1.6;
}
.mission-card.is-open .mission-neural-head {
  filter: drop-shadow(0 0 18px rgba(111,255,193,.30));
}
@media (max-width: 620px) {
  .map-core.mind-core { width: 132px !important; height: 132px !important; }
  .mission-neural-head { width: 128px; height: 128px; }
}


/* Retours 10 — vrai visuel tête + cerveau transparent au centre. */
.map-core.mind-core {
  width: 176px !important;
  height: 176px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}
.map-core.mind-core::before,
.map-core.mind-core::after { display: none !important; }
.mission-neural-head { display: none !important; }
.mission-neural-head-image {
  width: 158px;
  height: 158px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(94,228,255,.30)) drop-shadow(0 0 22px rgba(94,228,255,.14));
}
@media (max-width: 620px) {
  .map-core.mind-core { width: 144px !important; height: 144px !important; }
  .mission-neural-head-image { width: 132px; height: 132px; }
}


/* Retours 14 — bloc e-mail aligné sous le champ d'adresse. */
.email-column {
  display: grid;
  gap: 12px;
  align-content: start;
}
.email-column .email-explainer,
.email-column .email-notification-choice {
  margin: 0;
}
.email-column .email-notification-choice {
  padding-top: 2px;
}


/* Retours 15 — ordre explicite du bloc e-mail.
   Élèves : champ e-mail -> cadre explicatif -> notifications.
   Personnels/Professeurs : champ e-mail -> notifications (cadre masqué). */
.email-column > [data-email-field] { order: 1; }
.email-column > [data-email-explainer] { order: 2; }
.email-column > .email-notification-choice { order: 3; margin-top: 0; }

/* Retours 16 — alignement des deux champs du compte équipe.
   La colonne e-mail peut être plus haute à cause des informations placées dessous,
   mais les cadres "Nom de l'équipe" et "Adresse mail" gardent exactement la même hauteur. */
.account-fields {
  align-items: start;
}
.account-fields > .field,
.email-column > [data-email-field] {
  align-self: start;
}
.account-fields > .field input,
.email-column > [data-email-field] input {
  height: 50px;
  min-height: 50px;
}

/* Retours 17 — première base fonctionnelle V2, sans modifier les pages publiques validées. */
.team-dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 50px auto 80px;
}
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(94,228,255,.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13,30,53,.86), rgba(5,14,28,.72));
  box-shadow: 0 22px 80px rgba(0,0,0,.22);
}
.dashboard-hero h1 { margin: 12px 0 8px; font-size: clamp(34px, 6vw, 62px); line-height: .98; }
.dashboard-hero p { margin: 0; color: var(--muted); }
.dashboard-score { min-width: 140px; text-align: right; }
.dashboard-score small { display:block; color: var(--cyan); font: 800 10px/1 ui-monospace, monospace; letter-spacing:.18em; }
.dashboard-score strong { display:block; margin-top:8px; font-size:54px; line-height:.85; }
.dashboard-score span { color: var(--muted); font-size:12px; }
.dashboard-tabs { display:flex; gap:8px; margin:22px 0; padding:6px; border:1px solid rgba(94,228,255,.12); border-radius:18px; background:rgba(5,14,28,.55); overflow:auto; }
.dashboard-tabs a { padding:11px 16px; border-radius:12px; color:#a8bdd5; text-decoration:none; font-weight:800; white-space:nowrap; }
.dashboard-tabs a.active { color:#06101f; background:linear-gradient(135deg, #5ee4ff, #8ff2ff); }
.dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.dashboard-card { min-height:220px; padding:26px; border:1px solid rgba(94,228,255,.14); border-radius:24px; background:rgba(6,16,31,.70); }
.dashboard-card h2 { margin:12px 0 10px; font-size:26px; }
.dashboard-card p { margin:0; color:var(--muted); line-height:1.65; }
@media (max-width:760px) {
  .team-dashboard { width:min(100% - 24px, 1180px); margin-top:26px; }
  .dashboard-hero { align-items:flex-start; padding:24px; }
  .dashboard-score { min-width:90px; }
  .dashboard-score strong { font-size:42px; }
  .dashboard-grid { grid-template-columns:1fr; }
}

/* Retours 18 — installation et diagnostic de la vraie V2 */
.installation-shell code,
.test-shell code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(94,228,255,.06);
  color: #ccefff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.beta-test-grid { margin: 20px 0 28px; }
.beta-test-grid .dashboard-card h2 { margin: 6px 0; font-size: 38px; }
@media (max-width: 760px) {
  .beta-test-grid { grid-template-columns: 1fr; }
}


/* Retours 19 — résultat épuré de la récupération du nom d'équipe */
.team-recovery-result {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}
.team-recovery-result p {
  margin: 0;
  max-width: 520px;
  color: #eaf6ff;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.45;
  font-weight: 650;
}
.team-recovery-result strong {
  color: var(--cyan);
  font-weight: 850;
}

/* Retours 21 — espace équipe : classement permanent à droite et onglets Énigmes/Messages. */
.team-dashboard { margin-top: 14px; }
.team-brand { cursor: default; }
.dashboard-hero { align-items: center; }
.dashboard-identity { min-width: 0; }
.dashboard-metrics { display:flex; align-items:stretch; gap:12px; }
.dashboard-metric { min-width:150px; padding:14px 18px; border-left:1px solid rgba(94,228,255,.15); text-align:right; display:flex; flex-direction:column; justify-content:center; }
.dashboard-metric small { color:var(--cyan); font:800 10px/1 ui-monospace,monospace; letter-spacing:.16em; }
.dashboard-metric strong { display:block; margin-top:9px; color:var(--text); font-size:25px; line-height:1; }
.dashboard-metric.score strong { font-size:46px; }
.dashboard-metric span { margin-top:4px; color:var(--muted); font-size:12px; }
.team-dashboard-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; align-items:start; margin-top:18px; }
.team-main-column { min-width:0; }
.compact-tabs { width:max-content; max-width:100%; margin:0 0 14px; }
.dashboard-tabs button { border:0; padding:11px 18px; border-radius:12px; color:#a8bdd5; background:transparent; font:800 14px/1.2 inherit; cursor:pointer; white-space:nowrap; }
.dashboard-tabs button.active { color:#06101f; background:linear-gradient(135deg,#5ee4ff,#8ff2ff); }
.tab-count { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:7px; border-radius:999px; background:#06101f; color:var(--cyan); font-size:10px; }
.team-tab-panel[hidden] { display:none !important; }
.team-tab-panel { display:grid; gap:14px; }
.puzzle-card { padding:22px; border:1px solid rgba(94,228,255,.14); border-radius:22px; background:linear-gradient(145deg,rgba(7,19,37,.86),rgba(5,13,27,.76)); }
.puzzle-card.current-puzzle { border-color:rgba(94,228,255,.30); box-shadow:0 18px 56px rgba(0,0,0,.16),inset 0 0 38px rgba(94,228,255,.025); }
.puzzle-card.correct { border-color:rgba(111,255,193,.24); background:linear-gradient(145deg,rgba(8,33,31,.56),rgba(5,13,27,.78)); }
.puzzle-card.incorrect { border-color:rgba(255,112,139,.22); background:linear-gradient(145deg,rgba(42,15,28,.50),rgba(5,13,27,.78)); }
.puzzle-card.no-answer { border-color:rgba(151,165,186,.16); opacity:.92; }
.puzzle-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.puzzle-card h2 { margin:8px 0 0; font-size:23px; }
.puzzle-state { display:inline-flex; font:800 9px/1 ui-monospace,monospace; letter-spacing:.14em; text-transform:uppercase; color:#93a7c2; }
.puzzle-state.live { color:var(--cyan); }
.puzzle-state.upcoming { color:var(--gold); }
.puzzle-state.correct { color:#73f6bf; }
.puzzle-state.incorrect { color:#ff879f; }
.puzzle-state.no-answer,.puzzle-state.neutral { color:#9ba9bb; }
.puzzle-points { padding:6px 9px; border:1px solid rgba(231,193,119,.22); border-radius:999px; color:var(--gold); font-size:11px; font-weight:800; white-space:nowrap; }
.puzzle-deadlines { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }
.puzzle-deadlines > div { padding:13px 14px; border:1px solid rgba(94,228,255,.10); border-radius:14px; background:rgba(2,8,17,.36); }
.puzzle-deadlines small { display:block; color:#7188a7; font-size:10px; margin-bottom:5px; }
.puzzle-deadlines strong { font-size:16px; }
.puzzle-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.mini-button { min-height:38px; display:inline-flex; align-items:center; justify-content:center; padding:0 13px; border:1px solid rgba(94,228,255,.16); border-radius:11px; background:rgba(255,255,255,.025); color:#d9e8f8; text-decoration:none; font:750 12px/1 inherit; cursor:pointer; }
.mini-button:hover { border-color:rgba(94,228,255,.38); }
.mini-button.primary { color:#06101f; border-color:transparent; background:linear-gradient(120deg,var(--cyan),#9bf2ff); }
.mini-button.disabled,.mini-button:disabled { opacity:.45; cursor:not-allowed; }
.puzzle-muted { margin:12px 0 0; color:var(--muted); }
.past-puzzles-title { padding:14px 4px 0; color:#7086a3; font:800 9px/1 ui-monospace,monospace; letter-spacing:.17em; }
.puzzle-summary { position:relative; }
.puzzle-summary summary { list-style:none; }
.puzzle-summary summary::-webkit-details-marker { display:none; }
.puzzle-summary[open] { width:100%; }
.puzzle-summary[open] summary { width:max-content; }
.summary-content { width:100%; margin-top:10px; padding:16px; border:1px solid rgba(94,228,255,.12); border-radius:14px; background:rgba(3,10,21,.55); }
.summary-content p { margin:7px 0; color:#b7c8dc; }
.summary-global { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.summary-global span { padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.025); }
.summary-global small { display:block; color:#7086a3; font-size:10px; }
.summary-global strong { display:block; margin-top:4px; font-size:22px; }
.answer-value.correct { color:#73f6bf; }
.answer-value.incorrect { color:#ff879f; }
.answer-value.no-answer,.answer-value.neutral { color:#a6b5c7; }
.ranking-panel { position:sticky; top:18px; border:1px solid rgba(94,228,255,.16); border-radius:22px; background:linear-gradient(145deg,rgba(9,23,44,.88),rgba(4,12,25,.82)); overflow:hidden; }
.ranking-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; padding:20px 18px 14px; border-bottom:1px solid rgba(94,228,255,.10); }
.ranking-head h2 { margin:7px 0 0; font-size:21px; }
.ranking-head > small { color:#6f85a2; font-size:10px; white-space:nowrap; }
.ranking-scroll { max-height:620px; overflow-y:auto; padding:8px; scroll-behavior:smooth; scrollbar-width:thin; scrollbar-color:rgba(94,228,255,.28) transparent; }
.ranking-row { display:grid; grid-template-columns:38px minmax(0,1fr) 54px; align-items:center; gap:8px; min-height:48px; padding:7px 9px; border-radius:12px; color:#a9bbd0; }
.ranking-row + .ranking-row { border-top:1px solid rgba(255,255,255,.035); }
.ranking-row.is-current { min-height:64px; margin:5px 0; color:#f4fbff; background:linear-gradient(120deg,rgba(94,228,255,.15),rgba(80,139,255,.08)); box-shadow:inset 0 0 0 1px rgba(94,228,255,.26),0 0 24px rgba(94,228,255,.06); }
.ranking-position { color:#7290b4; font:800 12px/1 ui-monospace,monospace; text-align:center; }
.ranking-row.is-current .ranking-position { color:var(--cyan); font-size:15px; }
.ranking-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:700; }
.ranking-row.is-current .ranking-name { font-size:17px; font-weight:850; }
.ranking-name small { display:block; margin-top:3px; color:var(--cyan); font-size:9px; font-weight:700; }
.ranking-score { text-align:right; font-size:14px; }
.ranking-row.is-current .ranking-score { font-size:18px; }
.ranking-score small { display:block; color:#6e829d; font-size:8px; font-weight:600; }
.messages-card { min-height:300px; }
.message-list { display:grid; gap:10px; margin-top:16px; }
.message-item { max-width:88%; padding:13px 14px; border-radius:15px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.05); }
.message-item.from-team { justify-self:end; border-color:rgba(94,228,255,.15); background:rgba(94,228,255,.05); }
.message-item small { color:#7187a4; font-size:9px; }
.message-item p { margin:6px 0 0; color:#d3e2f2; }
.message-item em { display:block; margin-top:5px; color:#6f849f; font-size:9px; }
@media (max-width:980px) {
  .team-dashboard-layout { grid-template-columns:minmax(0,1fr) 300px; }
  .dashboard-metric { min-width:125px; padding-inline:13px; }
}
@media (max-width:760px) {
  .team-dashboard { margin-top:4px; }
  .dashboard-hero { display:grid; gap:20px; }
  .dashboard-metrics { width:100%; }
  .dashboard-metric { flex:1; text-align:left; border-left:0; border-top:1px solid rgba(94,228,255,.12); padding:13px 0 0; }
  .dashboard-metric.score strong { font-size:38px; }
  .team-dashboard-layout { grid-template-columns:1fr; }
  .ranking-panel { position:relative; top:auto; order:2; }
  .ranking-scroll { max-height:440px; }
  .puzzle-deadlines { grid-template-columns:1fr; }
  .summary-global { grid-template-columns:1fr 1fr; }
}


/* Retours 22 — métriques compactes/centrées et messagerie équipe fonctionnelle. */
.team-dashboard { margin-top: -14px; }
.dashboard-metrics { gap: 8px; align-items: center; }
.dashboard-metric {
  width: 116px;
  min-width: 116px;
  height: 94px;
  padding: 12px 10px;
  border: 1px solid rgba(94,228,255,.12);
  border-radius: 16px;
  background: rgba(2,9,20,.28);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.dashboard-metric small { min-height: 12px; display:flex; align-items:center; justify-content:center; }
.dashboard-metric strong,
.dashboard-metric.score strong {
  min-height: 34px;
  margin-top: 9px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:5px;
  font-size: 31px;
  line-height:1;
  white-space:nowrap;
}
.dashboard-metric .metric-value { color:var(--text); font-size:31px; font-weight:800; }
.dashboard-metric .metric-unit { margin:0; color:var(--muted); font-size:10px; font-weight:700; }

.ranking-position { white-space: nowrap; }
.ranking-row.is-current .ranking-position { font-weight:900; }

.messages-card { min-height: 0; }
.message-intro { margin-bottom: 18px !important; }
.team-message-form { display:grid; gap:12px; margin-top:18px; }
.team-message-form textarea {
  width:100%;
  min-height:122px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--text);
  background:rgba(3,8,18,.56);
  padding:14px 15px;
  outline:none;
  font:inherit;
  line-height:1.55;
  transition:.2s ease;
}
.team-message-form textarea:focus { border-color:rgba(94,228,255,.6); box-shadow:0 0 0 4px rgba(94,228,255,.07); }
.team-message-form textarea::placeholder { color:#536783; }
.message-send-button { justify-self:start; min-height:44px; }
.compact-notice { margin:14px 0 0; }
.message-received-state {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  padding:14px 16px;
  border:1px solid rgba(151,165,186,.12);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.message-received-state small { color:#7287a4; font:800 9px/1 ui-monospace,monospace; letter-spacing:.14em; }
.message-received-state strong { color:#aab9cc; font-size:13px; }
.message-received-state.has-messages { border-color:rgba(94,228,255,.16); }
.message-received-state.has-messages strong { color:var(--cyan); }
.message-history-title { margin-top:24px; padding-top:20px; border-top:1px solid rgba(94,228,255,.10); color:#91a5c0; font-size:12px; font-weight:800; }

@media (max-width: 980px) {
  .dashboard-metric { width:108px; min-width:108px; }
}
@media (max-width: 760px) {
  .team-dashboard { margin-top:-10px; }
  .dashboard-metrics { width:auto; justify-content:flex-start; }
  .dashboard-metric { flex:0 0 112px; width:112px; min-width:112px; height:88px; border:1px solid rgba(94,228,255,.12); padding:10px; text-align:center; }
  .dashboard-metric strong, .dashboard-metric.score strong { font-size:28px; }
  .dashboard-metric .metric-value { font-size:28px; }
  .message-send-button { width:100%; justify-self:stretch; }
  .message-received-state { align-items:flex-start; flex-direction:column; }
}


/* Retours 23 — onglet Mon équipe et inscription allégée. */
.team-roster-card { min-height: 0; }
.team-roster-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.team-roster-head h2 { margin:7px 0 0; font-size:25px; }
.team-roster-list { display:grid; gap:9px; }
.team-roster-row {
  min-height:64px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:11px 14px;
  border:1px solid rgba(94,228,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.team-roster-number {
  color:#6e87a7;
  font:800 10px/1 ui-monospace,monospace;
  letter-spacing:.12em;
  text-align:center;
}
.team-roster-person { min-width:0; }
.team-roster-person strong {
  display:block;
  color:#eaf5ff;
  font-size:15px;
  line-height:1.25;
}
.team-roster-person small {
  display:block;
  margin-top:5px;
  color:#7f96b4;
  font-size:11px;
}
.team-roster-help {
  display:flex;
  align-items:flex-start;
  gap:13px;
  margin-top:18px;
  padding:16px;
  border:1px solid rgba(94,228,255,.13);
  border-radius:15px;
  background:rgba(94,228,255,.03);
}
.team-roster-help > div { min-width:0; }
.team-roster-help strong { color:#dceaf8; font-size:13px; }
.team-roster-help p {
  margin:6px 0 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.registration-heading:not(:has(p)) { margin-bottom: 30px; }

@media (max-width:760px) {
  .team-roster-row { grid-template-columns:34px minmax(0,1fr); }
  .team-roster-help { padding:14px; }
  .team-roster-help .mini-button { width:100%; }
}


/* Retours 24 — typographie mobile propre + microtextes inscription retirés. */
@media (max-width: 620px) {
  .hero h1,
  .registration-heading h1,
  .auth-intro h1 {
    font-size: clamp(40px, 11.6vw, 44px);
    line-height: 1;
    letter-spacing: -.028em;
    font-weight: 780;
  }

  /* Sur certains navigateurs mobiles, -webkit-text-stroke produit des traits parasites.
     On recrée donc l'effet contour avec des ombres très fines, plus stable. */
  .hero h1 .outline-word,
  .registration-heading h1 .outline-word {
    display: inline-block;
    max-width: 100%;
    font-size: .94em;
    line-height: 1.02;
    letter-spacing: -.018em;
    font-weight: 760;
    color: #07101f;
    -webkit-text-stroke: 0 !important;
    text-shadow:
      1px 0 0 rgba(151, 213, 247, .88),
      -1px 0 0 rgba(151, 213, 247, .88),
      0 1px 0 rgba(151, 213, 247, .88),
      0 -1px 0 rgba(151, 213, 247, .88),
      1px 1px 0 rgba(151, 213, 247, .72),
      -1px -1px 0 rgba(151, 213, 247, .72),
      1px -1px 0 rgba(151, 213, 247, .72),
      -1px 1px 0 rgba(151, 213, 247, .72),
      0 0 18px rgba(94,228,255,.08);
  }

  .hero-copy,
  .registration-heading {
    min-width: 0;
    max-width: 100%;
  }
}


/* Retours 25 — ordre d'inscription pour départager les égalités, fiche équipe allégée et profils détaillés. */




/* Retours 28 — blason néon uniforme, taille restaurée et respiration lumineuse. */
.college-crest-stage {
  position: absolute;
  z-index: 8;
  top: 8px;
  left: 50%;
  width: 154px;
  height: auto;
  transform: translateX(-50%);
  display: block;
  margin: 0;
  pointer-events: none;
}
.college-crest-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  isolation: isolate;
  animation: collegeNeonGlow 3.6s ease-in-out infinite;
}
.college-crest-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: collegeNeonBrightness 3.6s ease-in-out infinite;
}
.college-crest-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% 3% 4%;
  border-radius: 46%;
  background: radial-gradient(circle, rgba(52,188,255,.18), rgba(29,116,255,.08) 44%, transparent 72%);
  filter: blur(16px);
  animation: collegeNeonAura 3.6s ease-in-out infinite;
}
.college-crest-trace { display: none !important; }

@keyframes collegeNeonBrightness {
  0%, 100% {
    filter: saturate(1.05) contrast(1.03) brightness(.93)
      drop-shadow(0 0 5px rgba(65,205,255,.34))
      drop-shadow(0 0 13px rgba(24,112,255,.22));
  }
  50% {
    filter: saturate(1.13) contrast(1.06) brightness(1.15)
      drop-shadow(0 0 9px rgba(101,228,255,.62))
      drop-shadow(0 0 24px rgba(24,112,255,.40));
  }
}
@keyframes collegeNeonGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(64,174,255,.22)) drop-shadow(0 0 24px rgba(0,98,255,.12));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(78,202,255,.40)) drop-shadow(0 0 34px rgba(0,98,255,.22));
  }
}
@keyframes collegeNeonAura {
  0%, 100% { opacity: .38; transform: scale(.97); }
  50% { opacity: .68; transform: scale(1.035); }
}

/* Le blason reste placé au centre, tout en haut de la page d'accueil. */
.home-hero { padding-top: 132px; }

@media (max-width: 900px) {
  .college-crest-stage {
    top: 7px;
    width: 132px;
  }
  .home-hero { padding-top: 108px; }
}
@media (max-width: 620px) {
  .college-crest-stage {
    top: 84px;
    width: 108px;
  }
  .home-hero { padding-top: 142px; }
}


/* Retours 29 — cache-bust du nouveau blason + respiration néon clairement visible. */
.college-crest-image {
  animation: collegeNeonBreath29 3.2s ease-in-out infinite !important;
  will-change: filter, opacity, transform;
  transform-origin: 50% 50%;
}
.college-crest-shell {
  animation: collegeNeonShell29 3.2s ease-in-out infinite !important;
  will-change: filter;
}
.college-crest-shell::before {
  animation: collegeNeonAura29 3.2s ease-in-out infinite !important;
}
@keyframes collegeNeonBreath29 {
  0%, 100% {
    opacity: .88;
    transform: scale(.995);
    filter:
      brightness(.82)
      saturate(1.00)
      contrast(1.02)
      drop-shadow(0 0 5px rgba(67,205,255,.30))
      drop-shadow(0 0 12px rgba(0,104,255,.20));
  }
  50% {
    opacity: 1;
    transform: scale(1.005);
    filter:
      brightness(1.12)
      saturate(1.10)
      contrast(1.07)
      drop-shadow(0 0 8px rgba(117,235,255,.52))
      drop-shadow(0 0 20px rgba(0,126,255,.34))
      drop-shadow(0 0 32px rgba(0,77,255,.16));
  }
}
@keyframes collegeNeonShell29 {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(58,177,255,.20));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(91,217,255,.34)) drop-shadow(0 0 26px rgba(0,102,255,.16));
  }
}
@keyframes collegeNeonAura29 {
  0%, 100% { opacity: .24; transform: scale(.965); }
  50% { opacity: .48; transform: scale(1.025); }
}


/* Retours 30 — intensité du blason pilotée par la proximité de la souris.
   Sur écran tactile / sans souris, la respiration automatique de la V29 reste active. */
.college-crest-stage {
  --crest-brightness: .82;
  --crest-saturation: 1;
  --crest-opacity: .88;
  --crest-scale: .995;
  --crest-shadow-near: 5px;
  --crest-shadow-far: 12px;
  --crest-shadow-alpha: .30;
  --crest-blue-alpha: .20;
  --crest-shell-near: 8px;
  --crest-shell-far: 20px;
  --crest-shell-alpha: .20;
  --crest-aura-opacity: .24;
  --crest-aura-scale: .965;
}

@media (hover: hover) and (pointer: fine) {
  .college-crest-image {
    animation: none !important;
    opacity: var(--crest-opacity);
    transform: scale(var(--crest-scale));
    filter:
      brightness(var(--crest-brightness))
      saturate(var(--crest-saturation))
      contrast(1.05)
      drop-shadow(0 0 var(--crest-shadow-near) rgba(117,235,255,var(--crest-shadow-alpha)))
      drop-shadow(0 0 var(--crest-shadow-far) rgba(0,126,255,var(--crest-blue-alpha)));
    transition: filter .08s linear, opacity .08s linear, transform .08s linear;
  }
  .college-crest-shell {
    animation: none !important;
    filter:
      drop-shadow(0 0 var(--crest-shell-near) rgba(91,217,255,var(--crest-shell-alpha)))
      drop-shadow(0 0 var(--crest-shell-far) rgba(0,102,255,calc(var(--crest-shell-alpha) * .55)));
    transition: filter .08s linear;
  }
  .college-crest-shell::before {
    animation: none !important;
    opacity: var(--crest-aura-opacity);
    transform: scale(var(--crest-aura-scale));
    transition: opacity .08s linear, transform .08s linear;
  }
}


/* Retours 31 — luminosité réellement pilotée par la souris.
   Le mode réactif est activé par JS dès le premier mouvement de souris,
   sans dépendre des media queries de navigateur. */
.college-crest-stage.is-mouse-reactive {
  --crest-brightness: .58;
  --crest-saturation: .92;
  --crest-opacity: .74;
  --crest-scale: .985;
  --crest-shadow-near: 2px;
  --crest-shadow-far: 7px;
  --crest-shadow-alpha: .10;
  --crest-blue-alpha: .08;
  --crest-shell-near: 3px;
  --crest-shell-far: 8px;
  --crest-shell-alpha: .08;
  --crest-aura-opacity: .08;
  --crest-aura-scale: .94;
}
.college-crest-stage.is-mouse-reactive .college-crest-image {
  animation: none !important;
  opacity: var(--crest-opacity) !important;
  transform: scale(var(--crest-scale)) !important;
  filter:
    brightness(var(--crest-brightness))
    saturate(var(--crest-saturation))
    contrast(1.08)
    drop-shadow(0 0 var(--crest-shadow-near) rgba(143,243,255,var(--crest-shadow-alpha)))
    drop-shadow(0 0 var(--crest-shadow-far) rgba(0,123,255,var(--crest-blue-alpha))) !important;
  transition: filter .045s linear, opacity .045s linear, transform .045s linear !important;
  will-change: filter, opacity, transform;
}
.college-crest-stage.is-mouse-reactive .college-crest-shell {
  animation: none !important;
  filter:
    drop-shadow(0 0 var(--crest-shell-near) rgba(91,225,255,var(--crest-shell-alpha)))
    drop-shadow(0 0 var(--crest-shell-far) rgba(0,103,255,var(--crest-shell-alpha))) !important;
  transition: filter .045s linear !important;
  will-change: filter;
}
.college-crest-stage.is-mouse-reactive .college-crest-shell::before {
  animation: none !important;
  opacity: var(--crest-aura-opacity) !important;
  transform: scale(var(--crest-aura-scale)) !important;
  transition: opacity .045s linear, transform .045s linear !important;
  will-change: opacity, transform;
}


/* Retours 32 — intensité maximale adoucie et respiration mobile deux fois plus lente. */
@media (max-width: 760px) {
  .college-crest-image {
    animation-duration: 6.4s !important;
  }
  .college-crest-shell {
    animation-duration: 6.4s !important;
  }
  .college-crest-shell::before {
    animation-duration: 6.4s !important;
  }
}


/* Retours 37 — footer : même typographie et même couleur des deux côtés */
.site-footer .footer-brand,
.site-footer .footer-quote {
  color: #526782;
  font: inherit;
  font-weight: 400;
  letter-spacing: normal;
}
.site-footer .footer-quote {
  margin-left: auto;
  text-align: right;
}
@media (max-width: 620px) {
  .site-footer .footer-quote {
    margin-left: 0;
    text-align: left;
  }
}

/* Retours 39 — espace administrateur */
.admin-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 4px auto 44px;
}
.admin-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.admin-topline h1 {
  margin: 8px 0 5px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: .98;
  letter-spacing: -.035em;
}
.admin-topline p { margin: 0; color: var(--muted); }
.admin-category-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(94,228,255,.13);
  border-radius: 15px;
  background: rgba(7,17,32,.72);
  box-shadow: inset 0 0 20px rgba(94,228,255,.025);
}
.admin-category-switch a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  color: #8296b2;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.admin-category-switch a.active {
  color: #dffaff;
  background: rgba(43,196,255,.13);
  box-shadow: inset 0 0 0 1px rgba(94,228,255,.22), 0 0 24px rgba(0,154,255,.08);
}
.admin-category-switch.compact { align-self: center; }
.admin-category-switch.compact a { min-height: 34px; }
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}
.admin-stat-card {
  min-height: 124px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(94,228,255,.11);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(16,32,54,.76), rgba(6,14,27,.88));
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.admin-stat-card small { color: #6f839f; font: 800 10px/1.1 ui-monospace, monospace; letter-spacing: .14em; }
.admin-stat-card strong { margin: 8px 0 3px; color: #eaf7ff; font-size: 33px; line-height: 1; }
.admin-stat-card > span { color: #7d91aa; font-size: 11px; line-height: 1.25; }
.admin-stat-card.needs-attention { border-color: rgba(231,193,119,.29); box-shadow: inset 0 0 30px rgba(231,193,119,.025); }
.admin-stat-card.needs-attention strong { color: var(--gold); }
.admin-stat-card .status-word { font-size: 17px; letter-spacing: .04em; }
.admin-stat-card .status-word.open { color: #75efba; }
.admin-stat-card .status-word.closed { color: #f2a9a9; }
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 16px;
  margin-bottom: 16px;
}
.admin-panel {
  padding: 21px;
  margin-bottom: 16px;
  border: 1px solid rgba(94,228,255,.11);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(12,26,46,.80), rgba(5,13,25,.91));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 50px rgba(0,0,0,.12);
}
.admin-dashboard-grid > .admin-panel { margin-bottom: 0; }
.admin-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.admin-panel-head h2 { margin: 5px 0 0; font-size: 22px; }
.admin-counter {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 11px;
  color: #aeefff;
  border: 1px solid rgba(94,228,255,.15);
  background: rgba(94,228,255,.055);
  font-weight: 800;
}
.admin-puzzle-status { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; color: #79efbc; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #72f2bc; box-shadow: 0 0 10px rgba(114,242,188,.65); }
.admin-mini-stats { display: flex; gap: 12px; margin-top: 16px; }
.admin-mini-stats > span { min-width: 160px; padding: 12px 14px; border: 1px solid rgba(94,228,255,.09); border-radius: 14px; background: rgba(4,12,24,.44); }
.admin-mini-stats small { display:block; margin-bottom:5px; color:#667d9b; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.admin-mini-stats strong { color:#e4f4ff; font-size:14px; }
.admin-empty { margin: 0; padding: 18px; border: 1px dashed rgba(94,228,255,.12); border-radius: 14px; color: #70859f; background: rgba(5,13,25,.28); }
.admin-quick-actions { display: grid; gap: 8px; }
.admin-quick-actions > a,
.admin-quick-actions > span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 0 14px; border: 1px solid rgba(94,228,255,.09); border-radius: 13px;
  background: rgba(4,13,26,.45); color: #dcecff; text-decoration: none; font-weight: 700; font-size: 13px;
}
.admin-quick-actions > a:hover { border-color: rgba(94,228,255,.25); background: rgba(29,122,173,.08); }
.admin-quick-actions .disabled-action { color: #687b93; }
.admin-quick-actions .disabled-action small { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.admin-request-list { display: grid; gap: 12px; }
.admin-request-card { padding: 17px; border-radius: 17px; border: 1px solid rgba(231,193,119,.17); background: rgba(35,29,20,.20); }
.admin-request-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:10px; }
.admin-request-meta > div { display:grid; gap:3px; }
.admin-request-meta strong { color:#fff3d3; font-size:16px; }
.admin-request-meta span, .admin-request-meta small { color:#74879e; font-size:11px; }
.admin-request-card > p { color:#9badbf; font-size:12px; }
.pronote-message { margin: 12px 0; padding: 13px; border: 1px solid rgba(94,228,255,.09); border-radius: 13px; background: rgba(3,10,20,.64); overflow:auto; }
.pronote-message pre { margin:0; color:#cbd9e9; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-message-list { display:grid; gap:7px; }
.admin-message-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:12px 13px; border:1px solid rgba(94,228,255,.07); border-radius:13px; background:rgba(4,12,24,.35); color:inherit; text-decoration:none; }
.admin-message-row.unread { border-color:rgba(94,228,255,.20); background:rgba(23,89,124,.10); }
.admin-message-row strong { color:#ddecfa; font-size:13px; }
.admin-message-row p { margin:3px 0 0; color:#7b8da4; font-size:11px; }
.admin-message-row small { color:#60738d; white-space:nowrap; }
.admin-back-button { width:auto; min-width:160px; }
.admin-team-filters { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.admin-search { display:flex; align-items:center; gap:8px; }
.admin-search > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.admin-search input[type="search"] { width:min(340px,44vw); height:42px; padding:0 13px; border-radius:12px; border:1px solid rgba(94,228,255,.13); background:rgba(4,12,24,.75); color:#e8f5ff; outline:none; }
.admin-search input[type="search"]:focus { border-color:rgba(94,228,255,.35); box-shadow:0 0 0 3px rgba(94,228,255,.05); }
.admin-team-table-wrap { border:1px solid rgba(94,228,255,.10); border-radius:20px; overflow:auto; background:rgba(5,13,25,.72); }
.admin-team-table { width:100%; border-collapse:collapse; min-width:900px; }
.admin-team-table th { padding:13px 14px; color:#60758f; font:800 9px/1 ui-monospace,monospace; letter-spacing:.12em; text-align:left; background:rgba(10,22,39,.92); border-bottom:1px solid rgba(94,228,255,.09); }
.admin-team-table td { padding:13px 14px; border-bottom:1px solid rgba(94,228,255,.055); color:#9aabc0; font-size:12px; vertical-align:middle; }
.admin-team-table tr:last-child td { border-bottom:0; }
.admin-team-table td strong { color:#e1effa; font-size:13px; }
.admin-category-pill, .team-status, .email-status { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:999px; font-size:9px; font-weight:800; letter-spacing:.04em; white-space:nowrap; }
.admin-category-pill.eleve { color:#a8efff; background:rgba(49,196,255,.09); border:1px solid rgba(49,196,255,.14); }
.admin-category-pill.personnel { color:#efdca7; background:rgba(231,193,119,.08); border:1px solid rgba(231,193,119,.14); }
.team-status.active, .email-status.verified { color:#94ecc0; background:rgba(96,231,170,.075); border:1px solid rgba(96,231,170,.13); }
.team-status.disabled { color:#f2abab; background:rgba(238,96,96,.07); border:1px solid rgba(238,96,96,.13); }
.team-status.archived, .email-status.pending { color:#b4a98f; background:rgba(231,193,119,.06); border:1px solid rgba(231,193,119,.12); }
.admin-email { display:block; margin-top:4px; color:#62758d; }
.admin-muted { color:#65788f; }
.admin-definition-list { display:grid; gap:1px; margin:0; }
.admin-definition-list > div { display:grid; grid-template-columns:150px 1fr; gap:16px; padding:10px 0; border-bottom:1px solid rgba(94,228,255,.055); }
.admin-definition-list > div:last-child { border-bottom:0; }
.admin-definition-list dt { color:#667b94; font-size:11px; }
.admin-definition-list dd { margin:0; color:#d7e6f3; font-size:12px; text-align:right; overflow-wrap:anywhere; }
.admin-player-list { display:grid; gap:7px; }
.admin-player-row { display:flex; align-items:center; gap:12px; padding:10px 11px; border:1px solid rgba(94,228,255,.07); border-radius:12px; background:rgba(3,11,22,.30); }
.admin-player-row > span { color:#5be0ff; font:800 10px/1 ui-monospace,monospace; }
.admin-player-row > div { display:grid; gap:2px; }
.admin-player-row strong { color:#dcecf8; font-size:12px; }
.admin-player-row small { color:#6e8199; font-size:10px; }
.admin-player-row.removed { opacity:.45; }
.admin-next-step { margin:13px 0 0; font-size:10px; }
.admin-message-history { display:grid; gap:10px; }
.admin-chat-message { max-width:80%; padding:12px 14px; border-radius:14px; border:1px solid rgba(94,228,255,.08); background:rgba(4,12,24,.45); }
.admin-chat-message.from-admin { margin-left:auto; border-color:rgba(231,193,119,.12); }
.admin-chat-message small { color:#61758e; font-size:9px; }
.admin-chat-message p { margin:5px 0 0; color:#c4d3e0; font-size:12px; line-height:1.5; }
.admin-reset-history { display:grid; gap:6px; }
.admin-reset-history > div { display:flex; align-items:center; justify-content:space-between; padding:9px 11px; border-radius:11px; background:rgba(4,12,24,.35); color:#71859d; font-size:11px; }
.admin-reset-history strong { color:#cbd9e6; text-transform:capitalize; }

@media (max-width: 980px) {
  .admin-stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-shell { width:min(100% - 24px,1240px); margin-top:0; }
  .admin-topline { align-items:flex-start; flex-direction:column; gap:14px; }
  .admin-category-switch { width:100%; overflow-x:auto; }
  .admin-category-switch a { flex:1 0 auto; }
  .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-stat-card { min-height:105px; padding:14px; }
  .admin-team-filters { align-items:stretch; flex-direction:column; }
  .admin-search { width:100%; }
  .admin-search input[type="search"] { width:100%; flex:1; }
  .admin-back-button { width:100%; }
  .admin-request-meta { flex-direction:column; gap:6px; }
  .admin-mini-stats { flex-direction:column; }
  .admin-mini-stats > span { min-width:0; }
  .admin-chat-message { max-width:92%; }
}
@media (max-width: 480px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; gap:8px; }
  .admin-stat-card strong { font-size:27px; }
  .admin-panel { padding:15px; border-radius:17px; }
}

/* Retours 40 — administration complète */
.admin-v40 { padding-top: 8px; }
.v40-topline { margin-bottom: 18px; }
.admin-main-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0 22px; }
.admin-main-actions a { position:relative; min-height:108px; padding:20px; border:1px solid rgba(94,228,255,.18); border-radius:20px; background:linear-gradient(145deg,rgba(10,25,46,.88),rgba(6,14,28,.92)); color:#eaf7ff; text-decoration:none; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:7px; box-shadow:inset 0 0 24px rgba(94,228,255,.025); transition:.2s ease; }
.admin-main-actions a:hover { transform:translateY(-2px); border-color:rgba(94,228,255,.42); box-shadow:0 12px 34px rgba(0,0,0,.22),0 0 26px rgba(94,228,255,.08); }
.admin-main-actions strong { font-size:20px; }
.admin-main-actions em { position:absolute; right:12px; top:12px; min-width:26px; height:26px; padding:0 8px; border-radius:999px; display:grid; place-items:center; background:#ff9a4d; color:#111; font-style:normal; font-weight:900; }
.admin-action-icon { color:#72e9ff; font-size:24px; }
.admin-section-nav { display:flex; gap:8px; flex-wrap:wrap; margin:-4px 0 20px; }
.admin-section-nav a { padding:9px 13px; border-radius:12px; border:1px solid rgba(94,228,255,.14); background:rgba(8,20,37,.55); color:#9db1c8; text-decoration:none; font-size:13px; font-weight:800; }
.admin-section-nav a.active { color:#07101f; background:#71eaff; border-color:#71eaff; }
.online-team-list { display:grid; gap:8px; }
.online-team-list>div { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.025); }
.online-team-list small { margin-left:auto; color:var(--muted); }
.online-dot { width:8px; height:8px; border-radius:50%; background:#66ffb5; box-shadow:0 0 12px rgba(102,255,181,.8); }
.online-pill { display:inline-block; margin-left:8px; padding:3px 7px; border-radius:999px; background:rgba(102,255,181,.1); color:#78ffc0; font-size:10px; font-weight:800; }
.alert-panel { border-color:rgba(255,164,74,.25)!important; }
.admin-alert-row { display:grid; gap:4px; padding:12px 14px; margin-top:8px; border-radius:12px; background:rgba(255,156,72,.07); color:#dcecff; text-decoration:none; }
.admin-alert-row span { color:#b9c9d9; font-size:13px; }
.puzzle-selector-row { display:flex; justify-content:flex-start; margin:0 0 16px; }
.puzzle-selector-row label { display:grid; gap:6px; color:#9fb2c7; font-size:12px; font-weight:800; }
.puzzle-selector-row select { min-width:300px; }
.puzzle-editor { overflow:visible; }
.scope-switch { display:flex; align-items:center; gap:16px; padding:14px 16px; margin-bottom:18px; border:1px solid rgba(94,228,255,.18); border-radius:14px; background:rgba(94,228,255,.035); }
.scope-switch>span { font-size:11px; color:#91a7bd; letter-spacing:.12em; text-transform:uppercase; }
.scope-switch label { display:grid; grid-template-columns:auto 1fr; column-gap:8px; align-items:center; }
.scope-switch small { grid-column:2; color:#7f93a8; }
.puzzle-admin-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.puzzle-admin-card { padding:16px; border-radius:16px; border:1px solid rgba(94,228,255,.12); background:rgba(7,18,34,.58); min-width:0; }
.puzzle-admin-card.wide { grid-column:span 2; }
.puzzle-admin-card h3 { margin:0 0 12px; font-size:15px; color:#dff7ff; }
.puzzle-admin-card .field { margin-top:9px; }
.puzzle-admin-card textarea { width:100%; }
.countdown-value { display:block; margin-bottom:9px; color:#73ebff; font-size:19px; }
.puzzle-status-pill { padding:6px 10px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.11em; background:rgba(102,255,181,.09); color:#74ffc0; }
.editor-actions { display:flex; gap:9px; flex-wrap:wrap; align-items:center; margin-top:16px; }
.danger-zone,.danger-panel { margin-top:18px; padding:14px; border:1px solid rgba(255,91,91,.18); border-radius:14px; background:rgba(255,64,64,.035); }
.danger-zone { display:flex; gap:10px; align-items:end; justify-content:flex-end; }
.danger-zone label { display:grid; gap:5px; font-size:11px; color:#aebdcd; }
.mini-button.danger,.button.danger { color:#ff9b9b!important; border-color:rgba(255,100,100,.28)!important; }
.mini-button.success { color:#7affbb; border-color:rgba(90,255,170,.25); }
.answer-review-list,.hint-review-list { display:grid; gap:10px; }
.answer-review,.hint-review { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; padding:14px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.answer-review.review,.hint-review.pending { border-color:rgba(255,165,72,.34); background:rgba(255,152,61,.06); }
.answer-review.incorrect { border-color:rgba(255,95,95,.28); background:rgba(255,80,80,.045); }
.answer-review.correct { border-color:rgba(89,255,172,.25); background:rgba(80,255,170,.04); }
.hint-review.sent { border-color:rgba(177,116,255,.3); background:rgba(173,114,255,.06); }
.answer-review p,.hint-review p { margin:5px 0; }
.hint-review form { display:grid; gap:8px; min-width:280px; }
.sent-hint { color:#c9b5ff; font-size:13px; margin-top:7px; }
.summary-team-card { padding:15px; margin-top:10px; border-radius:14px; border:1px solid rgba(94,228,255,.12); background:rgba(6,17,31,.55); }
.summary-team-card h3 { margin:0 0 10px; }
.summary-answers { display:flex; flex-wrap:wrap; gap:7px; }
.summary-answers span { padding:6px 9px; border-radius:9px; background:rgba(255,255,255,.04); }
.summary-answers span.correct { color:#70ffb9; background:rgba(80,255,170,.08); }
.summary-answers span.incorrect { color:#ff9393; background:rgba(255,80,80,.08); }
.summary-answers span.review { color:#ffb068; background:rgba(255,156,72,.08); }
.inline-review { display:flex; align-items:center; gap:7px; margin-top:12px; }
.mailbox-layout { display:grid; grid-template-columns:minmax(260px,34%) 1fr; gap:14px; align-items:start; }
.mailbox-list { max-height:720px; overflow:auto; }
.mailbox-group { margin-bottom:20px; }
.mailbox-group h3 { display:flex; justify-content:space-between; margin:0 0 8px; font-size:12px; color:#94a9bf; text-transform:uppercase; letter-spacing:.08em; }
.mail-item { display:grid; gap:4px; padding:11px 12px; margin-bottom:6px; border-radius:11px; text-decoration:none; color:#dcecff; background:rgba(255,255,255,.025); border-left:3px solid transparent; }
.mail-item span { color:#879db3; font-size:12px; }
.mail-item.unread { border-left-color:#71eaff; background:rgba(94,228,255,.07); }
.mail-item.pending { border-left-color:#ffad66; }
.mail-item.processed { opacity:.62; border-left-color:#627489; }
.mailbox-reader { min-height:420px; }
.mailbox-placeholder { min-height:300px; display:grid; place-items:center; color:#70869d; }
.reader-body { padding:18px; margin-bottom:16px; border-radius:14px; background:rgba(255,255,255,.025); line-height:1.65; }
.reply-form { display:grid; gap:10px; }.reply-form textarea,.compose-form textarea { width:100%; }
.process-form { margin-top:10px; }
.compose-panel { margin-bottom:14px; }
.compose-form { display:grid; gap:12px; }
.compose-scopes { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; }
.team-checkbox-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; max-height:160px; overflow:auto; padding:9px; border-radius:12px; background:rgba(255,255,255,.02); }
.team-checkbox-grid label { font-size:12px; color:#b9cadd; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.top-gap { margin-top:18px; }
.settings-search { display:flex; gap:8px; margin-bottom:14px; }
.settings-search input { flex:1; }
.ranking-admin-list { display:grid; gap:6px; }
.ranking-admin-row { display:grid; grid-template-columns:70px 1fr 90px; gap:10px; align-items:center; padding:11px 12px; border-radius:11px; background:rgba(255,255,255,.025); }
.ranking-admin-row>strong { color:#70eaff; font-size:17px; }.ranking-admin-row>b { text-align:right; }
.student-admin-ranking { display:grid; gap:3px; }
.student-rank-row { display:grid; grid-template-columns:52px minmax(170px,1.2fr) 1fr 90px; gap:10px; align-items:center; padding:9px 12px; border-radius:8px; background:rgba(255,255,255,.018); }
.student-rank-row.new-team { margin-top:9px; border-top:1px solid rgba(94,228,255,.18); }
.student-team { display:grid; }.student-team small { color:#8197ad; }
.player-edit-list { display:grid; gap:10px; }.player-edit-card { padding:13px; border-radius:13px; border:1px solid rgba(94,228,255,.11); background:rgba(255,255,255,.018); }.player-edit-card.removed { opacity:.5; }
.player-edit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }.player-edit-grid label { display:grid; gap:4px; font-size:11px; color:#91a7bd; }.player-edit-grid input,.player-edit-grid select { width:100%; }
.preview-banner { margin-bottom:14px; padding:11px 14px; border-radius:12px; background:rgba(255,187,75,.08); border:1px solid rgba(255,187,75,.22); color:#ffd188; display:flex; justify-content:space-between; gap:12px; }.preview-banner a { color:#fff; }
.preview-puzzle-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; padding:11px; border-radius:10px; background:rgba(255,255,255,.025); margin-top:7px; }

@media (max-width: 900px) {
  .admin-main-actions { grid-template-columns:1fr 1fr; }
  .puzzle-admin-grid { grid-template-columns:1fr 1fr; }
  .puzzle-admin-card.wide { grid-column:span 2; }
  .mailbox-layout,.settings-grid { grid-template-columns:1fr; }
  .team-checkbox-grid { grid-template-columns:1fr 1fr; }
  .player-edit-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .admin-main-actions { grid-template-columns:1fr 1fr; gap:8px; }.admin-main-actions a { min-height:90px; padding:14px; }.admin-main-actions strong { font-size:16px; }
  .admin-section-nav { overflow:auto; flex-wrap:nowrap; padding-bottom:4px; }.admin-section-nav a { white-space:nowrap; }
  .puzzle-selector-row select { min-width:0; width:100%; }.puzzle-selector-row label { width:100%; }
  .puzzle-admin-grid { grid-template-columns:1fr; }.puzzle-admin-card.wide { grid-column:auto; }
  .answer-review,.hint-review { grid-template-columns:1fr; }.hint-review form { min-width:0; }
  .team-checkbox-grid,.player-edit-grid { grid-template-columns:1fr; }
  .student-rank-row { grid-template-columns:40px 1fr; }.student-rank-row>span:nth-child(3),.student-rank-row>span:nth-child(4){grid-column:2;}
  .preview-puzzle-row { grid-template-columns:1fr; }
}

/* Retours 40 — compléments pour les écrans admin V40 */
.admin-v40-topline { margin-bottom: 14px; }
.admin-subnav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.admin-subnav a { padding:9px 13px; border-radius:11px; text-decoration:none; border:1px solid rgba(94,228,255,.13); color:#9fb3c9; background:rgba(8,20,37,.48); font-size:12px; font-weight:800; }
.admin-subnav a.active { background:#70eaff; color:#07101f; border-color:#70eaff; }
.puzzle-selector-bar { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:16px; }
.puzzle-selector-bar>label { display:grid; gap:6px; color:#94a9bd; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.puzzle-selector-bar select { min-width:300px; }
.scope-switch { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:13px; border:1px solid rgba(94,228,255,.16); background:rgba(94,228,255,.035); }
.scope-switch>span { color:#849ab1; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.scope-switch label { display:flex; align-items:center; gap:6px; color:#d9eaf7; font-size:12px; }
.puzzle-editor { display:grid; gap:18px; }
.puzzle-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.date-editor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.date-editor-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.date-editor-grid>div { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:13px; border-radius:13px; background:rgba(255,255,255,.022); border:1px solid rgba(94,228,255,.11); }
.date-editor-grid strong { grid-column:1/-1; margin-bottom:2px; color:#dff7ff; }
.date-editor-grid label { display:grid; gap:4px; font-size:10px; color:#8ea4bb; }
.date-editor-grid input { width:100%; }
.draft-chip,.puzzle-state { display:inline-flex; align-items:center; min-height:28px; padding:6px 10px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.1em; }
.draft-chip { color:#c7b3ff; background:rgba(167,112,255,.08); border:1px solid rgba(167,112,255,.2); }
.puzzle-admin-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:12px 0 16px; }
.puzzle-admin-header h2 { margin:8px 0 3px; }
.puzzle-state.live { background:rgba(78,255,167,.08); color:#73ffc0; border:1px solid rgba(78,255,167,.22); }
.puzzle-state.upcoming { background:rgba(111,229,255,.07); color:#7deaff; border:1px solid rgba(111,229,255,.2); }
.puzzle-state.neutral { background:rgba(255,255,255,.04); color:#93a8bd; border:1px solid rgba(255,255,255,.08); }
.trash-button { width:42px; height:42px; border-radius:12px; border:1px solid rgba(255,104,104,.22); background:rgba(255,82,82,.045); cursor:pointer; }
.puzzle-admin-cards { display:grid; gap:12px; margin-bottom:14px; }
.puzzle-admin-cards.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.puzzle-admin-cards.current-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.action-card { min-height:182px; display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.action-card h3 { margin:0; }
.action-card form { display:grid; gap:7px; width:100%; margin-top:auto; }
.action-card form input[type=file] { font-size:11px; max-width:100%; }
.action-card.accent { border-color:rgba(94,228,255,.25); }
.big-action-number { font-size:34px; line-height:1; color:#7cecff; }
.status-mini-row { display:flex; flex-wrap:wrap; gap:6px; }
.status-mini-row span { padding:4px 7px; border-radius:999px; font-size:10px; font-weight:800; }
.status-mini-row .orange { color:#ffae68; background:rgba(255,153,65,.08); }
.status-mini-row .green { color:#6fffb7; background:rgba(76,255,165,.07); }
.countdown-card>strong { font-size:23px; color:#79eaff; }
.text-action { color:#79eaff; font-size:12px; font-weight:800; text-decoration:none; margin-top:auto; }
.variant-preview { color:#b7c7d8; font-size:12px; line-height:1.45; }
.missing-file { color:#ffae68; font-size:12px; }
.worklist-panel,.summary-admin-panel,.inline-editor { margin-top:14px; }
.response-legend { display:flex; gap:6px; flex-wrap:wrap; }
.response-legend span { padding:5px 7px; border-radius:999px; font-size:10px; font-weight:800; }
.response-legend .review { background:rgba(255,159,67,.08); color:#ffae68; }.response-legend .incorrect { background:rgba(255,78,78,.08); color:#ff9292; }.response-legend .correct { background:rgba(74,255,165,.07); color:#6fffb7; }
.response-worklist,.hint-worklist { display:grid; gap:9px; }
.response-work-row,.hint-work-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; padding:13px; border-radius:13px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.07); }
.response-work-row.review,.hint-work-row.pending { border-color:rgba(255,157,62,.3); background:rgba(255,152,60,.05); }
.response-work-row.incorrect { border-color:rgba(255,75,75,.24); background:rgba(255,75,75,.04); }
.response-work-row.correct { border-color:rgba(75,255,168,.2); background:rgba(75,255,168,.035); }
.hint-work-row.sent { border-color:rgba(173,115,255,.26); background:rgba(173,115,255,.045); }
.hint-work-row form { display:grid; gap:7px; min-width:280px; }
.sent-hint-text { color:#c8b4ff; max-width:460px; }
.summary-team { padding:14px; border-radius:13px; background:rgba(255,255,255,.02); border:1px solid rgba(94,228,255,.1); margin-top:10px; }
.summary-answer-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }.summary-answer-list span { padding:5px 8px; border-radius:8px; background:rgba(255,255,255,.035); }.summary-answer-list .correct { color:#70ffba; }.summary-answer-list .incorrect { color:#ff9292; }
.mailbox-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mailbox-status-counters { display:flex; gap:7px; flex-wrap:wrap; }.mailbox-status-counters span { padding:5px 8px; border-radius:999px; font-size:10px; font-weight:800; }.mailbox-status-counters .unread { color:#7cecff; background:rgba(94,228,255,.08); }.mailbox-status-counters .pending { color:#ffae68; background:rgba(255,153,65,.08); }.mailbox-status-counters .treated { color:#8296aa; background:rgba(255,255,255,.04); }
.mailbox-layout { display:grid; grid-template-columns:minmax(280px,34%) 1fr; gap:13px; align-items:start; }
.mailbox-list { max-height:680px; overflow:auto; padding-right:4px; }
.mailbox-item { display:grid; grid-template-columns:10px 1fr auto; gap:9px; align-items:center; padding:11px 10px; margin-bottom:6px; border-radius:11px; text-decoration:none; color:#dceaf6; background:rgba(255,255,255,.025); border:1px solid transparent; }
.mailbox-item p { margin:3px 0 0; color:#899db1; font-size:11px; }.mailbox-item small { color:#6e8398; font-size:10px; }
.mailbox-item.unread { background:rgba(94,228,255,.065); border-color:rgba(94,228,255,.14); }.mailbox-item.pending { border-color:rgba(255,159,67,.12); }.mailbox-item.treated { opacity:.62; }.mailbox-item.active { outline:1px solid rgba(94,228,255,.38); }
.mailbox-dot { width:7px;height:7px;border-radius:50%;background:#60758b; }.mailbox-item.unread .mailbox-dot{background:#71eaff;box-shadow:0 0 9px rgba(94,228,255,.7)}.mailbox-item.pending .mailbox-dot{background:#ffae68}.mailbox-item.treated .mailbox-dot{background:#65778a}
.mailbox-reader { min-height:430px; }.mailbox-empty-reader { min-height:330px; display:grid; place-items:center; align-content:center; text-align:center; color:#74899f; }.mailbox-empty-reader span { font-size:32px; }.reader-date { color:#8297ac; font-size:11px; }.reader-message { padding:14px; border-radius:12px; background:rgba(255,255,255,.025); line-height:1.6; margin:12px 0; }.reader-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }.reply-form textarea { width:100%; }.pronote-box { white-space:pre-wrap; padding:13px; border-radius:12px; background:rgba(255,255,255,.03); }
.compose-form { display:grid; gap:13px; }.compose-form fieldset { display:flex; flex-wrap:wrap; gap:12px; border:0; padding:0; }.team-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; max-height:220px; overflow:auto; padding:10px; border-radius:12px; background:rgba(255,255,255,.02); }.team-picker-head { grid-column:1/-1; display:flex; justify-content:space-between; }.text-button { border:0;background:none;color:#76eaff;cursor:pointer; }
.settings-team-list { display:grid; gap:7px; }.settings-team-row { display:flex; justify-content:space-between; align-items:center; padding:11px 12px; border-radius:11px; background:rgba(255,255,255,.022); text-decoration:none; color:#dcebf7; }.settings-team-row small { display:block; color:#8094aa; margin-top:2px; }.settings-team-row>span { color:#77eaff; font-weight:800; font-size:12px; }
.ranking-admin-list { display:grid; gap:6px; }.ranking-admin-row { display:grid; grid-template-columns:70px 1fr 90px; gap:10px; align-items:center; padding:11px 12px; border-radius:10px; background:rgba(255,255,255,.02); }.rank-badge { color:#75eaff; font-weight:900; }.ranking-admin-row>span:last-child{text-align:right;font-weight:800}.student-admin-ranking{display:grid;gap:3px}.student-rank-row{display:grid;grid-template-columns:50px minmax(170px,1.2fr) 1fr 90px;gap:10px;align-items:center;padding:9px 12px;border-radius:8px;background:rgba(255,255,255,.018)}.student-rank-row.new-team{margin-top:8px;border-top:1px solid rgba(94,228,255,.18)}.student-team{display:grid}.student-team small{color:#7e93a8}.student-pos{color:#75eaff;font-weight:900}
.player-edit-list{display:grid;gap:9px}.player-edit-card{padding:13px;border-radius:13px;border:1px solid rgba(94,228,255,.1);background:rgba(255,255,255,.018)}.player-edit-card.removed{opacity:.48}.player-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.player-edit-grid label{display:grid;gap:4px;color:#8ea4ba;font-size:10px}.player-edit-grid input,.player-edit-grid select{width:100%}.add-player-box{margin-top:12px}.danger-panel{border-color:rgba(255,90,90,.18)!important;background:rgba(255,70,70,.025)!important}
.admin-preview-banner { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; padding:10px 13px; border-radius:12px; border:1px solid rgba(255,184,72,.22); background:rgba(255,184,72,.07); color:#ffd08a; }
@media(max-width:900px){.puzzle-admin-cards.current-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.puzzle-admin-cards.three{grid-template-columns:1fr}.date-editor-grid{grid-template-columns:1fr}.mailbox-layout{grid-template-columns:1fr}.team-picker{grid-template-columns:1fr 1fr}.player-edit-grid{grid-template-columns:1fr 1fr}.student-rank-row{grid-template-columns:45px 1fr 1fr}}
@media(max-width:620px){.puzzle-selector-bar{align-items:stretch;flex-direction:column}.puzzle-selector-bar select{min-width:0;width:100%}.scope-switch{align-items:flex-start;flex-direction:column}.puzzle-edit-grid,.puzzle-admin-cards.current-grid{grid-template-columns:1fr}.response-work-row,.hint-work-row{grid-template-columns:1fr}.hint-work-row form{min-width:0}.mailbox-toolbar{align-items:flex-start;flex-direction:column}.team-picker,.player-edit-grid{grid-template-columns:1fr}.student-rank-row{grid-template-columns:38px 1fr}.student-rank-row .student-name,.student-rank-row .student-class{grid-column:2}.admin-preview-banner{align-items:flex-start;flex-direction:column}}

/* ============================================================
   RETOURS 40 — Administration complète
   ============================================================ */
.admin-v40 { margin-top: -10px; }
.admin-v40-topline { margin-bottom: 20px; }
.admin-main-actions {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.admin-main-action {
  position:relative;
  min-height:104px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
  padding:18px;
  border:1px solid rgba(94,228,255,.12);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(10,25,45,.82),rgba(4,12,24,.62));
  color:#dceefa;
  text-decoration:none;
  transition:.2s ease;
}
.admin-main-action:hover { transform:translateY(-2px); border-color:rgba(94,228,255,.34); box-shadow:0 12px 30px rgba(0,0,0,.18),0 0 24px rgba(94,228,255,.05); }
.admin-main-icon { color:#5ee4ff; font-size:20px; line-height:1; }
.admin-main-action strong { font-size:18px; }
.admin-main-action em { position:absolute; top:12px; right:12px; min-width:28px; height:28px; padding:0 8px; display:grid; place-items:center; border-radius:999px; background:rgba(231,193,119,.15); border:1px solid rgba(231,193,119,.36); color:#f4d28b; font:800 11px/1 ui-monospace,monospace; font-style:normal; }
.admin-overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.admin-overview-card { margin:0; }
.admin-overview-card h2 { margin:6px 0 8px; }
.admin-overview-card p { color:#788ba2; font-size:12px; line-height:1.5; }
.admin-overview-numbers { display:flex; gap:10px; margin:16px 0; }
.admin-overview-numbers > div { flex:1; min-width:0; padding:10px; border:1px solid rgba(94,228,255,.08); border-radius:12px; background:rgba(2,10,20,.28); }
.admin-overview-numbers strong { display:block; color:#eaf6ff; font-size:24px; }
.admin-overview-numbers small { color:#71849d; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.inline-state { font-size:10px; color:#70efbb; text-transform:uppercase; letter-spacing:.08em; }
.inline-state.upcoming { color:#e6c77c; }
.status-open { color:#75efba; }
.status-closed { color:#f2a9a9; }
.admin-alert-panel { border-color:rgba(231,193,119,.18); }
.admin-alert-row { display:grid; gap:4px; padding:12px 13px; margin-top:7px; border-radius:12px; border:1px solid rgba(231,193,119,.12); background:rgba(65,44,18,.12); text-decoration:none; }
.admin-alert-row strong { color:#f0d79a; font-size:12px; }
.admin-alert-row span { color:#9b8b71; font-size:11px; }

.admin-subnav { display:flex; gap:6px; flex-wrap:wrap; margin:-4px 0 18px; }
.admin-subnav a { padding:9px 12px; border-radius:11px; border:1px solid rgba(94,228,255,.08); background:rgba(4,12,24,.40); color:#758ba4; font-size:11px; font-weight:750; text-decoration:none; }
.admin-subnav a.active { color:#dbf8ff; border-color:rgba(94,228,255,.30); background:rgba(40,164,215,.10); }

.puzzle-selector-bar { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; padding:14px 16px; border:1px solid rgba(94,228,255,.11); border-radius:17px; background:rgba(5,14,27,.74); }
.puzzle-selector-bar > label { display:grid; gap:6px; min-width:270px; color:#71859d; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.puzzle-selector-bar select { min-height:44px; padding:0 12px; border-radius:12px; border:1px solid rgba(94,228,255,.14); background:#071426; color:#e8f5ff; }
.scope-switch { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.scope-switch > span { color:#687d96; font-size:10px; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.scope-switch label { cursor:pointer; }
.scope-switch input { position:absolute; opacity:0; pointer-events:none; }
.scope-switch b { display:block; padding:9px 12px; border-radius:999px; border:1px solid rgba(94,228,255,.10); color:#71859c; font-size:10px; font-weight:800; }
.scope-switch input:checked + b { border-color:rgba(94,228,255,.32); background:rgba(45,165,216,.10); color:#ccefff; box-shadow:0 0 18px rgba(94,228,255,.05); }
.puzzle-editor { margin-bottom:18px; }
.draft-chip { padding:7px 9px; border-radius:999px; border:1px solid rgba(231,193,119,.18); color:#e1c783; font:800 9px/1 ui-monospace,monospace; letter-spacing:.10em; }
.puzzle-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.puzzle-edit-grid .field textarea { min-height:112px; }
.file-field input[type="file"], .action-card input[type="file"] { width:100%; color:#778ba4; font-size:10px; }
.date-editor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin:16px 0; }
.date-editor-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.date-editor-grid > div { padding:13px; border:1px solid rgba(94,228,255,.08); border-radius:14px; background:rgba(3,11,22,.30); }
.date-editor-grid strong { display:block; color:#d8e9f6; margin-bottom:9px; font-size:12px; }
.date-editor-grid label { display:grid; gap:4px; color:#657a93; font-size:9px; margin-top:7px; text-transform:uppercase; letter-spacing:.06em; }
.date-editor-grid input { min-height:39px; padding:0 9px; border:1px solid rgba(94,228,255,.11); border-radius:10px; background:#071426; color:#ddecf7; }
.puzzle-admin-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:6px 0 14px; padding:0 4px; }
.puzzle-admin-header h2 { margin:6px 0 0; font-size:27px; }
.puzzle-admin-header p { margin:5px 0 0; color:#778aa2; }
.trash-button { display:grid; place-items:center; width:43px; height:43px; border-radius:13px; border:1px solid rgba(239,109,109,.16); background:rgba(84,22,31,.16); color:#eea6a6; cursor:pointer; }
.warning-notice { border-color:rgba(231,193,119,.24)!important; background:rgba(94,66,21,.14)!important; color:#e6d1a1!important; }
.puzzle-admin-cards { display:grid; gap:12px; margin-bottom:16px; }
.puzzle-admin-cards.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.puzzle-admin-cards.current-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.action-card { margin:0; min-height:178px; display:flex; flex-direction:column; align-items:flex-start; }
.action-card h3 { margin:8px 0 10px; font-size:17px; color:#e0effa; }
.action-card > .mini-button, .action-card > form, .action-card > .text-action { margin-top:auto; }
.action-card form { width:100%; display:grid; gap:7px; }
.action-card .missing-file { color:#7b8796; font-size:11px; }
.action-card.accent { border-color:rgba(94,228,255,.18); }
.big-action-number { color:#eaf7ff; font-size:34px; line-height:1; }
.action-card > small { color:#72859c; }
.status-mini-row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.status-mini-row span { padding:5px 7px; border-radius:999px; font-size:9px; }
.status-mini-row .orange { color:#f0cb84; background:rgba(224,153,42,.10); }
.status-mini-row .green { color:#83e9bd; background:rgba(70,204,150,.10); }
.countdown-card strong { color:#eefaff; font-size:26px; line-height:1.15; }
.text-action { color:#6de5ff; text-decoration:none; font-size:11px; font-weight:800; }
.variant-preview { max-height:58px; overflow:auto; color:#7d91a8; font-size:10px; line-height:1.45; }
.worklist-panel, .inline-editor, .summary-admin-panel { margin-top:16px; }
.response-legend { display:flex; gap:6px; flex-wrap:wrap; }
.response-legend span { padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; }
.response-legend .review { color:#eac981; background:rgba(209,143,39,.10); }
.response-legend .incorrect { color:#efaaaa; background:rgba(226,91,91,.09); }
.response-legend .correct { color:#8ee9bf; background:rgba(67,201,145,.09); }
.response-worklist,.hint-worklist,.summary-team-list { display:grid; gap:8px; }
.response-work-row,.hint-work-row { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:12px 13px; border-radius:13px; border:1px solid rgba(94,228,255,.07); background:rgba(4,12,24,.38); }
.response-work-row.review,.hint-work-row.pending { border-color:rgba(231,193,119,.26); background:rgba(98,68,20,.11); }
.response-work-row.incorrect { border-color:rgba(235,103,103,.18); background:rgba(88,26,33,.10); }
.response-work-row.correct { border-color:rgba(91,220,164,.16); background:rgba(30,82,62,.10); }
.hint-work-row.sent { border-color:rgba(173,114,255,.18); background:rgba(77,42,104,.10); }
.response-work-row strong,.hint-work-row strong { color:#deedf8; }
.response-work-row p,.hint-work-row p { margin:4px 0; color:#a9b9c8; }
.response-work-row small,.hint-work-row small { color:#6b7e95; }
.response-work-row form { display:flex; gap:6px; }
.hint-work-row form { min-width:min(430px,55%); display:grid; gap:7px; }
.hint-work-row textarea { width:100%; padding:10px; border-radius:11px; border:1px solid rgba(94,228,255,.12); background:#071426; color:#e9f5ff; }
.sent-hint-text { max-width:50%; color:#b6a9d7; font-size:11px; }
.mini-button.success { border-color:rgba(80,219,158,.18); color:#8aebbd; }
.mini-button.danger { border-color:rgba(235,100,100,.18); color:#efa9a9; }
.summary-kpis { display:flex; gap:8px; }
.summary-kpis span { min-width:110px; padding:8px 10px; border:1px solid rgba(94,228,255,.08); border-radius:11px; text-align:center; }
.summary-kpis strong { display:block; color:#eaf6ff; font-size:20px; }
.summary-kpis small { color:#6c8098; font-size:9px; }
.summary-team-card { padding:14px; border:1px solid rgba(94,228,255,.08); border-radius:14px; background:rgba(3,11,22,.34); }
.summary-team-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.summary-team-head h3 { margin:0; color:#e2eff9; }
.answer-status { padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; }
.answer-status.correct { color:#82e7ba; background:rgba(68,197,140,.10); }
.answer-status.incorrect { color:#efaaaa; background:rgba(219,82,82,.10); }
.answer-status.review { color:#efca82; background:rgba(215,150,39,.10); }
.answer-history,.hint-history { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; }
.answer-history > strong,.hint-history > strong { width:100%; color:#71869f; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.answer-history > span,.hint-history > span { padding:6px 8px; border-radius:9px; background:rgba(94,228,255,.05); color:#9fb1c2; font-size:10px; }
.answer-history .last-correct { color:#8de9bf; background:rgba(55,183,125,.11); }
.answer-history .last-incorrect { color:#eeaaaa; background:rgba(212,80,80,.10); }
.verdict-form { display:flex; gap:7px; margin-top:12px; }

/* Messages admin — boîte mail */
.mailbox-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.mailbox-status-counters { display:flex; gap:6px; flex-wrap:wrap; }
.mailbox-status-counters span { padding:6px 9px; border-radius:999px; font-size:9px; font-weight:800; }
.mailbox-status-counters .unread { color:#7deaff; background:rgba(66,190,234,.10); }
.mailbox-status-counters .pending { color:#efcd85; background:rgba(218,153,44,.10); }
.mailbox-status-counters .treated { color:#88dfb7; background:rgba(69,181,130,.09); }
.mailbox-layout { display:grid; grid-template-columns:minmax(280px,35%) 1fr; gap:12px; min-height:560px; }
.mailbox-list { border:1px solid rgba(94,228,255,.09); border-radius:18px; overflow:auto; max-height:700px; background:rgba(4,12,24,.55); }
.mailbox-item { display:grid; grid-template-columns:8px 1fr auto; gap:9px; align-items:start; padding:12px; border-bottom:1px solid rgba(94,228,255,.055); text-decoration:none; color:inherit; }
.mailbox-item:last-child { border-bottom:0; }
.mailbox-item.active { background:rgba(44,157,204,.10); }
.mailbox-dot { width:7px; height:7px; margin-top:5px; border-radius:50%; background:#52677f; }
.mailbox-item.unread .mailbox-dot { background:#59e3ff; box-shadow:0 0 10px rgba(89,227,255,.55); }
.mailbox-item.pending .mailbox-dot { background:#d5a94f; }
.mailbox-item.treated { opacity:.62; }
.mailbox-item strong { color:#dcebf7; font-size:11px; }
.mailbox-item p { margin:3px 0 0; color:#71849c; font-size:10px; line-height:1.35; }
.mailbox-item small { color:#586d85; font-size:8px; white-space:nowrap; }
.mailbox-reader { margin:0; }
.mailbox-empty-reader { min-height:420px; display:grid; place-items:center; align-content:center; text-align:center; color:#667b94; }
.mailbox-empty-reader > span { color:#4edcf9; font-size:30px; }
.mailbox-empty-reader h2 { margin:10px 0 4px; color:#cddde9; }
.reader-date { color:#63778f; font-size:10px; }
.reader-message { margin:18px 0; padding:16px; border:1px solid rgba(94,228,255,.08); border-radius:14px; background:rgba(3,11,22,.34); color:#c7d6e2; line-height:1.6; }
.reply-form { margin-top:15px; }
.reader-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pronote-box { white-space:pre-wrap; padding:14px; border-radius:13px; border:1px solid rgba(231,193,119,.15); background:rgba(53,38,18,.16); color:#ddcfaa; font:500 11px/1.55 ui-monospace,monospace; }
.compose-panel { max-width:900px; }
.compose-form fieldset { display:grid; gap:8px; padding:0; border:0; margin-bottom:14px; }
.compose-form legend { margin-bottom:8px; color:#6c829c; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.compose-form fieldset label { color:#a9bac9; font-size:11px; }
.team-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; max-height:210px; overflow:auto; padding:10px; margin-bottom:14px; border:1px solid rgba(94,228,255,.08); border-radius:13px; }
.team-picker-head { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; margin-bottom:5px; }
.team-picker label { color:#8ea1b5; font-size:10px; }
.text-button { border:0; background:none; color:#5ee4ff; font-size:10px; cursor:pointer; }

/* Réglages */
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.settings-grid > .admin-panel { margin:0; }
.compact-form { gap:10px; }
.settings-team-panel { margin-top:0; }
.settings-search { justify-content:flex-end; margin-bottom:12px; }
.settings-team-list { display:grid; gap:6px; }
.settings-team-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:11px 12px; border:1px solid rgba(94,228,255,.07); border-radius:12px; text-decoration:none; }
.settings-team-row strong { display:block; color:#dcebf6; font-size:12px; }
.settings-team-row small { color:#687c94; font-size:9px; }
.settings-team-row > span { color:#5ee4ff; font-size:10px; }

/* Classements admin */
.ranking-admin-panel { margin-bottom:14px; }
.ranking-admin-list { display:grid; gap:5px; }
.ranking-admin-row { display:grid; grid-template-columns:64px 1fr 90px; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(94,228,255,.06); border-radius:11px; }
.rank-badge { color:#5ee4ff; font-weight:850; }
.ranking-admin-row strong { color:#dceaf5; }
.ranking-admin-row > span:last-child { text-align:right; color:#9eb0c1; }
.student-admin-ranking { display:grid; gap:2px; }
.student-rank-row { display:grid; grid-template-columns:48px 190px 1fr 100px; gap:10px; align-items:center; padding:9px 10px; border-bottom:1px solid rgba(94,228,255,.045); }
.student-rank-row.new-team { margin-top:7px; border-top:1px solid rgba(94,228,255,.12); padding-top:13px; }
.student-pos { color:#5ee4ff; font-weight:800; }
.student-team { display:grid; }
.student-team strong { color:#d7e8f4; font-size:11px; }
.student-team small { color:#63778f; font-size:8px; }
.student-name { color:#aebdcc; }
.student-class { color:#758aa2; text-align:right; }

/* Fiche équipe admin */
.team-admin-actions { display:flex; gap:7px; flex-wrap:wrap; }
.score-edit-list { display:grid; gap:7px; }
.score-edit-row { display:grid; grid-template-columns:100px 90px 1fr auto; gap:7px; align-items:center; }
.score-edit-row input { min-height:37px; padding:0 9px; border-radius:10px; border:1px solid rgba(94,228,255,.10); background:#071426; color:#e7f3fb; }
.player-edit-list { display:grid; gap:10px; }
.player-edit-card { padding:12px; border:1px solid rgba(94,228,255,.08); border-radius:13px; background:rgba(3,11,22,.28); }
.player-edit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.player-edit-grid label { display:grid; gap:4px; color:#697e97; font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.player-edit-grid input,.player-edit-grid select { min-height:37px; padding:0 8px; border:1px solid rgba(94,228,255,.10); border-radius:9px; background:#071426; color:#e5f1f9; }
.player-edit-actions { display:flex; gap:7px; margin-top:9px; }
.add-player-details { margin-top:12px; }
.add-player-card { margin-top:10px; }
.danger-zone { border-color:rgba(230,96,96,.14); }
.danger-zone p { color:#8c7980; }
.danger-button { background:rgba(122,31,42,.30)!important; border:1px solid rgba(235,100,100,.24)!important; color:#f0b0b0!important; }

/* Espace équipe : réponses et indices V40 */
.team-puzzle-interactions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:13px; }
.team-puzzle-interactions > section { padding:12px; border:1px solid rgba(94,228,255,.075); border-radius:13px; background:rgba(4,12,24,.32); }
.team-puzzle-interactions strong { color:#d9eaf5; }
.team-puzzle-interactions p { color:#778ba3; font-size:10px; line-height:1.45; }
.answer-submit-form { display:flex; gap:7px; }
.answer-submit-form input { flex:1; min-width:0; min-height:38px; padding:0 10px; border:1px solid rgba(94,228,255,.11); border-radius:10px; background:#071426; color:#e8f5ff; }
.received-hint { padding:8px; border-radius:9px; background:rgba(107,70,142,.12); color:#bdacd5!important; }
.admin-preview-banner { display:flex; align-items:center; gap:12px; margin-bottom:12px; padding:10px 12px; border:1px solid rgba(231,193,119,.18); border-radius:13px; background:rgba(72,51,18,.13); }
.admin-preview-banner strong { color:#eed49a; }
.admin-preview-banner span { flex:1; color:#8b806e; font-size:10px; }

@media (max-width: 900px) {
  .admin-main-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-overview-grid,.puzzle-admin-cards.three,.puzzle-admin-cards.current-grid,.settings-grid { grid-template-columns:1fr; }
  .puzzle-selector-bar { align-items:stretch; flex-direction:column; }
  .puzzle-selector-bar > label { min-width:0; }
  .date-editor-grid,.date-editor-grid.two { grid-template-columns:1fr; }
  .mailbox-layout { grid-template-columns:1fr; }
  .mailbox-list { max-height:330px; }
  .team-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .player-edit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .student-rank-row { grid-template-columns:40px 145px 1fr 72px; }
}
@media (max-width:620px) {
  .admin-v40 { margin-top:-4px; }
  .admin-main-actions { gap:8px; }
  .admin-main-action { min-height:86px; padding:14px; }
  .admin-main-action strong { font-size:15px; }
  .admin-overview-grid { grid-template-columns:1fr; }
  .puzzle-edit-grid,.team-puzzle-interactions { grid-template-columns:1fr; }
  .scope-switch { align-items:stretch; flex-direction:column; }
  .scope-switch b { text-align:center; }
  .response-work-row,.hint-work-row { flex-direction:column; }
  .hint-work-row form,.sent-hint-text { min-width:0; max-width:none; width:100%; }
  .team-picker { grid-template-columns:1fr; }
  .mailbox-toolbar { align-items:flex-start; flex-direction:column; }
  .player-edit-grid { grid-template-columns:1fr; }
  .score-edit-row { grid-template-columns:1fr 90px; }
  .score-edit-row input[name="reason"] { grid-column:1/-1; }
  .student-rank-row { grid-template-columns:36px 1fr 68px; }
  .student-team { grid-column:2; }
  .student-name { grid-column:2; }
  .student-class { grid-column:3; grid-row:1 / span 2; }
  .admin-preview-banner { align-items:flex-start; flex-direction:column; }
}
.online-teams-panel { margin-bottom:16px; }
.online-team-list { display:flex; flex-wrap:wrap; gap:7px; }
.online-team-list a { display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid rgba(93,224,174,.12); border-radius:11px; background:rgba(35,100,73,.08); text-decoration:none; }
.online-dot { width:7px; height:7px; border-radius:50%; background:#67e5ac; box-shadow:0 0 10px rgba(103,229,172,.48); }
.online-team-list strong { color:#cce9db; font-size:10px; }
.online-team-list small { color:#688577; font-size:8px; }


/* Retours 41 — tableau de bord admin : statistiques utiles et À traiter */
.admin-overview-numbers-four {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.admin-overview-numbers-four > div {
  text-align:center;
}
.admin-overview-numbers-four small {
  line-height:1.25;
}
.admin-to-process-breakdown {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin:14px 0 16px;
}
.admin-to-process-breakdown span {
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(231,193,119,.10);
  border-radius:11px;
  background:rgba(231,193,119,.035);
  color:#7f8da0;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.admin-to-process-breakdown strong {
  display:block;
  margin-bottom:3px;
  color:#f1d08d;
  font-size:18px;
}
.admin-card-actions { display:flex; gap:7px; flex-wrap:wrap; }
@media (max-width: 1100px) {
  .admin-overview-numbers-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .admin-overview-numbers-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Retours 42 — tableau de bord admin affiné */
.admin-overview-numbers-two {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.admin-overview-numbers-two > div {
  min-width:0;
  min-height:78px;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.admin-overview-numbers-two small {
  max-width:100%;
  font-size:9px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
.admin-puzzle-kpis small { text-transform:uppercase; }
.admin-task-links {
  display:grid;
  gap:8px;
  margin-top:12px;
}
.admin-task-link {
  min-height:56px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(94,228,255,.09);
  border-radius:12px;
  background:rgba(4,12,24,.34);
  text-decoration:none;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.admin-task-link:hover {
  transform:translateY(-1px);
  border-color:rgba(94,228,255,.26);
  background:rgba(37,124,164,.08);
}
.admin-task-link > span { display:grid; gap:3px; min-width:0; }
.admin-task-link strong { color:#dcecf8; font-size:11px; }
.admin-task-link small { color:#6f8298; font-size:9px; line-height:1.3; }
.admin-task-link > b {
  flex:0 0 auto;
  min-width:32px;
  height:32px;
  padding:0 8px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(231,193,119,.10);
  border:1px solid rgba(231,193,119,.22);
  color:#edcf8f;
  font-size:12px;
}
.admin-task-link.ready { border-color:rgba(87,214,156,.12); }
.admin-task-link.ready > b { color:#79e7b4; border-color:rgba(87,214,156,.23); background:rgba(87,214,156,.08); }
.admin-task-link.needs-work > b { color:#f1c97c; }
@media (max-width: 620px) {
  .admin-overview-numbers-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-overview-numbers-two > div { min-height:72px; padding:11px 9px; }
  .admin-overview-numbers-two strong { font-size:22px; }
}


/* Retours 43 — refonte propre de la zone « À traiter » */
.admin-to-process-card {
  position: relative;
  overflow: hidden;
}
.admin-to-process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,228,255,.32), rgba(231,193,119,.24), transparent);
}
.admin-task-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.admin-task-head h2 {
  margin:6px 0 0;
  font-size:22px;
  letter-spacing:-.02em;
}
.admin-task-total {
  min-width:42px;
  height:42px;
  padding:0 10px;
  display:grid;
  place-items:center;
  border-radius:13px;
  border:1px solid rgba(231,193,119,.22);
  background:rgba(231,193,119,.07);
  color:#efd493;
  font-size:18px;
  font-weight:900;
  box-shadow:inset 0 0 20px rgba(231,193,119,.025);
}
.admin-task-total.is-clear {
  border-color:rgba(104,231,178,.19);
  background:rgba(104,231,178,.055);
  color:#82e7bb;
}
.admin-task-priority-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.admin-priority-card {
  min-width:0;
  min-height:92px;
  padding:13px 12px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  gap:8px 10px;
  align-items:center;
  border:1px solid rgba(94,228,255,.09);
  border-radius:15px;
  background:linear-gradient(155deg,rgba(11,28,48,.62),rgba(4,12,24,.48));
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.admin-priority-card:hover {
  transform:translateY(-1px);
  border-color:rgba(94,228,255,.24);
  background:linear-gradient(155deg,rgba(17,41,66,.72),rgba(5,15,28,.54));
}
.admin-priority-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#91eaff;
  border:1px solid rgba(94,228,255,.16);
  background:rgba(94,228,255,.055);
  font-size:15px;
}
.admin-priority-copy {
  min-width:0;
  display:grid;
  gap:3px;
}
.admin-priority-copy strong {
  color:#e4f3fd;
  font-size:12px;
  line-height:1.15;
}
.admin-priority-copy small {
  color:#6f829a;
  font-size:9px;
  line-height:1.28;
}
.admin-priority-count {
  grid-column:1 / -1;
  display:flex;
  align-items:baseline;
  gap:6px;
}
.admin-priority-count b {
  color:#f4d694;
  font-size:25px;
  line-height:1;
}
.admin-priority-count span {
  color:#71859e;
  font-size:9px;
}
.admin-priority-card.is-zero .admin-priority-count b { color:#71859e; }
.admin-priority-card.is-zero { opacity:.78; }
.admin-next-puzzle-banner {
  margin-top:10px;
  min-height:58px;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid rgba(231,193,119,.14);
  border-radius:15px;
  background:linear-gradient(90deg,rgba(231,193,119,.055),rgba(5,14,27,.24));
  text-decoration:none;
}
.admin-next-puzzle-banner:hover { border-color:rgba(231,193,119,.28); }
.admin-next-puzzle-banner > span { display:grid; gap:3px; }
.admin-next-puzzle-banner strong { color:#ead9ad; font-size:11px; }
.admin-next-puzzle-banner small { color:#7d8491; font-size:9px; }
.admin-next-puzzle-state {
  flex:0 0 auto;
  min-width:33px;
  height:33px;
  padding:0 8px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#e9c878;
  border:1px solid rgba(231,193,119,.19);
  background:rgba(231,193,119,.065);
  font-weight:900;
}
.admin-next-puzzle-banner.ready {
  border-color:rgba(104,231,178,.12);
  background:linear-gradient(90deg,rgba(104,231,178,.04),rgba(5,14,27,.2));
}
.admin-next-puzzle-banner.ready strong { color:#a9dbc5; }
.admin-next-puzzle-banner.ready .admin-next-puzzle-state {
  color:#7ce4b6;
  border-color:rgba(104,231,178,.18);
  background:rgba(104,231,178,.055);
}
@media (max-width: 1060px) {
  .admin-task-priority-grid { grid-template-columns:1fr; }
  .admin-priority-card {
    min-height:62px;
    grid-template-columns:34px minmax(0,1fr) auto;
    grid-template-rows:1fr;
  }
  .admin-priority-count { grid-column:auto; justify-content:flex-end; }
}
@media (max-width: 620px) {
  .admin-task-head { margin-bottom:12px; }
  .admin-task-head h2 { font-size:20px; }
  .admin-task-total { min-width:38px; height:38px; border-radius:12px; font-size:16px; }
  .admin-priority-card { padding:11px; }
  .admin-priority-count span { display:none; }
}


/* Retours 44 — finitions tableau admin, inscriptions fermées et gestion des éditions */
.admin-task-priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-priority-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  overflow: hidden;
}
.admin-priority-icon { display: none !important; }
.admin-priority-count {
  order: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
}
.admin-priority-count b { font-size: 28px; }
.admin-priority-count span { font-size: 8px; line-height: 1.15; white-space: normal; }
.admin-priority-copy {
  order: 2;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.admin-priority-copy strong {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.admin-priority-copy small {
  max-width: 100%;
  font-size: 8px;
  line-height: 1.2;
  white-space: normal;
}
.admin-overview-numbers-two > div { min-width: 132px; }
.admin-overview-numbers-two small { overflow-wrap: normal; word-break: normal; }

.registration-closed-shell {
  width: min(760px, calc(100% - 32px));
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.registration-closed-card {
  width: min(640px, 100%);
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid rgba(94,228,255,.13);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(9,24,43,.68), rgba(4,11,22,.72));
  box-shadow: 0 24px 80px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.02);
  text-align: center;
}
.registration-closed-card .eyebrow { justify-content: center; }
.registration-closed-card h1 { margin: 18px 0 10px; color: #edf8ff; font-size: clamp(30px,5vw,48px); line-height:1.05; }
.registration-opening-date { margin: 0; color: var(--gold); font-size: clamp(20px,3.5vw,30px); font-weight: 800; }

.puzzle-scope-under-title {
  margin: 10px 0 18px;
  width: fit-content;
  max-width: 100%;
}
.puzzle-editor .puzzle-scope-under-title { margin-top: -2px; margin-bottom: 22px; }

.edition-manager-panel { margin-bottom: 16px; }
.edition-manager-panel .admin-panel-head p { max-width: 720px; margin: 6px 0 0; color: #74879d; font-size: 10px; line-height: 1.5; }
.edition-create-grid {
  display:grid;
  grid-template-columns: minmax(150px,.8fr) repeat(3,minmax(180px,1fr));
  gap:12px;
  align-items:end;
}
.edition-date-block {
  display:grid;
  grid-template-columns:1fr 110px;
  gap:8px;
  padding:11px;
  border:1px solid rgba(94,228,255,.08);
  border-radius:13px;
  background:rgba(3,12,23,.28);
}
.edition-date-block strong { grid-column:1/-1; color:#a8bfd2; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.edition-date-block label { display:grid; gap:4px; color:#6f8298; font-size:8px; }
.edition-manager-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; }
.edition-manager-actions small { color:#6f8298; font-size:9px; }
.edition-archive-list { display:grid; gap:7px; margin-top:18px; padding-top:14px; border-top:1px solid rgba(94,228,255,.08); }
.edition-archive-list > span { color:#72859c; font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.edition-archive-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 11px; border-radius:10px; background:rgba(255,255,255,.018); }
.edition-archive-list strong { color:#cfe2ef; font-size:10px; }
.edition-archive-list small { color:#667a91; font-size:8px; }

@media (max-width: 1180px) {
  .edition-create-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .admin-task-priority-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap:6px; }
  .admin-priority-card { min-height:100px; padding:10px 6px; }
  .admin-priority-count b { font-size:24px; }
  .admin-priority-copy strong { font-size:9px; }
  .admin-priority-copy small { font-size:7px; }
  .admin-overview-numbers-two > div { min-width:0; }
  .edition-create-grid { grid-template-columns:1fr; }
  .edition-date-block { grid-template-columns:1fr 100px; }
  .edition-archive-list > div { align-items:flex-start; flex-direction:column; }
}
\n\n/* Retours 46 — préparation d’énigme plus compacte et dates plus lisibles */\n.puzzle-prepare-layout {\n  display:grid;\n  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);\n  gap:22px;\n  align-items:start;\n  margin:8px 0 18px;\n}\n.puzzle-prepare-left { display:grid; gap:11px; }\n.compact-file-field input[type="file"] {\n  min-height:42px;\n  padding:8px 10px;\n  border:1px solid rgba(94,228,255,.10);\n  border-radius:11px;\n  background:rgba(3,12,23,.34);\n}\n.compact-points-field { max-width:118px; }\n.compact-points-field input { text-align:center; font-weight:800; }\n.puzzle-answer-pair {\n  display:grid;\n  grid-template-columns:minmax(150px,.78fr) minmax(220px,1.22fr);\n  gap:12px;\n  align-items:start;\n}\n.compact-answer-field input { min-height:43px; }\n.accepted-answer-field textarea { min-height:88px !important; resize:vertical; }\n.puzzle-schedule-right { display:grid; gap:12px; }\n.schedule-editor-card {\n  padding:15px;\n  border:1px solid rgba(94,228,255,.11);\n  border-radius:15px;\n  background:rgba(3,11,22,.38);\n}\n.schedule-editor-card > strong {\n  display:block;\n  margin-bottom:10px;\n  color:#dceef9;\n  font-size:14px;\n}\n.schedule-inputs {\n  display:grid;\n  grid-template-columns:minmax(0,1fr) 128px;\n  gap:10px;\n}\n.schedule-inputs label {\n  display:grid;\n  gap:6px;\n  color:#748aa2;\n  font-size:9px;\n  font-weight:800;\n  text-transform:uppercase;\n  letter-spacing:.06em;\n}\n.schedule-inputs input {\n  width:100%;\n  min-height:48px;\n  padding:0 12px;\n  border:1px solid rgba(94,228,255,.15);\n  border-radius:11px;\n  background:#071426;\n  color:#e8f5ff;\n  font-size:14px;\n}\n/* Réglages : les dates doivent rester très lisibles. */\n#inscriptions .date-editor-grid input,\n.edition-manager-panel .edition-date-block input {\n  min-height:48px;\n  padding:0 12px;\n  font-size:14px;\n}\n#inscriptions .date-editor-grid strong,\n.edition-manager-panel .edition-date-block strong { font-size:11px; }\n#inscriptions .date-editor-grid label,\n.edition-manager-panel .edition-date-block label { font-size:9px; }\n.edition-manager-panel { margin-top:18px; margin-bottom:0; }\n\n@media (max-width: 980px) {\n  .puzzle-prepare-layout { grid-template-columns:1fr; }\n}\n@media (max-width: 620px) {\n  .puzzle-answer-pair, .schedule-inputs { grid-template-columns:1fr; }\n  .compact-points-field { max-width:100px; }\n  .schedule-editor-card { padding:12px; }\n}\n
/* Retours 47 — réglages plus lisibles et fiche équipe simplifiée */
.settings-calendar-panel { margin-bottom: 14px; }
.settings-calendar-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:8px 0 16px;
}
.settings-date-card {
  padding:16px;
  border:1px solid rgba(94,228,255,.10);
  border-radius:15px;
  background:rgba(3,11,22,.34);
}
.settings-date-card > strong { display:block; margin-bottom:12px; color:#ddecf7; font-size:13px; }
.settings-date-card > div { display:grid; grid-template-columns:minmax(0,1fr) 130px; gap:10px; }
.settings-date-card label { display:grid; gap:6px; color:#70859c; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.settings-date-card input,
.edition-create-grid-v47 input {
  width:100%;
  min-height:50px;
  padding:0 12px;
  border:1px solid rgba(94,228,255,.14);
  border-radius:11px;
  background:#071426;
  color:#e7f5ff;
  font-size:14px;
}
.settings-secondary-grid {
  display:grid;
  grid-template-columns:minmax(230px,.72fr) minmax(280px,1fr) minmax(280px,1fr);
  gap:14px;
  margin-bottom:14px;
}
.settings-secondary-grid > .admin-panel { margin:0; }
.settings-compact-fields { display:grid; grid-template-columns:1fr 1.35fr; gap:10px; }
.tiny-number-input { width:88px !important; max-width:88px; text-align:center; font-weight:800; }
.settings-current-action { margin-bottom:20px; }
.settings-empty-current { margin:0 0 20px; color:#71859b; font-size:11px; }
.settings-separated-form { padding-top:18px; border-top:1px solid rgba(94,228,255,.08); }
.settings-current-value { display:grid; gap:5px; margin-bottom:18px; padding:13px 14px; border-radius:12px; background:rgba(94,228,255,.035); border:1px solid rgba(94,228,255,.09); }
.settings-current-value small { color:#71859b; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.settings-current-value strong { color:#dfeefa; font-size:13px; overflow-wrap:anywhere; }
.edition-manager-panel { margin-top:24px !important; }
.edition-create-grid-v47 { grid-template-columns:minmax(180px,.7fr) repeat(3,minmax(230px,1fr)); }
.edition-create-grid-v47 .edition-name-field,
.edition-create-grid-v47 .edition-secret-field { align-self:stretch; }
.edition-secret-field { grid-column:1 / -1; max-width:520px; }
.edition-archive-list > div { gap:14px; }
.team-account-panel { margin-bottom:14px; }
.team-account-form { display:grid; gap:14px; }
.team-account-grid { display:grid; grid-template-columns:1fr 1fr 1.2fr 150px; gap:12px; align-items:start; }
.team-points-field input { text-align:center; font-weight:900; font-size:18px; }
.team-login-info { margin-top:18px; }
.player-edit-card [hidden] { display:none !important; }
.archive-back-row { margin:-6px 0 14px; }
.archive-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.archive-stats > div { padding:14px 16px; border:1px solid rgba(94,228,255,.09); border-radius:14px; background:rgba(5,13,25,.65); }
.archive-stats small { display:block; color:#6f849c; font-size:8px; letter-spacing:.1em; }
.archive-stats strong { display:block; margin-top:5px; color:#edf8ff; font-size:24px; }
.archive-puzzle-list { display:grid; gap:8px; }
.archive-puzzle-list > div { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 13px; border-radius:12px; background:rgba(255,255,255,.02); }
.archive-puzzle-list > div > span { display:flex; gap:7px; flex-wrap:wrap; }
@media (max-width: 1100px) {
  .settings-secondary-grid { grid-template-columns:1fr 1fr; }
  .settings-defaults-panel { grid-column:1 / -1; }
  .team-account-grid { grid-template-columns:1fr 1fr; }
  .edition-create-grid-v47 { grid-template-columns:1fr 1fr; }
  .edition-secret-field { grid-column:1 / -1; }
}
@media (max-width: 820px) {
  .settings-calendar-grid { grid-template-columns:1fr; }
  .settings-secondary-grid { grid-template-columns:1fr; }
  .settings-defaults-panel { grid-column:auto; }
  .settings-date-card > div { grid-template-columns:1fr 120px; }
  .team-account-grid { grid-template-columns:1fr; }
  .edition-create-grid-v47 { grid-template-columns:1fr; }
  .edition-secret-field { grid-column:auto; max-width:none; }
  .archive-stats { grid-template-columns:1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .settings-date-card > div { grid-template-columns:1fr; }
  .settings-compact-fields { grid-template-columns:1fr; }
  .archive-stats { grid-template-columns:1fr; }
  .archive-puzzle-list > div { align-items:flex-start; flex-direction:column; }
}

/* Retours 48 — préparation d’énigme compacte, claire et sur une seule colonne */
.puzzle-editor-v48 { display:grid; gap:16px; }
.puzzle-editor-v48 .admin-panel-head { margin-bottom:0; }
.puzzle-core-row {
  display:grid;
  grid-template-columns:minmax(260px,1.45fr) 92px minmax(220px,1fr);
  gap:12px;
  align-items:end;
}
.puzzle-core-row .compact-points-field { max-width:none; }
.puzzle-core-row .compact-points-field input {
  width:92px;
  min-height:46px;
  text-align:center;
  font-weight:900;
}
.puzzle-core-row .compact-answer-field input,
.puzzle-core-row .puzzle-title-field input { min-height:46px; }
.accepted-answers-block {
  display:grid;
  gap:8px;
  padding:12px 13px;
  border:1px solid rgba(94,228,255,.09);
  border-radius:13px;
  background:rgba(3,11,22,.24);
}
.field-caption {
  color:#7890a8;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.065em;
}
.accepted-answers-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.accepted-variant-input {
  flex:1 1 118px;
  min-width:105px;
  max-width:180px;
  height:42px;
  padding:0 10px;
  border:1px solid rgba(94,228,255,.13);
  border-radius:10px;
  background:#071426;
  color:#e9f6ff;
}
.add-variant-button {
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:1px solid rgba(94,228,255,.30);
  border-radius:10px;
  background:rgba(94,228,255,.08);
  color:#7cecff;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
.add-variant-button:hover { background:rgba(94,228,255,.14); }
.puzzle-pdf-stack { display:grid; gap:10px; }
.puzzle-pdf-stack .compact-file-field { margin:0; }
.puzzle-date-grid { margin:2px 0 0; }
.puzzle-save-feedback {
  margin:8px 0 12px;
  padding:11px 14px;
  max-width:520px;
}

@media (max-width:900px) {
  .puzzle-core-row { grid-template-columns:minmax(0,1fr) 90px; }
  .puzzle-core-row .compact-answer-field { grid-column:1 / -1; }
}
@media (max-width:620px) {
  .puzzle-core-row { grid-template-columns:1fr; }
  .puzzle-core-row .compact-answer-field { grid-column:auto; }
  .puzzle-core-row .compact-points-field input { width:100%; max-width:100px; }
  .accepted-variant-input { min-width:calc(50% - 4px); max-width:none; }
}


/* Retours 49 — états équipe + suppression groupée bêta */
.puzzle-card.current-puzzle {
  border-color: rgba(174,114,255,.34) !important;
  background: linear-gradient(145deg,rgba(34,17,57,.26),rgba(5,13,27,.86));
  box-shadow: 0 18px 56px rgba(0,0,0,.16), inset 0 0 42px rgba(174,114,255,.035);
}
.puzzle-state.live {
  background: rgba(174,114,255,.11) !important;
  color: #c79cff !important;
  border-color: rgba(174,114,255,.28) !important;
}
.puzzle-card.past-puzzle.correct { border-color:rgba(92,238,170,.28); background:rgba(20,71,53,.10); }
.puzzle-card.past-puzzle.incorrect { border-color:rgba(255,112,137,.28); background:rgba(87,29,43,.10); }
.puzzle-card.past-puzzle.no-answer { border-color:rgba(160,175,194,.14); background:rgba(90,101,116,.045); }
.pending-hint-message { color:#cab8df !important; }
.bulk-delete-teams { display:flex; justify-content:flex-end; margin-top:16px; padding-top:14px; border-top:1px solid rgba(239,93,106,.10); }


/* Retours 50 — classement admin côte à côte + groupes d'élèves renforcés */
.ranking-dual-grid {
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:16px;
  align-items:start;
}
.ranking-dual-grid > .ranking-admin-panel { margin-bottom:0; min-width:0; }
.ranking-dual-grid .ranking-admin-list,
.ranking-dual-grid .student-team-groups {
  max-height:650px;
  overflow:auto;
  padding-right:4px;
}
.student-team-groups { display:grid; gap:12px; }
.student-team-group {
  border:1px solid rgba(94,228,255,.24);
  border-radius:14px;
  background:rgba(8,24,42,.48);
  box-shadow:inset 0 0 0 1px rgba(94,228,255,.035),0 8px 24px rgba(0,0,0,.12);
  overflow:hidden;
}
.student-team-group-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-bottom:1px solid rgba(94,228,255,.18);
  background:rgba(94,228,255,.055);
}
.student-team-group-head > div { display:grid; gap:2px; }
.student-team-group-head strong { color:#75eaff; font-size:15px; }
.student-team-group-head small,
.student-team-group-head > span { color:#90a6b8; font-size:11px; }
.student-team-group .student-admin-ranking { padding:4px 6px 7px; }
.student-team-group .student-rank-row {
  grid-template-columns:42px 1fr 72px;
  border-bottom:1px solid rgba(94,228,255,.055);
  background:transparent;
}
.student-team-group .student-rank-row:last-child { border-bottom:0; }
.student-team-group .student-name { color:#dceaf5; }
.student-team-group .student-class { text-align:right; color:#9eb0c1; }
@media(max-width:1050px){.ranking-dual-grid{grid-template-columns:1fr}.ranking-dual-grid .ranking-admin-list,.ranking-dual-grid .student-team-groups{max-height:none;overflow:visible;padding-right:0}}


/* RETOURS 51 — Équipes devient une rubrique d’administration autonome */
@media (min-width: 901px) {
  .admin-main-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* Retours 52 — réglages alignés, règlement web et impression PDF */
.settings-align-panel {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.settings-align-panel .settings-bottom-form {
  margin-top:auto;
}
.settings-align-panel .settings-bottom-form .field {
  margin:0;
}
.settings-equal-input {
  width:100%;
  min-height:50px !important;
  box-sizing:border-box;
}
.settings-rules-panel input[type="file"].settings-equal-input {
  padding:8px 10px;
  display:flex;
  align-items:center;
}
.settings-current-value-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.settings-current-value-actions > div:first-child { display:grid; gap:5px; min-width:0; }
.settings-current-buttons { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.settings-rules-panel .settings-bottom-form,
.settings-email-panel .settings-bottom-form {
  display:grid;
  grid-template-rows:auto auto;
  gap:10px;
}
.settings-rules-panel .settings-bottom-form > .mini-button,
.settings-email-panel .settings-bottom-form > .mini-button {
  align-self:end;
  justify-self:start;
}
.rules-line a { color:var(--cyan); text-decoration:none; font-weight:800; }
.rules-line a:hover { text-decoration:underline; }

.rules-admin-editor { max-width:1180px; }
.rules-editor-head { align-items:flex-start; gap:18px; }
.rules-editor-head p { margin:6px 0 0; color:#7388a0; font-size:11px; line-height:1.6; }
.rules-editor-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.rules-editor-form textarea {
  min-height:520px;
  resize:vertical;
  line-height:1.65;
  font-size:14px;
}
.rules-editor-bottom { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.rules-editor-bottom span { color:#70849b; font-size:10px; line-height:1.5; }

.rules-page { width:min(1040px,calc(100% - 36px)); margin:48px auto 70px; }
.rules-page-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.rules-page-toolbar h1 { margin:7px 0 5px; font-size:clamp(34px,5vw,58px); }
.rules-page-toolbar p { margin:0; color:#778ca4; }
.rules-page-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.rules-printable {
  padding:38px 42px;
  border:1px solid rgba(94,228,255,.12);
  border-radius:22px;
  background:rgba(4,13,25,.76);
  box-shadow:0 22px 65px rgba(0,0,0,.18);
}
.rules-print-header { padding-bottom:22px; margin-bottom:28px; border-bottom:1px solid rgba(94,228,255,.11); }
.rules-print-header p { margin:0 0 8px; color:#6fe7ff; font-size:10px; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.rules-print-header h2 { margin:0 0 6px; color:#edf8ff; font-size:30px; }
.rules-print-header span { color:#7f93aa; font-size:11px; }
.rules-web-content { color:#d7e5f2; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.rules-empty-state { padding:34px 20px; text-align:center; color:#91a4b8; }
.rules-empty-state strong { color:#dcebf7; }
.rules-empty-state p { margin:7px 0 0; }

@media (max-width:820px) {
  .settings-current-value-actions { align-items:flex-start; flex-direction:column; }
  .settings-current-buttons { justify-content:flex-start; }
  .rules-page-toolbar { align-items:flex-start; flex-direction:column; }
  .rules-page-actions { justify-content:flex-start; }
  .rules-printable { padding:26px 22px; }
  .rules-editor-head { flex-direction:column; }
  .rules-editor-actions { justify-content:flex-start; }
}

@page {
  size:A4;
  margin:12mm;
}

@media print {
  html, body { background:#fff !important; color:#111 !important; }
  body::before, body::after, .ambient, .grid-layer, .site-header, .site-footer, .no-print { display:none !important; }
  .site-main { padding:0 !important; }
  .rules-page { width:auto !important; margin:0 !important; }
  .rules-printable {
    border:1px solid #d8e2e8 !important;
    border-radius:5mm !important;
    box-shadow:none !important;
    background:#fff !important;
    padding:11mm 10mm !important;
    position:relative !important;
    overflow:visible !important;
  }
  .rules-printable::before {
    content:'';
    position:absolute;
    inset:0;
    border:0.8mm solid #edf4f7;
    border-radius:4mm;
    pointer-events:none;
  }
  .rules-print-header {
    border-bottom:1px solid #b8c8d2 !important;
    margin-bottom:8mm !important;
    padding:0 0 5mm 0 !important;
    position:relative !important;
  }
  .rules-print-header::after {
    content:'';
    position:absolute;
    left:0;
    bottom:-1px;
    width:36mm;
    height:1.2mm;
    background:#0b5f7a;
  }
  .rules-print-header p {
    color:#0b5f7a !important;
    font-size:8.8pt !important;
    letter-spacing:.18em !important;
    margin:0 0 3mm !important;
  }
  .rules-print-header h2 {
    color:#111 !important;
    font-size:20pt !important;
    margin:0 0 1.5mm !important;
    letter-spacing:.01em;
  }
  .rules-print-header span {
    color:#4c6270 !important;
    font-size:10pt !important;
  }
  .rules-web-content { color:#111 !important; font-size:11pt !important; line-height:1.6 !important; }
}

/* Retours 53 — règlement composé par articles */
.rules-builder-panel { overflow:visible; }
.rules-builder { display:grid; gap:14px; }
.rules-builder-card {
  border:1px solid rgba(94,228,255,.16);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(9,25,44,.78),rgba(4,13,25,.88));
  box-shadow:inset 0 0 0 1px rgba(94,228,255,.025),0 10px 28px rgba(0,0,0,.12);
  overflow:hidden;
}
.rules-builder-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(94,228,255,.11);
  background:rgba(94,228,255,.035);
}
.rules-builder-card-label { display:flex; align-items:center; gap:8px; }
.rules-builder-card-label span { color:#70879c; font-size:9px; font-weight:900; letter-spacing:.13em; }
.rules-builder-card-label strong { color:#75eaff; font-size:14px; }
.rules-builder-card-actions { display:flex; gap:6px; align-items:center; }
.rules-order-button,.rules-remove-button,.rules-bold-button {
  min-width:32px;
  height:32px;
  border:1px solid rgba(94,228,255,.14);
  border-radius:9px;
  background:rgba(6,19,34,.88);
  color:#9cb0c3;
  cursor:pointer;
  font:inherit;
}
.rules-order-button:hover,.rules-bold-button:hover { color:#75eaff; border-color:rgba(94,228,255,.34); background:rgba(94,228,255,.07); }
.rules-order-button:disabled { opacity:.25; cursor:default; }
.rules-remove-button { width:auto; padding:0 10px; color:#d28b98; border-color:rgba(239,93,106,.13); font-size:10px; }
.rules-remove-button:hover { color:#ff9caf; border-color:rgba(239,93,106,.32); background:rgba(239,93,106,.06); }
.rules-builder-fields {
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:12px;
  padding:13px;
  align-items:start;
}
.rules-title-field { margin:0 !important; }
.rules-title-field input { min-height:42px; }
.rules-content-field { min-width:0; }
.rules-content-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.rules-content-toolbar > span { color:#91a6b9; font-size:10px; font-weight:800; }
.rules-bold-button { color:#75eaff; font-family:Georgia,serif; font-size:15px; }
.rules-content-field textarea {
  width:100%;
  min-height:118px !important;
  resize:vertical;
  line-height:1.6;
  font-size:13px;
}
.rules-add-row { display:flex; justify-content:center; padding:2px 0 4px; }
.rules-add-button { border-style:dashed; }
.rules-add-button span { color:#75eaff; font-size:16px; line-height:1; }
.rules-editor-form > .rules-editor-bottom { padding-top:2px; }

.rules-article-grid { display:grid; gap:14px; }
.rules-article-card {
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:16px;
  padding:18px 20px;
  border:1px solid rgba(94,228,255,.16);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(8,25,44,.70),rgba(5,14,27,.86));
  box-shadow:inset 0 0 30px rgba(94,228,255,.018),0 8px 26px rgba(0,0,0,.10);
  break-inside:avoid;
}
.rules-article-number {
  color:#79eaff;
  font-size:20px;
  font-weight:950;
  letter-spacing:.02em;
  line-height:1.35;
  text-align:center;
  padding-top:1px;
  text-shadow:0 0 18px rgba(94,228,255,.22);
}
.rules-article-copy { color:#d7e5f2; font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.rules-article-copy strong { color:#6fe7ff; font-weight:900; text-shadow:0 0 14px rgba(94,228,255,.12); }

@media (max-width:700px) {
  .rules-builder-fields { grid-template-columns:1fr; }
  .rules-title-field { max-width:160px; }
  .rules-article-card { grid-template-columns:1fr; gap:8px; padding:16px; }
  .rules-article-number { text-align:left; }
}

@media print {
  .rules-article-grid { gap:5mm !important; }
  .rules-article-card {
    display:grid !important;
    grid-template-columns:17mm 1fr !important;
    gap:4mm !important;
    padding:4.2mm 5mm !important;
    border:1px solid #c9d6de !important;
    border-left:2.2mm solid #0b5f7a !important;
    border-radius:3.2mm !important;
    background:#fbfdfe !important;
    box-shadow:none !important;
    break-inside:avoid !important;
  }
  .rules-article-number {
    color:#0b5f7a !important;
    text-shadow:none !important;
    font-size:13pt !important;
    font-weight:900 !important;
    line-height:1.25 !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    min-height:100% !important;
  }
  .rules-article-copy {
    color:#111 !important;
    font-size:10.8pt !important;
    line-height:1.6 !important;
  }
  .rules-article-copy p:first-child { margin-top:0 !important; }
  .rules-article-copy strong {
    color:#0b5f7a !important;
    text-shadow:none !important;
    font-weight:800 !important;
  }
}


/* Retours 55 — éditeur visuel du règlement + impression claire futuriste */
.rules-rich-editor {
  width:100%;
  min-height:118px;
  padding:12px 13px;
  border:1px solid rgba(94,228,255,.14);
  border-radius:11px;
  background:rgba(3,13,25,.78);
  color:#d7e5f2;
  font-size:13px;
  line-height:1.6;
  outline:none;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.rules-rich-editor:focus { border-color:rgba(94,228,255,.44); box-shadow:0 0 0 3px rgba(94,228,255,.06); }
.rules-rich-editor:empty::before { content:attr(data-placeholder); color:#64798e; pointer-events:none; }
.rules-rich-editor strong { color:#6fe7ff; font-weight:900; }
.team-rules-access { display:flex; justify-content:flex-end; margin:8px 0 14px; }
.home-rules-button { padding-inline:18px; }

@media print {
  @page { size:A4; margin:10mm; }
  .rules-print-header { display:none !important; }
  .rules-printable {
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    padding:0 !important;
  }
  .rules-printable::before { display:none !important; }
  .rules-article-grid { gap:4.5mm !important; }
  .rules-article-card {
    position:relative !important;
    display:grid !important;
    grid-template-columns:18mm minmax(0,1fr) !important;
    gap:4.5mm !important;
    padding:4.5mm 5.5mm !important;
    border:1px solid #83b8c8 !important;
    border-left:2.5mm solid #0b5f7a !important;
    border-radius:2.5mm 7mm 2.5mm 7mm !important;
    background:linear-gradient(135deg,#f3fbfd 0%,#ffffff 58%,#f7fbfc 100%) !important;
    box-shadow:0 1.5mm 4mm rgba(17,63,82,.08) !important;
    overflow:hidden !important;
    break-inside:avoid !important;
  }
  .rules-article-card::before {
    content:'' !important;
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    width:18mm !important;
    height:7mm !important;
    border-top:1.2mm solid #66b8d1 !important;
    border-right:1.2mm solid #66b8d1 !important;
    border-radius:0 6mm 0 0 !important;
    opacity:.85 !important;
  }
  .rules-article-card::after {
    content:'' !important;
    position:absolute !important;
    bottom:0 !important;
    left:0 !important;
    width:9mm !important;
    height:5mm !important;
    border-bottom:.7mm solid #9ad7e8 !important;
    opacity:.9 !important;
  }
  .rules-article-number {
    color:#0b5f7a !important;
    text-shadow:none !important;
    font-size:13pt !important;
    font-weight:950 !important;
    line-height:1.2 !important;
    align-self:start !important;
    justify-self:center !important;
    min-width:12mm !important;
    padding:1.5mm 1.2mm !important;
    border:1px solid #0b5f7a !important;
    border-radius:1.5mm 4mm 1.5mm 4mm !important;
    background:#fff !important;
  }
  .rules-article-copy { color:#17222a !important; font-size:10.6pt !important; line-height:1.58 !important; }
  .rules-article-copy strong { color:#08779b !important; text-shadow:none !important; font-weight:900 !important; }
}

/* Retours 56 — assistant IA administrateur */
.ai-text-editor { display:grid; gap:8px; min-width:0; }
.ai-text-editor > .field { margin:0; }
.ai-editor-actions { display:flex; justify-content:flex-start; align-items:center; gap:8px; }
.ai-correct-button {
  border-color:rgba(111,231,255,.25);
  background:linear-gradient(135deg,rgba(79,90,255,.10),rgba(32,214,255,.08));
  color:#91efff;
}
.ai-correct-button:hover { border-color:rgba(111,231,255,.48); box-shadow:0 0 20px rgba(32,214,255,.08); }
.ai-correct-button:disabled { opacity:.6; cursor:wait; }
.ai-suggestion {
  margin-top:2px;
  padding:13px 14px;
  border:1px solid rgba(111,231,255,.24);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(7,24,42,.96),rgba(5,15,29,.96));
  box-shadow:inset 0 0 26px rgba(32,214,255,.025);
}
.ai-suggestion[hidden] { display:none !important; }
.ai-suggestion.is-error { border-color:rgba(239,93,106,.32); }
.ai-suggestion-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:9px; }
.ai-suggestion-head strong { color:#74eaff; font-size:12px; }
.ai-suggestion-head span { color:#74899e; font-size:9px; }
.ai-suggestion-text { color:#e3edf6; white-space:pre-wrap; line-height:1.6; font-size:13px; }
.ai-suggestion.is-error .ai-suggestion-text { color:#ffb3be; }
.ai-suggestion-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:11px; }

/* Retours 56 — aperçu écran invisible, titre dédié au vrai rendu PDF */
.print-only { display:none; }

/* Rendu PDF : fond de feuille blanc + cartes sombres futuristes, proche de la page web. */
@media print {
  @page { size:A4 portrait; margin:0; }
  html, body {
    width:210mm !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
  body::before, body::after, .ambient, .grid-layer, .site-header, .site-footer, .no-print { display:none !important; }
  .site-main { padding:0 !important; margin:0 !important; }
  .rules-page { width:210mm !important; margin:0 !important; padding:0 !important; }
  .rules-printable {
    box-sizing:border-box !important;
    width:210mm !important;
    min-height:297mm !important;
    margin:0 !important;
    padding:10mm 11mm 11mm !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  .rules-printable::before, .rules-printable::after { display:none !important; }

  .rules-pdf-title {
    display:block !important;
    position:relative !important;
    margin:0 0 7mm !important;
    padding:1mm 26mm 5mm !important;
    text-align:center !important;
  }
  .rules-pdf-title::before,
  .rules-pdf-title::after {
    content:'' !important;
    position:absolute !important;
    top:9mm !important;
    width:23mm !important;
    height:1.1mm !important;
    background:linear-gradient(90deg,#0b5f7a,#22d8ff) !important;
  }
  .rules-pdf-title::before { left:0 !important; clip-path:polygon(0 35%,75% 35%,84% 100%,100% 100%,88% 0,0 0) !important; }
  .rules-pdf-title::after { right:0 !important; transform:scaleX(-1) !important; clip-path:polygon(0 35%,75% 35%,84% 100%,100% 100%,88% 0,0 0) !important; }
  .rules-pdf-title h2 {
    margin:0 !important;
    color:#061b32 !important;
    font-size:25pt !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
    font-weight:950 !important;
    text-transform:uppercase !important;
    text-shadow:.4mm .4mm 0 #9cecff !important;
  }
  .rules-pdf-title p {
    margin:2mm 0 0 !important;
    color:#10213c !important;
    font-size:11.5pt !important;
    font-weight:800 !important;
    letter-spacing:.025em !important;
  }

  .rules-article-grid { display:grid !important; gap:3.5mm !important; }
  .rules-article-card {
    position:relative !important;
    display:grid !important;
    grid-template-columns:22mm minmax(0,1fr) !important;
    align-items:center !important;
    gap:4.5mm !important;
    min-height:24mm !important;
    padding:4.2mm 6mm 4.2mm 4mm !important;
    border:1.2px solid #22d8ff !important;
    border-radius:2.5mm 7mm 2.5mm 7mm !important;
    background:linear-gradient(135deg,#071c32 0%,#06172a 56%,#03111f 100%) !important;
    box-shadow:inset 0 0 0 .6px #0c6c8c, inset 0 0 9mm rgba(20,181,225,.06) !important;
    overflow:hidden !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }
  .rules-article-card::before {
    content:'' !important;
    position:absolute !important;
    inset:1.4mm !important;
    border-top:.45mm solid #129bc2 !important;
    border-bottom:.25mm solid rgba(34,216,255,.35) !important;
    border-radius:1.5mm 5mm 1.5mm 5mm !important;
    pointer-events:none !important;
  }
  .rules-article-card::after {
    content:'' !important;
    position:absolute !important;
    right:2.2mm !important;
    top:1.4mm !important;
    width:9mm !important;
    height:4mm !important;
    border-top:.8mm solid #22d8ff !important;
    border-right:.8mm solid #22d8ff !important;
    transform:skewX(18deg) !important;
    pointer-events:none !important;
  }
  .rules-article-number {
    position:relative !important;
    z-index:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:stretch !important;
    min-height:16mm !important;
    padding:1mm !important;
    color:#eaffff !important;
    font-size:18pt !important;
    font-weight:950 !important;
    line-height:1 !important;
    text-shadow:0 0 1.6mm #22d8ff !important;
    border:1px solid #20d2fa !important;
    border-radius:2mm 6mm 2mm 6mm !important;
    background:linear-gradient(145deg,#092947,#041323) !important;
    box-shadow:inset 0 0 6mm rgba(34,216,255,.10) !important;
  }
  .rules-article-copy {
    position:relative !important;
    z-index:1 !important;
    color:#f5f8fb !important;
    font-size:9.7pt !important;
    line-height:1.48 !important;
    font-weight:450 !important;
    overflow-wrap:anywhere !important;
  }
  .rules-article-copy strong {
    color:#32ddff !important;
    font-weight:900 !important;
    text-shadow:0 0 .7mm rgba(50,221,255,.18) !important;
  }
  .rules-web-content { color:#111 !important; }
}

@media (max-width:620px) {
  .ai-suggestion-head { align-items:flex-start; flex-direction:column; gap:4px; }
}


/* Retours 57 — un seul règlement web + PDF fidèle au visuel futuriste.
   Les fonds sombres des cartes sont de vrais SVG imprimables, donc ils ne dépendent
   plus de l'option navigateur « imprimer les arrière-plans ». */
.settings-rules-note { margin:14px 0 0; color:#71869a; font-size:11px; line-height:1.55; }
.rules-pdf-card-shape, .rules-pdf-title-tech { display:none; }

@media print {
  @page { size:A4 portrait; margin:0; }
  html, body { width:210mm !important; margin:0 !important; padding:0 !important; background:#fff !important; }
  .rules-printable { width:210mm !important; min-height:297mm !important; padding:8mm 10mm 10mm !important; }
  .rules-pdf-title { display:block !important; position:relative !important; height:29mm !important; margin:0 0 5mm !important; padding:0 !important; text-align:center !important; overflow:hidden !important; }
  .rules-pdf-title-tech { display:block !important; position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; z-index:0 !important; }
  .rules-pdf-title h2 { position:relative !important; z-index:1 !important; padding-top:3mm !important; margin:0 !important; color:#071b32 !important; font-size:26pt !important; line-height:1 !important; font-weight:950 !important; letter-spacing:.045em !important; text-shadow:.35mm .35mm 0 #8feaff !important; }
  .rules-pdf-title p { position:relative !important; z-index:1 !important; margin:2.2mm 0 0 !important; color:#0b2341 !important; font-size:12pt !important; font-weight:850 !important; }

  .rules-article-grid { gap:3.6mm !important; }
  .rules-article-card {
    position:relative !important;
    display:grid !important;
    grid-template-columns:29mm minmax(0,1fr) !important;
    align-items:center !important;
    gap:4mm !important;
    min-height:26mm !important;
    padding:4.5mm 7mm 4.5mm 5mm !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:hidden !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }
  .rules-article-card::before, .rules-article-card::after { display:none !important; }
  .rules-pdf-card-shape { display:block !important; position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; z-index:0 !important; }
  .rules-article-number {
    position:relative !important;
    z-index:2 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:stretch !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#f3feff !important;
    font-size:20pt !important;
    font-weight:950 !important;
    text-shadow:0 0 1.3mm #22d8ff !important;
  }
  .rules-article-copy {
    position:relative !important;
    z-index:2 !important;
    padding:1mm 0 !important;
    color:#f6f9fc !important;
    font-size:9.8pt !important;
    line-height:1.5 !important;
    font-weight:450 !important;
  }
  .rules-article-copy strong { color:#39e4ff !important; font-weight:900 !important; text-shadow:none !important; }
}


/* Retours 58 — PDF règlement : cartes adaptées au texte et numéros plus compacts */
.settings-rules-actions-centered {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  min-height:86px;
  padding:8px 0 2px;
}
.settings-rules-actions-centered .mini-button { min-width:138px; justify-content:center; text-align:center; }

@media print {
  .rules-article-grid {
    gap:4.2mm !important;
    align-items:stretch !important;
  }
  .rules-article-card {
    grid-template-columns:18mm minmax(0,1fr) !important;
    align-items:start !important;
    gap:3.6mm !important;
    min-height:0 !important;
    height:auto !important;
    padding:5.4mm 7mm 5.4mm 4.8mm !important;
    overflow:hidden !important;
  }
  .rules-pdf-card-shape {
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
  }
  .rules-article-number {
    align-self:start !important;
    width:15mm !important;
    height:15mm !important;
    min-width:15mm !important;
    min-height:15mm !important;
    margin-top:.5mm !important;
    font-size:16.5pt !important;
    line-height:1 !important;
  }
  .rules-article-copy {
    padding:0 !important;
    font-size:10.3pt !important;
    line-height:1.58 !important;
    min-width:0 !important;
  }
}


/* Retours 59 — PDF règlement : vraie zone texte indépendante du numéro. */
@media print {
  .rules-article-grid {
    gap:4.4mm !important;
  }
  .rules-article-card {
    grid-template-columns:14mm minmax(0,1fr) !important;
    column-gap:5.5mm !important;
    align-items:center !important;
    min-height:0 !important;
    height:auto !important;
    padding:5.8mm 7.5mm 5.8mm 5.2mm !important;
    overflow:hidden !important;
  }
  .rules-article-number {
    box-sizing:border-box !important;
    justify-self:center !important;
    align-self:center !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:12.5mm !important;
    height:12.5mm !important;
    min-width:12.5mm !important;
    min-height:12.5mm !important;
    margin:0 !important;
    padding:0 !important;
    border:0.45mm solid #149fc8 !important;
    border-radius:2.2mm 4.5mm 2.2mm 4.5mm !important;
    background:transparent !important;
    box-shadow:inset 0 0 3mm rgba(34,216,255,.08) !important;
    color:#f4feff !important;
    font-size:15.5pt !important;
    line-height:1 !important;
    text-align:center !important;
  }
  .rules-article-copy {
    box-sizing:border-box !important;
    min-width:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:1.6mm 1.5mm 1.6mm 0 !important;
    font-size:10.3pt !important;
    line-height:1.58 !important;
    align-self:center !important;
  }
}


/* Retours 60 — PDF règlement : plus aucun motif sous le texte et fond uniforme sous les chiffres romains. */
@media print {
  .rules-article-card {
    grid-template-columns: 15mm minmax(0, 1fr) !important;
    column-gap: 6.8mm !important;
    padding: 5.6mm 7.2mm 5.6mm 4.8mm !important;
  }
  .rules-pdf-card-shape {
    z-index: 0 !important;
  }
  .rules-article-number {
    position: relative !important;
    z-index: 2 !important;
    width: 12.2mm !important;
    height: 12.2mm !important;
    min-width: 12.2mm !important;
    min-height: 12.2mm !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-self: center !important;
    align-self: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0.45mm solid #1ccdf2 !important;
    border-radius: 2mm 4.2mm 2mm 4.2mm !important;
  }
  .rules-article-copy {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 1mm 0 1.4mm !important;
    margin: 0 !important;
  }
}


/* Retours 61 — suppression totale des motifs dans les cartes PDF + titre plus futuriste. */
@media print {
  .rules-pdf-title {
    position: relative !important;
    height: auto !important;
    min-height: 32mm !important;
    margin: 0 0 6.5mm !important;
    padding: 1mm 0 4mm !important;
    text-align: center !important;
    overflow: visible !important;
  }
  .rules-pdf-title::before,
  .rules-pdf-title::after {
    content: '' !important;
    position: absolute !important;
    top: 11mm !important;
    width: 34mm !important;
    height: 2.4mm !important;
    background: linear-gradient(90deg,#0a3856 0%,#22d8ff 55%,#7af1ff 100%) !important;
    clip-path: polygon(0 35%,70% 35%,82% 100%,100% 100%,88% 0,0 0) !important;
    box-shadow: 0 0 1.2mm rgba(34,216,255,.35) !important;
  }
  .rules-pdf-title::before { left: 0 !important; }
  .rules-pdf-title::after { right: 0 !important; transform: scaleX(-1) !important; }
  .rules-pdf-title-tech { display: none !important; }
  .rules-pdf-title h2 {
    display: inline-block !important;
    margin: 0 !important;
    padding: 3.2mm 10mm 2.8mm !important;
    border: .55mm solid #1fd6fb !important;
    border-radius: 2.2mm 7mm 2.2mm 7mm !important;
    background: linear-gradient(145deg,#071c32 0%,#0a2846 58%,#041220 100%) !important;
    color: #f8feff !important;
    font-size: 24pt !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 1.1mm rgba(34,216,255,.38) !important;
    box-shadow: inset 0 0 0 .35mm rgba(122,241,255,.18), 0 0 1.4mm rgba(34,216,255,.15) !important;
  }
  .rules-pdf-title p {
    display: inline-block !important;
    margin: 2.2mm 0 0 !important;
    padding: 1.3mm 6mm !important;
    border: .35mm solid rgba(34,216,255,.65) !important;
    border-radius: 999px !important;
    background: rgba(7,28,50,.08) !important;
    color: #0b2341 !important;
    font-size: 11.2pt !important;
    font-weight: 850 !important;
    letter-spacing: .03em !important;
  }

  .rules-article-card {
    grid-template-columns: 14mm minmax(0, 1fr) !important;
    column-gap: 7.4mm !important;
    padding: 5.8mm 7.4mm 5.8mm 5.2mm !important;
    min-height: 24mm !important;
  }
  .rules-pdf-card-shape {
    z-index: 0 !important;
  }
  .rules-article-number {
    z-index: 2 !important;
    width: 11.5mm !important;
    height: 11.5mm !important;
    min-width: 11.5mm !important;
    min-height: 11.5mm !important;
    justify-self: center !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0.45mm solid #1ccdf2 !important;
    border-radius: 2mm 4.2mm 2mm 4.2mm !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .rules-article-copy {
    z-index: 2 !important;
    padding: 0 1.4mm 0 3.2mm !important;
    margin: 0 !important;
    font-size: 9.8pt !important;
    line-height: 1.56 !important;
  }
}


/* Retours 62 — titre PDF : Les Énigmes de Belleyme sous RÈGLEMENT. */
@media print {
  .rules-pdf-title h2 {
    display: block !important;
    width: max-content !important;
    max-width: 72% !important;
    margin: 0 auto !important;
  }
  .rules-pdf-title p {
    display: block !important;
    width: max-content !important;
    max-width: 72% !important;
    margin: 2.6mm auto 0 !important;
  }
}

/* Retours 63 — constructeur web des énigmes et corrections */
.web-content-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0; }
.web-content-admin-card { display:flex; flex-direction:column; gap:8px; }
.web-content-admin-card h3 { margin:0; }
.web-content-admin-card p { margin:0 0 6px; color:#8397aa; }
.web-content-admin-card > div { display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; }
.web-builder-admin { max-width:1440px; }
.builder-top-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.builder-preview-button { white-space:nowrap; }
.web-builder-intro { margin-bottom:18px; }
.web-builder-intro h2 { margin:4px 0 0; }
.builder-composition-bar { display:grid; grid-template-columns:minmax(240px,1fr) minmax(220px,320px) auto; align-items:end; gap:24px; }
.builder-composition-title { min-width:0; }
.builder-orientation-field { margin:0; }
.builder-preview-button { justify-self:end; align-self:end; white-space:nowrap; }

.builder-orientation-field { width:min(260px,100%); flex:0 0 auto; }
.web-builder-page { margin-bottom:18px; overflow:visible; }
.web-builder-page-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:15px; padding-bottom:12px; border-bottom:1px solid rgba(94,228,255,.12); }
.web-builder-page-head h2 { margin:5px 0 0; }
.page-index { color:#71e7ff; font:900 10px/1 ui-monospace,monospace; letter-spacing:.13em; }
.page-order-actions,.page-order-actions form { display:flex; align-items:center; gap:7px; }
.web-page-settings { display:grid; grid-template-columns:minmax(260px,420px) auto; gap:12px; align-items:end; justify-content:space-between; margin-bottom:14px; }
.web-layout-note { color:#70879b; font-size:10px; line-height:1.45; padding-bottom:10px; }
.web-autosave-state { align-self:end; padding:9px 11px; border:1px solid rgba(94,228,255,.13); border-radius:10px; background:#04111f; color:#8298aa; font-size:10px; white-space:nowrap; }
.web-autosave-state[data-state="draft"] { color:#e9c77d; border-color:rgba(233,199,125,.24); }
.web-autosave-state[data-state="saving"] { color:#6fe8ff; border-color:rgba(111,232,255,.28); }
.web-autosave-state[data-state="saved"] { color:#93ebb6; border-color:rgba(147,235,182,.24); }
.web-autosave-state[data-state="error"] { color:#ff9999; border-color:rgba(255,153,153,.25); }
.web-builder-slots { display:grid; gap:12px; align-items:start; margin:12px 0 4px; }
.web-builder-slot { min-width:0; padding:14px; border:1px solid rgba(94,228,255,.16); border-radius:15px; background:linear-gradient(145deg,rgba(8,25,44,.78),rgba(4,13,25,.9)); box-shadow:inset 0 0 24px rgba(56,214,255,.025); }
.slot-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.slot-head strong { color:#72e8ff; }
.slot-head-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; margin-left:auto; }
.slot-head select { width:auto; min-width:112px; }
.frame-size-control { display:inline-flex; align-items:center; gap:3px; padding:3px; border:1px solid rgba(94,228,255,.15); border-radius:9px; background:rgba(3,13,24,.7); }
.frame-size-control button { width:26px; height:26px; padding:0; border:0; border-radius:6px; background:rgba(94,228,255,.07); color:#81eaff; font-size:18px; line-height:1; cursor:pointer; }
.frame-size-control button:hover { background:rgba(94,228,255,.15); color:#fff; }
.frame-size-control span { min-width:43px; text-align:center; color:#a7bac9; font:800 10px/1 ui-monospace,monospace; }
.block-editor[hidden] { display:none !important; }
.builder-image-preview { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:10px; }
.builder-image-preview img { display:block; width:auto; max-width:100%; height:auto; max-height:155px; object-fit:contain; border:1px solid rgba(94,228,255,.13); border-radius:10px; background:#020b15; }
.builder-delete-image { align-self:center; }
.rich-mini-toolbar { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:7px; }
.rich-mini-toolbar button { height:30px; min-width:30px; padding:0 8px; border:1px solid rgba(94,228,255,.15); border-radius:8px; background:#071829; color:#a9bfce; cursor:pointer; }
.rich-mini-toolbar button:hover { color:#72e8ff; border-color:rgba(94,228,255,.38); }
.puzzle-rich-editor { min-height:140px; padding:12px 13px; border:1px solid rgba(94,228,255,.14); border-radius:10px; background:#030e1a; color:#edf7fb; line-height:1.55; outline:none; overflow-wrap:anywhere; }
.puzzle-rich-editor:empty::before { content:attr(data-placeholder); color:#62788d; }
.puzzle-rich-editor strong { color:#64e6ff; }
.add-web-page-panel { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.add-web-page-panel h2 { margin:4px 0 5px; }
.add-web-page-panel p { margin:0; color:#7f93a7; }
.add-web-page-form { display:flex; align-items:end; gap:9px; flex-wrap:wrap; }
.add-web-page-form label { display:grid; gap:5px; color:#8ba0b2; font-size:10px; font-weight:800; }
.add-web-page-form select { min-width:210px; }

/* Modèles : dans le constructeur, ils gardent exactement leur disposition réelle. */
.layout-one-large { grid-template-columns:minmax(0,1fr); }
.layout-two-cols { grid-template-columns:repeat(2,minmax(0,1fr)); }
.layout-two-rows { grid-template-columns:minmax(0,1fr); }
.layout-three-cols { grid-template-columns:repeat(3,minmax(0,1fr)); }
.layout-three-rows { grid-template-columns:minmax(0,1fr); }
.layout-large-left-two-right { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); }
.layout-large-left-two-right > :first-child { grid-row:span 2; }
.layout-large-top-two-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
.layout-large-top-two-bottom > :first-child { grid-column:1 / -1; }
.layout-four-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.layout-center-4,.layout-center-5,.layout-center-6,.layout-center-7,.layout-center-8 { grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr); grid-template-rows:auto auto auto; align-items:stretch; }
.layout-center-4 > :nth-child(1),.layout-center-5 > :nth-child(1),.layout-center-6 > :nth-child(1),.layout-center-7 > :nth-child(1),.layout-center-8 > :nth-child(1) { grid-column:2; grid-row:2; }
.layout-center-4 > :nth-child(2){grid-column:2;grid-row:1}.layout-center-4 > :nth-child(3){grid-column:1;grid-row:2}.layout-center-4 > :nth-child(4){grid-column:3;grid-row:2}.layout-center-4 > :nth-child(5){grid-column:2;grid-row:3}
.layout-center-5 > :nth-child(2){grid-column:1;grid-row:1}.layout-center-5 > :nth-child(3){grid-column:3;grid-row:1}.layout-center-5 > :nth-child(4){grid-column:1;grid-row:2}.layout-center-5 > :nth-child(5){grid-column:3;grid-row:2}.layout-center-5 > :nth-child(6){grid-column:2;grid-row:3}
.layout-center-6 > :nth-child(2){grid-column:1;grid-row:1}.layout-center-6 > :nth-child(3){grid-column:2;grid-row:1}.layout-center-6 > :nth-child(4){grid-column:3;grid-row:1}.layout-center-6 > :nth-child(5){grid-column:1;grid-row:3}.layout-center-6 > :nth-child(6){grid-column:2;grid-row:3}.layout-center-6 > :nth-child(7){grid-column:3;grid-row:3}
.layout-center-7 > :nth-child(2){grid-column:1;grid-row:1}.layout-center-7 > :nth-child(3){grid-column:2;grid-row:1}.layout-center-7 > :nth-child(4){grid-column:3;grid-row:1}.layout-center-7 > :nth-child(5){grid-column:1;grid-row:2}.layout-center-7 > :nth-child(6){grid-column:3;grid-row:2}.layout-center-7 > :nth-child(7){grid-column:1;grid-row:3}.layout-center-7 > :nth-child(8){grid-column:3;grid-row:3}
.layout-center-8 > :nth-child(2){grid-column:1;grid-row:1}.layout-center-8 > :nth-child(3){grid-column:2;grid-row:1}.layout-center-8 > :nth-child(4){grid-column:3;grid-row:1}.layout-center-8 > :nth-child(5){grid-column:1;grid-row:2}.layout-center-8 > :nth-child(6){grid-column:3;grid-row:2}.layout-center-8 > :nth-child(7){grid-column:1;grid-row:3}.layout-center-8 > :nth-child(8){grid-column:2;grid-row:3}.layout-center-8 > :nth-child(9){grid-column:3;grid-row:3}

/* Aperçu / espace équipe : feuille complète, cadres centrés et dimensionnés par leur contenu. */
.web-puzzle-shell { width:min(1320px,calc(100% - 32px)); margin:30px auto 70px; }
.web-puzzle-toolbar { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; margin-bottom:18px; }
.web-puzzle-toolbar > div { text-align:center; display:grid; gap:4px; }
.web-puzzle-toolbar > div strong { color:#e9f8ff; font-size:18px; }
.web-puzzle-pages { display:grid; gap:26px; }
.web-puzzle-page { position:relative; box-sizing:border-box; margin:0 auto; padding:20px; border:1px solid rgba(92,227,255,.14); border-radius:22px; background:linear-gradient(145deg,rgba(5,17,31,.96),rgba(2,9,18,.98)); box-shadow:0 22px 70px rgba(0,0,0,.24),inset 0 0 50px rgba(48,216,255,.025); overflow:hidden; display:flex; flex-direction:column; }
.web-puzzle-page.orientation-portrait { width:min(880px,100%); aspect-ratio:210 / 297; }
.web-puzzle-page.orientation-landscape { width:min(1240px,100%); aspect-ratio:297 / 210; }
.web-puzzle-page::before { content:''; position:absolute; inset:9px; border:1px solid rgba(53,219,255,.07); border-radius:16px; pointer-events:none; }
.web-puzzle-page-header { position:absolute; z-index:4; top:20px; left:20px; right:20px; display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0; pointer-events:none; }
.web-puzzle-title-box,.web-puzzle-points-box { position:relative; width:max-content; max-width:48%; min-height:0; padding:9px 14px; border:1px solid rgba(68,224,255,.48); border-radius:10px; background:linear-gradient(135deg,#071d34,#04121f); display:flex; align-items:center; box-shadow:0 0 20px rgba(42,219,255,.045); }
.web-puzzle-title-box strong,.web-puzzle-points-box strong { color:#f6fbff; font-size:clamp(15px,1.7vw,20px); line-height:1.15; }
.web-puzzle-points-box { margin-left:auto; text-align:right; }
.web-puzzle-grid { position:relative; z-index:1; display:grid; gap:16px; justify-items:center; align-items:center; align-content:center; flex:1 1 auto; width:100%; min-height:0; height:100%; isolation:isolate; }
.web-puzzle-grid.layout-one-large,.web-puzzle-grid.layout-two-cols,.web-puzzle-grid.layout-three-cols,.web-puzzle-grid.layout-two-rows,.web-puzzle-grid.layout-three-rows,.web-puzzle-grid.layout-large-left-two-right,.web-puzzle-grid.layout-large-top-two-bottom,.web-puzzle-grid.layout-four-grid{display:block;}
.web-puzzle-grid.layout-one-large>.web-puzzle-frame,.web-puzzle-grid.layout-two-cols>.web-puzzle-frame,.web-puzzle-grid.layout-three-cols>.web-puzzle-frame,.web-puzzle-grid.layout-two-rows>.web-puzzle-frame,.web-puzzle-grid.layout-three-rows>.web-puzzle-frame,.web-puzzle-grid.layout-large-left-two-right>.web-puzzle-frame,.web-puzzle-grid.layout-large-top-two-bottom>.web-puzzle-frame,.web-puzzle-grid.layout-four-grid>.web-puzzle-frame{position:absolute;translate:-50% -50%;}
.web-puzzle-grid.layout-one-large>.web-puzzle-frame:nth-child(1){left:50%;top:50%;}
.web-puzzle-grid.layout-two-cols>.web-puzzle-frame:nth-child(1){left:27%;top:50%;}.web-puzzle-grid.layout-two-cols>.web-puzzle-frame:nth-child(2){left:73%;top:50%;}
.web-puzzle-grid.layout-three-cols>.web-puzzle-frame:nth-child(1){left:17%;top:50%;}.web-puzzle-grid.layout-three-cols>.web-puzzle-frame:nth-child(2){left:50%;top:50%;}.web-puzzle-grid.layout-three-cols>.web-puzzle-frame:nth-child(3){left:83%;top:50%;}
.web-puzzle-grid.layout-large-left-two-right>.web-puzzle-frame:nth-child(1){left:29%;top:50%;}
.web-puzzle-grid.layout-large-left-two-right>.web-puzzle-frame:nth-child(2){left:76%;top:33.333333%;}
.web-puzzle-grid.layout-large-left-two-right>.web-puzzle-frame:nth-child(3){left:76%;top:66.666667%;}
.web-puzzle-grid.layout-large-top-two-bottom>.web-puzzle-frame:nth-child(1){left:50%;top:33.333333%;}
.web-puzzle-grid.layout-large-top-two-bottom>.web-puzzle-frame:nth-child(2){left:27%;top:66.666667%;}
.web-puzzle-grid.layout-large-top-two-bottom>.web-puzzle-frame:nth-child(3){left:73%;top:66.666667%;}
.web-puzzle-grid.layout-four-grid>.web-puzzle-frame:nth-child(1){left:27%;top:33.333333%;}
.web-puzzle-grid.layout-four-grid>.web-puzzle-frame:nth-child(2){left:73%;top:33.333333%;}
.web-puzzle-grid.layout-four-grid>.web-puzzle-frame:nth-child(3){left:27%;top:66.666667%;}
.web-puzzle-grid.layout-four-grid>.web-puzzle-frame:nth-child(4){left:73%;top:66.666667%;}
.web-puzzle-grid.layout-center-4,.web-puzzle-grid.layout-center-5,.web-puzzle-grid.layout-center-6,.web-puzzle-grid.layout-center-7,.web-puzzle-grid.layout-center-8{grid-template-rows:repeat(3,1fr)}
.web-puzzle-grid.layout-two-rows>.web-puzzle-frame{left:50%;}
.web-puzzle-grid.layout-two-rows>.web-puzzle-frame:nth-child(1){top:33.333333%;}
.web-puzzle-grid.layout-two-rows>.web-puzzle-frame:nth-child(2){top:66.666667%;}
.web-puzzle-grid.layout-three-rows>.web-puzzle-frame{left:50%;}
.web-puzzle-grid.layout-three-rows>.web-puzzle-frame:nth-child(1){top:25%;}
.web-puzzle-grid.layout-three-rows>.web-puzzle-frame:nth-child(2){top:50%;}
.web-puzzle-grid.layout-three-rows>.web-puzzle-frame:nth-child(3){top:75%;}
.web-puzzle-frame { position:relative; z-index:1; min-width:0; width:fit-content; max-width:100%; height:max-content; padding:13px; border:1px solid rgba(72,221,255,.38); border-radius:14px; background:linear-gradient(145deg,rgba(7,28,49,.98),rgba(3,16,30,.98)); box-shadow:inset 0 0 22px rgba(35,213,255,.025),0 8px 24px rgba(0,0,0,.14); cursor:zoom-in; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; overflow:hidden; justify-self:center; align-self:center; }
.web-puzzle-frame[data-fitted="1"]{width:var(--frame-fit-width);}
.web-puzzle-frame:hover { transform:translateY(-1px); border-color:rgba(92,232,255,.72); box-shadow:0 12px 30px rgba(0,0,0,.2),0 0 18px rgba(35,213,255,.05); }
.web-frame-body { min-width:0; min-height:0; display:grid; place-items:center; overflow:visible; width:100%; }
.web-frame-body img { display:block; width:auto; height:auto; max-width:100%; max-height:72vh; object-fit:contain; border-radius:8px; background:#fff; }
.web-frame-richtext { width:100%; max-width:100%; color:#ecf7fb; font-size:clamp(13px,1.3vw,20px); line-height:1.5; overflow-wrap:anywhere; }
.web-frame-richtext strong { color:#64e6ff; }.web-frame-richtext em{color:#d5eff7}.web-frame-richtext ul,.web-frame-richtext ol{padding-left:1.4em}
.web-frame-richtext p:first-child,.web-frame-richtext div:first-child{margin-top:0}.web-frame-richtext p:last-child,.web-frame-richtext div:last-child{margin-bottom:0}
.web-frame-link-preview { width:100%; max-width:100%; display:grid; align-content:center; justify-items:center; text-align:center; gap:8px; color:#d6e9f3; }
.web-frame-link-preview strong { color:#64e6ff; font-size:18px; }.web-frame-link-preview p{margin:0;color:#9eb3c2}.web-frame-link-preview span{font-size:10px;color:#72899c;text-transform:uppercase;letter-spacing:.08em}
.web-frame-empty { display:grid; width:190px; max-width:100%; min-height:70px; place-items:center; color:#5f788d; font-size:11px; text-transform:uppercase; letter-spacing:.08em; border:1px dashed rgba(99,226,255,.12); border-radius:8px; }
.frame-modal-open { overflow:hidden; }
.web-frame-modal { position:fixed; inset:0; z-index:9999; padding:42px; background:rgba(0,7,15,.92); backdrop-filter:blur(10px); display:grid; place-items:center; }
.web-frame-modal[hidden] { display:none !important; }
.frame-modal-panel { position:relative; width:min(1280px,94vw); max-height:88vh; overflow:auto; padding:22px; border:1px solid rgba(63,227,255,.52); border-radius:18px 34px 18px 34px; background:linear-gradient(145deg,#071b30,#020b15); box-shadow:0 0 70px rgba(37,215,255,.09),0 30px 80px rgba(0,0,0,.45); }
.frame-modal-zoombar { display:flex; justify-content:flex-end; gap:7px; margin-bottom:10px; }
.frame-modal-close { position:fixed; z-index:10001; top:24px; right:26px; width:48px; height:48px; border:1px solid rgba(72,230,255,.7); border-radius:10px 20px 10px 20px; background:#06182a; cursor:pointer; box-shadow:0 0 24px rgba(36,216,255,.12); }
.frame-modal-close span { position:absolute; left:11px; top:22px; width:25px; height:2px; background:#70efff; transform:rotate(45deg); box-shadow:0 0 7px rgba(112,239,255,.65); }.frame-modal-close span+span{transform:rotate(-45deg)}
.frame-modal-image { overflow:auto; display:grid; place-items:center; min-height:200px; }
.frame-modal-image img { display:block; max-width:100%; max-height:78vh; width:auto; height:auto; margin:auto; background:#fff; cursor:zoom-in; }
.frame-modal-text { color:#f0f9fc; font-size:clamp(18px,2.1vw,30px); line-height:1.6; }.frame-modal-text strong{color:#64e6ff}
.frame-modal-link { min-height:260px; display:grid; place-items:center; align-content:center; gap:18px; text-align:center; color:#dceef7; }.frame-modal-link h2{margin:0;color:#65e8ff}.frame-modal-link p{max-width:760px;margin:0;line-height:1.65}

@media (max-width:900px) {
  .web-content-admin-grid{grid-template-columns:1fr}
  .web-page-settings{grid-template-columns:1fr}
  .web-layout-note{padding:0}
  .web-autosave-state{justify-self:start}
  .add-web-page-panel{align-items:flex-start;flex-direction:column}
  .builder-composition-bar{grid-template-columns:1fr;align-items:start;gap:14px}
  .builder-preview-button{justify-self:start}
  .builder-top-right{align-items:flex-start}
  .web-puzzle-toolbar{grid-template-columns:1fr}.web-puzzle-toolbar>div{order:-1}
  .web-puzzle-page{padding:13px}.web-puzzle-page-header{gap:8px;top:13px;left:13px;right:13px}.web-puzzle-title-box,.web-puzzle-points-box{padding:7px 10px;max-width:49%}.web-puzzle-title-box strong,.web-puzzle-points-box strong{font-size:13px}
  /* Ne jamais casser visuellement un modèle en empilant ses cadres. */
  .web-builder-slots.layout-three-cols,.web-builder-slots.layout-large-left-two-right,.web-builder-slots.layout-large-top-two-bottom,.web-builder-slots.layout-four-grid,.web-builder-slots.layout-center-4,.web-builder-slots.layout-center-5,.web-builder-slots.layout-center-6,.web-builder-slots.layout-center-7,.web-builder-slots.layout-center-8{min-width:760px}
  .web-page-form{overflow-x:auto;padding-bottom:4px}
  .web-frame-modal{padding:18px}.frame-modal-close{top:12px;right:12px}
}

/* Impression : même orientation et mêmes repères que l'aperçu. */
@media print {
  body::before,body::after,.ambient,.grid-layer,.site-header,.site-footer,.no-print,.web-frame-modal{display:none!important}
  html,body,.site-main,.web-puzzle-shell,.web-puzzle-pages{margin:0!important;padding:0!important;width:auto!important;max-width:none!important;background:#fff!important}
  .web-puzzle-pages{display:block!important}
  .web-puzzle-page{box-sizing:border-box!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important;display:flex!important;flex-direction:column!important;aspect-ratio:auto!important;position:relative!important}
  .web-puzzle-page:last-child{break-after:auto!important;page-break-after:auto!important}
  .web-puzzle-page.orientation-portrait{width:194mm!important;height:281mm!important;padding:4mm!important}
  .web-puzzle-page.orientation-landscape{width:281mm!important;height:194mm!important;padding:4mm!important}
  .web-puzzle-page::before{display:none!important}
  .web-puzzle-page-header{position:absolute!important;top:4mm!important;left:4mm!important;right:4mm!important;margin:0!important}
  .web-puzzle-title-box,.web-puzzle-points-box{background:#071b30!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;border-color:#27dfff!important;padding:2.5mm 4mm!important}
  .web-puzzle-title-box strong,.web-puzzle-points-box strong{font-size:12pt!important}
  .web-puzzle-grid{flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;gap:3.5mm!important;justify-items:center!important;align-items:center!important;align-content:center!important}
  .web-puzzle-grid.layout-one-large,.web-puzzle-grid.layout-two-cols,.web-puzzle-grid.layout-three-cols,.web-puzzle-grid.layout-two-rows,.web-puzzle-grid.layout-three-rows,.web-puzzle-grid.layout-large-left-two-right,.web-puzzle-grid.layout-large-top-two-bottom,.web-puzzle-grid.layout-four-grid{display:block!important;position:relative!important}
  .web-puzzle-grid.layout-one-large>.web-puzzle-frame,.web-puzzle-grid.layout-two-cols>.web-puzzle-frame,.web-puzzle-grid.layout-three-cols>.web-puzzle-frame,.web-puzzle-grid.layout-two-rows>.web-puzzle-frame,.web-puzzle-grid.layout-three-rows>.web-puzzle-frame,.web-puzzle-grid.layout-large-left-two-right>.web-puzzle-frame,.web-puzzle-grid.layout-large-top-two-bottom>.web-puzzle-frame,.web-puzzle-grid.layout-four-grid>.web-puzzle-frame{position:absolute!important;translate:-50% -50%!important}
  .web-puzzle-frame{width:fit-content!important;max-width:100%!important;height:max-content!important;min-width:0!important;justify-self:center!important;align-self:center!important;break-inside:avoid!important;page-break-inside:avoid!important;padding:3.5mm!important;border:.45mm solid #22d8ff!important;background:#06172a!important;border-radius:3mm!important;box-shadow:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;cursor:default!important}
  .web-puzzle-frame[data-fitted="1"]{width:var(--frame-fit-width)!important}
  .web-frame-richtext{width:100%!important;max-width:100%!important;font-size:10pt!important;line-height:1.4!important;color:#fff!important}.web-frame-richtext strong{color:#4fe5ff!important}
  .web-frame-body{overflow:visible!important;width:100%!important}.web-frame-body img{max-width:100%!important;max-height:205mm!important;object-fit:contain!important}.orientation-landscape .web-frame-body img{max-height:125mm!important}
  .web-frame-link-preview span{display:none!important}
}

/* V68 — autosauvegarde générale des réglages d'administration */
.admin-autosave-state{display:inline-flex;align-items:center;gap:7px;margin-top:10px;color:#8297aa;font-size:11px;font-weight:750;letter-spacing:.02em}
.admin-autosave-state::before{content:'';width:7px;height:7px;border-radius:50%;background:#62788b;box-shadow:0 0 0 3px rgba(98,120,139,.08)}
.admin-autosave-state[data-state=editing]{color:#e9bd69}.admin-autosave-state[data-state=editing]::before{background:#e9bd69}
.admin-autosave-state[data-state=saving]{color:#67ddff}.admin-autosave-state[data-state=saving]::before{background:#67ddff;box-shadow:0 0 10px rgba(103,221,255,.45)}
.admin-autosave-state[data-state=saved]{color:#83e8a8}.admin-autosave-state[data-state=saved]::before{background:#83e8a8;box-shadow:0 0 9px rgba(131,232,168,.35)}
.admin-autosave-state[data-state=error]{color:#ff9a9a}.admin-autosave-state[data-state=error]::before{background:#ff7f7f}

/* V71 — aperçu intermédiaire avec réglage fin des cadres */
.web-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.web-puzzle-toolbar>div small{color:#8da4b6}
.web-preview-adjust-status{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid rgba(94,228,255,.13);border-radius:12px;background:rgba(3,12,23,.8);color:#8ba9bb;font-size:11px;font-weight:800}
.web-preview-adjust-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#62788b;box-shadow:0 0 0 3px rgba(98,120,139,.08)}
.web-preview-adjust-status[data-state=saving]{color:#79e7ff;border-color:rgba(121,231,255,.32)}
.web-preview-adjust-status[data-state=saving]::before{background:#79e7ff;box-shadow:0 0 10px rgba(121,231,255,.42)}
.web-preview-adjust-status[data-state=saved]{color:#9bf3bd;border-color:rgba(155,243,189,.26)}
.web-preview-adjust-status[data-state=saved]::before{background:#9bf3bd;box-shadow:0 0 10px rgba(155,243,189,.35)}
.web-preview-adjust-status[data-state=error]{color:#ff9e9e;border-color:rgba(255,158,158,.26)}
.web-preview-adjust-status[data-state=error]::before{background:#ff9e9e;box-shadow:0 0 10px rgba(255,158,158,.35)}
.web-puzzle-page.is-adjust-preview .web-puzzle-frame{overflow:visible}
.web-puzzle-frame.adjustable-preview{cursor:default}
.frame-adjust-tools{position:absolute;right:8px;top:8px;z-index:5;display:grid;gap:7px;padding:8px;border:1px solid rgba(91,232,255,.28);border-radius:12px;background:rgba(2,12,22,.88);backdrop-filter:blur(7px);box-shadow:0 10px 24px rgba(0,0,0,.22)}
.frame-adjust-scale{display:grid;grid-template-columns:28px auto 28px;align-items:center;gap:6px}
.frame-adjust-scale span{min-width:44px;text-align:center;color:#dbf8ff;font:800 11px/1 ui-monospace,monospace}
.frame-adjust-scale button,.frame-adjust-pad button{display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(94,228,255,.25);border-radius:8px;background:#071829;color:#e9f8ff;cursor:pointer;box-shadow:inset 0 0 12px rgba(40,213,255,.05)}
.frame-adjust-scale button:hover,.frame-adjust-pad button:hover{border-color:rgba(105,237,255,.75);color:#79eeff;box-shadow:0 0 14px rgba(78,224,255,.12)}
.frame-adjust-pad{display:grid;grid-template-columns:28px 28px 28px;grid-template-rows:28px 28px 28px;gap:5px;justify-content:center;align-items:center}
.frame-adjust-pad span{display:block;width:28px;height:28px}
.frame-adjust-pad-center{display:grid !important;place-items:center;color:#5edff8;font-size:12px;opacity:.9}
@media (max-width:900px){
  .web-toolbar-actions{justify-content:flex-start}
  .frame-adjust-tools{right:6px;top:6px;transform:scale(.96);transform-origin:top right}
}
@media print{.frame-adjust-tools,.web-preview-adjust-status{display:none!important}}

/* V72 — déplacement libre des cadres dans l’aperçu intermédiaire */
.web-puzzle-page.is-adjust-preview,
.web-puzzle-page.is-adjust-preview *{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.frame-drag-handle{
  position:relative;
  width:58px;
  height:58px;
  margin:0 auto;
  border:1px solid rgba(94,228,255,.34);
  border-radius:14px;
  background:linear-gradient(145deg,#082036,#041421);
  color:#c9f6ff;
  cursor:grab;
  touch-action:none;
  box-shadow:inset 0 0 18px rgba(66,223,255,.05),0 6px 18px rgba(0,0,0,.18);
}
.frame-drag-handle:hover{border-color:rgba(109,238,255,.82);box-shadow:inset 0 0 18px rgba(66,223,255,.08),0 0 18px rgba(66,223,255,.12)}
.frame-drag-handle.is-dragging{cursor:grabbing;border-color:#73edff;box-shadow:0 0 22px rgba(66,223,255,.18)}
.frame-drag-handle span{position:absolute;display:grid;place-items:center;color:#83eeff;font-size:15px;font-weight:900;line-height:1;pointer-events:none}
.frame-drag-handle .drag-up{top:4px;left:50%;transform:translateX(-50%)}
.frame-drag-handle .drag-right{right:5px;top:50%;transform:translateY(-50%)}
.frame-drag-handle .drag-down{bottom:4px;left:50%;transform:translateX(-50%)}
.frame-drag-handle .drag-left{left:5px;top:50%;transform:translateY(-50%)}
.frame-drag-handle .drag-center{left:50%;top:50%;width:9px;height:9px;border:1px solid rgba(131,238,255,.78);border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 9px rgba(82,227,255,.3)}
.frame-is-dragging{cursor:grabbing!important}
.frame-is-dragging .web-puzzle-frame{transition:none!important}
@media print{.frame-drag-handle{display:none!important}}

/* V73 — choix des liaisons entre cadres */
.frame-link-settings{display:grid;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(94,228,255,.12);color:#8198aa;font-size:11px;font-weight:750;min-width:0;max-width:100%}
.frame-link-topline{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;flex-wrap:nowrap}
.frame-link-topline>span{white-space:nowrap;flex:0 0 auto}
.frame-link-options{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%}
.frame-link-options-primary{flex-wrap:nowrap;flex:0 1 auto}
.frame-link-options-secondary{flex-wrap:wrap;width:100%;gap:8px 9px}
.frame-link-options label{display:inline-flex;align-items:center;gap:3px;margin:0;padding:4px 7px;border:1px solid rgba(94,228,255,.14);border-radius:8px;background:rgba(4,17,30,.72);color:#d7eef6;cursor:pointer;user-select:none}
.frame-link-options label:hover{border-color:rgba(94,228,255,.42);color:#75eaff}
.frame-link-options input{margin:0;accent-color:#55ddff}
.frame-link-options b{font-size:12px;color:inherit}

/* V74 — aperçu final futuriste + liaisons visibles */
.final-render-shell{width:min(1400px,calc(100% - 24px));}
.final-render-pages{gap:34px;}
.web-puzzle-page.is-final-preview{
  padding:20px 20px 34px;
  border:1px solid rgba(98,238,255,.22);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 18%, rgba(74,203,255,.13), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(74,203,255,.10), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(14,96,157,.16), transparent 35%),
    linear-gradient(180deg, #071321 0%, #08192a 47%, #07111c 100%);
  box-shadow:
    0 26px 80px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(126,242,255,.06),
    inset 0 0 80px rgba(28,126,185,.10);
}
.web-puzzle-page.is-final-preview::before{
  inset:11px;
  border:1px solid rgba(126,240,255,.16);
  border-radius:20px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) top left/140px 1px no-repeat,
    linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) top left/1px 130px no-repeat,
    linear-gradient(-90deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) top right/140px 1px no-repeat,
    linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) top right/1px 130px no-repeat,
    linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) bottom left/140px 1px no-repeat,
    linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) bottom left/1px 130px no-repeat,
    linear-gradient(-90deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) bottom right/140px 1px no-repeat,
    linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(101,233,255,.07) 8%, rgba(0,0,0,0) 18%) bottom right/1px 130px no-repeat;
}
.web-puzzle-page.is-final-preview::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background-image:
    radial-gradient(rgba(123,238,255,.16) 1px, transparent 1px),
    linear-gradient(transparent 0 96%, rgba(122,235,255,.05) 100%),
    linear-gradient(90deg, transparent 0 96%, rgba(122,235,255,.05) 100%);
  background-size: 38px 38px, 100% 38px, 38px 100%;
  background-position: 0 0, 0 0, 0 0;
  opacity:.18;
  mix-blend-mode:screen;
}
.final-page-ambience{
  position:absolute; inset:0; pointer-events:none; z-index:0; border-radius:inherit;
  background:
    linear-gradient(135deg, rgba(110,237,255,.08), transparent 24%),
    linear-gradient(315deg, rgba(110,237,255,.05), transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(12,36,56,.38), transparent 54%);
}
.web-puzzle-page.is-final-preview .web-puzzle-page-header{
  top:22px; left:24px; right:24px; z-index:5;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box,
.web-puzzle-page.is-final-preview .web-puzzle-points-box{
  min-height:50px;
  padding:12px 18px 10px;
  border:1px solid rgba(110,238,255,.75);
  border-radius:0;
  background:
    linear-gradient(180deg, rgba(11,41,63,.96), rgba(6,23,38,.98)),
    linear-gradient(90deg, rgba(98,235,255,.12), rgba(98,235,255,0));
  box-shadow:0 0 24px rgba(64,216,255,.12), inset 0 0 0 1px rgba(126,242,255,.08);
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::before,
.web-puzzle-page.is-final-preview .web-puzzle-points-box::before{
  content:''; position:absolute; inset:7px; border:1px solid rgba(153,244,255,.18);
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong{
  color:#eefcff; font-size:clamp(16px,1.55vw,22px); font-weight:900; letter-spacing:.13em; text-transform:uppercase;
  text-shadow:0 0 18px rgba(98,235,255,.18);
}
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong{letter-spacing:.09em}
.web-puzzle-page.is-final-preview .web-puzzle-grid{
  z-index:3;
  padding:84px 42px 70px;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame{
  z-index:4;
  padding:16px;
  border:1px solid rgba(103,238,255,.8);
  border-radius:0;
  background:
    linear-gradient(180deg, rgba(7,27,43,.98), rgba(7,18,30,.98));
  box-shadow:
    0 0 24px rgba(73,223,255,.10),
    inset 0 0 0 1px rgba(135,244,255,.08),
    inset 0 0 36px rgba(64,195,255,.06);
  overflow:visible;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame::before{
  content:''; position:absolute; inset:7px; border:1px solid rgba(132,242,255,.18); pointer-events:none;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame::after{
  content:''; position:absolute; inset:-1px; pointer-events:none; opacity:.9;
  background:
    linear-gradient(90deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) top left/34px 2px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) top left/2px 34px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) top right/34px 2px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) top right/2px 34px no-repeat,
    linear-gradient(90deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) bottom left/34px 2px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) bottom left/2px 34px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) bottom right/34px 2px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.85), rgba(91,233,255,.10)) bottom right/2px 34px no-repeat;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame:hover{
  transform:none;
  border-color:rgba(128,243,255,.88);
  box-shadow:0 0 34px rgba(73,223,255,.14), inset 0 0 0 1px rgba(135,244,255,.08), inset 0 0 42px rgba(64,195,255,.08);
}
.web-puzzle-page.is-final-preview .web-frame-body{position:relative; z-index:2}
.web-puzzle-page.is-final-preview .web-frame-body img{
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12);
}
.web-puzzle-page.is-final-preview .web-frame-richtext{color:#f2fbff; text-shadow:0 0 10px rgba(59,174,228,.05)}
.web-puzzle-page.is-final-preview .web-frame-richtext strong{color:#92f4ff}
.web-puzzle-page.is-final-preview .web-frame-link-preview strong{color:#9cf4ff}
.frame-tech{position:absolute; width:18px; height:18px; pointer-events:none; opacity:.95}
.frame-tech-tl{top:-1px; left:-1px; border-top:2px solid #77efff; border-left:2px solid #77efff; box-shadow:-2px -2px 12px rgba(84,229,255,.18)}
.frame-tech-tr{top:-1px; right:-1px; border-top:2px solid #77efff; border-right:2px solid #77efff; box-shadow:2px -2px 12px rgba(84,229,255,.18)}
.frame-tech-br{bottom:-1px; right:-1px; border-bottom:2px solid #77efff; border-right:2px solid #77efff; box-shadow:2px 2px 12px rgba(84,229,255,.18)}
.frame-tech-bl{bottom:-1px; left:-1px; border-bottom:2px solid #77efff; border-left:2px solid #77efff; box-shadow:-2px 2px 12px rgba(84,229,255,.18)}
.frame-index-badge{display:none}
.final-page-footer{
  position:absolute; left:50%; bottom:17px; transform:translateX(-50%); z-index:5;
  min-width:min(420px,68%); max-width:82%;
  padding:10px 22px 9px;
  border:1px solid rgba(102,239,255,.62);
  background:linear-gradient(180deg, rgba(9,34,54,.96), rgba(5,22,38,.96));
  clip-path:polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  box-shadow:0 0 24px rgba(64,216,255,.12), inset 0 0 0 1px rgba(126,242,255,.08);
  text-align:center;
}
.final-page-footer span{display:block; color:#eefcff; font-size:clamp(12px,1.15vw,16px); font-weight:900; letter-spacing:.22em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.final-connections-layer{position:absolute; inset:0; z-index:2; width:100%; height:100%; pointer-events:none; overflow:visible}
.final-connection-glow{fill:none; stroke:rgba(85,233,255,.24); stroke-width:12; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 14px rgba(72,228,255,.22))}
.final-connection-line{fill:none; stroke:#88f3ff; stroke-width:2.7; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 8px rgba(96,239,255,.35))}
.final-connection-node{fill:rgba(3,16,30,.95); stroke:#88f3ff; stroke-width:1.8; filter:drop-shadow(0 0 8px rgba(96,239,255,.35))}
.final-connection-node-inner,.final-connection-core{fill:#dffcff; filter:drop-shadow(0 0 8px rgba(96,239,255,.55))}
@media (max-width:900px){
  .final-render-shell{width:min(100%,calc(100% - 16px));}
  .web-puzzle-page.is-final-preview{padding:16px 16px 28px}
  .web-puzzle-page.is-final-preview .web-puzzle-page-header{top:16px;left:16px;right:16px;gap:10px}
  .web-puzzle-page.is-final-preview .web-puzzle-title-box,
  .web-puzzle-page.is-final-preview .web-puzzle-points-box{min-height:42px;padding:10px 12px 8px;max-width:48.5%}
  .web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
  .web-puzzle-page.is-final-preview .web-puzzle-points-box strong{font-size:12px;letter-spacing:.09em}
  .web-puzzle-page.is-final-preview .web-puzzle-grid{padding:72px 20px 58px}
  .final-page-footer{min-width:72%;max-width:90%;bottom:12px;padding:8px 14px}
  .final-page-footer span{letter-spacing:.12em;font-size:11px}
}

/* V75 — raffinement visuel du rendu final */
.web-puzzle-page.is-final-preview{
  background:
    radial-gradient(circle at 50% 48%, rgba(36,117,183,.24), transparent 29%),
    radial-gradient(circle at 52% 50%, rgba(132,240,255,.10), transparent 10%),
    radial-gradient(circle at 15% 18%, rgba(88,214,255,.16), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(88,214,255,.12), transparent 24%),
    linear-gradient(180deg, #06111d 0%, #08182a 44%, #07111c 100%);
  box-shadow:
    0 26px 80px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(126,242,255,.07),
    inset 0 0 120px rgba(28,126,185,.16);
}
.web-puzzle-page.is-final-preview::after{
  background-image:
    radial-gradient(rgba(153,244,255,.22) .8px, transparent .8px),
    linear-gradient(transparent 0 97%, rgba(122,235,255,.05) 100%),
    linear-gradient(90deg, transparent 0 97%, rgba(122,235,255,.05) 100%);
  background-size:42px 42px,100% 42px,42px 100%;
  opacity:.22;
}
.final-page-ambience{
  background:
    radial-gradient(circle at 50% 48%, rgba(80,193,255,.09), transparent 12%),
    radial-gradient(circle at 50% 48%, rgba(65,139,198,.24), transparent 30%),
    linear-gradient(135deg, rgba(110,237,255,.10), transparent 24%),
    linear-gradient(315deg, rgba(110,237,255,.07), transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(12,36,56,.38), transparent 54%);
}
.final-page-ambience::before,
.final-page-ambience::after{content:'';position:absolute;inset:0;pointer-events:none}
.final-page-ambience::before{
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(101,235,255,.16) 30.1% 30.35%, transparent 30.45% 41%, rgba(101,235,255,.08) 41.1% 41.25%, transparent 41.35%),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(101,235,255,.14) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(101,235,255,.12) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
  opacity:.48;
}
.final-page-ambience::after{
  background:
    linear-gradient(90deg, rgba(101,235,255,.0), rgba(101,235,255,.16), rgba(101,235,255,0)) 50% 18%/220px 1px no-repeat,
    linear-gradient(90deg, rgba(101,235,255,.0), rgba(101,235,255,.12), rgba(101,235,255,0)) 50% 82%/220px 1px no-repeat,
    linear-gradient(180deg, rgba(101,235,255,.0), rgba(101,235,255,.12), rgba(101,235,255,0)) 16% 50%/1px 220px no-repeat,
    linear-gradient(180deg, rgba(101,235,255,.0), rgba(101,235,255,.12), rgba(101,235,255,0)) 84% 50%/1px 220px no-repeat;
  opacity:.6;
}
.web-puzzle-page.is-final-preview .web-puzzle-page-header{
  align-items:flex-start;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box,
.web-puzzle-page.is-final-preview .web-puzzle-points-box{
  min-height:56px;
  padding:13px 20px 12px;
  background:
    linear-gradient(180deg, rgba(7,24,41,.98), rgba(4,18,31,.99)),
    linear-gradient(90deg, rgba(98,235,255,.12), rgba(98,235,255,0));
  box-shadow:0 0 28px rgba(64,216,255,.16), inset 0 0 0 1px rgba(126,242,255,.08), inset 0 0 18px rgba(113,231,255,.04);
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box{padding-left:66px; min-width:290px;}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::after,
.web-puzzle-page.is-final-preview .web-puzzle-points-box::after{
  content:''; position:absolute; bottom:-6px; left:24px; width:82%; height:1px;
  background:linear-gradient(90deg, rgba(110,238,255,.95), rgba(110,238,255,.10));
  box-shadow:0 0 10px rgba(110,238,255,.38);
}
.web-puzzle-page.is-final-preview .web-puzzle-points-box::after{left:auto;right:24px;width:68%;background:linear-gradient(-90deg, rgba(110,238,255,.95), rgba(110,238,255,.10));}
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong{font-size:clamp(17px,1.65vw,24px); letter-spacing:.15em;}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::marker,
.web-puzzle-page.is-final-preview .web-puzzle-points-box::marker{display:none}
.web-puzzle-page.is-final-preview .web-puzzle-title-box > strong{position:relative; z-index:2}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::before{
  inset:7px;
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box .title-icon,
.web-puzzle-page.is-final-preview .web-puzzle-title-box::selection{background:transparent}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::after{z-index:1}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::before{z-index:1}
.web-puzzle-page.is-final-preview .web-puzzle-title-box{position:relative}
.web-puzzle-page.is-final-preview .web-puzzle-title-box span,.web-puzzle-page.is-final-preview .web-puzzle-points-box span{display:none}
.web-puzzle-page.is-final-preview .web-puzzle-title-box:has(strong)::after{}
.web-puzzle-page.is-final-preview .web-puzzle-title-box:before{
  content:'';
  position:absolute;
  left:14px; top:10px; width:34px; height:34px;
  border:1px solid rgba(105,239,255,.78);
  transform:rotate(45deg);
  box-shadow:0 0 16px rgba(100,235,255,.22), inset 0 0 0 1px rgba(162,247,255,.08);
  background:radial-gradient(circle at center, rgba(188,250,255,.80) 0 3px, rgba(102,236,255,.14) 4px 48%, transparent 52%);
  border-radius:4px;
  clip-path:none;
}
.web-puzzle-page.is-final-preview .web-puzzle-points-box{
  min-width:182px;
  text-align:right;
}
.web-puzzle-page.is-final-preview .web-puzzle-grid{padding-top:92px;padding-bottom:82px;}
.web-puzzle-page.is-final-preview .web-puzzle-frame{
  background:linear-gradient(180deg, rgba(8,28,43,.99), rgba(5,18,30,.99));
  box-shadow:0 0 28px rgba(73,223,255,.12), inset 0 0 0 1px rgba(135,244,255,.09), inset 0 0 42px rgba(64,195,255,.08);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame .web-frame-body{
  padding:0;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame .web-frame-body img,
.web-puzzle-page.is-final-preview .web-puzzle-frame .web-frame-richtext,
.web-puzzle-page.is-final-preview .web-puzzle-frame .web-frame-link-preview{
  position:relative; z-index:2;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame .web-frame-body img{background:#fff;}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-main{
  padding:14px 14px 14px 14px;
  clip-path:polygon(14px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 12px 100%, 0 calc(100% - 14px), 0 16px);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-main::before{
  inset:10px 10px 10px 10px;
  clip-path:polygon(10px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 9px 100%, 0 calc(100% - 10px), 0 10px);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-main::after{
  inset:0;
  background:
    linear-gradient(90deg, rgba(91,233,255,.92), rgba(91,233,255,.10)) top left/78px 3px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.92), rgba(91,233,255,.10)) top left/3px 78px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.92), rgba(91,233,255,.10)) bottom right/78px 3px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.92), rgba(91,233,255,.10)) bottom right/3px 78px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) top right/36px 2px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) top right/2px 36px no-repeat,
    linear-gradient(90deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) bottom left/36px 2px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) bottom left/2px 36px no-repeat;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-landscape{
  clip-path:polygon(20px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 20px);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-landscape::before{
  inset:9px; clip-path:polygon(14px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 14px);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-landscape::after{
  inset:0;
  background:
    linear-gradient(90deg, rgba(91,233,255,.88), rgba(91,233,255,.10)) top left/58px 3px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) top left/3px 28px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.88), rgba(91,233,255,.10)) bottom right/58px 3px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) bottom right/3px 28px no-repeat,
    linear-gradient(-90deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) top right/22px 2px no-repeat,
    linear-gradient(180deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) top right/2px 22px no-repeat,
    linear-gradient(90deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) bottom left/22px 2px no-repeat,
    linear-gradient(0deg, rgba(91,233,255,.48), rgba(91,233,255,.05)) bottom left/2px 22px no-repeat;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-compact,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual{
  clip-path:polygon(12px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 12px);
}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-compact::before,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual::before{inset:8px; clip-path:polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px)}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual{padding:14px 18px; background:linear-gradient(180deg, rgba(7,25,42,.99), rgba(6,19,34,.99));}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual .web-frame-richtext,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual .web-frame-link-preview{padding:4px 2px}
.web-puzzle-page.is-final-preview .frame-tech{width:26px;height:26px;opacity:1}
.web-puzzle-page.is-final-preview .final-frame-main .frame-tech{width:34px;height:34px}
.web-puzzle-page.is-final-preview .final-frame-main .frame-tech-tl{border-top-width:3px;border-left-width:3px}
.web-puzzle-page.is-final-preview .final-frame-main .frame-tech-br{border-bottom-width:3px;border-right-width:3px}
.web-puzzle-page.is-final-preview .final-frame-landscape .frame-tech-tr,
.web-puzzle-page.is-final-preview .final-frame-landscape .frame-tech-bl{display:block}
.web-puzzle-page.is-final-preview .frame-tech-tr{border-top-width:2px;border-right-width:2px}
.web-puzzle-page.is-final-preview .frame-tech-bl{border-bottom-width:2px;border-left-width:2px}
.web-puzzle-page.is-final-preview .frame-tech-br{border-bottom-width:2px;border-right-width:2px}
.web-puzzle-page.is-final-preview .frame-tech-tl{border-top-width:2px;border-left-width:2px}
.final-page-footer{
  min-width:min(430px,70%);
  padding:11px 26px 10px;
  background:linear-gradient(180deg, rgba(8,32,50,.98), rgba(5,21,38,.98));
  clip-path:polygon(28px 0, calc(100% - 28px) 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 28px 100%, 12px 100%, 0 50%);
  box-shadow:0 0 28px rgba(64,216,255,.16), inset 0 0 0 1px rgba(126,242,255,.09);
}
.final-page-footer::before,
.final-page-footer::after{content:'';position:absolute;top:50%;width:58px;height:1px;background:linear-gradient(90deg, rgba(108,237,255,.85), rgba(108,237,255,.10));box-shadow:0 0 10px rgba(108,237,255,.32)}
.final-page-footer::before{left:-64px;transform:translateY(-50%)}
.final-page-footer::after{right:-64px;transform:translateY(-50%) scaleX(-1)}
.final-page-footer span{letter-spacing:.20em}
.final-connections-layer{z-index:2}
.final-connection-glow{stroke-width:14; opacity:.72}
.final-connection-line{stroke:#a0f7ff; stroke-width:3.1}
.final-connection-node{fill:#071524; stroke:#9df5ff; stroke-width:2.1}
.final-connection-node-inner,.final-connection-core{fill:#f1fdff}
@media (max-width:900px){
  .web-puzzle-page.is-final-preview .web-puzzle-title-box{min-width:0;padding-left:46px}
  .web-puzzle-page.is-final-preview .web-puzzle-title-box:before{left:11px;top:10px;width:24px;height:24px}
  .web-puzzle-page.is-final-preview .web-puzzle-grid{padding-top:82px;padding-bottom:68px}
  .final-page-footer::before,.final-page-footer::after{display:none}
}

/* V76 — fond fourni par l'utilisateur pour le rendu final */
.web-puzzle-page.is-final-preview{
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background-color:#04101d !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-size:100% 100% !important;
}
.web-puzzle-page.is-final-preview.orientation-landscape{
  background-image:url('../img/final-preview-landscape.png') !important;
}
.web-puzzle-page.is-final-preview.orientation-portrait{
  background-image:url('../img/final-preview-portrait.png') !important;
}
.web-puzzle-page.is-final-preview::before,
.web-puzzle-page.is-final-preview::after,
.web-puzzle-page.is-final-preview .final-page-ambience,
.web-puzzle-page.is-final-preview .final-page-footer{
  display:none !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-page-header{
  top:22px !important;
  left:24px !important;
  right:24px !important;
  z-index:6 !important;
  pointer-events:none;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box,
.web-puzzle-page.is-final-preview .web-puzzle-points-box{
  min-height:auto !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  clip-path:none !important;
  padding:0 !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box::before,
.web-puzzle-page.is-final-preview .web-puzzle-title-box::after,
.web-puzzle-page.is-final-preview .web-puzzle-points-box::before,
.web-puzzle-page.is-final-preview .web-puzzle-points-box::after{
  display:none !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box{
  width:min(340px,42%) !important;
  padding-left:110px !important;
  height:56px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-points-box{
  width:min(240px,28%) !important;
  height:56px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong{
  width:100%;
  color:#eefcff !important;
  text-shadow:0 0 14px rgba(132,244,255,.15) !important;
  font-size:clamp(16px,1.55vw,25px) !important;
  font-weight:900 !important;
  letter-spacing:.16em !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong{
  text-align:left !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong{
  text-align:center !important;
}
.web-puzzle-page.is-final-preview.orientation-landscape .web-puzzle-grid{
  padding:112px 48px 90px !important;
}
.web-puzzle-page.is-final-preview.orientation-portrait .web-puzzle-grid{
  padding:108px 34px 118px !important;
}
.web-puzzle-page.is-final-preview .final-connections-layer{
  z-index:2 !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-frame{
  z-index:4 !important;
}
@media (max-width:900px){
  .web-puzzle-page.is-final-preview .web-puzzle-page-header{top:14px !important;left:14px !important;right:14px !important;}
  .web-puzzle-page.is-final-preview .web-puzzle-title-box{width:58% !important;padding-left:62px !important;height:42px !important;}
  .web-puzzle-page.is-final-preview .web-puzzle-points-box{width:32% !important;height:42px !important;}
  .web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
  .web-puzzle-page.is-final-preview .web-puzzle-points-box strong{font-size:12px !important;letter-spacing:.10em !important;}
  .web-puzzle-page.is-final-preview.orientation-landscape .web-puzzle-grid{padding:84px 20px 66px !important;}
  .web-puzzle-page.is-final-preview.orientation-portrait .web-puzzle-grid{padding:82px 18px 92px !important;}
}


/* V77 — fonds personnalisables, surcouches titre/points réglables */
.builder-background-field{min-width:min(100%,340px)}
.builder-background-preview{display:grid;gap:8px}
.builder-bg-preview-card{display:grid;gap:8px;padding:10px;border:1px solid rgba(94,228,255,.12);border-radius:14px;background:rgba(255,255,255,.025)}
.builder-bg-preview-card img{width:100%;max-height:150px;object-fit:cover;border-radius:10px;border:1px solid rgba(94,228,255,.12)}
.text-font-field select{min-height:42px}

.web-puzzle-page-header{position:absolute;inset:0;pointer-events:none;z-index:8}
.web-puzzle-title-box,.web-puzzle-points-box{position:absolute;pointer-events:auto;display:flex;align-items:center;justify-content:center;transform-origin:center center;font-family:'Orbitron','Rajdhani',Inter,Arial,sans-serif !important;background:transparent !important;border:none !important;box-shadow:none !important;min-height:auto !important;padding:0 !important;clip-path:none !important}
.web-puzzle-title-box::before,.web-puzzle-title-box::after,.web-puzzle-points-box::before,.web-puzzle-points-box::after{display:none !important}
.web-puzzle-title-box strong,.web-puzzle-points-box strong{display:block;color:#f3fdff;text-transform:uppercase;font-family:'Orbitron','Rajdhani',Inter,Arial,sans-serif !important;font-weight:800;letter-spacing:.08em;text-shadow:0 0 12px rgba(95,229,255,.22);white-space:nowrap}
.web-puzzle-title-box{width:320px;height:56px}.web-puzzle-title-box strong{font-size:26px;text-align:left;width:100%;padding-left:0}
.web-puzzle-points-box{width:220px;height:54px}.web-puzzle-points-box strong{font-size:22px;text-align:center;width:100%}
.orientation-landscape .web-puzzle-title-box{left:180px;top:52px}.orientation-landscape .web-puzzle-points-box{left:1305px;top:50px}
.orientation-portrait .web-puzzle-title-box{left:128px;top:56px}.orientation-portrait .web-puzzle-points-box{left:720px;top:54px}
.web-puzzle-page{background-image:var(--page-background-image);background-repeat:no-repeat;background-size:100% 100%;background-position:center center}
.web-puzzle-page.is-adjust-preview{border:none;box-shadow:none;background-color:#04101d}
.web-puzzle-page.is-adjust-preview::before,.web-puzzle-page.is-adjust-preview::after{display:none}
.web-puzzle-page.is-adjust-preview .web-puzzle-grid{padding:120px 42px 96px}
.web-puzzle-page.is-adjust-preview.orientation-portrait .web-puzzle-grid{padding:116px 28px 120px}
.web-puzzle-page.is-final-preview{background-image:var(--page-background-image) !important;background-size:100% 100% !important}
.web-puzzle-page.is-final-preview .web-puzzle-grid{padding:120px 48px 96px !important}
.web-puzzle-page.is-final-preview.orientation-portrait .web-puzzle-grid{padding:116px 32px 120px !important}
.adjustable-overlay{outline:1px dashed rgba(95,229,255,.38);border-radius:14px;background:rgba(5,18,30,.14)!important;backdrop-filter:blur(1px)}
.overlay-adjust-tools{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);display:grid;justify-items:center;gap:6px;pointer-events:auto}
.overlay-coords{display:block;padding:4px 8px;border-radius:999px;background:rgba(4,12,24,.88);border:1px solid rgba(94,228,255,.18);color:#9fefff;font:700 10px/1 'Orbitron',ui-monospace,monospace;white-space:nowrap}
.web-puzzle-page.is-adjust-preview .web-puzzle-title-box strong{font-size:26px}.web-puzzle-page.is-adjust-preview .web-puzzle-points-box strong{font-size:22px}
@media (max-width:900px){.web-puzzle-title-box{width:210px;height:38px}.web-puzzle-title-box strong{font-size:15px}.web-puzzle-points-box{width:150px;height:36px}.web-puzzle-points-box strong{font-size:14px}.orientation-landscape .web-puzzle-title-box{left:92px;top:24px}.orientation-landscape .web-puzzle-points-box{left:calc(100% - 165px);top:24px}.orientation-portrait .web-puzzle-title-box{left:56px;top:22px}.orientation-portrait .web-puzzle-points-box{left:calc(100% - 160px);top:22px}}

/* V77 override after V76 specific rules */
.web-puzzle-page.is-final-preview.orientation-landscape,
.web-puzzle-page.is-final-preview.orientation-portrait,
.web-puzzle-page.is-adjust-preview.orientation-landscape,
.web-puzzle-page.is-adjust-preview.orientation-portrait{
  background-image:var(--page-background-image) !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-page-header,
.web-puzzle-page.is-adjust-preview .web-puzzle-page-header{
  position:absolute !important;
  inset:0 !important;
  top:0 !important; left:0 !important; right:0 !important;
  pointer-events:none !important;
  z-index:8 !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box,
.web-puzzle-page.is-final-preview .web-puzzle-points-box,
.web-puzzle-page.is-adjust-preview .web-puzzle-title-box,
.web-puzzle-page.is-adjust-preview .web-puzzle-points-box{
  width:auto !important;
  min-width:0 !important;
  min-height:auto !important;
  height:auto !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  clip-path:none !important;
}
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong,
.web-puzzle-page.is-adjust-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-adjust-preview .web-puzzle-points-box strong{
  width:auto !important;
  padding:0 !important;
}


/* V79 — fond visible dans les 2 aperçus + images par défaut */
.web-puzzle-page{position:relative;overflow:hidden;background:none !important;}
.web-puzzle-page-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;z-index:0;pointer-events:none;display:block;}
.web-puzzle-page-header,.web-puzzle-grid,.final-connections-layer,.final-page-footer{position:relative;z-index:2;}
.web-puzzle-page.is-adjust-preview .web-puzzle-page-bg,.web-puzzle-page.is-final-preview .web-puzzle-page-bg{display:block !important;opacity:1 !important;}
.web-puzzle-page.is-adjust-preview::before,.web-puzzle-page.is-adjust-preview::after,.web-puzzle-page.is-final-preview::before,.web-puzzle-page.is-final-preview::after{pointer-events:none;}


/* V80 — même taille / même position entre aperçu intermédiaire et final */
.web-puzzle-frame{box-sizing:border-box;}
.web-puzzle-page.is-final-preview .web-puzzle-grid{padding:120px 42px 96px !important;}
.web-puzzle-page.is-final-preview.orientation-portrait .web-puzzle-grid{padding:116px 28px 120px !important;}
.web-puzzle-page.is-final-preview .web-puzzle-frame{padding:13px !important;border-width:1px !important;box-sizing:border-box !important;}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-main,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-landscape,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-compact,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-portrait,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual{padding:13px !important;}
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual .web-frame-richtext,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual .web-frame-link-preview{padding:0 !important;}


/* V81 — correction structurelle : géométrie strictement identique + liaisons restaurées */
.final-render-shell{width:min(1320px,calc(100% - 32px)) !important;}
.web-puzzle-page.is-adjust-preview,
.web-puzzle-page.is-final-preview{
  padding:20px !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
.web-puzzle-page.is-adjust-preview .web-puzzle-grid,
.web-puzzle-page.is-final-preview .web-puzzle-grid{
  padding:120px 42px 96px !important;
  box-sizing:border-box !important;
  width:100% !important;
  height:100% !important;
}
.web-puzzle-page.is-adjust-preview.orientation-portrait .web-puzzle-grid,
.web-puzzle-page.is-final-preview.orientation-portrait .web-puzzle-grid{
  padding:116px 28px 120px !important;
}
.web-puzzle-page.is-adjust-preview .web-puzzle-frame,
.web-puzzle-page.is-final-preview .web-puzzle-frame{
  box-sizing:border-box !important;
  padding:13px !important;
  border-width:1px !important;
  margin:0 !important;
  min-width:0 !important;
}
/* Le décor final n'a jamais le droit de modifier la boîte mesurée. */
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-main,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-landscape,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-compact,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-portrait,
.web-puzzle-page.is-final-preview .web-puzzle-frame.final-frame-textual{
  padding:13px !important;
  margin:0 !important;
}
.web-puzzle-page.is-final-preview .web-frame-body,
.web-puzzle-page.is-adjust-preview .web-frame-body{padding:0 !important;}
/* V79 avait accidentellement passé le SVG en position relative : cela cassait les liaisons. */
.web-puzzle-page .final-connections-layer{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:3 !important;
  pointer-events:none !important;
  overflow:visible !important;
}
.web-puzzle-page .web-puzzle-grid{z-index:2 !important;}
.web-puzzle-page .web-puzzle-frame{z-index:4 !important;}
.web-puzzle-page .web-puzzle-page-header{z-index:6 !important;}
.web-puzzle-page-bg{z-index:0 !important;}


/* V82 — aperçu miniature du fond dans le constructeur */
.builder-background-field{align-self:start;}
.builder-background-preview{width:170px;max-width:100%;}
.builder-bg-preview-card{width:170px;max-width:100%;padding:7px;justify-items:center;}
.builder-bg-preview-card img{display:block;width:150px;max-width:100%;height:92px;max-height:92px;object-fit:contain !important;object-position:center;background:#020914;border-radius:7px;}
.builder-bg-preview-card small{font-size:9px;text-align:center;line-height:1.25;}
.builder-background-field input[type=file]{max-width:280px;}


/* V88 — disposition automatique selon le nombre de cadres (1 à 10) */
.web-puzzle-grid.layout-count-1,.web-puzzle-grid.layout-count-2,.web-puzzle-grid.layout-count-3,.web-puzzle-grid.layout-count-4,.web-puzzle-grid.layout-count-5,.web-puzzle-grid.layout-count-6,.web-puzzle-grid.layout-count-7,.web-puzzle-grid.layout-count-8,.web-puzzle-grid.layout-count-9,.web-puzzle-grid.layout-count-10{display:block;position:relative;}
.web-puzzle-grid.layout-count-1>.web-puzzle-frame,.web-puzzle-grid.layout-count-2>.web-puzzle-frame,.web-puzzle-grid.layout-count-3>.web-puzzle-frame,.web-puzzle-grid.layout-count-4>.web-puzzle-frame,.web-puzzle-grid.layout-count-5>.web-puzzle-frame,.web-puzzle-grid.layout-count-6>.web-puzzle-frame,.web-puzzle-grid.layout-count-7>.web-puzzle-frame,.web-puzzle-grid.layout-count-8>.web-puzzle-frame,.web-puzzle-grid.layout-count-9>.web-puzzle-frame,.web-puzzle-grid.layout-count-10>.web-puzzle-frame{position:absolute;translate:-50% -50%;}
.web-builder-slots[class*="layout-count-"]{align-items:start;}
@media print{
  .web-puzzle-grid.layout-count-1,.web-puzzle-grid.layout-count-2,.web-puzzle-grid.layout-count-3,.web-puzzle-grid.layout-count-4,.web-puzzle-grid.layout-count-5,.web-puzzle-grid.layout-count-6,.web-puzzle-grid.layout-count-7,.web-puzzle-grid.layout-count-8,.web-puzzle-grid.layout-count-9,.web-puzzle-grid.layout-count-10{display:block!important;position:relative!important;}
  .web-puzzle-grid.layout-count-1>.web-puzzle-frame,.web-puzzle-grid.layout-count-2>.web-puzzle-frame,.web-puzzle-grid.layout-count-3>.web-puzzle-frame,.web-puzzle-grid.layout-count-4>.web-puzzle-frame,.web-puzzle-grid.layout-count-5>.web-puzzle-frame,.web-puzzle-grid.layout-count-6>.web-puzzle-frame,.web-puzzle-grid.layout-count-7>.web-puzzle-frame,.web-puzzle-grid.layout-count-8>.web-puzzle-frame,.web-puzzle-grid.layout-count-9>.web-puzzle-frame,.web-puzzle-grid.layout-count-10>.web-puzzle-frame{position:absolute!important;translate:-50% -50%!important;}
}

/* V90 — suppression individuelle des cadres */
.slot-head-controls{flex-wrap:wrap;}
.delete-frame-button{white-space:nowrap;}
.delete-frame-button:disabled{opacity:.42;cursor:not-allowed;}

/* V91 — export PDF identique à l'aperçu final, avec fonds blancs d'impression */
.web-puzzle-page-bg.print-bg{display:none}

@media print {
  body::before,body::after,.ambient,.grid-layer,.site-header,.site-footer,.no-print,.web-frame-modal{display:none!important}
  html,body,.site-main,.web-puzzle-shell,.web-puzzle-pages{
    margin:0!important;padding:0!important;max-width:none!important;background:#fff!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
  .web-puzzle-shell{padding:0!important}
  .web-puzzle-pages{display:block!important}

  /* On garde la même géométrie que l'aperçu web et on la réduit uniformément pour A4. */
  .web-puzzle-page{
    position:relative!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-after:page!important;
    page-break-after:always!important;
    background:none!important;
    aspect-ratio:auto!important;
    transform:none!important;
    zoom:.902!important;
  }
  .web-puzzle-page:last-child{break-after:auto!important;page-break-after:auto!important}
  .web-puzzle-page.orientation-landscape{
    width:1240px!important;
    height:876.7677px!important;
    padding:20px!important;
  }
  .web-puzzle-page.orientation-portrait{
    width:880px!important;
    height:1244.5714px!important;
    padding:20px!important;
  }

  .web-puzzle-page::before{display:none!important}
  .web-puzzle-page-bg.screen-bg{display:none!important}
  .web-puzzle-page-bg.print-bg{display:block!important}
  .web-puzzle-page-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;z-index:0!important}
  .final-page-ambience,.final-page-footer{display:none!important}
  .web-puzzle-page-header{position:absolute!important;top:20px!important;left:20px!important;right:20px!important;z-index:4!important;margin:0!important;pointer-events:none!important}
  .web-puzzle-grid{position:relative!important;z-index:1!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important}

  /* On ne change plus le style des cadres : seule l'image de fond change. */
  .web-puzzle-title-box,.web-puzzle-points-box{
    width:max-content!important;max-width:48%!important;min-height:0!important;padding:9px 14px!important;
    border:1px solid rgba(68,224,255,.48)!important;border-radius:10px!important;
    background:linear-gradient(135deg,#071d34,#04121f)!important;display:flex!important;align-items:center!important;
    box-shadow:0 0 20px rgba(42,219,255,.045)!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
  .web-puzzle-title-box strong,.web-puzzle-points-box strong{color:#f6fbff!important;font-size:20px!important;line-height:1.15!important}
  .web-puzzle-frame{
    width:fit-content!important;max-width:100%!important;height:max-content!important;min-width:0!important;
    padding:13px!important;border:1px solid rgba(72,221,255,.38)!important;border-radius:14px!important;
    background:linear-gradient(145deg,rgba(7,28,49,.98),rgba(3,16,30,.98))!important;
    box-shadow:inset 0 0 22px rgba(35,213,255,.025),0 8px 24px rgba(0,0,0,.14)!important;
    cursor:default!important;overflow:hidden!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
  .web-frame-richtext{width:100%!important;max-width:100%!important;color:#ecf7fb!important;font-size:20px!important;line-height:1.5!important}
  .web-frame-richtext strong{color:#64e6ff!important}
  .web-frame-link-preview{width:100%!important;max-width:100%!important;display:grid!important;align-content:center!important;justify-items:center!important;text-align:center!important;gap:8px!important;color:#d6e9f3!important}
  .web-frame-link-preview strong{color:#64e6ff!important;font-size:18px!important}.web-frame-link-preview p{margin:0!important;color:#9eb3c2!important}.web-frame-link-preview span{font-size:10px!important;color:#72899c!important;text-transform:uppercase!important;letter-spacing:.08em!important}
  .web-frame-body img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:72vh!important;object-fit:contain!important;border-radius:8px!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}


/* V92 — croix de suppression compacte + fond blanc strictement réservé à l'impression */
.delete-frame-button{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  min-width:28px;
  padding:0;
  border:1px solid rgba(255,88,88,.55);
  border-radius:8px;
  background:rgba(95,12,18,.34);
  color:#ff6666;
  font-size:22px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.delete-frame-button:hover:not(:disabled){
  background:rgba(145,18,28,.46);
  border-color:#ff7070;
  color:#fff;
  box-shadow:0 0 14px rgba(255,72,72,.18);
}
.delete-frame-button:disabled{opacity:.30;cursor:not-allowed;}

/* Le fond d'impression ne doit JAMAIS apparaître à l'écran. */
.web-puzzle-page.is-adjust-preview .web-puzzle-page-bg.print-bg,
.web-puzzle-page.is-final-preview .web-puzzle-page-bg.print-bg{
  display:none !important;
}
.web-puzzle-page.is-adjust-preview .web-puzzle-page-bg.screen-bg,
.web-puzzle-page.is-final-preview .web-puzzle-page-bg.screen-bg{
  display:block !important;
}

@media print{
  .web-puzzle-page.is-adjust-preview .web-puzzle-page-bg.print-bg,
  .web-puzzle-page.is-final-preview .web-puzzle-page-bg.print-bg{
    display:block !important;
  }
  .web-puzzle-page.is-adjust-preview .web-puzzle-page-bg.screen-bg,
  .web-puzzle-page.is-final-preview .web-puzzle-page-bg.screen-bg{
    display:none !important;
  }
}

/* V94 — capture image fidèle pour génération automatique du PDF */
.pdf-capture-stage{
  position:fixed;
  left:-20000px;
  top:0;
  overflow:hidden;
  background:#fff;
  z-index:-99999;
  pointer-events:none;
}
.pdf-capture-stage .web-puzzle-page{
  max-width:none!important;
  margin:0!important;
  box-shadow:none!important;
}
.pdf-capture-stage .web-puzzle-page-bg.screen-bg{display:none!important}
.pdf-capture-stage .web-puzzle-page-bg.print-bg{display:block!important;opacity:1!important}
.pdf-capture-stage .final-page-ambience,
.pdf-capture-stage .final-page-footer{display:none!important}


/* V95 — fond blanc forcé pour la capture PDF */
.pdf-capture-stage .web-puzzle-page.is-final-preview .web-puzzle-page-bg.print-bg{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
}
.pdf-capture-stage .web-puzzle-page.is-final-preview .web-puzzle-page-bg.screen-bg{
  display:none!important;
}

/* V97 — choix utilisateur après préparation du PDF */
.pdf-choice-modal[hidden]{display:none!important}
.pdf-choice-modal{
  position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;
  background:rgba(0,7,15,.78);backdrop-filter:blur(8px);
}
.pdf-choice-card{
  position:relative;width:min(430px,calc(100vw - 32px));padding:26px;
  border:1px solid rgba(92,232,255,.38);border-radius:18px;
  background:linear-gradient(145deg,#071b30,#020b15);
  box-shadow:0 24px 70px rgba(0,0,0,.46),0 0 30px rgba(62,221,255,.08);
  text-align:center;
}
.pdf-choice-card h2{margin:0 0 8px;color:#eefbff}
.pdf-choice-card p{margin:0 0 20px;color:#9bb0bf}
.pdf-choice-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.pdf-choice-close{
  position:absolute;right:10px;top:10px;width:32px;height:32px;padding:0;
  border:1px solid rgba(255,112,112,.42);border-radius:9px;background:rgba(90,14,23,.35);
  color:#ff9797;font-size:22px;line-height:1;cursor:pointer;
}
.pdf-choice-close:hover{background:rgba(135,20,30,.52);color:#fff}
.pdf-capture-stage .web-puzzle-page-bg.pdf-white-bg{display:block!important;opacity:1!important;visibility:visible!important}

/* V100 — énigme finale / énigme bis */
.final-puzzle-toggle{display:flex;align-items:center;gap:12px;margin:12px 0 4px;padding:12px 14px;border:1px solid rgba(94,228,255,.18);border-radius:14px;background:rgba(5,18,31,.72);cursor:pointer;max-width:560px}
.final-puzzle-toggle input{width:18px;height:18px;accent-color:#63e9ff;flex:0 0 auto}
.final-puzzle-toggle span{display:grid;gap:2px}.final-puzzle-toggle strong{color:#dffbff}.final-puzzle-toggle small{color:#86a4b7;line-height:1.35}
.final-puzzle-toggle:has(input:checked){border-color:rgba(111,236,255,.48);box-shadow:0 0 18px rgba(76,222,255,.08);background:linear-gradient(145deg,rgba(7,31,50,.88),rgba(4,16,29,.9))}
.final-bis-card{border-color:rgba(109,233,255,.28)!important;box-shadow:inset 0 0 30px rgba(75,219,255,.035)}
.load-start-puzzle-form{margin-top:10px}.builder-composition-bar-bis .builder-composition-title{align-self:start}
.final-live-puzzle{border-color:rgba(117,232,255,.24)}
.final-bis-button{border-color:rgba(99,227,255,.44)!important;color:#b9f7ff!important}

/* V100 — titre et points en bleu cyan dans les aperçus et les captures PDF */
.web-puzzle-page .web-puzzle-title-box strong,
.web-puzzle-page .web-puzzle-points-box strong{
  color:#42ddff !important;
  text-shadow:0 0 10px rgba(66,221,255,.42),0 0 20px rgba(66,221,255,.16) !important;
}
.final-live-puzzle .puzzle-deadlines{grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:900px){.final-live-puzzle .puzzle-deadlines{grid-template-columns:1fr;}}


/* V101 — fiabilisation aperçus/PDF + redimensionnement du texte */
.web-puzzle-page.is-adjust-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-adjust-preview .web-puzzle-points-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-title-box strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box strong,
.pdf-capture-page .web-puzzle-title-box strong,
.pdf-capture-page .web-puzzle-points-box strong{
  color:#42ddff !important;
  text-shadow:0 0 10px rgba(66,221,255,.42),0 0 20px rgba(66,221,255,.16) !important;
}
.pdf-capture-page::before,.pdf-capture-page::after{display:none!important;content:none!important;}
.web-puzzle-frame.frame-type-text .web-frame-richtext{transition:font-size .16s ease;}
@media print{
  .web-puzzle-title-box strong,.web-puzzle-points-box strong{color:#42ddff!important;}
}

/* V104 — finale sans indices + réponse sur toute la largeur */
.team-puzzle-interactions.final-no-hints{grid-template-columns:1fr;}
.final-scoring-note{color:#8edfff!important;font-weight:700;}
[data-final-hint-card][hidden]{display:none!important;}


/* V106 — correction IA dans les cadres texte du constructeur */
.puzzle-ai-helper{display:grid;gap:8px;margin-top:10px}
.puzzle-ai-helper .ai-editor-actions{margin-top:0}
.puzzle-ai-suggestion{margin-top:2px}
.puzzle-ai-suggestion-editor{
  min-height:92px;
  max-height:260px;
  overflow:auto;
  padding:11px 12px;
  border:1px solid rgba(100,230,255,.22);
  border-radius:10px;
  background:rgba(3,14,26,.72);
  color:#e9f8ff;
  font-size:13px;
  line-height:1.55;
  outline:none;
  white-space:normal;
}
.puzzle-ai-suggestion-editor:focus{border-color:rgba(100,230,255,.54);box-shadow:0 0 0 2px rgba(100,230,255,.07)}
.puzzle-ai-suggestion.is-error .puzzle-ai-suggestion-editor{color:#ffb3be;border-color:rgba(239,93,106,.32);white-space:pre-wrap}
.puzzle-ai-suggestion-editor p:first-child,.puzzle-ai-suggestion-editor div:first-child{margin-top:0}
.puzzle-ai-suggestion-editor p:last-child,.puzzle-ai-suggestion-editor div:last-child{margin-bottom:0}


/* V108 — PDF du règlement sur fond blanc dédié, sans doublon de titre/footer. */
@media print {
  @page { size:A4 portrait; margin:8mm; }
  .rules-printable {
    position:relative !important;
    min-height:281mm !important;
    padding:0 !important;
    background:#fff !important;
    overflow:visible !important;
  }
  .rules-pdf-page-background{
    display:block !important;
    position:fixed !important;
    top:8mm !important;
    left:8mm !important;
    width:194mm !important;
    height:281mm !important;
    object-fit:cover !important;
    z-index:0 !important;
    pointer-events:none !important;
  }
  .rules-pdf-title{display:none !important;}
  .rules-empty-state{position:relative !important; z-index:2 !important; margin:38mm auto 0 !important; max-width:150mm !important;}
  .rules-article-grid,
  .rules-web-content {
    position:relative !important;
    z-index:2 !important;
  }
  .rules-article-grid{
    width:150mm !important;
    max-width:150mm !important;
    margin:26mm auto 0 !important;
    gap:5mm !important;
    align-content:start !important;
  }
  .rules-article-card {
    grid-template-columns: 15mm minmax(0,1fr) !important;
    column-gap: 6mm !important;
    padding: 5mm 6.5mm 5mm 5mm !important;
    min-height: 0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  .rules-pdf-card-shape{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    z-index:0 !important;
  }
  .rules-article-number{
    position:relative !important;
    z-index:2 !important;
    width:11.8mm !important;
    min-width:11.8mm !important;
    height:11.8mm !important;
    min-height:11.8mm !important;
    align-self:center !important;
    justify-self:center !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#f7feff !important;
    font-size:15.5pt !important;
    font-weight:950 !important;
    border:.4mm solid #2ae1ff !important;
    border-radius:2mm 4.2mm 2mm 4.2mm !important;
    background:rgba(4,20,34,.02) !important;
    text-shadow:0 0 1mm rgba(42,225,255,.36) !important;
    box-shadow:none !important;
  }
  .rules-article-copy{
    position:relative !important;
    z-index:2 !important;
    padding:0 1mm 0 1.5mm !important;
    color:#f6fbff !important;
    font-size:9.9pt !important;
    line-height:1.56 !important;
    font-weight:500 !important;
  }
  .rules-article-copy strong{
    color:#52ebff !important;
    font-weight:900 !important;
    text-shadow:none !important;
  }
  .rules-web-content{
    width:150mm !important;
    max-width:150mm !important;
    margin:28mm auto 0 !important;
    color:#f6fbff !important;
    background:rgba(5,19,32,.84) !important;
    border:1px solid rgba(42,225,255,.6) !important;
    border-radius:5mm !important;
    padding:8mm !important;
    box-shadow:none !important;
  }
}

/* V109 : encadré installable, ajouté à l'accueil sans altérer les blocs d'origine */
.home-pwa-box{max-width:1100px;margin:32px auto 48px;padding:25px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-radius:22px;background:linear-gradient(125deg,#0b233f,#071325);border:1px solid #3388bd;box-shadow:inset 0 0 25px #0e6e9d32,0 0 20px #0088b720;color:#f7fbff}
.home-pwa-copy{max-width:730px}.home-pwa-copy h2{font-size:clamp(1.3rem,2.7vw,2rem);margin:10px 0}.home-pwa-copy p{line-height:1.6;color:#c0d9ec}.home-pwa-copy .button{display:inline-flex;text-decoration:none;margin:10px 0}.home-pwa-small{font-size:.8rem}.home-pwa-qr{display:flex;flex-direction:column;gap:7px;align-items:center;color:#c5ebfc;text-decoration:none;white-space:nowrap;font-size:.8rem;font-weight:700}.home-pwa-qr img{background:white;padding:8px;border-radius:12px;width:172px;height:172px;object-fit:contain}
@media(max-width:700px){.home-pwa-box{margin:20px 12px 30px;padding:18px;flex-direction:column;align-items:stretch;text-align:center}.home-pwa-qr{white-space:normal}}

/* V110 — Installer l’application visible dès le premier écran */
.home-hero { align-items:start; }
.home-pwa-above-fold { grid-column:1 / -1; width:100%; max-width:none; margin:12px 0 8px; padding:16px 20px; gap:16px; }
.home-pwa-above-fold .home-pwa-copy h2 { margin:4px 0; font-size:clamp(1.05rem,2vw,1.4rem); }
.home-pwa-above-fold .home-pwa-copy p { margin:5px 0; font-size:.87rem; }
.home-pwa-above-fold .home-pwa-qr img { width:102px; height:102px; }
.home-pwa-above-fold .home-pwa-small { display:none; }
@media(max-width:700px){.home-pwa-above-fold{margin:12px 0;padding:14px;gap:10px;flex-direction:row;align-items:center;text-align:left}.home-pwa-above-fold .home-pwa-qr img{width:80px;height:80px}.home-pwa-above-fold .home-pwa-qr span{font-size:.65rem}.home-pwa-above-fold .home-pwa-copy p{display:none}.home-pwa-above-fold .home-pwa-copy .button{padding:9px 12px;font-size:.81rem}}
/* V110 — PDF du règlement : seulement les cadres des articles et le fond agrandi. */
@media print{
 @page{size:A4 portrait;margin:0}
 html,body{width:210mm !important;margin:0 !important;padding:0 !important;background:#fff !important}
 .rules-page{width:210mm !important;min-height:297mm !important;margin:0 !important;padding:0 !important}
 .rules-page-toolbar,.rules-print-header,.rules-pdf-title,.site-header,.site-footer{display:none !important}
 .rules-printable{position:relative !important;width:210mm !important;min-height:297mm !important;margin:0 !important;padding:4mm !important;background:#fff !important;overflow:visible !important}
 .rules-pdf-page-background{position:fixed !important;top:4mm !important;left:4mm !important;width:202mm !important;height:289mm !important;object-fit:fill !important;display:block !important;z-index:0 !important}
 .rules-article-grid{position:relative !important;z-index:2 !important;margin:14mm auto 0 !important;width:182mm !important;max-width:182mm !important;gap:3mm !important}
 .rules-article-card{break-inside:avoid !important;page-break-inside:avoid !important;min-height:0 !important;padding:3.5mm 5mm !important}
 .rules-web-content{position:relative !important;z-index:2 !important;max-width:182mm !important;width:182mm !important;margin:14mm auto 0 !important}
}
/* V110 — Enigme bis configurable */
.settings-date-card[hidden],.final-bis-card[hidden]{display:none !important}
.final-bis-card{border-color:rgba(74,219,255,.55) !important}

/* V110 - impression robuste sur une page : cartes flexibles, fond imprimable propre. */
@media print {
 .rules-page { display:block !important; min-height:0 !important; margin:0 !important; padding:0 !important; break-after:avoid !important; }
 .rules-printable { box-sizing:border-box !important; width:210mm !important; min-height:0 !important; height:296.7mm !important; overflow:hidden !important; padding:4mm !important; margin:0 !important; }
 .rules-article-grid { box-sizing:border-box !important; display:flex !important; flex-direction:column !important; gap:3.8mm !important; width:182mm !important; margin:17mm auto 0 !important; align-items:stretch !important; }
 .rules-article-card { box-sizing:border-box !important; width:100% !important; display:flex !important; flex-flow:row nowrap !important; align-items:center !important; justify-content:flex-start !important; column-gap:5mm !important; margin:0 !important; border:none !important; min-height:0 !important; height:auto !important; padding:4.2mm 6.5mm !important; }
 .rules-article-number { flex:0 0 13mm !important; max-width:13mm !important; min-width:13mm !important; width:13mm !important; height:12mm !important; min-height:12mm !important; box-sizing:border-box !important; font-size:11pt !important; overflow-wrap:anywhere !important; }
 .rules-article-copy { display:block !important; box-sizing:border-box !important; flex:1 1 auto !important; width:auto !important; max-width:none !important; min-width:0 !important; margin:0 !important; padding:0 1mm !important; font-size:10.5pt !important; line-height:1.42 !important; overflow-wrap:break-word !important; }
 .rules-article-copy p {margin:0 !important;}
 .rules-article-copy p + p { margin-top:1.2mm !important; }
}
@media print {
 .rules-article-grid { margin-top:37mm !important; }
 .rules-article-number { flex-basis:24mm !important; min-width:24mm !important; max-width:24mm !important; width:24mm !important; height:13mm !important; min-height:13mm !important; font-size:10.4pt !important; }
}
@media print {
  /* Ne jamais rogner les articles si le règlement est trop long : pagination naturelle. */
  .rules-printable { height:auto !important; min-height:296.5mm !important; overflow:visible !important; }
  .rules-article-card { break-inside:avoid !important; page-break-inside:avoid !important; }
}

/* V111 : accueil compact, la tête et le compte à rebours restent dans leur colonne d'origine */
.home-hero{align-items:center;gap:clamp(22px,3vw,55px);padding-top:clamp(28px,4vw,56px);}
.home-hero .hero-copy{min-width:0;}
.home-hero .hero-copy h1{font-size:clamp(48px,5.4vw,76px);margin:17px 0 15px;}
.home-hero .hero-lead{font-size:clamp(13px,1.15vw,16px);line-height:1.55;}
.home-hero .hero-actions{margin-top:20px;gap:8px;}
.home-hero .hero-actions .button{min-height:44px;padding:0 15px;}
.home-hero .hero-meta{margin-top:20px;padding-top:15px;}
.home-pwa-inline{width:100%;margin:18px 0 0;padding:11px 13px;gap:12px;border-radius:16px;box-shadow:none;min-height:0;}
.home-pwa-inline .home-pwa-copy{min-width:0;}
.home-pwa-inline .eyebrow{font-size:9px;letter-spacing:.10em;}
.home-pwa-inline .home-pwa-copy h2{font-size:clamp(13px,1.35vw,16px);line-height:1.25;margin:4px 0 6px;}
.home-pwa-inline .home-pwa-copy p{display:none;}
.home-pwa-inline .home-pwa-copy .button{min-height:34px;font-size:12px;padding:0 12px;margin:3px 0 0;}
.home-pwa-inline .home-pwa-qr{font-size:10px;gap:3px;}
.home-pwa-inline .home-pwa-qr img{width:76px;height:76px;padding:4px;border-radius:8px;}
.home-pwa-inline .home-pwa-qr span{font-size:10px;white-space:normal;text-align:center;}
@media(max-width:960px){.home-hero{grid-template-columns:1fr;gap:22px}.home-hero .mission-card{max-width:620px;justify-self:center}.home-pwa-inline{flex-direction:row;text-align:left;align-items:center}}
@media(max-width:600px){.home-hero .hero-copy h1{font-size:clamp(45px,11vw,62px)}.home-pwa-inline{margin-top:16px;padding:12px;gap:10px;}.home-pwa-inline .home-pwa-qr img{width:68px;height:68px;}.home-pwa-inline .home-pwa-copy h2{font-size:14px;}}
/* V111 : trois constructeurs de même taille et même apparence */
.web-content-admin-grid.is-final-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;}
.web-content-admin-grid.is-final-three .web-content-admin-card{min-width:0;padding:14px;}
.web-content-admin-grid.is-final-three .web-content-admin-card h3{font-size:clamp(13px,1.15vw,17px);}
.web-content-admin-grid.is-final-three .web-content-admin-card p{font-size:12px;line-height:1.5;}
.web-content-admin-grid .final-bis-card{border-color:rgba(94,228,255,.10) !important;box-shadow:none !important;}
.web-content-admin-grid.is-final-three .web-content-admin-card{border-color:rgba(94,228,255,.10) !important;box-shadow:none !important;}
@media(max-width:760px){.web-content-admin-grid.is-final-three{grid-template-columns:1fr}}
/* V111 : heure bis erronée signalée clairement */
.settings-date-card.invalid-bis-time{border-color:#ff5667!important;box-shadow:0 0 0 1px rgba(255,86,103,.5)!important;}
.settings-date-card.invalid-bis-time input[name="bis_time"]{border-color:#ff5667!important;color:#ffb4bb!important;}
.final-bis-validation{display:block;margin-top:6px;font-size:12px;color:#ff8c99;font-weight:700;}


/* V112 — garder la tête lumineuse à droite ; placer les chiffres du concours
   à droite d'« Observez. Cherchez. Déduisez. » et agrandir l'encadré PWA. */
.home-title-and-facts{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.home-hero .hero-copy .home-title-and-facts h1{flex:1 1 auto;min-width:0;font-size:clamp(43px,4.55vw,67px);margin:17px 0 12px;}
.home-facts-card{flex:0 0 132px;min-width:0;display:flex;flex-direction:column;border:1px solid rgba(94,228,255,.34);border-radius:17px;background:linear-gradient(160deg,rgba(15,48,78,.74),rgba(7,17,35,.92));box-shadow:inset 0 0 22px rgba(94,228,255,.045);overflow:hidden;}
.home-fact{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;padding:14px 7px;line-height:1.15;}
.home-fact + .home-fact{border-top:1px solid rgba(94,228,255,.19);}
.home-fact strong{font-family:'Orbitron',sans-serif;font-weight:700;font-size:20px;color:#ecfaff;white-space:nowrap;}
.home-fact span{font-size:11px;color:#a6c8e4;font-weight:650;white-space:nowrap;}
.home-pwa-inline{margin-top:21px;padding:17px 17px;gap:18px;}
.home-pwa-inline .home-pwa-copy h2{font-size:clamp(15px,1.55vw,19px);line-height:1.27;margin:6px 0 10px;}
.home-pwa-inline .home-pwa-copy .button{min-height:40px;font-size:13px;padding:0 15px;}
.home-pwa-inline .home-pwa-qr{gap:6px;font-size:11px;flex:0 0 auto;}
.home-pwa-inline .home-pwa-qr img{width:124px;height:124px;padding:6px;border-radius:10px;}
.home-pwa-inline .home-pwa-qr span{font-size:11px;}
@media(min-width:961px) and (max-width:1190px){
 .home-hero .hero-copy .home-title-and-facts h1{font-size:clamp(41px,4.35vw,56px);}
 .home-facts-card{flex-basis:115px;}
 .home-fact strong{font-size:18px;}
 .home-fact span{font-size:10px;}
 .home-pwa-inline .home-pwa-qr img{width:110px;height:110px;}
}
@media(max-width:960px){
 .home-hero .hero-copy .home-title-and-facts h1{font-size:clamp(49px,7vw,74px);}
 .home-facts-card{flex-basis:146px;}
 .home-pwa-inline .home-pwa-qr img{width:132px;height:132px;}
}
@media(max-width:600px){
 .home-title-and-facts{gap:8px;align-items:center;}
 .home-hero .hero-copy .home-title-and-facts h1{font-size:clamp(37px,9vw,53px);}
 .home-facts-card{flex-basis:113px;border-radius:12px;}
 .home-fact{padding:11px 5px;}
 .home-fact strong{font-size:16px;}
 .home-fact span{font-size:9.5px;}
 .home-pwa-inline{padding:13px;gap:9px;margin-top:16px;}
 .home-pwa-inline .home-pwa-copy h2{font-size:14px;}
 .home-pwa-inline .home-pwa-qr img{width:93px;height:93px;}
 .home-pwa-inline .home-pwa-qr span{font-size:9px;}
}
@media(max-width:360px){
 .home-hero .hero-copy .home-title-and-facts h1{font-size:35px;}
 .home-facts-card{flex-basis:98px;}
 .home-pwa-inline .home-pwa-qr img{width:85px;height:85px;}
}

/* V114 : installation de la même PWA sur la page de connexion, dans le style de l’accueil. */
.auth-intro .login-pwa-box {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin:26px 0 0;
  padding:16px;
  gap:12px;
  text-align:left;
  flex-direction:row;
  align-items:center;
}
.auth-intro .login-pwa-box .home-pwa-copy { flex:1 1 auto; min-width:0; }
.auth-intro .login-pwa-box .home-pwa-copy h2 { font-size:clamp(14px,1.42vw,18px); line-height:1.3; }
.auth-intro .login-pwa-box .home-pwa-qr { flex:0 0 auto; max-width:110px; }
.auth-intro .login-pwa-box .home-pwa-qr img { width:104px; height:104px; }
@media (max-width:1100px) and (min-width:961px){
  .auth-intro .login-pwa-box { gap:8px; padding:12px; }
  .auth-intro .login-pwa-box .home-pwa-qr img { width:88px; height:88px; }
  .auth-intro .login-pwa-box .home-pwa-copy h2 { font-size:14px; }
  .auth-intro .login-pwa-box .home-pwa-copy .button { font-size:11px; padding:0 8px; }
}
@media(max-width:600px){
  .auth-intro .login-pwa-box { margin:22px 0 0; padding:13px; gap:9px; }
  .auth-intro .login-pwa-box .home-pwa-qr img { width:93px; height:93px; }
}
@media(max-width:360px){
  .auth-intro .login-pwa-box .home-pwa-qr img { width:78px; height:78px; }
  .auth-intro .login-pwa-box .home-pwa-copy .button { font-size:11px; padding:0 8px; }
}

/* V114 : le premier article reste sous le titre déjà gravé dans le fond PDF du règlement. */
@media print {
  .rules-article-grid { margin-top:44mm !important; }
}


/* V116 — Correction du blason dans l'accueil responsive.
   La copie mobile fait partie de la colonne de droite au-dessus des statistiques,
   et ne peut donc pas recouvrir le titre ou le badge d'édition. */
.home-facts-side{
  flex:0 0 132px;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.home-facts-side .home-facts-card{flex:0 0 auto; width:100%;}
.college-crest-stage-mobile{display:none !important;}

/* Teinte cyan, harmonisée avec le bouton principal, sans toucher au petit logo du header. */
.college-crest-stage .college-crest-image{
  /* Couleur fixe de base ; une animation (notamment tactile) doit pouvoir changer le filtre. */
  filter: hue-rotate(-23deg) brightness(1.22) saturate(.78) contrast(1.04)
          drop-shadow(0 0 8px rgba(95,231,255,.52))
          drop-shadow(0 0 20px rgba(71,215,255,.26));
}
.college-crest-stage .college-crest-shell::before{
  background:radial-gradient(circle,rgba(87,230,255,.20),rgba(47,169,255,.09) 46%,transparent 73%);
}
@media(min-width:961px) and (max-width:1190px){
  .home-facts-side{flex-basis:115px;}
}
@media(max-width:960px){
  .college-crest-stage-desktop{display:none !important;}
  .home-facts-side{flex:0 0 146px;}
  .home-facts-side .college-crest-stage-mobile{
    display:block !important;
    position:relative !important;
    top:auto !important;left:auto !important;
    transform:none !important;
    width:min(132px,100%);
    height:auto;
    margin:0 auto 12px;
    pointer-events:none;
  }
}
@media(max-width:600px){
  .home-kickers{max-width:calc(100% - 116px);}
  .home-kickers .eyebrow{max-width:100%;line-height:1.35;letter-spacing:.1em;}
  .home-title-and-facts{align-items:center;}
  .home-facts-side{flex:0 0 113px;position:relative;}
  .home-facts-side .college-crest-stage-mobile{
    position:absolute !important;
    top:auto !important;bottom:calc(100% + 10px);
    left:50% !important;transform:translateX(-50%) !important;
    width:103px;max-width:100%;margin:0;
  }
  .home-facts-side .home-facts-card{border-radius:12px;}
}
@media(max-width:390px){
  .home-facts-side .college-crest-stage-mobile{bottom:calc(100% + 8px);}
  .home-facts-side .college-crest-stage-mobile{width:96px;}
}
@media(max-width:360px){
  .home-facts-side{flex-basis:98px;}
  .home-facts-side .college-crest-stage-mobile{width:90px;}
}

/* V117 — Retour vers la PWA depuis le site, sans surcharger l'en-tête mobile. */
.site-nav .nav-return-app { color:var(--cyan);border:1px solid rgba(94,228,255,.38);background:rgba(94,228,255,.07);white-space:nowrap; }
.site-nav .nav-return-app:hover, .site-nav .nav-return-app:focus-visible { color:#fff;background:rgba(94,228,255,.17);border-color:var(--cyan); }
.site-nav .nav-return-app-short { display:none; }
@media (max-width:650px) {
  .site-header:has(.nav-return-app) { gap:8px; }
  .site-nav:has(.nav-return-app) { gap:3px; }
  .site-nav .nav-return-app-long { display:none; }
  .site-nav .nav-return-app-short { display:inline; }
  .site-nav .nav-return-app { padding:9px 8px;font-size:12px; }
}

/* V118 — le filtre fixe de V116 empêchait l’animation de luminosité du blason mobile.
   La variante tactile pulse en cyan ; les préférences d’accessibilité restent respectées. */
@keyframes collegeCrestMobilePulse118 {
  0%,100% {
    opacity:.81;
    transform:scale(.986);
    filter:hue-rotate(-23deg) brightness(.90) saturate(.75) contrast(1.03)
      drop-shadow(0 0 4px rgba(85,216,255,.25))
      drop-shadow(0 0 10px rgba(61,191,255,.15));
  }
  45%,55% {
    opacity:1;
    transform:scale(1.012);
    filter:hue-rotate(-23deg) brightness(1.43) saturate(.84) contrast(1.09)
      drop-shadow(0 0 12px rgba(101,232,255,.79))
      drop-shadow(0 0 30px rgba(67,207,255,.43));
  }
}
@media (max-width:960px), (hover:none), (pointer:coarse) {
  .college-crest-stage-mobile .college-crest-image {
    animation: collegeCrestMobilePulse118 3.8s ease-in-out infinite !important;
  }
  .college-crest-stage-mobile .college-crest-shell::before {
    animation: collegeNeonAura29 3.8s ease-in-out infinite !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .college-crest-stage-mobile .college-crest-image,
  .college-crest-stage-mobile .college-crest-shell::before {
    animation: none !important;
  }
}
/* Belleyme V120 : conversations par équipe, couleurs discrètes et 1re lecture. */
.bely-thread-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.bely-thread-category{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:18px 16px;border-radius:16px;text-decoration:none;font-size:clamp(12px,1.3vw,16px);font-weight:800;color:#e3f4ff;transition:background .18s,border-color .18s}
.bely-thread-category span{min-width:0;overflow-wrap:anywhere}
.bely-thread-category strong{flex:0 0 auto;min-width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.08);font-size:17px}
.bely-thread-category.unread{border:1px solid rgba(48,180,242,.65);background:rgba(24,148,216,.09)}
.bely-thread-category.pending{border:1px solid rgba(225,155,55,.65);background:rgba(210,140,33,.09)}
.bely-thread-category.treated{border:1px solid rgba(65,187,123,.60);background:rgba(28,143,88,.085)}
.bely-thread-category.current,.bely-thread-category:hover{filter:brightness(1.18);box-shadow:0 0 0 1px rgba(255,255,255,.11) inset}
.bely-thread-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 15px}
.bely-thread-heading h2,.bely-thread-heading h3{margin:0}
.bely-thread-heading small{color:#91a8c0}
.bely-thread-list{display:grid;gap:9px}
.bely-thread-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;text-decoration:none;color:#e7f2fc;padding:14px;border-radius:13px;border:1px solid rgba(110,158,194,.20);background:rgba(17,36,55,.46)}
.bely-thread-item strong{overflow-wrap:anywhere}
.bely-thread-item small{color:#8ca2b9;font-size:11px}
.bely-thread-item p{grid-column:1/-1;margin:0;font-size:13px;color:#9cb0c4;overflow-wrap:anywhere}
.bely-thread-item.unread{border-color:rgba(66,188,239,.46);background:rgba(36,149,215,.10)}
.bely-thread-item.pending{border-color:rgba(226,168,70,.42);background:rgba(204,141,43,.08)}
.bely-thread-item.treated{border-color:rgba(75,180,125,.32);background:rgba(39,149,99,.055)}
.bely-thread-reader{min-width:0}
.bely-thread-history{display:grid;align-items:start;gap:12px;margin:18px 0 20px;min-width:0}
.bely-chat-message{min-width:0;max-width:min(85%,660px);padding:13px 15px;border-radius:16px;border:1px solid transparent;line-height:1.55}
.bely-chat-message.team{justify-self:start;background:rgba(139,157,182,.105);border-color:rgba(142,163,188,.19)}
.bely-chat-message.admin{justify-self:end;background:rgba(39,161,204,.13);border-color:rgba(50,179,223,.26)}
.bely-chat-message small{display:block;font-size:11px;color:#9db1c5}
.bely-chat-message p{margin:7px 0 0;overflow-wrap:anywhere;white-space:normal;color:#e4eef9}
.bely-chat-message.fresh{border-color:#65dbfb;box-shadow:0 0 0 1px rgba(101,219,251,.28),0 0 24px rgba(50,188,226,.14);background:rgba(32,149,200,.18)}
.bely-chat-message.fresh small{color:#9eefff;font-weight:700}
@media(max-width:640px){.bely-thread-categories{gap:7px}.bely-thread-category{padding:12px 9px;font-size:11px;border-radius:12px}.bely-thread-category strong{min-width:26px;width:26px;height:26px;font-size:13px}.bely-chat-message{max-width:90%;padding:12px}.bely-thread-item{padding:12px}}

/* Belleyme V123.5.10 : fiche de gestion stable et lisible, quel que soit l'état de l'énigme. */
.bely-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.bely-manage-card{min-width:0;padding:19px!important;display:flex;flex-direction:column;gap:11px;justify-content:center}
.bely-manage-card h3{margin:4px 0 6px}
.bely-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.bely-activity-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bely-activity-links a{border-radius:12px;border:1px solid rgba(94,228,255,.24);background:rgba(94,228,255,.06);padding:12px;display:flex;align-items:center;gap:10px;justify-content:space-between;text-decoration:none;color:inherit;min-width:0;flex-wrap:wrap}
.bely-activity-links a:hover{border-color:rgba(94,228,255,.75);background:rgba(94,228,255,.10)}
.bely-activity-links a strong{color:#5ee4ff;font-size:22px}.bely-activity-links a span{font-size:12px;color:#8ecde3}
.puzzle-scope-under-title{margin:12px 0 18px!important}
.bely-options-form{display:flex;flex-wrap:wrap;gap:18px;align-items:end}.bely-options-form .field{min-width:120px;margin:0}
.bely-toolbar-status{grid-column:3;grid-row:1;align-self:end;justify-self:end;position:relative;transform:translateY(-100%);height:0;max-width:360px;overflow:visible;font-size:12px;text-align:right;white-space:normal;line-height:1.2;pointer-events:none;z-index:2}
.web-puzzle-toolbar>.web-toolbar-actions{grid-column:3;grid-row:1;width:max-content;max-width:100%;display:flex;flex-wrap:nowrap;white-space:nowrap;justify-self:end}
.web-puzzle-toolbar>div:nth-child(2){grid-column:2;grid-row:1;min-width:0}
@media(max-width:950px){.bely-manage-grid{grid-template-columns:1fr}.web-puzzle-toolbar{grid-template-columns:1fr}.web-puzzle-toolbar>.web-toolbar-actions{grid-column:1;grid-row:auto;flex-wrap:wrap;justify-self:center}.bely-toolbar-status{position:static;transform:none;grid-column:1;grid-row:auto;height:auto;justify-self:center;text-align:center}.web-puzzle-toolbar>div:nth-child(2){grid-column:1;grid-row:auto;order:0}.bely-activity-links{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.bely-activity-links{grid-template-columns:1fr}.web-puzzle-toolbar>.web-toolbar-actions{white-space:normal;justify-content:center}}

/* Belleyme V123.5.11 — Réglages compacts et fiche énigme en colonnes. */
.bely-settings-page .admin-v40-topline h1,
.bely-settings-page .admin-topline h1 {line-height:1.13;margin-bottom:12px}
.bely-settings-page .admin-topline p{margin-top:7px;line-height:1.5;clear:both}
.bely-settings-v511{display:grid;gap:15px}
.bely-settings-v511>.admin-panel,.bely-settings-v511 .bely-settings-bottom-grid>.admin-panel{margin:0;min-width:0}
.bely-settings-v511 .admin-panel-head .panel-kicker{display:none}
.bely-settings-v511 .admin-panel-head h2{font-size:clamp(18px,1.6vw,24px);color:#63e4ff;margin:0;font-weight:800;line-height:1.25}
.bely-settings-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 22px}
.bely-settings-secret{display:grid;grid-template-columns:max-content minmax(92px,160px);align-items:center;column-gap:12px;row-gap:4px;margin:0;max-width:100%}
.bely-settings-secret>label{font-size:11px;color:#bdcfdb;line-height:1.4;font-weight:700}
.bely-settings-secret>input{min-width:0;width:100%;height:40px;padding:7px 10px;border:1px solid rgba(94,228,255,.24);border-radius:10px;background:#071426;color:#e5f7ff;font-size:14px}
.bely-settings-secret>.admin-autosave-state{grid-column:1/-1;margin:0;justify-self:end;font-size:10px}
.bely-settings-calendar-form>.admin-autosave-state{display:flex;margin-top:0}
.bely-settings-calendar-form .settings-calendar-grid{margin-bottom:7px}
.bely-settings-defaults .admin-panel-head{margin-bottom:12px}
.bely-default-columns{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:13px}
.bely-default-column{border:1px solid rgba(94,228,255,.15);border-radius:13px;background:rgba(4,17,32,.5);padding:15px;min-width:0}
.bely-default-column h3{margin:0 0 13px;color:#e8f2fa;font-weight:800;font-size:17px}
.bely-default-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.bely-default-pair>.field{min-width:0;margin:0}
.bely-default-pair>.field>span{font-size:11px;min-height:28px;display:flex;align-items:end}
.bely-default-pair input{width:100%;max-width:180px;height:40px;min-height:40px}
.bely-default-time-row{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(105px,1.1fr) minmax(98px,.85fr);align-items:end;gap:10px;margin-top:9px}
.bely-default-time-row>strong{font-size:12px;color:#d8edf7;padding-bottom:10px}
.bely-default-time-row>label{display:grid;gap:4px;min-width:0}
.bely-default-time-row>label>span{font-size:10px;color:#89a2b9}
.bely-default-time-row :is(input,select){width:100%;min-width:0;min-height:40px;height:40px;padding:0 9px;border-radius:9px;border:1px solid rgba(94,228,255,.19);background:#071426;color:#e4f3ff;font-size:12px}
.bely-settings-hint{margin:9px 0 0;font-size:11px}
.bely-settings-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bely-settings-bottom-grid .settings-rules-actions-centered{display:flex;gap:10px;flex-wrap:wrap;justify-content:start}
.bely-settings-bottom-grid .settings-current-value{margin-bottom:10px}
.bely-settings-bottom-grid .field{max-width:550px}
.bely-settings-v511 .edition-manager-panel{margin:0}

/* Administration énigmes : même fiche avant et pendant, sans cartes pleine largeur empilées. */
.bely-v511-titlebar .bely-title-inline{display:flex;align-items:center;gap:15px;flex-wrap:wrap;min-width:0}
.bely-v511-titlebar h2{margin:0;font-size:clamp(22px,2.6vw,32px)}
.bely-v511-titlebar .puzzle-state{margin:0}
.bely-top-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:12px 0 17px}
.bely-top-controls .puzzle-scope-under-title{margin:0!important;min-width:0;flex:1}
.bely-top-controls .final-puzzle-toggle{margin:0;flex:0 0 auto}
.bely-top-controls-existing .bely-final-mode-form{flex:0 0 auto;margin:0}
.bely-switching-mode{opacity:.6;pointer-events:none}
.bely-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.bely-activity-grid.final-only{grid-template-columns:minmax(0,1fr)}
.bely-activity-card{min-width:0;display:grid;gap:5px;text-decoration:none;color:#e4f3ff!important;padding:17px!important;border:1px solid rgba(94,228,255,.25)!important;transition:background .15s,border-color .15s}
.bely-activity-card:hover{background:rgba(64,187,227,.10)!important;border-color:rgba(94,228,255,.65)!important}
.bely-activity-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bely-activity-head h3{font-size:16px;margin:0}.bely-activity-head span{color:#66defc;font-size:18px}
.bely-activity-card>strong{font-size:25px;line-height:1.1;color:#5ee4ff}
.bely-activity-card>small{color:#8cabbe;font-size:11px}
.bely-activity-card>p{margin:3px 0 0;font-size:12px;color:#d8e5f1}
.bely-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:17px 0}
.bely-content-grid.is-final{grid-template-columns:repeat(3,minmax(0,1fr))}
.bely-content-card{padding:18px!important;min-width:0;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.bely-content-card h3{font-size:16px;font-weight:800;margin:0;min-height:24px}
.bely-content-card-actions{display:grid;gap:9px;width:100%;margin-top:auto}
.bely-content-card-actions>a,.bely-content-card-actions>.bely-preview-unavailable{display:flex;align-items:center;justify-content:center;min-height:38px;text-align:center;width:100%;margin:0}
.bely-preview-unavailable{border:1px dashed rgba(94,228,255,.2);background:rgba(30,55,75,.2);color:#8ea5b6;font-size:12px;border-radius:9px;padding:9px}
.bely-meta-grid{display:grid;grid-template-columns:minmax(140px,.72fr) minmax(0,2.28fr);gap:14px;align-items:stretch;margin:17px 0}
.bely-meta-answer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:14px;min-width:0;margin:0;align-items:stretch}
.bely-meta-card{min-width:0;padding:16px!important;display:flex;flex-direction:column;gap:10px;height:100%}
.bely-meta-card h3{font-size:15px;margin:0;line-height:1.25}
.bely-meta-card .field{margin:0;min-width:0}
.bely-meta-card input:not([type=hidden]){width:100%;min-width:0}
.bely-points-form{display:flex;flex-direction:column;gap:6px;min-width:0}
.bely-points-form input{max-width:130px}
.bely-meta-answer-grid>.admin-autosave-state{grid-column:1/-1;margin:0}
.bely-meta-card .accepted-answers-row{display:flex;flex-direction:column;align-items:stretch;gap:7px;flex-wrap:nowrap}
.bely-meta-card .accepted-variant-input{max-width:none;flex:auto}
.bely-meta-card .add-variant-button{align-self:flex-start;width:37px;height:37px;min-width:37px;flex:0 0 37px}
.bely-dates-panel .admin-panel-head .panel-kicker{display:none}
.bely-dates-panel .admin-panel-head h2{margin:0;color:#63e4ff;font-size:20px}
@media(max-width:1120px){
 .bely-default-columns{grid-template-columns:1fr 1fr}
 .bely-default-time-row{grid-template-columns:1fr 1fr}
 .bely-default-time-row>strong{grid-column:1/-1;padding-bottom:0}
 .bely-content-grid.is-final{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:830px){
 .bely-default-columns{grid-template-columns:1fr}
 .bely-settings-bottom-grid{grid-template-columns:1fr 1fr}
 .bely-content-grid.is-final{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bely-meta-grid{grid-template-columns:minmax(0,.65fr) minmax(0,2.35fr)}
}
@media(max-width:670px){
 .bely-settings-header{align-items:flex-start;flex-direction:column}
 .bely-settings-secret{grid-template-columns:max-content minmax(85px,150px)}
 .bely-settings-bottom-grid{grid-template-columns:1fr}
 .bely-content-grid,.bely-content-grid.is-final{grid-template-columns:1fr}
 .bely-activity-grid{grid-template-columns:1fr}
 .bely-meta-grid{grid-template-columns:1fr}
 .bely-meta-answer-grid{grid-template-columns:1fr}
 .bely-top-controls{align-items:flex-start}
}
@media(max-width:430px){
 .bely-default-pair{grid-template-columns:1fr 1fr}
 .bely-default-time-row{grid-template-columns:1fr 1fr}
 .bely-settings-secret{width:100%;grid-template-columns:1fr minmax(85px,130px)}
}

/* Belleyme V123.5.12 — finitions de la fiche, des réglages et des réponses. */
.bely-settings-v511 .bely-settings-secret>.admin-autosave-state:not([data-state="error"]),
.bely-settings-v511 .bely-settings-calendar-form>.admin-autosave-state:not([data-state="error"]),
.bely-settings-v511 .bely-settings-defaults-form>.admin-autosave-state:not([data-state="error"]),
.bely-meta-container .admin-autosave-state:not([data-state="error"]){display:none!important}
.bely-group-autosave,.bely-meta-autosave{font-size:12px!important;color:#82d9c0!important;margin:13px 0 0!important;padding-top:9px;border-top:1px solid rgba(94,228,255,.12)}
.bely-meta-container{margin:16px 0!important;padding:18px!important}
.bely-meta-container>h2,.bely-content-card h3,.bely-activity-card .bely-activity-head h3,.bely-meta-card h3,[data-bely-release-board] .admin-panel-head h3{color:#63e4ff!important}
.bely-meta-container>h2{font-size:22px;margin:0 0 12px}
.bely-meta-container .bely-meta-grid{margin:0;grid-template-columns:minmax(125px,.7fr) minmax(0,2.3fr)}
.bely-meta-container .bely-meta-card{background:rgba(5,19,36,.47)!important}
.bely-variant-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.bely-variant-actions .add-variant-button{margin:0}
.bely-remove-variant{border:1px solid rgba(94,228,255,.45)!important;color:#63e4ff!important}
.bely-dates-panel .date-editor-grid input[type=date],.bely-dates-panel .date-editor-grid input[type=time]{font-size:16px!important;min-height:43px!important}
.bely-default-time-row{grid-template-columns:minmax(105px,1.2fr) minmax(100px,.92fr) minmax(99px,1fr)}
.bely-default-time-row :is(input,select){font-size:14px!important}
.bely-worklist-return{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0;padding:14px 16px;border:1px solid rgba(94,228,255,.22);border-radius:14px;background:rgba(4,18,32,.7)}
.bely-worklist-return strong{font-size:19px;color:#63e4ff}
.bely-team-answer{padding:4px 0 8px}
.bely-team-answer-recorded{padding:12px;border:1px solid rgba(94,228,255,.28);border-radius:12px;background:rgba(25,109,141,.13);overflow-wrap:anywhere}
.bely-team-answer-recorded strong{display:block;margin-top:5px;color:#d0f9ff}
.bely-hint-request{white-space:normal;overflow-wrap:anywhere;padding:10px 12px;border-left:3px solid #5ee4ff;background:rgba(94,228,255,.07)}
@media(max-width:700px){.bely-meta-container .bely-meta-grid{grid-template-columns:1fr}.bely-default-time-row{grid-template-columns:1fr 1fr}.bely-default-time-row>strong{grid-column:1/-1}}

/* Belleyme 123.5.13 — archives équipe : plus récent en haut, chronologies distinctes */
.bely-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 17px}
.bely-history-summary>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:12px 6px;border:1px solid rgba(94,228,255,.19);border-radius:11px;background:rgba(94,228,255,.045)}
.bely-history-summary strong{font-size:24px;line-height:1.1;color:#d9f2ff}.bely-history-summary small{font-size:11px;color:#a4becd}
.bely-history-summary .good,.bely-history-answer-line .good{color:#74dcab}.bely-history-summary .bad,.bely-history-answer-line .bad{color:#ff8989}.bely-history-summary .review,.bely-history-answer-line .review{color:#f0b065}
.bely-history-block{margin:14px 0}.bely-history-block h4{font-size:17px;color:#63e4ff;margin:0 0 12px}
.bely-history-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.bely-history-column{border:1px solid rgba(94,228,255,.23);background:rgba(4,18,32,.65);border-radius:12px;padding:13px;min-width:0}
.bely-history-column h5{font-size:15px;color:#eaf5fc;margin:0 0 11px}
.bely-history-answer-line{display:flex;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px solid rgba(94,228,255,.12);font-size:12px;min-width:0}
.bely-history-answer-line:last-child,.bely-history-hint-line:last-child{border-bottom:0}
.bely-history-answer-line time{color:#98b7c9;white-space:nowrap;font-size:11px}
.bely-history-answer-line span{color:#e6f4fb;overflow-wrap:anywhere;flex:1;min-width:0}
.bely-history-answer-line strong{font-size:11px;white-space:nowrap}
.bely-history-hint-line{padding:8px 0;border-bottom:1px solid rgba(94,228,255,.12);font-size:12px;overflow-wrap:anywhere}
.bely-history-hint-line p{margin:3px 0 8px;line-height:1.5}.bely-history-hint-line time{font-size:11px;color:#93aec1;margin-right:5px;white-space:nowrap}
.bely-history-hint-line strong{color:#e2edf4}.bely-history-empty{font-size:12px;color:#a2b7c6;padding:10px 0}
@media(max-width:660px){.bely-history-columns{grid-template-columns:1fr}.bely-history-column{padding:12px}.bely-history-summary strong{font-size:20px}}

/* Belleyme 123.5.13 — vues administration épurées, compteurs en tête. */
.bely-v511-titlebar.bely-dedicated-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.bely-dedicated-header .bely-dedicated-title{color:#63e4ff;text-align:center;margin:0;font-size:20px}
.bely-dedicated-header>a{justify-self:end}
.bely-worklist-total{margin:10px 0 14px;font-weight:700;color:#cdeaf8;font-size:15px}
.bely-worklist-group{padding:18px!important;margin:14px 0!important;border:1px solid rgba(94,228,255,.24)!important;border-radius:14px!important}
.bely-worklist-group>h3{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:19px;margin:0 0 13px}
.bely-worklist-group>h3 span{font-size:14px;color:#cfdef0;border-radius:50px;padding:2px 10px;background:rgba(255,255,255,.06)}
.bely-worklist-group.review{border-color:rgba(240,173,98,.5)!important}.bely-worklist-group.review>h3{color:#f0ad62}
.bely-worklist-group.incorrect{border-color:rgba(245,114,114,.43)!important}.bely-worklist-group.incorrect>h3{color:#ff9393}
.bely-worklist-group.correct{border-color:rgba(90,209,140,.44)!important}.bely-worklist-group.correct>h3{color:#8ee6b4}
.bely-worklist-items{display:grid;gap:10px}
.bely-worklist-items .hint-work-row,.bely-worklist-items .response-work-row{min-width:0;margin:0;gap:18px;border-radius:12px;background:rgba(5,19,36,.72)}
.bely-hint-team>small{display:block;margin-top:10px;color:#92aec3}
.bely-meta-container .bely-meta-card h3{color:#f3f7ff!important}
.bely-dates-panel .date-editor-grid>div>strong{font-size:16px!important;color:#eef7fc!important}
.bely-activity-grid p .good{color:#80dfaa;font-weight:800}.bely-activity-grid p .bad{color:#ff8989;font-weight:800}.bely-activity-grid p .review{color:#ffb86f;font-weight:800}
/* Chaque grand cadre montre désormais son propre état réel de sauvegarde. */
.bely-autosave-indicator{display:flex;align-items:center;gap:9px;border-top:1px solid rgba(94,228,255,.13);margin:13px 0 0!important;padding:11px 0 0!important;font-size:12px;color:#83dcb3;overflow-wrap:anywhere}
.bely-autosave-indicator:before{content:'';width:9px;height:9px;background:#69e0a0;border-radius:50%;box-shadow:0 0 10px rgba(105,224,160,.43);flex-shrink:0}
.bely-autosave-indicator[data-state=editing]{color:#f0be74}.bely-autosave-indicator[data-state=editing]:before{background:#f0be74}
.bely-autosave-indicator[data-state=saving]{color:#75dfff}.bely-autosave-indicator[data-state=saving]:before{background:#75dfff;animation:bely-saving-pulse 1.05s infinite alternate}
.bely-autosave-indicator[data-state=error]{color:#ff9999}.bely-autosave-indicator[data-state=error]:before{background:#ff7474}
@keyframes bely-saving-pulse{from{box-shadow:0 0 2px #75dfff;opacity:.55}to{box-shadow:0 0 15px #75dfff;opacity:1}}
.bely-settings-calendar-panel .admin-autosave-state,.bely-settings-defaults .admin-autosave-state,.bely-meta-container .admin-autosave-state{display:none!important}
@media(max-width:720px){.bely-v511-titlebar.bely-dedicated-header{grid-template-columns:1fr auto;row-gap:8px}.bely-dedicated-header .bely-dedicated-title{grid-column:1/-1;grid-row:2;text-align:left;font-size:18px}.bely-dedicated-header>a{grid-column:2;grid-row:1}.bely-worklist-items .hint-work-row,.bely-worklist-items .response-work-row{display:grid;grid-template-columns:1fr}}

/* Belleyme 123.5.13 — confirmations dans leur section plutôt qu'une bannière globale */
.bely-team-answer h3{color:#f0f5fa!important}
.bely-team-answer-recorded{display:grid!important;gap:10px;text-align:center;padding:14px!important}
.bely-team-answer-recorded span{font-size:14px;font-weight:700;color:#dcecf5}
.bely-team-answer-recorded strong{margin:0!important;text-align:center;font-size:18px;font-weight:800;color:#dcf7ff;overflow-wrap:anywhere}
.bely-team-answer+ .divider{margin-top:15px}
.pending-hint-message,.bely-hint-request{text-align:center}
.pending-hint-message+form{text-align:center}


/* Belleyme V123.5.14 — Présentation cohérente, paramètres propres à l'énigme. */
.admin-v40-topline > div:first-child h1,
.bely-settings-page .admin-topline h1 { line-height:1.18!important; margin-bottom:17px!important; }
.admin-v40-topline > div:first-child > p { display:block;position:static;clear:both;margin:9px 0 3px!important;line-height:1.6; }
/* Quatre sous-cartes sur une ligne pour les classiques, trois en finale. */
.bely-meta-container.bely-classic-meta .bely-meta-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px;align-items:stretch; }
.bely-meta-container.bely-final-meta .bely-meta-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px;align-items:stretch; }
.bely-meta-container .bely-meta-answer-grid { display:contents; }
.bely-meta-container .bely-meta-card { min-width:0;height:100%; }
.bely-meta-card .field input[type=number] { max-width:100%; }
/* Un témoin discret partout : point coloré dynamique, texte neutre. */
.bely-autosave-indicator { color:#a9bccb!important;font-size:12px!important;font-weight:500!important;letter-spacing:normal!important;border-top:0!important; }
.bely-autosave-indicator[data-state=error]{color:#ff9898!important}
.bely-autosave-indicator[data-state=editing]{color:#e8bd77!important}
.bely-autosave-indicator[data-state=saving]{color:#b9dfef!important}
/* La variante globale des anciens formulaires conserve la même syntaxe. */
.admin-autosave-state:not([data-state=error]){font-weight:500;letter-spacing:normal}
/* Regroupement compact des indices reçus. */
.bely-team-highlight { color:#76e4ff!important;font-weight:700!important;font-size:13px;line-height:1.5;margin:10px 0 13px; }
.bely-hint-count,.bely-hint-waiting {color:#d8f2ff;font-size:13px;text-align:center;margin:10px 0}
.bely-hint-waiting {color:#f0be7d}
.bely-hint-list {display:grid;gap:10px;margin:15px 0}
.bely-hint-list h4{margin:0 0 3px;font-size:14px;color:#d8eef7}
.bely-hint-received {border:1px solid rgba(94,228,255,.23);border-radius:12px;background:rgba(7,29,49,.65);padding:12px 14px;overflow-wrap:anywhere}
.bely-hint-received small{color:#91c0d1;font-size:11px}
.bely-hint-received p{margin:7px 0 0;line-height:1.55}
.bely-center-button{display:block;width:fit-content;margin:10px auto!important}
@media(max-width:1050px){.bely-meta-container.bely-classic-meta .bely-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.bely-meta-container.bely-classic-meta .bely-meta-grid,.bely-meta-container.bely-final-meta .bely-meta-grid{grid-template-columns:1fr!important}}

/* Belleyme 123.5.14 : états de sauvegarde identiques pour les dates et l'adresse email. */
.bely-dates-panel .admin-autosave-state:not([data-state=error]),
.settings-email-panel .admin-autosave-state:not([data-state=error]) {display:none!important}
.bely-settings-v511 .settings-email-panel .bely-autosave-indicator,
.bely-dates-panel .bely-autosave-indicator{border-top:0!important;color:#a9bccb!important}

/* V123.5.15 — conversation d'indices par équipe */
.bely-hint-thread-section .bely-hint-threads{display:grid;gap:15px}
.bely-hint-thread{border:1px solid rgba(94,228,255,.2);background:rgba(4,19,38,.50);border-radius:15px;padding:16px;min-width:0}
.bely-hint-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;flex-wrap:wrap}
.bely-hint-thread-head h4{font-size:16px;color:#e9f7ff;margin:0}
.bely-thread-state{font-size:11px;padding:6px 10px;border-radius:99px;background:rgba(57,154,107,.10);color:#8be9b0}
.bely-thread-state.pending{background:rgba(255,160,55,.12);color:#ffd08a}
.bely-hint-chat{display:flex;flex-direction:column;gap:12px;min-width:0}
.bely-hint-chat-bubble{max-width:88%;padding:12px 15px;border-radius:12px;min-width:0;overflow-wrap:anywhere}
.bely-hint-chat-bubble small{display:block;margin-bottom:6px;color:#91afc5;font-size:11px}
.bely-hint-chat-bubble p{margin:0;white-space:normal;line-height:1.55}
.bely-hint-chat-bubble.team{align-self:flex-start;border:1px solid rgba(94,228,255,.22);background:rgba(94,228,255,.06)}
.bely-hint-chat-bubble.admin{align-self:flex-end;border:1px solid rgba(76,218,150,.25);background:rgba(76,218,150,.06)}
.bely-hint-chat-reply{align-self:flex-end;width:min(88%,580px);min-width:0;border:1px solid rgba(255,172,77,.3);border-radius:12px;padding:13px;background:rgba(255,172,77,.04)}
.bely-hint-chat-reply form{display:grid;gap:10px}
.bely-hint-chat-reply textarea,.bely-hint-edit-details textarea{width:100%;box-sizing:border-box}
.bely-hint-edit-details{margin-top:10px}
.bely-hint-edit-details summary{cursor:pointer;color:#80dafe;font-size:12px}
.bely-hint-edit-details form{display:grid;gap:9px;margin-top:10px}
.bely-hint-penalty{color:#ff8888!important;font-size:14px;font-weight:750;margin:11px 0 14px;line-height:1.5;text-align:center}
.bely-hint-list{display:grid;gap:10px;margin:12px 0 18px}
.bely-hint-list h4{margin:0 0 4px;color:#e6f3fc!important;font-size:14px;font-weight:700}
.bely-team-answer .bely-team-highlight{color:#77e5ff!important}
@media(max-width:720px){.bely-hint-thread{padding:11px}.bely-hint-chat-bubble{max-width:95%}.bely-hint-chat-reply{width:95%}}

/* V123.5.15 : pulsation de la pastille après confirmation de sauvegarde du serveur. */
@keyframes bely-save-confirm-pulse{
  0%{transform:scale(1);box-shadow:0 0 4px rgba(105,224,160,.3)}
  24%{transform:scale(1.45);box-shadow:0 0 0 5px rgba(105,224,160,.18),0 0 17px rgba(105,224,160,.55)}
  55%{transform:scale(.96)}
  75%{transform:scale(1.3);box-shadow:0 0 0 4px rgba(105,224,160,.12),0 0 12px rgba(105,224,160,.50)}
  100%{transform:scale(1);box-shadow:0 0 9px rgba(105,224,160,.35)}
}
.bely-autosave-indicator.bely-save-confirmed::before{animation:bely-save-confirm-pulse 1.1s ease-in-out both}
.bely-autosave-indicator[data-state="editing"]::before,.bely-autosave-indicator[data-state="saving"]::before{animation:bely-saving-pulse .55s ease-in-out infinite alternate}
/* PWA web : titres cyan, avertissements orange, coût de l’indice rouge. */
.current-puzzle .puzzle-state.live,.bely-web-hints>strong,.current-puzzle .team-puzzle-interactions>section>strong{color:#63e4ff!important}


/* Belleyme V123.5.16 : colonnes de conversation et distinction des intervenants. */
.bely-inbox-layout,.bely-mailbox-layout{display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);align-items:stretch;gap:15px;margin:16px 0 24px;min-width:0}
.bely-inbox-sidebar,.bely-mailbox-sidebar{min-width:0;display:flex;flex-direction:column;gap:17px;align-self:stretch}
.bely-inbox-reader,.bely-mailbox-conversation{min-width:0;align-self:stretch;max-width:100%;}
.bely-inbox-group,.bely-mailbox-state{display:grid;gap:8px;min-width:0}
.bely-inbox-group>h3,.bely-mailbox-state>h3{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#63e4ff;font-size:15px;font-weight:800;margin:0 0 4px}
.bely-inbox-group.review>h3,.bely-mailbox-state.pending>h3{color:#f2bd6f}
.bely-inbox-group.correct>h3,.bely-mailbox-state.treated>h3{color:#82e6ac}
.bely-inbox-group h3 span,.bely-mailbox-state h3 span{display:inline-grid;place-content:center;border-radius:100px;background:rgba(255,255,255,.07);min-width:25px;padding:4px 6px;font-size:12px}
.bely-inbox-team-list,.bely-mailbox-teams{display:flex;flex-direction:column;gap:7px;min-width:0}
.bely-inbox-team,.bely-mailbox-team{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;border:1px solid rgba(94,228,255,.20);border-radius:11px;background:rgba(13,35,59,.62);text-decoration:none;color:#e9f6fc;padding:12px 10px;transition:background .15s,border-color .15s}
.bely-inbox-team strong,.bely-mailbox-team strong{font-size:13px;min-width:0;overflow-wrap:anywhere}
.bely-inbox-team small,.bely-mailbox-team small{font-size:11px;flex:0 0 auto;color:#9dc2d7}
.bely-inbox-team.is-selected,.bely-mailbox-team.is-selected,.bely-inbox-team:hover,.bely-mailbox-team:hover{background:rgba(48,171,216,.17);border-color:rgba(94,228,255,.65)}
.bely-mailbox-team[hidden],.bely-mailbox-state[hidden]{display:none!important}
.bely-mailbox-search-label{color:#e5f8ff;font-size:13px;font-weight:750}
#bely-message-search{width:100%;min-width:0;min-height:40px}
.bely-inbox-empty,.bely-mailbox-empty{margin:0;font-size:12px;color:#8ba9bd}
.bely-inbox-reader-head,.bely-mailbox-conversation-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 15px}
.bely-inbox-reader-head h3,.bely-mailbox-conversation-header h2{margin:0;color:#63e4ff;font-size:clamp(16px,1.5vw,21px)}
.bely-inbox-reader .bely-hint-chat{gap:12px;}
.bely-inbox-reader .bely-hint-chat-bubble{width:fit-content;max-width:85%;}
.bely-inbox-reader .bely-hint-chat-bubble.team{align-self:flex-start;background:rgba(142,164,191,.09);border-color:rgba(152,177,199,.26)}
.bely-inbox-reader .bely-hint-chat-bubble.admin{align-self:flex-end;background:rgba(46,169,216,.13);border-color:rgba(73,207,247,.29)}
.bely-inbox-reader .bely-hint-chat-reply{align-self:flex-end;width:min(85%,560px);background:rgba(46,169,216,.055);border-color:rgba(73,207,247,.31)}
.bely-hint-edit-details[open]{position:relative;padding-top:30px}
.bely-close-hint-edit{position:absolute;right:0;top:4px;display:grid;place-content:center;background:rgba(8,22,42,.9);border:1px solid rgba(94,228,255,.4);border-radius:8px;color:#dff9ff;width:27px;height:27px;font-size:20px;line-height:1}
.bely-inbox-prompt,.bely-mailbox-prompt{display:grid;place-content:center;text-align:center;min-height:230px}
.bely-mobile-back{display:none}
.bely-mailbox-conversation .bely-thread-history{max-height:52vh;min-height:150px;overflow-y:auto;scrollbar-color:#366c8c transparent;padding-right:6px}
.bely-mailbox-conversation .reply-form{display:grid;gap:10px}
.bely-mailbox-conversation .standalone-treat-form{margin-top:14px}
/* Une vraie couleur d'état, et non la couleur décorative du titre. */
.puzzle-state.upcoming,.admin-stat-card.needs-attention strong{color:#f2bd6f}
@media (max-width:790px){
 .bely-inbox-layout,.bely-mailbox-layout{grid-template-columns:minmax(0,1fr);gap:10px}
 .bely-inbox-layout:has(.bely-inbox-reader-head) .bely-inbox-sidebar,
 .bely-mailbox-layout:has(.bely-mailbox-conversation-header) .bely-mailbox-sidebar{display:none}
 .bely-inbox-reader:not(:has(.bely-inbox-reader-head)),.bely-mailbox-conversation:not(:has(.bely-mailbox-conversation-header)){display:none}
 .bely-mobile-back{display:inline-flex}
 .bely-inbox-reader .bely-hint-chat-bubble,.bely-inbox-reader .bely-hint-chat-reply{max-width:94%;width:fit-content}
 .bely-inbox-reader .bely-hint-chat-reply{width:94%}
 .bely-mailbox-conversation .bely-thread-history{max-height:none}
}

/* Marges communes des sous-titres d'édition : ne pas heurter le titre de page. */
.admin-v40-topline>div:first-child h1,.admin-topline>div:first-child h1{line-height:1.2;margin-bottom:12px}
.admin-v40-topline>div:first-child>p,.admin-topline>div:first-child>p{margin-top:10px;line-height:1.5;clear:both}

/* V123.5.17 — conversations de messages : lecture depuis les derniers échanges. */
.bely-mailbox-conversation .bely-thread-history{max-height:clamp(210px,38vh,340px)!important;min-height:180px;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-color:#366c8c transparent;padding:6px 8px 7px 2px;}
/* Réponses de l'énigme : une ligne compacte sur écran large, verdicts conservés. */
@media(min-width:800px){
 .bely-worklist-items .response-work-row{display:flex;align-items:center;gap:10px;padding:7px 10px;min-height:38px;}
 .bely-worklist-items .response-work-row > div:first-child{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;}
 .bely-worklist-items .response-work-row strong{flex:0 0 clamp(100px,15vw,190px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
 .bely-worklist-items .response-work-row p{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .bely-worklist-items .response-work-row small{flex:0 0 auto;white-space:nowrap;}
 .bely-worklist-items .response-work-row form{flex:0 0 auto;}
 .bely-worklist-items .response-work-row form .mini-button{padding:6px 9px;}
}
/* Choix du calendrier limité aux brouillons à venir. */
.bely-school-holiday-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid rgba(94,228,255,.16);margin:14px 0 0;padding:14px 0 0;}
.bely-school-holiday-choice>div:first-child{display:grid;gap:5px;}
.bely-school-holiday-choice strong{font-size:14px;color:#63e4ff;}
.bely-school-holiday-choice small{font-size:12px;color:#a4bbd1;}
.bely-school-holiday-radios{display:flex;gap:16px;align-items:center;flex:0 0 auto;}
.bely-school-holiday-radios label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#f0f8fd;font-size:13px;}
@media(max-width:640px){.bely-school-holiday-choice{flex-direction:column;align-items:flex-start;}.bely-school-holiday-radios{width:100%;}}

/* V123.5.18 — répondre sans devoir dérouler la page entière. */
.bely-mailbox-conversation .bely-thread-history{max-height:clamp(185px,29vh,255px)!important;min-height:155px;}

/* V123.5.18 — attendre les deux confirmations serveur avant de quitter l'aperçu. */
a.bely-preview-save-locked[aria-disabled="true"]{opacity:.35!important;cursor:not-allowed!important;pointer-events:none!important;filter:grayscale(1)}

/* Belleyme V123.5.18 — archives sélectionnables, cinq cartes max à l'écran. */
.bely-archive-picker{display:grid;gap:7px;max-height:315px;overflow-y:auto;overscroll-behavior:contain;padding:4px 5px 4px 0;margin:12px 0 18px}
.bely-archive-select{appearance:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:rgba(110,155,180,.06);border:1px solid rgba(110,155,180,.32);border-radius:12px;color:#e7f5ff;padding:10px 14px;min-height:50px;font:inherit;cursor:pointer}
.bely-archive-select.correct{border-color:rgba(83,209,146,.55);background:rgba(64,166,107,.12);color:#94efb7}
.bely-archive-select.incorrect{border-color:rgba(255,128,128,.48);background:rgba(190,68,68,.10);color:#ffabab}
.bely-archive-select[aria-expanded="true"]{box-shadow:0 0 0 2px rgba(105,213,248,.42)}
.bely-archive-details{border:1px solid rgba(111,218,245,.24);border-radius:14px;padding:14px;margin-top:7px;background:rgba(5,18,31,.45)}
.bely-archive-details[hidden]{display:none!important}
.bely-archive-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 18px}
.bely-archive-links a{text-align:center;justify-content:center}
.bely-archive-outcome{font-weight:700;font-size:15px;line-height:1.45;margin:12px 0}
.bely-archive-outcome.good,.bely-archive-outcome.correct{color:#84ebac}
.bely-archive-outcome.bad,.bely-archive-outcome.incorrect{color:#ff9292}
.bely-global-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.bely-featured-ended{margin-top:16px;border-top:1px solid rgba(110,200,230,.19);padding-top:13px}
[data-bely-answer-form][hidden],[data-bely-hint-form][hidden]{display:none!important}

[data-bely-answer-closed][hidden]{display:none!important}

.bely-file-diagnostic{margin:10px 0;padding:10px;border:1px solid rgba(255,172,97,.25);border-radius:10px;background:rgba(160,106,65,.06);font-size:12px;color:#d6dfec}.bely-file-diagnostic strong{color:#f0bd81}.bely-file-diagnostic ul{margin:6px 0 7px;padding-left:19px}.bely-file-diagnostic small{font-size:11px}

/* V123.5.19 : suivi des équipes de l'énigme active ou terminée. */
.bely-quick-next-form{display:inline-flex;margin:0}
.bely-activity-grid:has(>a:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.bely-admin-team-summary{margin-top:16px}
.bely-summary-global{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.bely-summary-global span{padding:7px 12px;border:1px solid rgba(94,228,255,.18);background:rgba(9,29,51,.48);border-radius:9px;color:#d4ecfb;font-size:12px}
.bely-summary-global strong{color:#76deff;font-size:18px}
.bely-summary-master-detail{display:grid;grid-template-columns:minmax(170px,.36fr) minmax(0,1fr);gap:14px;align-items:start}
.bely-summary-teams{display:grid;gap:5px;max-height:420px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
.bely-summary-team{display:grid;gap:3px;min-width:0;border:1px solid rgba(144,181,200,.3);border-left:4px solid #8b9baa;border-radius:10px;background:rgba(15,31,50,.58);text-decoration:none;padding:10px;color:#eefaff}
.bely-summary-team strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bely-summary-team small{color:#c1d4e3;font-size:11px}
.bely-summary-team.correct{border-left-color:#3fcb81}
.bely-summary-team.incorrect{border-left-color:#ef7171}
.bely-summary-team.review{border-left-color:#ffaf55}
.bely-summary-team.selected,.bely-summary-team:hover{background:rgba(74,170,224,.16);outline:1px solid #64c9eb}
.bely-summary-detail{min-width:0;padding:14px;border:1px solid rgba(94,228,255,.18);border-radius:12px;background:rgba(6,17,31,.48)}
.bely-summary-detail h4{margin:16px 0 8px;color:#78d9fb}
.bely-summary-history{display:grid;gap:7px}
.bely-summary-answer{display:grid;gap:4px;padding:9px 11px;border-radius:9px;background:rgba(255,255,255,.035);overflow-wrap:anywhere}
.bely-summary-answer>small{font-size:11px;color:#a5c2d4}
.bely-summary-answer.correct{border-left:3px solid #3fcb81}
.bely-summary-answer.incorrect{border-left:3px solid #ef7171}
.bely-summary-answer.review{border-left:3px solid #ffaf55}
.bely-summary-detail .answer-status.none{color:#bdc9d3}
.bely-builder-undo{margin:0}
@media(max-width:950px){.bely-activity-grid:has(>a:nth-child(3)){grid-template-columns:1fr}}
@media(max-width:680px){.bely-summary-master-detail{grid-template-columns:1fr}.bely-summary-teams{max-height:235px}.bely-summary-global{gap:5px}.bely-summary-global span{padding:6px 8px}.bely-summary-detail{padding:10px}}

/* V123.5.20 — récit court, verdict sur une seule ligne, deux accès par colonne. */
.bely-archive-outcome{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(11px,2.7vw,14px);line-height:1.5}
.bely-archive-link-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.bely-archive-link-card{display:grid;grid-template-rows:auto auto auto;gap:8px;align-items:stretch;min-width:0;padding:12px 9px;border:1px solid rgba(95,227,255,.23);background:rgba(10,30,48,.5);border-radius:13px}
.bely-archive-link-card>strong{text-align:center;color:#d8f8ff;font-size:13px}
.bely-archive-link-card>a{display:flex;min-width:0;width:100%;justify-content:center;align-items:center;text-align:center;white-space:normal;margin:0}
.bely-team-summary-accordion{margin-top:13px;border:1px solid rgba(91,207,241,.23);border-radius:12px;padding:0 12px;background:rgba(7,22,38,.45)}
.bely-team-summary-accordion>summary{cursor:pointer;color:#63e4ff;font-weight:800;padding:13px 3px;list-style-position:inside}
.bely-team-summary-accordion[open]>summary{border-bottom:1px solid rgba(91,207,241,.15)}
.bely-team-summary-inner{padding:12px 0}
.bely-team-summary-inner .bely-history-block{margin-top:15px}
.bely-await-results{text-align:center;color:#b8daf0;font-weight:700;font-size:13px;margin:13px 0}
.bely-no-answer{font-size:clamp(11px,2.6vw,14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dfecf7;max-width:100%;margin:9px 0}
.bely-team-answer-recorded{overflow-wrap:anywhere}
.bely-hint-limit-status{color:#d1e6f4;font-size:13px;margin:9px 0}
.bely-featured-ended:not(:has(.actions a)){border-top:0;padding-top:0}
@media(max-width:450px){.bely-archive-link-card{padding:9px 6px;gap:6px}.bely-archive-link-card>a{font-size:12px;padding:9px 5px}}

/* V123.5.20 — constructeur lisible, actions en seconde ligne alignées. */
.web-builder-admin .builder-composition-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,315px);grid-template-rows:auto auto;gap:12px 24px;align-items:end}
.web-builder-admin .builder-composition-title{grid-column:1;grid-row:1;align-self:center}
.web-builder-admin .builder-orientation-field{grid-column:2;grid-row:1;width:100%;align-self:end}
.web-builder-admin .builder-preview-button{grid-column:1;grid-row:2;justify-self:start;align-self:center}
.web-builder-admin .bely-builder-undo{grid-column:2;grid-row:2;justify-self:stretch;align-self:center}
.web-builder-admin .bely-builder-undo .mini-button{width:100%;min-height:40px}
/* Dans Réponses : nom d'équipe, Réponse : valeur en gras, date et boutons. */
@media(min-width:800px){
 .bely-worklist-items .response-work-row>div:first-child>strong{flex:0 0 clamp(98px,15vw,190px)}
 .bely-worklist-items .response-work-row .bely-answer-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;min-width:0;color:#c8d8e7}
 .bely-worklist-items .response-work-row .bely-answer-value strong{display:inline;flex:none;min-width:0;white-space:inherit;overflow:visible;text-overflow:clip;font-weight:800;color:#f4fbff}
}
@media(max-width:720px){
 .web-builder-admin .builder-composition-bar{grid-template-columns:1fr 1fr;column-gap:10px;row-gap:12px;align-items:end}
 .web-builder-admin .builder-composition-title{grid-column:1 / -1;grid-row:1}
 .web-builder-admin .builder-orientation-field{grid-column:1 / -1;grid-row:2;max-width:100%}
 .web-builder-admin .builder-preview-button{grid-column:1;grid-row:3;justify-self:stretch}
 .web-builder-admin .bely-builder-undo{grid-column:2;grid-row:3}
 .web-builder-admin .bely-builder-undo button{font-size:11px}
}

[data-bely-hint-status][hidden]{display:none!important}


/* V123.5.21 : commandes des titres en une seule rangée SOUS le texte. */
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:5px;white-space:nowrap;min-width:max-content;z-index:100;pointer-events:auto}
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools .overlay-coords{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%)}
.bely-title-pin{width:31px;height:30px;border:1px solid rgba(87,213,255,.4);border-radius:7px;background:rgba(6,30,49,.97);color:#68d9ff;cursor:pointer;font-size:17px;line-height:1}
.bely-title-pin.saved{border-color:#36cf91;color:#36cf91}.bely-title-pin:disabled{opacity:.55;cursor:wait}
.bely-title-defaults{margin-top:16px}.bely-presets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bely-title-presets-orientation{border:1px solid rgba(98,218,255,.2);background:rgba(5,22,37,.38);border-radius:12px;padding:13px}
.bely-title-presets-orientation h3{margin:0 0 11px;color:#73deff}
.bely-title-preset-row{display:grid;gap:5px;padding:8px 0;border-top:1px solid rgba(120,215,250,.12)}
.bely-title-preset-row strong{font-size:13px;color:#dceef8}.bely-title-preset-row>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.bely-title-preset-row label{font-size:11px;color:#afcfe3;display:grid;gap:4px}.bely-title-preset-row input{width:100%;min-width:0}
@media(max-width:780px){.bely-presets-grid{grid-template-columns:1fr}}

/* V123.5.21 — en-tête administration unifié, sans raccourci redondant. */
.bely-v511-titlebar .bely-puzzle-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0}
.bely-puzzle-header-chooser select{max-width:310px;width:min(38vw,310px);min-width:170px;background:#0c2a42;border:1px solid rgba(86,211,245,.36);color:#e8f7ff;border-radius:9px;padding:9px;font-weight:600;font-size:13px}
.bely-trash-larger svg{display:block;width:23px;height:23px}
@media(max-width:650px){.bely-v511-titlebar .bely-puzzle-header-actions{width:100%;justify-content:flex-end}.bely-puzzle-header-chooser select{max-width:none;width:min(75vw,320px)}}


/* V123.5.21 : sélecteur compact des anciennes énigmes et deux commandes simples. */
.bely-archive-chooser{display:grid;gap:6px;margin:12px 0 15px;max-width:420px;color:#b7d9ef;font-weight:700;font-size:12px}
.bely-archive-dropdown{width:100%;padding:11px 36px 11px 13px;border:1px solid rgba(79,206,245,.49);border-radius:10px;background:#0d2940;color:#edfbff;font-weight:750;font-size:14px;cursor:pointer}
.bely-archive-dropdown option.correct{color:#73dca7}.bely-archive-dropdown option.incorrect{color:#f28b8b}.bely-archive-dropdown option.neutral{color:#b8c1c9}
.bely-archive-link-card{border:0;background:transparent;padding:0;grid-template-rows:auto auto;gap:8px;box-shadow:none}
.bely-archive-link-card .bely-archive-main{background:linear-gradient(135deg,#08619a,#1298cd)!important;color:#fff!important;border:1px solid #50d5fa!important;box-shadow:0 0 13px rgba(44,196,245,.18);font-weight:750}
.bely-archive-link-card a:not(.bely-archive-main){background:rgba(17,46,69,.72)!important;color:#d2e7f5!important;border:1px solid rgba(106,180,208,.22)!important}
.bely-archive-outcome{font-size:clamp(14px,2.7vw,18px)!important;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
@media(max-width:440px){.bely-archive-outcome{font-size:clamp(13px,3.3vw,16px)!important}}

/* BELLEYME V123.5.22 — cohérence visuelle cyan des commandes et des réglages. */
.admin-shell .admin-subnav a{font-size:clamp(13px,1.2vw,15px)!important;padding:11px 16px!important;color:#7cddf5!important;border-color:rgba(77,207,251,.32)!important;background:rgba(5,32,52,.76)!important;box-shadow:inset 0 0 13px rgba(28,133,177,.08)}
.admin-shell .admin-subnav a:hover{border-color:#76eaff!important;color:#c4faff!important;background:rgba(19,77,111,.61)!important}
.admin-shell .admin-subnav a.active{background:linear-gradient(125deg,#20bce8,#77e7ff)!important;border-color:#4de0ff!important;color:#062031!important;box-shadow:0 0 14px rgba(33,193,230,.21)}
.admin-shell .bely-return-cyan,.web-builder-admin a.bely-return-cyan,.admin-shell button.bely-return-cyan{background:linear-gradient(120deg,#17a9db,#78eaff)!important;color:#07192a!important;border:1px solid rgba(115,234,255,.75)!important;font-weight:800!important;box-shadow:0 0 13px rgba(47,216,247,.17)}
.admin-shell .bely-return-cyan:hover,.web-builder-admin a.bely-return-cyan:hover{filter:brightness(1.09)}
.bely-title-presets-orientation h3{font-size:17px!important}
.bely-title-preset-row strong{font-size:15px!important}.bely-title-preset-row label{font-size:13px!important;font-weight:650!important}
.bely-title-preset-row input{font-size:16px!important;font-weight:750!important;min-height:43px!important;color:#eafaff!important;background:#102c43!important}
.bely-title-presets-orientation{padding:16px!important}
.bely-school-holiday-radios{gap:9px!important}
.bely-school-holiday-radios label{border:1px solid rgba(72,191,232,.29);border-radius:11px;background:rgba(10,44,65,.52);min-height:41px;padding:7px 13px;transition:box-shadow .18s,border-color .18s,background .18s}
.bely-school-holiday-radios label:has(input:checked){border-color:#39d4fc;background:rgba(18,149,203,.25);box-shadow:inset 0 0 13px rgba(53,198,231,.12),0 0 11px rgba(53,198,231,.1);color:#d4f9ff}
.bely-school-holiday-radios input[type=radio]{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin:0;border:2px solid rgba(97,170,195,.8);border-radius:50%;display:grid;place-items:center;background:#102d40}
.bely-school-holiday-radios input[type=radio]::after{content:'';width:7px;height:7px;border-radius:50%;background:#56ddff;transform:scale(0);transition:transform .15s}
.bely-school-holiday-radios input[type=radio]:checked{border-color:#56ddff;box-shadow:0 0 8px rgba(86,221,255,.45)}
.bely-school-holiday-radios input[type=radio]:checked::after{transform:scale(1)}
.bely-school-holiday-radios input[type=radio]:focus-visible{outline:2px solid white;outline-offset:3px}
.bely-settings-v511 .bely-autosave-indicator,.bely-group-autosave.bely-autosave-indicator{color:#a8d8dd!important;font-size:12px!important;font-weight:600!important;min-height:24px}
.bely-settings-v511 .bely-autosave-indicator:before,.bely-group-autosave.bely-autosave-indicator:before{background:#59d6a8!important;box-shadow:0 0 8px rgba(84,212,156,.35)!important}
.bely-autosave-indicator[data-state=error]:before{background:#ff7474!important}.bely-autosave-indicator[data-state=saving]:before{background:#65dfff!important}.bely-autosave-indicator[data-state=editing]:before{background:#ffc36d!important}
.bely-order-buttons{display:inline-flex;gap:4px;align-items:center}
.bely-order-buttons .bely-order-arrow{width:38px;min-width:38px;min-height:38px;padding:3px;font-size:24px;font-weight:700;color:#66defe;border-color:rgba(94,228,255,.34)}
.bely-order-buttons .bely-order-arrow:disabled{opacity:.28}
.bely-summary-title{color:#68e6ff!important}.bely-summary-picker{display:grid;gap:5px;color:#b3d8ed;font-size:12px;font-weight:700;min-width:min(200px,45vw)}
.bely-summary-picker select{background:#0e314d;border:1px solid rgba(100,213,242,.4);border-radius:9px;color:#e6f9ff;padding:9px 11px;font-size:14px}
.bely-summary-global{flex-wrap:wrap}
.bely-archive-dropdown.correct{color:#75e2ae!important;border-color:rgba(80,216,147,.47)}
.bely-archive-dropdown.incorrect{color:#ff9797!important;border-color:rgba(248,125,125,.4)}
.bely-archive-dropdown.neutral{color:#b8cad9!important}
.bely-archive-dropdown option.correct{color:#75e2ae!important}.bely-archive-dropdown option.incorrect{color:#ff9797!important}.bely-archive-dropdown option.neutral{color:#b8cad9!important}
@media(max-width:660px){.admin-shell .admin-subnav a{font-size:13px!important;padding:10px 12px!important}.bely-v511-titlebar .bely-puzzle-header-actions{flex-wrap:wrap;justify-content:flex-end}.bely-summary-picker{width:100%}}

.bely-release-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.bely-release-subcard{padding:16px;border:1px solid rgba(95,209,247,.25);border-radius:12px;background:rgba(8,35,55,.57);min-width:0}
.bely-release-subcard>strong{color:#68dfff;font-size:15px}
.bely-release-subcard ul{padding-left:20px}.bely-release-subcard .mini-button{white-space:normal;text-align:center}
@media(max-width:650px){.bely-release-two-columns{grid-template-columns:1fr}}

/* V123.5.23 — Retours visibles, cohérents sur toutes les pages. */
.bely-return-cyan,
a.bely-return-cyan,button.bely-return-cyan,
.admin-subnav a.bely-return-cyan,.mini-button.bely-return-cyan {
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  color:#fff!important;background:linear-gradient(120deg,#09699b,#079bce)!important;
  border:1px solid #5ce4ff!important;border-radius:11px;
  box-shadow:0 0 0 1px rgba(84,211,255,.2),0 0 14px rgba(30,181,233,.27);
  padding:.65rem 1rem;font-size:1rem;font-weight:700;text-decoration:none;
}
a.bely-return-cyan:hover,button.bely-return-cyan:hover {box-shadow:0 0 20px rgba(57,209,253,.58);filter:brightness(1.12)}
.bely-return-cyan[aria-disabled="true"],.bely-return-cyan:disabled {opacity:.45;pointer-events:none;filter:grayscale(.45)}
.bely-summary-picker {background:linear-gradient(130deg,rgba(12,63,99,.85),rgba(5,24,48,.9));border:1px solid rgba(83,216,253,.75);
  border-radius:12px;padding:.55rem .8rem;color:#80e8ff;box-shadow:0 0 16px rgba(52,201,255,.21);font-weight:700}
.bely-summary-picker select {background:#09243d;color:#a7f0ff;border:1px solid #39bbe7;border-radius:9px;padding:.65rem 1.8rem .65rem .8rem;font-weight:700;min-width:160px}
.bely-school-holiday-radios label {cursor:pointer;display:inline-flex;align-items:center;gap:.45rem}
.bely-school-holiday-radios input[type="radio"] {appearance:none;-webkit-appearance:none;width:25px;height:25px;flex:none;border:2px solid #4ba5c8;border-radius:50%;background:#092135;cursor:pointer;transition:.15s;box-shadow:inset 0 0 0 4px #092135}
.bely-school-holiday-radios input[type="radio"]:checked {background:#29d7ff;border-color:#8cefff;box-shadow:0 0 12px #27d2f6, inset 0 0 0 2px #64e7ff}
.bely-school-holiday-radios input[type="radio"]:focus-visible {outline:2px solid #fff;outline-offset:3px}
.bely-release-two-columns .bely-release-subcard {border:1px solid rgba(82,218,252,.5);border-radius:14px;background:rgba(8,29,53,.85);padding:18px;min-width:0;box-shadow:0 0 14px rgba(38,175,218,.13)}
.bely-release-two-columns .bely-release-subcard h3 {font-size:1.22rem;margin:0 0 5px;color:#d9f7ff}
.bely-release-state {display:inline-block;font-size:.95rem;font-weight:700;color:#7be1ff;margin-bottom:8px}
.bely-correction-auto-ready {color:#a1ecc4;font-weight:700}
.bely-puzzle-header-chooser select option {background:#061c34;font-weight:700}

/* V123.5.24 — paramètres, statuts et navigation. */
.bely-school-holiday-radios input[type="radio"]{width:18px!important;height:18px!important;box-shadow:inset 0 0 0 3px #092135!important}
.bely-school-holiday-radios input[type="radio"]:checked{background:#24cfff!important;box-shadow:0 0 7px rgba(32,217,255,.7),inset 0 0 0 2px #7feeff!important}
.puzzle-state[data-state="À préparer"],.bely-state-text[data-state="À préparer"]{color:#ff777e!important}
.puzzle-state[data-state="À terminer"],.bely-state-text[data-state="À terminer"]{color:#ffbb67!important}
.puzzle-state[data-state="Prête"],.bely-state-text[data-state="Prête"]{color:#74eaaa!important}
.puzzle-state[data-state="En cours"],.bely-state-text[data-state="En cours"]{color:#55ddfa!important}
.puzzle-state[data-state="Terminée"],.bely-state-text[data-state="Terminée"]{color:#c49bff!important}
.bely-copy-dialog{max-width:min(620px,95vw);padding:0;border:1px solid #4acdf0;border-radius:16px;background:#071b2d;color:#ecfaff;box-shadow:0 15px 60px #000b,0 0 30px #2cc8fc30}
.bely-copy-dialog::backdrop{background:#010b19c9}
.bely-copy-dialog-panel{display:flex;flex-direction:column;gap:17px;padding:24px}.bely-copy-dialog-panel h3{margin:0;color:#83edff}.bely-copy-dialog-panel p{margin:0;color:#bbd4e5}.bely-copy-dialog-panel label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #31738a;border-radius:10px;cursor:pointer}.bely-copy-dialog-panel input{accent-color:#32d7ff;flex:none}.bely-copy-warning{color:#ffd7a0!important}.bely-copy-dialog-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.bely-constructor-head .eyebrow{display:flex;align-items:center;gap:7px}.bely-constructor-head .admin-topline h1{margin-bottom:5px}.bely-constructor-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 16px}.bely-constructor-controls .admin-subnav{margin:0!important}.bely-constructor-selector-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 18px}.bely-constructor-current{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.bely-constructor-current strong{font-size:21px;color:#f4fbff}.bely-constructor-current span{font-size:14px;font-weight:750}.bely-constructor-picker{display:flex;align-items:center;gap:12px}.bely-constructor-picker select{background:#081c31;border:1px solid #56cffa;border-radius:12px;padding:12px 34px 12px 15px;color:#dffaff;box-shadow:inset 0 0 15px #3ed5f119,0 0 10px #27bef917;max-width:315px}
.bely-constructor-controls>a.bely-return-cyan,.bely-category-back{background:linear-gradient(110deg,#087bb6,#18b4de)!important;border:1px solid #61dfff!important;box-shadow:0 0 12px #2ecbf53b;color:white!important;text-decoration:none;border-radius:11px;padding:11px 17px;font-weight:800;white-space:nowrap}
.bely-category-header-tools{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.bely-category-back{display:inline-flex;align-items:center;gap:7px}
.web-puzzle-toolbar.bely-preview-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}.bely-preview-toolbar .bely-preview-primary-actions{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px}.bely-preview-toolbar .bely-preview-heading{grid-column:2;grid-row:1;text-align:center;display:flex;flex-direction:column;gap:4px;white-space:nowrap}.bely-preview-toolbar .bely-preview-back{grid-column:3;grid-row:1;justify-self:end}.bely-preview-toolbar .bely-preview-save-indicator{grid-column:1;grid-row:2;text-align:left}.bely-preview-toolbar .bely-preview-adjust-message{grid-column:1;grid-row:2;text-align:left;white-space:normal}.bely-preview-toolbar .bely-preview-heading strong{font-size:18px;color:#e9f8ff}
@media(max-width:740px){.bely-constructor-controls,.bely-constructor-selector-row{flex-wrap:wrap}.bely-preview-toolbar.web-puzzle-toolbar{grid-template-columns:1fr auto;gap:10px}.bely-preview-toolbar .bely-preview-primary-actions{grid-column:1;grid-row:1}.bely-preview-toolbar .bely-preview-back{grid-column:2;grid-row:1}.bely-preview-toolbar .bely-preview-heading{grid-column:1/-1;grid-row:2;justify-self:center}.bely-preview-toolbar .bely-preview-save-indicator,.bely-preview-toolbar .bely-preview-adjust-message{grid-column:1/-1;grid-row:3}.bely-constructor-picker select{max-width:100%}}

/* Aperçus : largeur de la barre = largeur géométrique de la feuille. */
.web-puzzle-shell:has(>.web-puzzle-pages>.web-puzzle-page.orientation-portrait:first-child)>.bely-preview-toolbar{width:min(880px,100%);margin-left:auto;margin-right:auto}
.web-puzzle-shell:has(>.web-puzzle-pages>.web-puzzle-page.orientation-landscape:first-child)>.bely-preview-toolbar{width:min(1240px,100%);margin-left:auto;margin-right:auto}
.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-heading{grid-column:2!important;grid-row:1!important;justify-self:center!important;position:static!important;order:0!important}
.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-primary-actions{grid-column:1!important;grid-row:1!important;display:flex!important;justify-self:stretch!important;text-align:left!important}
.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-back{grid-column:3!important;grid-row:1!important;justify-self:end!important;text-align:right!important}
@media(max-width:740px){.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-heading{grid-column:1/-1!important;grid-row:2!important}.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-back{grid-column:2!important;grid-row:1!important}.web-puzzle-toolbar.bely-preview-toolbar>.bely-preview-primary-actions{grid-column:1!important;grid-row:1!important}}

/* BELLEYME V123.5.25 — finitions et composition condensée */
.bely-preview-toolbar .bely-preview-right{grid-column:3;grid-row:1 / span 2;justify-self:end;align-self:start;display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:min(48vw,390px)}
.bely-preview-toolbar .bely-preview-right .bely-preview-back{align-self:flex-end}
.bely-preview-toolbar .bely-preview-right .bely-preview-save-indicator{grid-column:auto!important;grid-row:auto!important;display:block;text-align:right!important;width:auto;white-space:normal;font-size:11px;line-height:1.4}
.bely-preview-toolbar .bely-preview-heading{grid-column:2;grid-row:1;justify-self:center;text-align:center}
.bely-preview-toolbar:has(.bely-preview-right){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.bely-school-holiday-radios input[type="radio"]{width:13px!important;height:13px!important;border-width:1.6px!important;box-shadow:inset 0 0 0 2px #092135!important}
.bely-school-holiday-radios input[type="radio"]:checked{box-shadow:0 0 5px rgba(32,217,255,.5),inset 0 0 0 1px #7feeff!important}
.bely-title-defaults .bely-autosave-indicator,.bely-title-presets-form + .bely-autosave-indicator{color:#a8d8dd!important;font-size:12px!important;font-weight:600!important}
.bely-title-defaults .bely-autosave-indicator::before{background:#59d6a8!important;box-shadow:0 0 8px rgba(84,212,156,.35)!important}
.builder-composition-title .panel-kicker{display:none}
.builder-composition-title h2{font-size:clamp(22px,2.5vw,30px);line-height:1.16;margin:0}
.web-builder-page-head{margin-bottom:10px;padding-bottom:10px}
.web-builder-page-head .bely-page-label h2{font-size:clamp(23px,2.4vw,28px);margin:0;color:#f3faff}
.web-builder-page-head .bely-reset-bg-hidden{display:none!important}
.bely-delete-page{width:42px;height:39px;padding:0!important;display:inline-flex;align-items:center;justify-content:center}
.web-builder-page .bely-compact-page-settings{display:grid;grid-template-columns:minmax(220px, .86fr) minmax(390px, 1.14fr);gap:22px;align-items:end;justify-content:stretch;margin-bottom:11px}
.web-builder-page .bely-frame-count{align-self:end;width:100%;max-width:none}
.web-builder-page .bely-frame-count select{width:100%}
.web-builder-page .builder-background-field{min-width:0;align-self:end;max-width:none}
.web-builder-page .bely-page-bg-selector{display:grid;grid-template-columns:160px minmax(160px,1fr);align-items:center;gap:12px}
.web-builder-page .bely-page-bg-selector .builder-background-preview{margin:0;min-height:0}
.web-builder-page .bely-page-bg-selector .builder-bg-preview-card{margin:0;width:100%;padding:5px;box-sizing:border-box}
.web-builder-page .bely-page-bg-selector .builder-bg-preview-card img{max-height:98px;width:auto;max-width:100%;object-fit:contain}
.web-builder-page .bely-page-bg-selector input[type=file]{width:100%;max-width:none;font-size:12px;box-sizing:border-box}
.web-builder-page .bely-builder-autosave-bottom{margin:13px 0 0!important;padding:11px 0 0!important;max-width:none;border:0!important;border-top:1px solid rgba(94,228,255,.13)!important;border-radius:0!important;background:none!important;color:#a8d8dd!important;font-size:12px!important;display:flex;gap:9px;align-items:center}
.web-builder-page .bely-builder-autosave-bottom::before{content:'';width:9px;height:9px;background:#59d6a8;border-radius:50%;box-shadow:0 0 8px rgba(84,212,156,.35);flex-shrink:0}
.web-builder-page .bely-builder-autosave-bottom[data-state="draft"]{color:#e8bd77!important}.web-builder-page .bely-builder-autosave-bottom[data-state="draft"]::before{background:#e8bd77}
.web-builder-page .bely-builder-autosave-bottom[data-state="saving"]{color:#77defc!important}.web-builder-page .bely-builder-autosave-bottom[data-state="saving"]::before{background:#77defc}
.web-builder-page .bely-builder-autosave-bottom[data-state="error"]{color:#ff9898!important}.web-builder-page .bely-builder-autosave-bottom[data-state="error"]::before{background:#ff7474}
@media(max-width:740px){.web-builder-page .bely-compact-page-settings{grid-template-columns:1fr;gap:12px}.web-builder-page .bely-page-bg-selector{grid-template-columns:135px minmax(0,1fr);gap:10px}.bely-preview-toolbar .bely-preview-right{grid-column:2;grid-row:1;max-width:54vw}.bely-preview-toolbar .bely-preview-heading{grid-column:1/-1;grid-row:2}.web-builder-page .bely-builder-autosave-bottom{font-size:11px!important}}

/* Réglages : six familles de fonds (portrait/paysage si applicable) */
.bely-background-defaults{margin-top:20px}
.bely-background-defaults-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.bely-background-type{background:rgba(5,22,39,.62);border:1px solid rgba(75,191,222,.25);border-radius:15px;padding:15px;min-width:0}
.bely-background-type h3{margin:0 0 12px;font-size:16px;color:#6cddff}
.bely-background-orientations{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px}
.bely-background-choice{display:flex;flex-direction:column;gap:8px;min-width:0}
.bely-background-choice strong{font-size:12px;color:#b2d0e4}
.bely-background-choice img,.bely-background-css-preview{width:100%;aspect-ratio:1.414;object-fit:contain;max-height:135px;background:#08192b;border:1px solid rgba(73,171,203,.25);border-radius:10px}
.bely-background-css-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#8dc9df;font-size:12px}
.bely-background-choice input[type=file]{font-size:11px;width:100%;box-sizing:border-box;min-width:0}
.bely-background-choice button{align-self:start;font-size:12px}
.rules-printable{background-image:var(--bely-rules-bg,none);background-size:100% 100%;background-repeat:no-repeat}
@media print{.rules-printable{background-image:none!important}}
@media(max-width:740px){.bely-background-defaults-grid{grid-template-columns:1fr}}

/* Titres : un seul voyant identique aux autres, alimenté après réponse serveur. */
.bely-title-defaults .bely-title-presets-form>.admin-autosave-state:not([data-state="error"]){display:none!important}
.bely-title-defaults .bely-title-presets-form>.admin-autosave-state[data-state="error"]{display:none!important}
.bely-title-defaults>.bely-autosave-indicator{color:#a8d8dd!important;font-size:12px!important;font-weight:600!important}
.bely-title-defaults>.bely-autosave-indicator::before{background:#59d6a8!important;box-shadow:0 0 8px rgba(84,212,156,.35)!important}

/* BELLEYME V123.5.26 — administration : retours alignés sur les six liens */
.admin-shell .admin-subnav .bely-nav-return,
.admin-shell .admin-subnav a.bely-nav-return{
 margin-left:auto!important;background:linear-gradient(110deg,#087bb6,#18b4de)!important;
 border:1px solid #61dfff!important;box-shadow:0 0 13px #2ecbf53b!important;
 color:#fff!important;font-weight:800!important;white-space:nowrap;text-align:center;
}
.bely-constructor-controls,.bely-constructor-controls .bely-builder-fullnav{width:100%;min-width:0}
.bely-constructor-controls .admin-subnav{margin:0!important}
.bely-constructor-selector-row{display:grid;grid-template-columns:auto auto minmax(230px,1fr);gap:14px;align-items:center}
.bely-constructor-current{white-space:nowrap;flex-wrap:nowrap}
.bely-constructor-picker{justify-content:flex-end;min-width:0}
.bely-constructor-picker select{width:min(320px,100%)}
/* Même présentation coulissante que le choix Élèves / Personnels existant. */
.bely-kind-switch{display:inline-flex!important;width:max-content!important;max-width:100%;white-space:nowrap;overflow:visible}
.bely-kind-switch a{flex:0 0 auto!important;min-height:36px;display:flex;align-items:center;justify-content:center}
@media(max-width:980px){.bely-constructor-selector-row{grid-template-columns:minmax(0,1fr) auto}.bely-constructor-picker{grid-column:1/-1;justify-content:stretch}.bely-constructor-picker select{max-width:none;width:100%}}
@media(max-width:590px){.bely-constructor-selector-row{grid-template-columns:1fr;gap:9px}.bely-kind-switch{max-width:100%;overflow-x:auto}.bely-constructor-picker{grid-column:1}.admin-shell .admin-subnav .bely-nav-return{margin-left:auto!important}}

/* Énigme / correction : feu tricolore horizontal, seule la LED active est allumée. */
.bely-release-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.bely-release-heading h3{margin:0!important}
.bely-status-lights{display:inline-flex;flex:0 0 auto;gap:9px;align-items:center;justify-content:flex-end;padding:7px 9px;border:1px solid rgba(71,143,173,.22);border-radius:18px;background:rgba(0,11,22,.48)}
.bely-status-lamp{position:relative;display:inline-block;width:13px;height:13px;border-radius:50%;background:#1a2930;border:1px solid #384b58;box-shadow:inset 0 2px 5px #000b;opacity:.84}
.bely-lamp-green{background:#194d39;border-color:#30694e}
.bely-lamp-orange{background:#544129;border-color:#866044}
.bely-lamp-red{background:#592a31;border-color:#853c45}
.bely-lamp-green.is-on{background:#4df5a9;border-color:#a2ffdc;opacity:1;box-shadow:0 0 5px #7dffd9,0 0 12px #2be99a,0 0 23px #2be99a80,inset 0 0 4px #fff9}
.bely-lamp-orange.is-on{background:#ffad40;border-color:#ffdc92;opacity:1;box-shadow:0 0 5px #ffd28c,0 0 13px #ffae37,0 0 24px #ffa12c78,inset 0 0 4px #fff9}
.bely-lamp-red.is-on{background:#ff5c68;border-color:#ffb8bc;opacity:1;box-shadow:0 0 5px #ffb2b6,0 0 13px #ff4756,0 0 24px #ff475678,inset 0 0 4px #fff9}
.bely-puzzle-auto-ready{color:#a5edc5!important;padding:9px 11px;border:1px solid #329d6b6b;border-radius:9px;background:#0b3d2a55}
.bely-puzzle-auto-warning{color:#ffcf87;padding:9px 11px;border:1px solid #a26c3388;border-radius:9px;background:#46291444}

/* Constructeur : zone haute épurée, titres cyan, réglages en deux cartes compactes. */
.web-builder-admin .builder-composition-bar{padding:14px 20px!important;align-items:center;row-gap:8px;column-gap:20px}
.web-builder-admin .builder-composition-title{align-self:start;grid-column:1;grid-row:1}
.web-builder-admin .builder-composition-title h2{color:#66dfff;font-size:clamp(23px,2.4vw,30px);margin:0}
.web-builder-admin .builder-preview-button{grid-column:1;grid-row:2;align-self:start;justify-self:start;margin:0}
.web-builder-admin .builder-orientation-field{grid-column:2;grid-row:1}
.web-builder-admin .bely-builder-undo{grid-column:2;grid-row:2}
.web-builder-page-head .bely-page-label h2{color:#66dfff!important}
.web-builder-page .bely-compact-page-settings{grid-template-columns:minmax(205px,.82fr) minmax(0,1.18fr)!important;gap:12px!important;align-items:stretch!important;margin-bottom:12px!important}
.web-builder-page .bely-page-settings-card{
 background:rgba(6,27,45,.63);border:1px solid rgba(71,189,227,.27);border-radius:13px;
 padding:12px!important;box-sizing:border-box;min-width:0;align-self:stretch!important;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;
}
.web-builder-page .bely-frame-count select{max-width:320px!important;margin-top:4px}
.web-builder-page .bely-page-settings-card>span{color:#67ddff;font-size:13px;font-weight:800}
.web-builder-page .bely-page-bg-selector{grid-template-columns:minmax(95px,138px) minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
.web-builder-page .bely-page-bg-selector .builder-bg-preview-card img{max-height:89px!important}
.web-builder-page .web-builder-slots{margin-top:3px!important}
.web-builder-slot .delete-frame-button{display:inline-flex;align-items:center;justify-content:center;padding:4px}
.bely-add-page-compact{padding:13px 19px!important;display:flex!important;justify-content:space-between;align-items:center;gap:15px;min-height:0!important}
.bely-add-page-compact h2{margin:0!important;color:#64deff;font-size:clamp(20px,2vw,25px)!important}
.bely-add-page-compact .add-web-page-form{display:flex;align-items:center;gap:10px;margin:0!important}
.bely-add-page-compact .add-web-page-form button{white-space:nowrap}
@media(max-width:740px){
 .web-builder-admin .builder-composition-bar{grid-template-columns:1fr 1fr!important;padding:13px!important}
 .web-builder-admin .builder-composition-title{grid-column:1/-1!important;grid-row:1!important}
 .web-builder-admin .builder-orientation-field{grid-column:1/-1!important;grid-row:2!important}
 .web-builder-admin .builder-preview-button{grid-column:1!important;grid-row:3!important}
 .web-builder-admin .bely-builder-undo{grid-column:2!important;grid-row:3!important}
 .web-builder-page .bely-compact-page-settings{grid-template-columns:1fr!important}
 .web-builder-page .bely-page-bg-selector{grid-template-columns:110px minmax(0,1fr)!important}
}

/* Réglages : Énigme et Correction en grandes cartes ; Web et PDF en deux colonnes.
   Dans chacune, Paysage et Portrait côte à côte avec Portrait légèrement plus étroit. */
.bely-background-defaults-grid.bely-bg-v26{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
.bely-bg-family{background:rgba(5,22,39,.68);border:1px solid rgba(76,199,235,.29);border-radius:16px;padding:15px;min-width:0}
.bely-bg-family>h3{color:#6ee2ff;margin:0 0 13px;font-size:20px}
.bely-bg-formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bely-bg-format{border:1px solid rgba(73,168,202,.24);border-radius:12px;background:#0a2133;padding:12px;min-width:0}
.bely-bg-format h4{color:#d3f9ff;margin:0 0 11px;font-size:15px}
.bely-bg-format .bely-background-orientations{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);align-items:start;gap:10px}
.bely-bg-format .bely-background-choice{gap:7px;min-width:0}
.bely-bg-format .bely-background-choice img{height:100px;max-height:100px;object-fit:contain}
.bely-bg-format .bely-background-choice input{min-width:0;font-size:11px}
.bely-bg-format .bely-background-choice button{font-size:11px;padding:8px 10px}
.bely-rules-funds-layout{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.bely-settings-bottom-grid .settings-rules-actions-centered{display:flex;flex-direction:column;gap:9px;align-items:stretch;justify-content:start}
.bely-rules-bg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bely-rules-bg-choice{display:flex;flex-direction:column;gap:6px;border:1px solid rgba(71,186,224,.24);background:#091b2f;padding:10px;border-radius:11px;min-width:0}
.bely-rules-bg-choice strong{color:#6bdcff;font-size:13px}
.bely-rules-bg-choice img,.bely-rules-css-bg{height:70px;width:100%;object-fit:contain;background:#07192a;border-radius:8px;border:1px solid #26627b77}
.bely-rules-css-bg{display:flex;align-items:center;justify-content:center;text-align:center;color:#a7cee0;font-size:11px}
.bely-rules-bg-choice input[type=file]{width:100%;min-width:0;max-width:100%;font-size:10px}
.bely-rules-bg-choice button{align-self:start;font-size:11px;padding:7px 8px}
@media(max-width:1050px){.bely-bg-formats{grid-template-columns:1fr}.bely-rules-funds-layout{grid-template-columns:1fr}.bely-rules-bg-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.bely-bg-format .bely-background-orientations{grid-template-columns:1fr 1fr}.bely-rules-bg-fields{grid-template-columns:1fr}}


/* BELLEYME V123.5.27 — stabilisation + derniers ajustements du constructeur. */
/* Reprendre exactement l'échelle typographique du titre de la fiche Énigme. */
.bely-constructor-head .bely-constructor-selector-row{
 display:flex!important;align-items:center!important;justify-content:initial!important;
 gap:10px!important;flex-wrap:wrap!important;
}
.bely-constructor-head .bely-constructor-current{
 display:inline-flex!important;flex:0 0 auto;align-items:center;gap:12px;
 white-space:nowrap;min-width:0;margin:0!important;
}
.bely-constructor-head .bely-constructor-current strong{
 font-size:clamp(22px,2.6vw,32px)!important;
 font-weight:800!important;letter-spacing:normal;line-height:1.16!important;
}
.bely-constructor-head .bely-constructor-current .bely-state-text{
 font-size:12px!important;font-weight:850!important;
}
.bely-constructor-head .bely-kind-switch{
 margin:0 0 0 2px!important;flex:0 0 auto!important;
}
.bely-constructor-head .bely-constructor-picker{
 flex:0 1 248px!important;width:248px!important;max-width:248px!important;
 margin-left:auto!important;grid-column:auto!important;
}
.bely-constructor-head .bely-constructor-picker select{
 width:100%!important;max-width:248px!important;
 min-width:0;padding:10px 28px 10px 12px!important;
}
/* Rouge vif et homogène des poubelles de cadres, pages et énigmes. */
.web-builder-admin .delete-frame-button,
.web-builder-admin .bely-delete-page,
.puzzle-admin-header .trash-button.bely-trash-larger{
 color:#ff5267!important;border:1px solid rgba(255,68,95,.64)!important;
 background:rgba(119,18,40,.22)!important;
 box-shadow:inset 0 0 10px rgba(255,62,86,.09)!important;
}
.web-builder-admin .delete-frame-button:hover:not(:disabled),
.web-builder-admin .bely-delete-page:hover:not(:disabled),
.puzzle-admin-header .trash-button.bely-trash-larger:hover:not(:disabled){
 color:#ff7b88!important;border-color:#ff6276!important;
 background:rgba(161,26,50,.32)!important;
 box-shadow:0 0 13px rgba(255,69,91,.28)!important;
}
/* Le règlement n'a qu'un fond PDF configurable. Boutons empilés et centrés. */
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-funds-layout{
 display:grid!important;grid-template-columns:minmax(130px,.38fr) minmax(0,1fr)!important;
 align-items:stretch!important;gap:14px!important;
}
.bely-settings-bottom-grid .settings-rules-panel .settings-rules-actions-centered{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:center!important;align-self:stretch!important;gap:10px!important;
 padding:0!important;min-height:0!important;
}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-fields{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-choice{
 display:grid!important;grid-template-columns:minmax(110px,.45fr) minmax(0,1fr);
 gap:8px 13px!important;align-items:center;
}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-choice strong{grid-column:1/-1}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-choice img{grid-row:2/4;grid-column:1;max-height:138px;height:112px}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-choice input[type=file]{grid-column:2;grid-row:2}
.bely-settings-bottom-grid .settings-rules-panel .bely-rules-bg-choice button{grid-column:2;grid-row:3;justify-self:start}
@media(max-width:760px){
 .bely-constructor-head .bely-constructor-selector-row{gap:10px!important}
 .bely-constructor-head .bely-constructor-current strong{font-size:clamp(22px,5vw,28px)!important}
 .bely-constructor-head .bely-constructor-picker{flex:1 1 100%!important;max-width:none!important;width:100%!important;margin-left:0!important}
 .bely-constructor-head .bely-constructor-picker select{max-width:none!important}
 .bely-settings-bottom-grid .settings-rules-panel .bely-rules-funds-layout{grid-template-columns:1fr!important}
 .bely-settings-bottom-grid .settings-rules-panel .settings-rules-actions-centered{flex-direction:row!important;justify-content:center!important}
}


/* BELLEYME V123.5.28 — menu constructeur, deux sélecteurs accolés à droite. */
.bely-constructor-head .bely-constructor-selector-row{
 display:flex!important;align-items:center!important;gap:12px!important;
 justify-content:space-between!important;flex-wrap:wrap!important;
}
.bely-constructor-head .bely-constructor-current{
 flex:0 0 auto!important;white-space:nowrap;margin-right:12px!important;
}
.bely-constructor-head .bely-constructor-right{
 display:flex;align-items:center;justify-content:flex-end;gap:7px;
 margin-left:auto;min-width:0;flex:0 1 auto;
}
.bely-constructor-head .bely-constructor-right .bely-kind-switch{
 flex:0 0 auto!important;margin:0!important;
}
.bely-constructor-head .bely-constructor-right .bely-constructor-picker{
 flex:0 1 235px!important;margin:0!important;width:235px!important;
 max-width:235px!important;min-width:0!important;
}
.bely-constructor-head .bely-constructor-right .bely-constructor-picker select{
 width:100%!important;min-width:0!important;max-width:235px!important;
}
@media(max-width:850px){
 .bely-constructor-head .bely-constructor-right{
  flex:1 1 100%;justify-content:flex-end;margin-left:0;
 }
 .bely-constructor-head .bely-constructor-right .bely-constructor-picker{
  flex:0 1 235px!important;
 }
}
@media(max-width:485px){
 .bely-constructor-head .bely-constructor-right{
  justify-content:flex-start;flex-wrap:wrap;gap:8px;
 }
 .bely-constructor-head .bely-constructor-right .bely-constructor-picker{
  flex:1 1 100%!important;width:100%!important;max-width:none!important;
 }
 .bely-constructor-head .bely-constructor-right .bely-constructor-picker select{
  max-width:none!important;
 }
}
/* Messages : fenêtre de conversation abaissée d'environ une ligne, sans masquer les échanges. */
.bely-mailbox-conversation .bely-thread-history{
 max-height:clamp(165px,27vh,235px)!important;
 min-height:140px!important;
 overflow-y:auto!important;
}
@media(max-width:720px){
 .bely-mailbox-conversation .bely-thread-history{
  max-height:none!important;min-height:0!important;
 }
}
/* V123.5.29 : historique privé et encarts homogènes de correction. */
.bely-history-panel{display:grid;gap:16px}
.bely-history-create{display:flex;justify-content:flex-start}
.bely-history-entries{display:grid;gap:10px}
.bely-history-entry{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;border:1px solid rgba(63,191,240,.24);padding:12px 15px;border-radius:12px;background:rgba(9,34,55,.63)}
.bely-history-entry>div:first-child{display:grid;gap:5px}
.bely-history-entry>div:first-child span{color:#a9cadc;font-size:.82rem}
.bely-history-restore{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.bely-history-restore .field{margin:0;min-width:160px}
.bely-history-restore .field input{max-width:170px}
.bely-history-link{font-size:.72rem!important;padding:7px 10px!important;white-space:nowrap}
.bely-release-subcard .bely-correction-auto-ready.bely-puzzle-auto-ready{border:1px solid rgba(52,214,153,.32);background:rgba(7,94,64,.19);padding:10px 12px;border-radius:9px;font-weight:500}
@media(max-width:650px){.bely-history-entry{align-items:stretch}.bely-history-restore{width:100%}}

.bely-builder-history{margin:0 0 8px;align-self:flex-start;white-space:nowrap;font-size:.75rem!important}

.bely-history-preview{margin-top:8px;max-width:660px}.bely-history-preview>summary{cursor:pointer;color:#65ddff;font-size:.84rem}.bely-history-preview p{font-size:.85rem;color:#c3dce9}.bely-history-page-preview{border:1px solid rgba(50,149,191,.25);border-radius:9px;padding:9px;margin:9px 0}.bely-history-block-preview{display:flex;gap:8px;align-items:center}.bely-history-block-preview img{width:92px;max-height:84px;object-fit:contain;border:1px solid rgba(68,179,209,.3);border-radius:6px}.bely-history-both{font-size:.75rem;max-width:220px;color:#ffc77c}

/* BELLEYME V124 — compact, unified version history and editors */
.bely-v124-history .admin-subnav .bely-nav-return,.rules-admin-editor .admin-subnav .bely-nav-return{margin-left:auto!important}
.bely-v124-history-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.bely-v124-history-title h2,.bely-v124-cyan-title{color:#63e5ff!important;margin:0!important;font-weight:800}
.bely-v124-version{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:64px!important;padding:9px 13px!important}
.bely-v124-version-info{display:flex!important;flex-direction:column!important;gap:1px!important;flex:1;min-width:130px}
.bely-v124-version-info strong{font-size:14px}.bely-v124-version-info small{color:#9ebad0;font-size:11px}
.bely-v124-change{color:#5bdfff!important;font-size:12px!important;font-weight:700}
.bely-v124-version-form{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;width:auto!important}
.bely-v124-scope{display:flex;align-items:center;margin:0;padding:3px!important;gap:2px!important;border:1px solid #3689ae;border-radius:10px;background:#071d32;white-space:nowrap}
.bely-v124-scope label{margin:0!important;position:relative;cursor:pointer}.bely-v124-scope input{position:absolute;opacity:0;width:1px;height:1px}.bely-v124-scope span{display:block;padding:7px 9px;border-radius:8px;color:#99c4d8;font-size:11px;transition:background .15s}
.bely-v124-scope input:checked+span{background:#1688b2;color:#fff;font-weight:800;box-shadow:0 0 8px #1688b244}.bely-v124-scope input:focus-visible+span{outline:2px solid #baf5ff}
.bely-v124-version-form>.mini-button{white-space:nowrap}
.bely-v124-rules-tools{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.bely-v124-undo-tools,.bely-v124-builder-undo-row{display:flex;align-items:center;gap:7px;white-space:nowrap}
.rules-remove-button{color:#ff4c59!important;border-color:#b82a37!important;display:inline-flex;align-items:center;justify-content:center}
.bely-v124-builder-toolbar{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important}
.bely-v124-builder-toolbar .builder-composition-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important}
.bely-v124-builder-toolbar .builder-orientation-field{max-width:160px!important;width:150px!important;margin:0!important;grid-column:auto!important;grid-row:auto!important}
.bely-v124-builder-toolbar .builder-orientation-field select{width:100%!important;max-width:150px!important}
.bely-v124-builder-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.bely-v124-builder-undo-row form{margin:0!important;padding:0!important}
.bely-v124-builder-undo-row .mini-button{margin:0!important}
.bely-v124-builder-undo-row .bely-builder-history{margin:0!important}
@media(max-width:620px){.bely-v124-version{flex-wrap:wrap}.bely-v124-version-form{flex:1;justify-content:flex-end}.bely-v124-scope span{font-size:10px;padding:6px}.bely-v124-builder-toolbar{flex-wrap:wrap}.bely-v124-builder-actions{width:100%;align-items:flex-end}}

/* BELLEYME V124 — Messages / Alertes */
.bely-v124-message-tabs{display:flex;align-items:center;gap:10px;margin:0 0 15px}
.bely-v124-alert-panel h2{color:#60e4ff;margin:0 0 14px}
.bely-v124-alert-list{display:flex;flex-direction:column;gap:9px}
.bely-v124-alert{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 15px;border:1px solid rgba(94,228,255,.26);border-radius:13px;background:rgba(9,37,57,.67)}
.bely-v124-alert>div:first-child{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.bely-v124-alert strong{color:#e6faff}.bely-v124-alert small{font-size:11px;color:#90aabc}.bely-v124-alert p{font-size:13px;line-height:1.5;color:#c8e1ee;margin:2px 0}
.bely-v124-alert-actions{display:flex;gap:7px;align-items:center;flex:0 0 auto}.bely-v124-alert-actions form{margin:0}
@media(max-width:630px){.bely-v124-alert{align-items:flex-start;flex-direction:column}.bely-v124-alert-actions{align-self:flex-end}}

.bely-top-controls-existing .puzzle-scope-under-title{flex:0 1 auto!important;max-width:max-content!important}
.bely-v124-puzzle-history{margin-left:auto!important;white-space:nowrap;align-self:center}
.bely-puzzle-header-chooser select{max-width:245px!important}
@media(max-width:650px){.bely-top-controls-existing .puzzle-scope-under-title{max-width:100%!important}.bely-v124-puzzle-history{margin-left:auto}}

/* BELLEYME V124.1 — finitions validées, sans modifier le rendu des compositions */
.bely-constructor-head .bely-builder-status-badge{
  font-size:15px!important;font-weight:850!important;line-height:1.3!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:5px 11px!important;border-radius:9px!important;
  background:rgba(14,47,67,.7)!important;border:1px solid currentColor!important;
  box-shadow:0 0 10px rgba(63,202,235,.08)!important;
}
.bely-v124-builder-toolbar{align-items:center!important;}
.bely-v124-builder-toolbar .builder-composition-title{gap:9px!important;min-width:max-content!important}
.bely-v124-builder-toolbar .builder-orientation-field{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;
  width:auto!important;min-width:max-content!important;max-width:none!important;
}
.bely-v124-builder-toolbar .builder-orientation-field>span{white-space:nowrap!important;width:auto!important;margin:0!important;}
.bely-v124-builder-toolbar .builder-orientation-field select{width:116px!important;min-width:116px!important;max-width:116px!important;}
.bely-v124-builder-actions{margin-left:auto!important;align-self:center!important;align-items:flex-end!important;justify-content:center!important;}
.bely-v124-builder-actions .builder-preview-button{margin-left:auto!important;align-self:flex-end!important;}
.bely-v124-undo-tools .mini-button:is([data-rules-undo],[data-rules-redo]),
.bely-v124-builder-undo-row .mini-button:is([data-builder-undo],[data-builder-redo]),
.bely-v1241-preview-toolbar .bely-preview-arrow-form button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:37px!important;min-width:39px!important;max-width:44px!important;
  padding:7px!important;color:#72dfff!important;background:#10354c!important;
  border:1px solid #4193b3!important;border-radius:8px!important;
}
.bely-v124-undo-tools .mini-button:disabled,.bely-v124-builder-undo-row .mini-button:disabled,.bely-v1241-preview-toolbar .bely-preview-arrow-form button:disabled{
  opacity:.56!important;color:#8ab2c4!important;border-color:#3e6577!important;cursor:not-allowed!important;
}
.bely-v1241-preview-toolbar.web-puzzle-toolbar{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;flex-wrap:nowrap!important;
  width:100%!important;max-width:none!important;gap:14px!important;
  padding:8px 12px!important;position:relative!important;
}
.bely-v1241-preview-toolbar>.bely-preview-heading{
  display:block!important;flex:0 0 auto!important;order:0!important;grid-column:auto!important;
  grid-row:auto!important;position:static!important;margin:0 auto 0 0!important;
  text-align:left!important;white-space:nowrap!important;
}
.bely-v1241-preview-toolbar>.bely-preview-heading strong{
  color:#62dfff!important;font-size:clamp(16px,1.7vw,22px)!important;
}
.bely-v1241-preview-toolbar>.bely-preview-primary-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  justify-self:end!important;flex-wrap:nowrap!important;gap:7px!important;
  margin:0 0 0 auto!important;grid-column:auto!important;grid-row:auto!important;
  width:auto!important;order:1!important;white-space:nowrap!important;
}
.bely-v1241-preview-toolbar .bely-preview-arrow-form{margin:0!important;padding:0!important;display:flex!important;}
.bely-v1241-preview-toolbar .web-preview-adjust-status{font-size:13px!important;font-weight:800!important;white-space:nowrap!important;}
.bely-v1241-preview-toolbar .bely-preview-save-indicator{
  position:absolute!important;top:calc(100% + 4px)!important;right:0!important;
  color:#a4c7d8!important;background:#071826f0!important;padding:3px 8px!important;
  max-width:55vw!important;font-size:11px!important;z-index:20!important;
}
@media(max-width:800px){
 .bely-v1241-preview-toolbar.web-puzzle-toolbar{flex-wrap:wrap!important;gap:8px!important;}
 .bely-v1241-preview-toolbar>.bely-preview-heading{width:100%!important;}
 .bely-v1241-preview-toolbar>.bely-preview-primary-actions{flex-wrap:wrap!important;margin-left:auto!important;}
 .bely-v124-builder-toolbar{flex-wrap:wrap!important;}
 .bely-v124-builder-toolbar .builder-composition-title{min-width:0!important;}
 .bely-v124-builder-toolbar .builder-orientation-field{flex-wrap:wrap!important;min-width:0!important;}
}

/* V124.2 — proposition IA séparée des articles du règlement */
.bely-rules-ai-result[hidden]{display:none!important}
.bely-rules-ai-result{margin:12px 0 5px;padding:12px;border:1px solid #278eb8;border-radius:12px;background:#071f32;color:#dcf7ff}
.bely-rules-ai-text{min-height:65px;max-height:260px;overflow:auto;padding:12px;border:1px solid #367c9b;border-radius:8px;background:#09283d;white-space:pre-wrap}
.bely-rules-ai-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:10px}
.rules-ai-button{color:#69e5ff!important;border:1px solid #2c83a9!important}

.bely-v124-param-undo-row{display:flex;align-items:center;gap:6px;margin-left:auto}
.bely-v124-param-undo-row form{display:inline-flex;margin:0;padding:0}
.bely-v124-param-undo-row+.bely-v124-puzzle-history{margin-left:0!important}

/* V124.2 — flèches cyan arrondies, actives ou désactivées toujours repérables */
.bely-v124-undo-tools .mini-button svg,.bely-v124-builder-undo-row .mini-button svg,.bely-preview-arrow-form .mini-button svg,.bely-v124-param-undo-row svg{color:#64ddff!important;stroke:#64ddff!important;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bely-v124-undo-tools button:disabled svg,.bely-v124-builder-undo-row button:disabled svg,.bely-preview-arrow-form button:disabled svg,.bely-v124-param-undo-row button:disabled svg{color:#7296a4!important;stroke:#7296a4!important;opacity:.57}
.bely-title-inline .puzzle-state{font-size:14px!important;line-height:1.2!important;border:1px solid currentColor;padding:6px 12px!important;border-radius:12px!important;font-weight:800!important}

/* V124.2B — commandes des paramètres exactement à gauche de l'historique. */
.bely-top-controls-existing .bely-v124-param-undo-row{margin-left:auto!important;display:inline-flex!important;align-items:center!important;gap:7px!important;flex-shrink:0}
.bely-top-controls-existing .bely-v124-puzzle-history{margin-left:0!important;flex-shrink:0}
.bely-v124-param-undo-row button.bely-param-arrow{width:39px;height:37px;min-width:39px;display:inline-flex;justify-content:center;align-items:center;padding:7px;color:#64ddff;background:#10354c;border:1px solid #4193b3;border-radius:8px}
.bely-v124-param-undo-row button.bely-param-arrow:disabled{color:#89aab9;opacity:.55;cursor:not-allowed}
@media(max-width:720px){.bely-top-controls-existing .bely-v124-param-undo-row{margin-left:auto!important}}

/* V124.2D — Commandes hors du contenu, plus lisibles, sans changer la géométrie enregistrée. */
.bely-disabled-action,.bely-disabled-action:hover{opacity:.45!important;filter:grayscale(.6);cursor:not-allowed!important;pointer-events:none!important;box-shadow:none!important}
.web-puzzle-page.is-adjust-preview .web-puzzle-frame{overflow:visible!important}
.web-puzzle-page.is-adjust-preview .frame-adjust-tools{
  position:absolute!important;top:calc(100% + 5px)!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;display:flex!important;flex-direction:row!important;
  align-items:center!important;gap:5px!important;padding:4px 6px!important;
  background:rgba(2,12,22,.92)!important;border-radius:9px!important;
  z-index:150!important;white-space:nowrap!important;min-width:max-content!important
}
.web-puzzle-page.is-adjust-preview .frame-adjust-tools .frame-adjust-scale{display:flex!important;gap:5px!important;align-items:center!important}
.web-puzzle-page.is-adjust-preview .frame-adjust-tools .frame-adjust-scale span{display:none!important}
.web-puzzle-page.is-adjust-preview .frame-drag-handle,
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools .frame-drag-handle{
  display:grid!important;place-items:center!important;width:35px!important;height:35px!important;
  min-width:35px!important;min-height:35px!important;border-radius:8px!important;margin:0!important
}
.web-puzzle-page.is-adjust-preview .frame-drag-handle svg{pointer-events:none!important;stroke:#85e8ff}
.web-puzzle-page.is-adjust-preview .frame-adjust-scale button{
  width:32px!important;height:32px!important;font-size:17px!important;font-weight:850!important;
  border-radius:7px!important
}
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools{gap:6px!important}
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools .frame-adjust-scale{display:flex!important;gap:5px!important}
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools .frame-adjust-scale span{display:none!important}
.web-puzzle-page.is-adjust-preview .overlay-adjust-tools .overlay-coords{
  font-size:12px!important;line-height:1.3!important;font-weight:800!important;
  padding:5px 9px!important;letter-spacing:.15px!important
}
@media(max-width:640px){.web-puzzle-page.is-adjust-preview .frame-adjust-tools{padding:3px 4px!important;gap:4px!important}}

/* V124.2E : commande de titre à taille fixe, indépendante du zoom du titre. */
.web-puzzle-page.is-adjust-preview .adjustable-overlay .overlay-adjust-tools{
  transform:translateX(-50%) scale(var(--bely-overlay-inverse,1)) !important;
  transform-origin:center top !important;
}

.bely-live-phase{font-size:.75rem;font-weight:600;color:#c5c9d9;white-space:nowrap}
/* V124.2G — single administration action strip and five stable status colors. */
.bely-admin-state[data-state="Prête à valider"]{color:#fde047!important;border-color:#fde047!important;background:rgba(253,224,71,.10)!important}
.bely-admin-state[data-state="À préparer"]{color:#ff777e!important;border-color:#ff777e!important;background:rgba(239,68,68,.09)!important}
.bely-admin-state[data-state="À terminer"]{color:#ffbb67!important;border-color:#ffbb67!important;background:rgba(245,158,11,.09)!important}
.bely-admin-state[data-state="Prête"]{color:#74eaaa!important;border-color:#74eaaa!important;background:rgba(34,197,94,.09)!important}
.bely-admin-state[data-state="Terminée"]{color:#c49bff!important;border-color:#c49bff!important;background:rgba(168,85,247,.09)!important}
.bely-release-state[data-state="Prête à valider"]{color:#fde047!important}
.bely-shadow-banner{width:100%;box-sizing:border-box;border:2px solid #d85c6b;border-radius:12px;padding:13px 15px;margin:16px 0 0;background:rgba(130,25,49,.15);color:#f4f6ff}
.bely-shadow-banner>strong{color:#ff9daa}
.bely-shadow-banner-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px}
.bely-shadow-banner-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.bely-v124-param-undo-row svg.lucide,.bely-v124-arrow-form svg.lucide,.bely-arrow-button svg.lucide{display:block;width:20px;height:20px;transform:none!important}
.bely-v124-param-undo-row svg.lucide-redo-2{transform:none!important}
#delais{scroll-margin-top:24px}

/* V124.2H — two aligned lines: three independent status cards, then 2 content cards + settings. */
.bely-release-three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.bely-release-three-columns .bely-release-subcard{border:1px solid rgba(82,218,252,.5);border-radius:14px;background:rgba(8,29,53,.85);padding:18px;min-width:0;box-shadow:0 0 14px rgba(38,175,218,.13)}
.bely-release-three-columns .bely-release-subcard h3{font-size:1.15rem;margin:0 0 5px;color:#d9f7ff}
.bely-release-three-columns .bely-release-state{color:#63e4ff!important;font-weight:750}
.bely-release-three-columns .bely-release-subcard ul{padding-left:18px;overflow-wrap:anywhere}
.bely-settings-validation-errors{color:#ff8d9d!important}
.bely-h-editor-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:stretch;gap:12px;margin:17px 0}
.bely-h-editor-row>.bely-content-grid,.bely-h-editor-row>.bely-meta-container{margin:0!important;min-width:0}
.bely-h-editor-row>.bely-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.bely-h-editor-row>.bely-meta-container{padding:16px!important}
.bely-h-editor-row .bely-content-card{padding:16px!important;gap:12px}
.bely-h-editor-row .bely-content-card h3{font-size:15px!important;line-height:1.3;min-height:0}
.bely-h-meta-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.bely-h-meta-heading h2{font-size:20px!important;margin:0!important;white-space:nowrap}
.bely-h-meta-heading .bely-meta-autosave{font-size:11px!important;margin:0!important;padding:0!important;border:0!important;white-space:nowrap;text-align:right}
.bely-h-meta-heading .bely-meta-autosave::before{content:"";display:inline-block;background:#52e8a2;box-shadow:0 0 10px #52e8a2;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:middle}
.bely-h-editor-row .bely-meta-container .bely-meta-grid{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(0,auto));gap:8px 11px;align-items:start}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid{display:contents!important}
.bely-h-editor-row .bely-meta-container .bely-meta-card{height:auto!important;min-width:0;padding:5px 2px!important;border:0!important;box-shadow:none!important;background:transparent!important;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(75px,.82fr);align-items:center;gap:7px}
.bely-h-editor-row .bely-meta-container .bely-meta-card h3{font-size:12px!important;line-height:1.35;margin:0!important;color:#f3f7ff!important}
.bely-h-editor-row .bely-meta-container .bely-meta-card .field{min-width:0;margin:0}
.bely-h-editor-row .bely-meta-container .bely-meta-card input:not([type=hidden]){font-size:14px!important;min-width:0;width:100%!important;height:41px!important;min-height:41px!important;padding:5px 10px!important}
.bely-h-editor-row .bely-meta-container .bely-meta-card:nth-child(1){grid-column:1;grid-row:1}
.bely-h-editor-row .bely-meta-container .bely-meta-card:nth-child(2){grid-column:1;grid-row:2}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(1){grid-column:1;grid-row:3}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(2){grid-column:2;grid-row:1 / span 3;display:flex!important;flex-direction:column;align-items:stretch;gap:9px;padding:8px 10px!important;border:1px solid rgba(94,228,255,.17)!important;border-radius:12px!important;background:rgba(3,16,31,.34)!important}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(2) h3{font-size:12px!important}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(2) .accepted-answers-row{width:100%}
.bely-admin-state[data-state$=", à valider"]{color:#e24cb6!important;border-color:#e24cb6!important;background:rgba(226,76,182,.12)!important}
.bely-admin-state[data-state="Prête à valider"]{color:#e24cb6!important;border-color:#e24cb6!important;background:rgba(226,76,182,.12)!important}
@media(max-width:990px){
 .bely-h-editor-row{grid-template-columns:1fr}
 .bely-h-editor-row>.bely-content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .bely-release-three-columns{grid-template-columns:1fr}
 .bely-h-editor-row .bely-meta-container .bely-meta-grid{grid-template-columns:1fr!important;grid-template-rows:auto!important}
 .bely-h-editor-row .bely-meta-container .bely-meta-card:nth-child(n),.bely-h-editor-row .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(n){grid-column:1!important;grid-row:auto!important}
}
@media(max-width:540px){.bely-h-editor-row>.bely-content-grid{grid-template-columns:1fr}.bely-h-meta-heading{flex-wrap:wrap}}

/* La finale possède en plus l'énigme bis : trois contenus sans comprimer le constructeur. */
.bely-h-editor-final{grid-template-columns:1fr}
.bely-h-editor-final>.bely-content-grid.is-final{grid-template-columns:repeat(3,minmax(0,1fr))}
.bely-h-editor-final .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(1){grid-row:2}
.bely-h-editor-final .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(2){grid-row:1 / span 2}
@media(max-width:760px){.bely-h-editor-final .bely-meta-container .bely-meta-answer-grid>.bely-meta-card:nth-child(n){grid-row:auto}}
@media(max-width:540px){.bely-h-editor-final>.bely-content-grid.is-final{grid-template-columns:1fr}}

/* V124.2I — positionnement explicite des quatre champs (indépendant des inputs CSRF cachés). */
@media(min-width:761px){
 .bely-h-editor-row .bely-meta-grid>.bely-meta-points{grid-column:1!important;grid-row:1!important}
 .bely-h-editor-row .bely-meta-grid>.bely-meta-penalty{grid-column:1!important;grid-row:2!important}
 .bely-h-editor-row .bely-meta-grid .bely-meta-answer-primary{grid-column:1!important;grid-row:3!important}
 .bely-h-editor-row .bely-meta-grid .bely-meta-answer-variants{grid-column:2!important;grid-row:1 / span 3!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;
    padding:8px 10px!important;border:1px solid rgba(94,228,255,.17)!important;
    border-radius:12px!important;background:rgba(3,16,31,.34)!important}
}
@media(max-width:760px){
 .bely-h-editor-row .bely-meta-grid .bely-meta-answer-primary,
 .bely-h-editor-row .bely-meta-grid .bely-meta-answer-variants{grid-column:1!important;grid-row:auto!important}
}

/* V124.2I — message explicatif au niveau de l'aperçu intermédiaire */
.bely-content-incomplete-msg{display:inline-block;color:#ff9eab;font-size:12px;line-height:1.45;max-width:410px;vertical-align:middle}
/* V124.2I — sur la finale, pas de pénalité : la bonne réponse monte au deuxième rang. */
@media(min-width:761px){
 .bely-h-editor-final .bely-meta-grid .bely-meta-answer-primary{grid-column:1!important;grid-row:2!important}
 .bely-h-editor-final .bely-meta-grid .bely-meta-answer-variants{grid-column:2!important;grid-row:1 / span 2!important}
}
@media(max-width:760px){
 .bely-h-editor-row .bely-meta-grid .bely-meta-answer-variants{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important}
}

/* V124.2K: exactly three balanced panels in second row; no bottom-pinned buttons. */
@media(min-width:1101px){
 .bely-h-editor-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;align-items:start!important}
 .bely-h-editor-row>.bely-content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
.bely-h-editor-row .bely-content-card{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-self:start!important;gap:10px!important;min-height:0!important;height:auto!important}
.bely-h-editor-row .bely-content-card-actions{margin-top:0!important;align-self:stretch!important;gap:8px!important}
.bely-h-editor-row .bely-meta-container{align-self:start!important;padding:12px!important}
.bely-h-editor-row .bely-meta-container .bely-h-meta-heading{margin-bottom:8px!important}
.bely-h-editor-row .bely-h-meta-heading h2{color:#63e4ff!important}
.bely-h-editor-row .bely-meta-container .bely-meta-grid{
  grid-template-columns:minmax(0,1.18fr) minmax(0,1fr)!important;
  grid-template-rows:repeat(3,41px)!important;
  gap:5px 8px!important;align-items:stretch!important;
}
.bely-h-editor-row .bely-meta-container .bely-meta-card{
  min-height:0!important;margin:0!important;padding:0!important;
  grid-template-columns:minmax(0,.9fr) minmax(88px,1.1fr)!important;
  align-self:center!important;gap:5px!important;
}
.bely-h-editor-row .bely-meta-container .bely-meta-card input:not([type=hidden]){height:38px!important;min-height:38px!important}
.bely-h-editor-row .bely-meta-container .bely-meta-answer-variants{align-self:start!important}
@media(min-width:761px) and (max-width:1100px){
 .bely-h-editor-row{grid-template-columns:1fr!important}
 .bely-h-editor-row .bely-meta-container .bely-meta-grid{grid-template-rows:repeat(3,41px)!important}
}
@media(max-width:760px){
 .bely-h-editor-row .bely-meta-container .bely-meta-grid{grid-template-columns:1fr!important;grid-template-rows:auto!important}
 .bely-h-editor-row .bely-meta-container .bely-meta-answer-variants{grid-column:1!important;grid-row:auto!important}
}
/* Warning sits at the far right, BELOW the toolbar controls, not inline with buttons. */
.bely-v1241-preview-toolbar.web-puzzle-toolbar{padding-bottom:18px!important}
.bely-v1241-preview-toolbar>.bely-content-incomplete-msg{
  display:block!important;position:absolute!important;top:calc(100% + 2px)!important;
  right:8px!important;left:auto!important;text-align:right!important;
  width:auto!important;max-width:100%!important;margin:0!important;
  color:#ff7891!important;font-size:12px!important;line-height:1.35!important;
  white-space:normal!important;z-index:2!important;
}

/* V124.2K — same visible status badge dimensions on administration and constructor. */
.bely-constructor-head .bely-builder-status-badge{
  font-size:14px!important;font-weight:800!important;line-height:1.2!important;
  min-height:30px!important;padding:6px 12px!important;border-radius:12px!important;
  border:1px solid currentColor!important;
}
.bely-constructor-head .bely-builder-status-badge[data-state$=", à valider"]{
  color:#e24cb6!important;background:rgba(226,76,182,.12)!important;
}

/* V124.2K — equal card HEIGHT on desktop, controls always pinned to the TOP. */
@media(min-width:1101px){
 .bely-h-editor-row{align-items:stretch!important}
 .bely-h-editor-row>.bely-content-grid{height:100%!important;align-items:stretch!important}
 .bely-h-editor-row .bely-content-card{height:100%!important;align-self:stretch!important}
}

/* V124.2L — réglages 50 %, chaque contenu 25 % (sur ordinateur). */
@media(min-width:1050px){
  .bely-h-editor-row:not(.bely-h-editor-final){
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
  }
  .bely-h-editor-row:not(.bely-h-editor-final)>.bely-content-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .bely-h-editor-row:not(.bely-h-editor-final) .bely-meta-container .bely-meta-grid{
    grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)!important;
  }
  .bely-h-editor-row:not(.bely-h-editor-final) .bely-meta-card h3{
    white-space:nowrap!important;
    font-size:12px!important;
  }
  .bely-h-editor-row:not(.bely-h-editor-final) .bely-meta-card{
    grid-template-columns:minmax(135px,1.05fr) minmax(100px,1fr)!important;
  }
  .bely-h-editor-row:not(.bely-h-editor-final) .bely-meta-answer-variants h3{
    white-space:nowrap!important;
  }
}
/* Les réglages restent compacts et lisibles, sans étirement vertical. */
.bely-h-editor-row .bely-meta-container .bely-meta-grid{
  grid-template-rows:repeat(3,41px)!important;
  row-gap:5px!important;
}
@media(max-width:760px){
  .bely-h-editor-row .bely-meta-container .bely-meta-grid{grid-template-rows:auto!important}
}
/* Espacement identique entre commandes et texte des deux aperçus. */
.bely-v1241-preview-toolbar.web-puzzle-toolbar{
  margin-bottom:20px!important;
  padding-bottom:8px!important;
}
.bely-v1241-preview-toolbar>.bely-content-incomplete-msg,
.bely-v1241-preview-toolbar>.bely-preview-save-indicator{
  position:absolute!important;
  top:calc(100% - 3px)!important;
  right:8px!important;left:auto!important;
  margin:0!important;padding:0!important;
  line-height:1.3!important;font-size:11px!important;
  max-width:calc(100% - 16px)!important;
  white-space:nowrap!important;overflow-x:auto!important;
  background:transparent!important;text-align:right!important;
  z-index:20!important;
}
.bely-v1241-preview-toolbar>.bely-content-incomplete-msg{color:#ff7891!important}
.bely-v1241-preview-toolbar>.bely-preview-save-indicator{color:#a4c7d8!important}


/* V124.2M — interactions WEB uniquement. Les images PDF importées sont déjà des cadres Image. */
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-image:not(.is-empty){cursor:zoom-in}
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-link:not(.is-empty){cursor:pointer}
.bely-web-expand-icon{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:29px;height:29px;border:1px solid rgba(99,231,255,.85);border-radius:7px;background:rgba(4,22,41,.93);color:#92edff;box-shadow:0 0 10px rgba(28,210,245,.18);pointer-events:none;z-index:9}
.web-puzzle-frame.frame-type-link .bely-link-web{min-width:110px;max-width:100%;min-height:38px;padding:6px 9px;box-sizing:border-box;display:grid;place-items:center}
.web-puzzle-frame.frame-type-link .bely-link-web strong{font-size:clamp(11px,1.1vw,18px);font-weight:700;color:#62e7ff;text-decoration:underline;text-underline-offset:3px}
.frame-modal-close .bely-minimize-glyph{display:none}
.frame-modal-close.bely-modal-minimize{display:grid;place-items:center;color:#74eaff}
.frame-modal-close.bely-modal-minimize span{display:none}
.frame-modal-close.bely-modal-minimize .bely-minimize-glyph{display:block}
/* Le clone d'impression reçoit ce contenu APRES le rendu web. */
.bely-print-link{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#091a2b!important;background:rgba(255,255,255,.94)!important;padding:7px!important;border-radius:5px;font-family:Arial,sans-serif;box-sizing:border-box}
.bely-print-link-instruction{font-size:clamp(9px,1.15vw,14px);font-weight:700;text-align:center;line-height:1.25;color:#091a2b!important}
.bely-print-link-row{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0}
.bely-print-qr{display:block!important;width:clamp(76px,9.5vw,116px)!important;height:clamp(76px,9.5vw,116px)!important;min-width:76px!important;object-fit:contain!important;background:#fff!important;border-radius:0!important;image-rendering:pixelated}
.bely-print-link-url{flex:1;min-width:0;font-size:clamp(9px,1.12vw,14px);line-height:1.25;color:#111!important;overflow-wrap:anywhere;word-break:break-word;text-align:left;text-decoration:underline}
/* Statuts des deux aperçus : 5px sous leurs boutons respectifs. */
.bely-v1241-preview-toolbar .bely-preview-final-action-wrap,
.bely-v1241-preview-toolbar .bely-preview-return-wrap{display:inline-flex!important;position:relative!important;align-items:center!important;flex:0 0 auto!important}
.bely-v1241-preview-toolbar .bely-preview-final-action-wrap>.bely-content-incomplete-msg,
.bely-v1241-preview-toolbar .bely-preview-return-wrap>#belleyme-pdf-save-status{
 display:block!important;position:absolute!important;top:calc(100% + 5px)!important;
 left:auto!important;right:0!important;width:max-content!important;max-width:min(650px,90vw)!important;
 padding:0!important;margin:0!important;z-index:15!important;line-height:1.3!important;
 font-size:11px!important;white-space:nowrap!important;text-align:right!important;
 visibility:visible!important;opacity:1!important;overflow:visible!important;
}
.bely-v1241-preview-toolbar .bely-preview-final-action-wrap>.bely-content-incomplete-msg{color:#ff7891!important}
.bely-v1241-preview-toolbar .bely-preview-return-wrap>#belleyme-pdf-save-status{color:#afcddd!important}
.bely-v1241-preview-toolbar .bely-preview-return-wrap>.bely-preview-back{margin:0!important}
@media(max-width:730px){
 .bely-v1241-preview-toolbar .bely-preview-return-wrap>#belleyme-pdf-save-status,
 .bely-v1241-preview-toolbar .bely-preview-final-action-wrap>.bely-content-incomplete-msg{max-width:92vw!important;white-space:normal!important;line-height:1.35!important}
}
/* Réparer l'ancienne règle .bely-toolbar-status{height:0; transform:translateY(-100%)}
   qui rendait la confirmation PDF/mobile invisible malgré sa présence dans le DOM. */
.bely-v1241-preview-toolbar .bely-preview-return-wrap>#belleyme-pdf-save-status{
 height:auto!important;min-height:1em!important;max-height:none!important;
 transform:none!important;max-width:min(650px,90vw)!important;
 align-self:auto!important;justify-self:auto!important;pointer-events:none!important;
}
.bely-v1241-preview-toolbar .bely-preview-return-wrap>button.mini-button{
 position:absolute!important;top:calc(100% + 25px)!important;right:0!important;
 width:max-content!important;max-width:90vw!important;z-index:25!important;
}

/* V124.2N — web interactive et visionneuse, sans toucher aux exports PDF / image mobile. */
html.bely-web-fit-mode,body.bely-web-fit-body{margin:0!important;min-height:100%;background:#061120;color:#e9f8ff;overflow-x:hidden}
.bely-web-fit-body .web-puzzle-shell{margin:0 auto 16px!important;width:100%!important;max-width:none!important;padding:0 12px!important;box-sizing:border-box!important}
.bely-web-fit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px 8px}
.bely-web-fit-toolbar strong{font-size:18px;color:#65e6ff}
.bely-web-fit-body .web-puzzle-pages{display:flex!important;flex-direction:column;gap:14px;align-items:center;justify-content:flex-start}
.bely-web-fit-viewport{position:relative;display:block;flex:0 0 auto;max-width:100%;overflow:visible}
.bely-web-fit-viewport>.web-puzzle-page{position:absolute!important;top:0;left:0;margin:0!important;max-width:none!important;box-sizing:border-box!important}
/* La couleur grise de l'icône signifie discrétion au repos, PAS désactivation du clic. */
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-image.has-content{cursor:pointer!important}
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-link.has-content{cursor:pointer!important}
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-image.has-content .web-frame-body,
.web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-link.has-content .web-frame-body{cursor:pointer!important}
.bely-web-expand-icon{color:#a2a9b5!important;border-color:rgba(150,162,175,.48)!important;background:rgba(3,15,26,.83)!important;opacity:.58;filter:grayscale(1);transition:opacity .15s ease,color .15s ease,filter .15s ease,box-shadow .15s ease}
.web-puzzle-frame.frame-type-image:hover .bely-web-expand-icon,
.web-puzzle-frame.frame-type-image:focus-visible .bely-web-expand-icon{opacity:1!important;color:#73eeff!important;border-color:#73eeff!important;filter:none!important;box-shadow:0 0 15px rgba(36,225,250,.35)!important}
.frame-modal-zoombar button{min-width:43px;min-height:39px;display:grid;place-items:center;padding:7px 11px;border:1px solid rgba(97,227,250,.48);border-radius:8px;background:#0b2c45;color:#c0f5ff;font-weight:700;cursor:pointer}
.frame-modal-zoombar button:disabled{opacity:.4;cursor:default}
.web-frame-modal .frame-modal-image{overflow:hidden;display:grid;place-items:center;width:100%;min-height:180px;height:min(76vh,900px);touch-action:none}
.web-frame-modal .frame-modal-image img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;touch-action:none;will-change:transform}
@media print{.bely-web-fit-toolbar,.bely-web-expand-icon{display:none!important}}


/* V124.2O — page WEB interactive : feuille entière en haut, retour adjacent. */
html.bely-web-fit-mode,body.bely-web-fit-body{width:100%;height:100%;overflow-x:hidden!important}
.bely-web-fit-body .web-puzzle-shell{padding:0!important;margin:0!important;width:100%!important}
.bely-web-fit-body .web-puzzle-pages{padding:0!important;margin:0!important;gap:12px!important}
.bely-web-fit-toolbar{position:fixed!important;inset:0!important;z-index:600!important;pointer-events:none!important;padding:0!important;display:block!important;height:0!important}
.bely-web-fit-return{position:fixed!important;pointer-events:auto!important;white-space:nowrap!important;z-index:601!important}
/* V124.2P : la vue web réutilise SANS SURCHARGE la même géométrie
   et la même typographie pour les titres que l’aperçu final du constructeur.
   Le conteneur externe assure seul l’ajustement à la fenêtre. */
/* Clics exclusivement sur les versions WEB ; jamais sur les aperçus du constructeur. */
.web-puzzle-page.is-adjust-preview .bely-web-expand-icon,.bely-static-preview .bely-web-expand-icon{display:none!important}
.bely-static-preview .web-puzzle-frame,.bely-static-preview .web-puzzle-frame .web-frame-body{cursor:default!important}
@media(min-width:768px){
/* Visionneuse 100 % viewport ; 100 % = image entière, +/− zooment sans rogner irrémédiablement. */
body.bely-web-interactive-desktop .web-frame-modal:has(.frame-modal-zoombar:not([hidden])){padding:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important}
body.bely-web-interactive-desktop .web-frame-modal:has(.frame-modal-zoombar:not([hidden])) .frame-modal-panel{width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;overflow:hidden!important;padding:0!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar:not([hidden]){position:fixed!important;top:10px!important;right:12px!important;z-index:10010!important;display:flex!important;gap:7px!important;margin:0!important;align-items:center!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar .frame-modal-close{position:static!important;inset:auto!important;width:43px!important;height:39px!important;display:grid!important;place-items:center!important;border-radius:8px!important;box-shadow:none!important;line-height:1!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar .frame-modal-close .bely-minimize-glyph{display:block!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar .frame-modal-close span{display:none!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar:not([hidden]) + [data-frame-modal-content],
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-zoombar:not([hidden]) ~ [data-frame-modal-content]{height:100%!important;width:100%!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-image{box-sizing:border-box!important;width:100%!important;height:100dvh!important;max-height:none!important;min-height:0!important;padding:60px 12px 12px!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;touch-action:none!important}
body.bely-web-interactive-desktop .web-frame-modal .frame-modal-image img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;transform-origin:center!important;cursor:inherit!important;user-select:none!important;touch-action:none!important}
}
@media print{.bely-web-fit-toolbar,.frame-modal-zoombar{display:none!important}}
/* Sur les APERÇUS du constructeur, les icônes et la main de clic sont interdites. */
.bely-static-preview .web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-image.has-content,
.bely-static-preview .web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-link.has-content,
.bely-static-preview .web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-image.has-content .web-frame-body,
.bely-static-preview .web-puzzle-page.is-final-preview .web-puzzle-frame.frame-type-link.has-content .web-frame-body{cursor:default!important}

/* V124.2Q : correction IA article par article, après le texte original. */
.rules-content-field .bely-rules-ai-launch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 2px;}
.rules-content-field .bely-rules-ai-launch .rules-ai-button{color:#82e9fa;border-color:#326b85;}
.rules-content-field .bely-rules-ai-feedback{font-size:12px;color:#93ced9;}
.bely-rules-ai-text strong{color:#6fe7ff!important;font-weight:900!important;}

/* V124.2R — titres identiques sur aperçu intermédiaire, final et capture.
   L'échelle personnalisée (80%, 90%...) est appliquée UNE seule fois
   par placeOverlays à la boîte complète, jamais via une autre taille de police. */
.web-puzzle-page.is-adjust-preview .web-puzzle-title-box > strong,
.web-puzzle-page.is-final-preview .web-puzzle-title-box > strong,
.pdf-capture-page .web-puzzle-title-box > strong {
  font-size:26px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}
.web-puzzle-page.is-adjust-preview .web-puzzle-points-box > strong,
.web-puzzle-page.is-final-preview .web-puzzle-points-box > strong,
.pdf-capture-page .web-puzzle-points-box > strong {
  font-size:22px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}
/* L'icône reste lisible même au repos et s'illumine sur survol. */
.bely-web-expand-icon {
  width:40px !important;height:40px !important;
  top:5px !important;right:5px !important;
  border:1px solid rgba(130,196,218,.78) !important;
  border-radius:8px !important;
  background:rgba(3,16,29,.90) !important;
  opacity:.82 !important;filter:grayscale(.78) !important;
  box-shadow:0 0 12px rgba(75,220,245,.16) !important;
  pointer-events:none !important;
}
.bely-web-expand-icon img {display:block;width:30px;height:30px;object-fit:contain;pointer-events:none}
.web-puzzle-frame.frame-type-image:hover .bely-web-expand-icon,
.web-puzzle-frame.frame-type-image:focus-visible .bely-web-expand-icon {
  opacity:1!important;filter:none!important;
  border-color:#78efff!important;
  box-shadow:0 0 15px rgba(36,225,250,.45)!important;
}
.frame-modal-zoombar .bely-minimize-glyph {display:block;width:27px;height:27px;object-fit:contain;pointer-events:none}


/* V124.2S — Cadres Lien : bouton web horizontal et support QR imprimable.
   Géométrie minimale partagée ; ne jamais laisser une URL devenir verticale. */
.web-puzzle-frame.frame-type-link.has-content {
  border:1px solid rgba(90,228,255,.88)!important;
  border-radius:13px!important;
  padding:8px!important;
  background:linear-gradient(140deg,rgba(6,45,72,.98),rgba(3,21,40,.99))!important;
  box-shadow:0 0 12px rgba(54,209,255,.12),inset 0 0 12px rgba(31,207,250,.09)!important;
  min-height:105px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.web-puzzle-frame.frame-type-link.has-content .web-frame-body {
  width:100%!important;
  min-height:89px!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
.web-puzzle-frame.frame-type-link.has-content .bely-link-web {
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:89px!important;height:100%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;padding:9px 14px!important;
  border:1px solid rgba(113,234,255,.75)!important;
  border-radius:10px!important;
  background:linear-gradient(125deg,#0d8fbe,#075d8d 80%)!important;
  box-shadow:inset 0 0 19px rgba(141,234,255,.19),0 0 14px rgba(30,202,248,.18)!important;
  text-align:center!important;
}
.web-puzzle-frame.frame-type-link.has-content .bely-link-web strong {
  font-family:Inter,Arial,sans-serif!important;
  font-size:clamp(22px,2vw,30px)!important;
  font-weight:800!important;line-height:1.15!important;
  color:#f3fdff!important;text-shadow:0 0 9px rgba(151,240,255,.65)!important;
  text-decoration:none!important;white-space:nowrap!important;
  letter-spacing:.015em!important;
}
/* Seule la consultation web est interactive ; l'aperçu final est statique. */
.bely-interactive-web .web-puzzle-frame.frame-type-link.has-content:hover .bely-link-web {
  background:linear-gradient(125deg,#12add8,#087bae)!important;
}
/* Sur le clone PDF, la largeur de l'ancien petit bouton ne doit jamais
   s'imposer au QR. Garder la place de référence du cadre. */
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content {
  padding:3px!important;min-height:94px!important;
  background:#ffffff!important;border:2px solid #11718b!important;
  box-shadow:none!important;overflow:visible!important;
}
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content .web-frame-body {
  min-height:86px!important;overflow:visible!important;
}
.pdf-capture-page .bely-print-link {
  display:grid!important;
  grid-template-columns:25% minmax(0,75%)!important;
  align-items:center!important;justify-items:stretch!important;
  gap:0!important;width:100%!important;height:100%!important;
  min-height:104px!important;box-sizing:border-box!important;
  background:#fff!important;border:0!important;padding:6px!important;
  color:#102236!important;border-radius:5px!important;
  font-family:Arial,sans-serif!important;
}
.pdf-capture-page .bely-print-qr {
  display:block!important;width:92px!important;height:92px!important;
  min-width:0!important;max-width:calc(100% - 8px)!important;
  max-height:100%!important;object-fit:contain!important;
  justify-self:center!important;align-self:center!important;
  background:#fff!important;image-rendering:pixelated!important;
}
.pdf-capture-page .bely-print-link-details {
  min-width:0!important;max-width:100%!important;
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:center!important;
  padding:3px 6px!important;gap:7px!important;
}
.pdf-capture-page .bely-print-link-instruction {
  font:bold 12px/1.3 Arial,sans-serif!important;
  text-align:left!important;color:#0b2230!important;
  margin:0!important;word-break:normal!important;
}
.pdf-capture-page .bely-print-link-url {
  display:block!important;min-width:0!important;max-width:100%!important;
  font:11px/1.25 Arial,sans-serif!important;color:#123649!important;
  text-decoration:underline!important;text-align:left!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  white-space:normal!important;
}

/* V124.2T — cadre Lien papier compact, QR à gauche et URL lisible. */
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content {
  padding:3px!important;
  min-height:94px!important;
  border:1.25px solid #2b8096!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content::before,
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content::after,
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content .frame-tech,
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content .frame-index-badge {
  display:none!important;
}
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content .web-frame-body {
  min-height:86px!important;
  padding:0!important;
  background:#fff!important;
}
.pdf-capture-page .bely-print-link {
  grid-template-columns:25% minmax(0,75%)!important;
  min-height:86px!important;
  gap:2px!important;
  border:0!important;
  padding:1px!important;
  box-shadow:none!important;
  border-radius:5px!important;
}
.pdf-capture-page .bely-print-qr {
  width:82px!important;
  height:82px!important;
  max-width:calc(100% - 2px)!important;
  max-height:85px!important;
}
.pdf-capture-page .bely-print-link-details {
  padding:1px 3px!important;
  gap:4px!important;
}
.pdf-capture-page .bely-print-link-instruction {
  font:700 13px/1.15 Arial,sans-serif!important;
}
.pdf-capture-page .bely-print-link-url {
  font:15px/1.2 Arial,sans-serif!important;
  overflow-wrap:anywhere!important;
  text-decoration:underline!important;
}
/* V124.2T : glyphes vectoriels pour l'afficheur sept segments, sans police externe. */
.web-frame-richtext[data-code-font="Braille"]{font-family:'DejaVu Sans','Segoe UI Symbol',sans-serif!important;letter-spacing:.06em!important;line-height:1.35!important}
.web-frame-richtext[data-code-font="SevenSegment"]{font-family:Arial,sans-serif!important;line-height:1.35!important}
.bely-seg-glyph{display:inline-block;position:relative;width:.67em;height:1.12em;vertical-align:-.19em;margin:0 .07em;box-sizing:border-box}
.bely-seg-line{position:absolute;border-radius:2px;background:currentColor;opacity:.08;box-shadow:none}
.bely-seg-line.active{opacity:1;box-shadow:0 0 .13em currentColor}
.bely-seg-line[data-seg="a"]{left:.15em;top:.02em;width:.40em;height:.075em}
.bely-seg-line[data-seg="g"]{left:.15em;top:.51em;width:.40em;height:.075em}
.bely-seg-line[data-seg="d"]{left:.15em;bottom:.02em;width:.40em;height:.075em}
.bely-seg-line[data-seg="f"]{left:.04em;top:.12em;width:.075em;height:.37em}
.bely-seg-line[data-seg="b"]{right:.04em;top:.12em;width:.075em;height:.37em}
.bely-seg-line[data-seg="e"]{left:.04em;bottom:.12em;width:.075em;height:.37em}
.bely-seg-line[data-seg="c"]{right:.04em;bottom:.12em;width:.075em;height:.37em}
.bely-seg-glyph[data-space="1"]{width:.42em}


/* V124.2V — cadre Lien : un SEUL vrai bouton futuriste sur le web.
   Seule la présentation change : la géométrie et le QR du PDF restent intacts.
   Le cadre principal porte maintenant l'unique bordure et le relief ; la couche
   « Cliquez ici » ne contient plus aucune bordure ni fond superposé. */
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content {
  box-sizing:border-box!important;
  padding:8px!important; /* conserver la géométrie du cadre existant */
  border:1.5px solid #5eddf4!important;
  border-radius:12px!important;
  min-height:105px!important;
  background:
    linear-gradient(180deg,rgba(180,246,255,.22) 0,rgba(180,246,255,.03) 9%,transparent 29%),
    linear-gradient(165deg,#128fb9 0%,#0875a6 43%,#055079 100%)!important;
  box-shadow:
    inset 0 2px 0 rgba(199,251,255,.36),
    inset 0 -5px 14px rgba(0,22,52,.30),
    0 5px 12px rgba(0,0,0,.38),
    0 0 14px rgba(35,213,255,.22)!important;
  overflow:visible!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
/* Supprimer les anciens coins décoratifs qui faisaient un double cadre. */
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content::before,
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content::after,
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .frame-tech,
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .frame-index-badge {
  content:none!important;
  display:none!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .web-frame-body {
  display:flex!important;
  width:100%!important;
  min-height:89px!important;
  align-items:stretch!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .bely-link-web {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  min-height:89px!important;
  height:100%!important;
  padding:8px 12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  text-align:center!important;
  pointer-events:none; /* clic géré par le cadre parent, sur toute sa surface */
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .bely-link-web strong {
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,30,57,.8),0 0 12px rgba(221,251,255,.42)!important;
  font-size:clamp(22px,2vw,30px)!important;
  font-weight:800!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
}
.bely-interactive-web .web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content {
  cursor:pointer!important;
}
.bely-interactive-web .web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content:hover,
.bely-interactive-web .web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content:focus-visible {
  border-color:#adf6ff!important;
  background:
    linear-gradient(180deg,rgba(208,252,255,.30) 0,rgba(208,252,255,.05) 12%,transparent 32%),
    linear-gradient(165deg,#18acd0 0%,#0a8dbd 43%,#07658d 100%)!important;
  box-shadow:
    inset 0 2px 0 rgba(220,255,255,.46),
    inset 0 -5px 14px rgba(0,32,62,.22),
    0 6px 14px rgba(0,0,0,.4),
    0 0 20px rgba(42,220,255,.44)!important;
  transform:none!important; /* ne pas décaler le bouton par rapport aux liaisons */
}
.bely-interactive-web .web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content:active {
  box-shadow:inset 0 4px 11px rgba(0,30,58,.35),0 0 9px rgba(48,209,245,.2)!important;
}
/* Lors de la capture PDF : garder EXCLUSIVEMENT le QR, l'URL et le cadre blanc. */


/* V124.2W — Lien imprimable : contenu serré, QR conservé et URL adaptative.
   Aucun changement sur les tracés ni les cadres sélectionnés. */
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content {
  min-height:90px!important;
  padding:2px!important;
  border:1.2px solid #25829b!important;
}
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content .web-frame-body {
  min-height:84px!important;
  padding:0!important;
}
.pdf-capture-page .bely-print-link {
  width:100%!important;
  min-height:84px!important;
  padding:0 1px!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  gap:5px!important;
  align-items:center!important;
}
.pdf-capture-page .bely-print-qr {
  width:82px!important;
  height:82px!important;
  min-width:82px!important;
  max-width:82px!important;
  max-height:82px!important;
}
.pdf-capture-page .bely-print-link-details {
  padding:0 2px!important;
  gap:4px!important;
}
.pdf-capture-page .bely-print-link-instruction {
  font:700 13px/1.15 Arial,sans-serif!important;
}
.pdf-capture-page .bely-print-link-url {
  font:15px/1.2 Arial,sans-serif!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
  text-decoration:underline!important;
}
/* Le PDF clair doit conserver l'esthétique néon, mais avec un coeur bleu foncé
   et un halo bleu/cyan suffisamment perceptible sur fond BLANC. */
.pdf-capture-page .final-connection-line {
  stroke:#00699b!important;
  stroke-width:3.1!important;
  fill:none!important;
  filter:drop-shadow(0 0 1px rgba(0,135,185,.55))!important;
}
.pdf-capture-page .final-connection-glow {
  stroke:rgba(0,139,201,.38)!important;
  stroke-width:12!important;
  opacity:.85!important;
  fill:none!important;
  filter:drop-shadow(0 0 3px rgba(0,147,204,.32))!important;
}

/* V124.2X — Double géométrie des cadres Lien.
   Constructeur : guide de positionnement PDF ; aperçu final et web : bouton seul. */
.web-puzzle-page.is-adjust-preview .web-puzzle-frame.frame-type-link.has-content > .bely-link-pdf-guide{
 display:block!important;position:absolute;left:50%;top:50%;
 translate:-50% -50%;width:var(--bely-link-pdf-width,300px);height:96px;
 border:1.5px dashed #8ceaff;border-radius:9px;background:transparent;
 box-sizing:border-box;pointer-events:none;z-index:0;
}
.web-puzzle-page.is-adjust-preview .web-puzzle-frame.frame-type-link.has-content > .bely-link-pdf-guide::before{
 content:'Zone du PDF';position:absolute;top:-20px;left:1px;color:#8ceaff;
 font:11px system-ui,sans-serif;white-space:nowrap;
}
.web-puzzle-page:not(.is-adjust-preview) .bely-link-pdf-guide,
.pdf-capture-page .bely-link-pdf-guide{display:none!important}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content{
 width:var(--frame-fit-width,206px)!important;min-height:76px!important;padding:4px!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .web-frame-body{
 min-height:66px!important;height:66px!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .bely-link-web{
 min-height:66px!important;height:66px!important;
}
/* Le PDF reprend exactement l'empreinte calculée à partir de l'URL. */
.pdf-capture-page .web-puzzle-frame.frame-type-link.has-content[data-fitted="1"]{
 width:var(--frame-fit-width)!important;min-height:94px!important;
}
/* PDF accessible uniquement après génération et confirmation des deux supports. */
.bely-preview-save-locked[data-bely-preview-open-pdf]{
 opacity:.43!important;filter:grayscale(.55);cursor:not-allowed!important;pointer-events:none!important;
}

/* V124.2X : QR garanti à sa taille effective, même sur un cadre compact. */
.pdf-capture-page .bely-print-link{grid-template-columns:82px minmax(0,1fr)!important;column-gap:5px!important}
.pdf-capture-page .bely-print-qr{width:82px!important;height:82px!important;max-width:none!important;max-height:none!important}
.web-puzzle-page.is-adjust-preview .web-puzzle-frame.frame-type-link.has-content .web-frame-body{position:relative;z-index:1}


/* V124.2Y — Le cadre PDF et sa zone-guide restent inchangés.
   Le bouton web/final est un SEUL panneau, légèrement plus petit, avec le
   texte au centre exact. Aucun second rectangle ni décoration interne. */
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content{
  width:var(--frame-fit-width,186px)!important;
  min-height:72px!important;
  height:72px!important;
  padding:4px!important;
  border:1.5px solid #62dbf3!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,rgba(201,251,255,.16),transparent 25%),
             linear-gradient(165deg,#138fb9 0%,#0a7ea8 46%,#075277 100%)!important;
  box-shadow:inset 0 2px 0 rgba(225,255,255,.28),
             inset 0 -4px 9px rgba(0,31,65,.28),
             0 3px 9px rgba(0,0,0,.24),
             0 0 11px rgba(31,216,248,.19)!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .web-frame-body{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:center!important;min-height:0!important;height:100%!important;
  padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .bely-link-web{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:center!important;min-height:0!important;height:100%!important;
  width:100%!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;
  box-shadow:none!important;outline:0!important;
}
.web-puzzle-page:not(.pdf-capture-page) .web-puzzle-frame.frame-type-link.has-content .bely-link-web strong{
  display:block!important;position:static!important;margin:0!important;padding:0!important;
  line-height:1!important;text-align:center!important;font-size:25px!important;
  font-weight:800!important;white-space:nowrap!important;
}
/* Le guide pointillé appartient exclusivement à l'aperçu intermédiaire.
   Il n'entre pas dans la capture, les zones cliquables ou le PDF. */
.web-puzzle-page.is-adjust-preview .web-puzzle-frame.frame-type-link.has-content{
  overflow:visible!important;
}

/* V125.10.44-AO — hauteurs synchronisées sans chevauchement.
 * À grande largeur : les contenus partagent la même grille que Réglages,
 * dont les variantes déterminent librement la hauteur de la rangée.
 */
@media (min-width:1101px){
 .bely-h-editor-row,
 .bely-h-editor-row.bely-h-editor-final{
   display:grid!important;align-items:stretch!important;gap:12px!important;
   grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr)!important;
 }
 .bely-h-editor-row.bely-h-editor-final{
   grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
 .bely-h-editor-row>.bely-content-grid{display:contents!important;height:auto!important}
 .bely-h-editor-row>.bely-content-grid>.bely-content-card{
   align-self:stretch!important;height:auto!important;min-height:0!important;min-width:0;
 }
 .bely-h-editor-row>.bely-meta-container{
   align-self:stretch!important;height:auto!important;min-height:0!important;
 }
}
/* Retirer impérativement les pistes de 41px qui coupaient le formulaire variantes. */
.bely-h-editor-row .bely-meta-container .bely-meta-grid{
  grid-template-rows:repeat(3,minmax(41px,auto))!important;
  align-items:start!important;min-height:0!important;height:auto!important;
}
.bely-h-editor-row.bely-h-editor-final .bely-meta-container .bely-meta-grid{
  grid-template-rows:repeat(2,minmax(41px,auto))!important;
}
.bely-h-editor-row .bely-meta-answer-variants{
  align-self:start!important;min-height:min-content!important;overflow:visible!important;
}
.bely-h-editor-row .bely-meta-container{overflow:visible!important}
@media(max-width:760px){
  .bely-h-editor-row .bely-meta-container .bely-meta-grid,
  .bely-h-editor-row.bely-h-editor-final .bely-meta-container .bely-meta-grid{
    grid-template-rows:auto!important;
  }
}

/* AO — vue équipe mobile, énigme terminée : correction pleine largeur en premier. */
.bely44ao-published-correction{display:flex!important;width:100%!important;justify-content:center!important;margin:11px 0 14px!important;box-sizing:border-box!important}
.bely44ao-verdict{margin:12px 0 16px!important}
.bely44ao-verdict .bely-archive-outcome{margin:0!important}


/* AP — RESTAURATION des proportions historiques sur une seule ligne.
   Les DEUX enfants du conteneur sont la grille des contenus (50/60%) et Réglages (50/40%).
   Les cartes internes se partagent l'espace de leur grille. Les lignes s'étirent naturellement
   selon le contenu le plus haut, y compris lors d'un ajout dynamique de variantes. */
@media (min-width:761px){
  .bely-h-editor-row:not(.bely-h-editor-final){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; /* 25/25/50 */
    align-items:stretch!important;
    gap:12px!important;
  }
  .bely-h-editor-row.bely-h-editor-final{
    display:grid!important;
    grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important; /* 20/20/20/40 */
    align-items:stretch!important;
    gap:12px!important;
  }
  .bely-h-editor-row>.bely-content-grid,
  .bely-h-editor-row.bely-h-editor-final>.bely-content-grid{
    display:grid!important; /* Annule display:contents introduit par AO */
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    height:100%!important;
    min-height:0!important;
    min-width:0!important;
    margin:0!important;
  }
  .bely-h-editor-row.bely-h-editor-final>.bely-content-grid.is-final{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .bely-h-editor-row>.bely-content-grid>.bely-content-card{
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
  }
  .bely-h-editor-row>.bely-meta-container{
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    align-self:stretch!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    margin:0!important;
  }
  .bely-h-editor-row .bely-meta-container .bely-meta-grid{
    grid-template-rows:repeat(3,minmax(41px,auto))!important;
    height:auto!important;
    min-height:0!important;
    align-items:start!important;
  }
  .bely-h-editor-row.bely-h-editor-final .bely-meta-container .bely-meta-grid{
    grid-template-rows:repeat(2,minmax(41px,auto))!important;
  }
  .bely-h-editor-row .bely-meta-container .bely-meta-answer-variants{
    height:auto!important;
    min-height:min-content!important;
    overflow:visible!important;
  }
}
/* Sur petit écran, conserver l'empilement mobile sans cartes compressées. */
@media(max-width:760px){
  .bely-h-editor-row>.bely-content-grid{display:grid!important}
}

/* AR — Suivi finale : Réponses / Résumé côte à côte, et rien pour les indices. */
@media(min-width:651px){.bely-activity-grid.final-only{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.bely-activity-grid.final-only{grid-template-columns:1fr!important}}
/* AR — Points : réserver la place à l'intitulé au lieu de la consommer avec l'input. */
@media(min-width:761px){
  .bely-h-editor-row .bely-meta-container .bely-meta-points{
    grid-template-columns:minmax(0,1fr) minmax(64px,76px)!important;
    gap:5px!important;
  }
  .bely-h-editor-row .bely-meta-container .bely-meta-points h3{
    white-space:nowrap!important;font-size:clamp(10px,.84vw,12px)!important;
  }
  .bely-h-editor-row .bely-meta-container .bely-meta-points input[type=number]{padding:5px 3px!important}
}
/* AR — Bandeau final : mêmes dimensions et alignements que le brouillon, ton ambre. */
.bely-ar-final-publish{border-color:#e9a74f!important;background:rgba(112,71,22,.18)!important}
.bely-ar-final-publish>strong{color:#ffc67d!important}
.bely-ar-final-publish .bely-ar-publish-warning{color:#ffd6a6;font-weight:700;margin:8px 0 0;font-size:.87rem}

/* BF - administration : colonnes 30% / 30% / 40%, priorités cyan. */
@media(min-width:901px){.admin-overview-grid{grid-template-columns:minmax(0,3fr) minmax(0,3fr) minmax(0,4fr)!important}}
.admin-main-action:has(em) em{font-size:15px!important;min-width:32px;height:32px;background:rgba(7,130,170,.19)!important;border-color:#4fe9ff!important;color:#6cf0ff!important;box-shadow:0 0 14px #19d6ff88!important}
.admin-to-process-card .admin-task-total{color:#6bf2ff!important;border-color:#55e7ff!important;background:#07384b!important;box-shadow:0 0 18px #1ddcff7b!important;font-size:23px!important}
.admin-to-process-card .admin-priority-count b{color:#60eaff!important;font-size:clamp(23px,2.8vw,32px)!important;text-shadow:0 0 12px #0cd3f99c!important}
.admin-to-process-card .admin-priority-card.is-zero .admin-priority-count b{color:#5e869b!important;text-shadow:none!important}
.admin-to-process-card .admin-priority-card{grid-template-columns:1fr;grid-template-rows:auto auto;align-content:center;justify-items:center;gap:9px;min-height:100px;padding:11px 6px}
.admin-to-process-card .admin-priority-card .admin-priority-icon{display:none}
.admin-to-process-card .admin-priority-copy strong{font-size:clamp(11px,1.05vw,15px)!important;text-align:center}
.admin-to-process-card .admin-priority-count{grid-column:auto;justify-content:center}
.admin-to-process-card .admin-next-puzzle-banner strong{font-size:clamp(14px,1.25vw,18px)!important;line-height:1.3!important}
.admin-to-process-card .admin-next-puzzle-banner small{display:none!important}
@media(max-width:900px){.admin-overview-grid{grid-template-columns:1fr!important}}

@media(min-width:901px){.admin-to-process-card .admin-next-puzzle-banner strong{white-space:nowrap!important}}
