/* Baobizz Mentorat — reprend les jetons de la charte du thème baobizz-talents (style.css du site). */
:root {
  --surface: #FFFBF5; --surface-raised: #FFFFFF; --surface-creme: #FDF0E1; --surface-brand: #03301A;
  --line: #E8DCCB; --ink: #0B2416; --ink-muted: #5B6B60; --on-brand: #FDF0E1;
  --baobab: #03301A; --orange: #E85D04; --action: #B84A00; --action-hover: #9A3D00; --on-action: #FFFFFF;
  --soleil: #F8B400; --success: #2E7D4F; --warning: #9A6700; --critical: #B42318; --focus-ring: #B84A00;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }           /* 18 px : lisibilité pour les seniors */
html.texte-grand { font-size: 131.25%; } /* 21 px avec le bouton « A+ » */
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); line-height: 1.55; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--baobab); }
h1 { font-size: 1.75rem; margin: .4em 0 .5em; }
h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.08rem; margin: 1em 0 .4em; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* En-tête */
.topbar { background: var(--surface-brand); color: var(--on-brand); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { color: var(--on-brand); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand span { color: var(--soleil); }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button.linklike { color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { text-decoration: underline; color: #fff; }
.nav form { margin: 0; }
.badge-count { background: var(--orange); color: #fff; border-radius: var(--radius-pill); padding: 0 8px; font-size: .8rem; margin-left: 4px; }
.textsize { background: transparent; border: 2px solid var(--on-brand); color: var(--on-brand); border-radius: var(--radius-md); font-weight: 700; padding: 2px 10px; cursor: pointer; font-size: .9rem; }
.envbar { background: var(--soleil); color: var(--ink); text-align: center; font-weight: 700; padding: 4px; font-size: .9rem; }

main { padding: 16px 0 48px; min-height: 60vh; }
footer { border-top: 1px solid var(--line); background: var(--surface-creme); padding: 20px 0; font-size: .9rem; color: var(--ink-muted); }
footer a { color: var(--baobab); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: var(--radius-md);
       border: 2px solid transparent; font-weight: 700; font-size: 1rem; font-family: var(--font-sans); text-decoration: none; cursor: pointer; gap: 6px; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--baobab); border-color: var(--baobab); }
.btn-secondary:hover { background: var(--surface-creme); color: var(--baobab); }
.btn-light { background: var(--surface-creme); color: var(--baobab); }
.btn-danger { background: var(--critical); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-link { background: none; border: none; color: var(--action); text-decoration: underline; padding: 0; min-height: 0; font-weight: 600; cursor: pointer; font-size: 1rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* Cartes, grilles */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.hero { background: var(--surface-brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 24px; }
.hero h1 { color: #fff; font-size: 2rem; margin-top: 0; }
.hero p { font-size: 1.1rem; max-width: 46em; }
.hero .btn-secondary { color: var(--on-brand); border-color: var(--on-brand); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.stat { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--baobab); }

/* Étiquettes */
.tag { display: inline-block; background: var(--surface-creme); color: var(--baobab); border-radius: var(--radius-pill); padding: 2px 12px; margin: 2px 4px 2px 0; font-size: .88rem; font-weight: 600; }
.status { display: inline-block; border-radius: var(--radius-pill); padding: 2px 12px; font-size: .85rem; font-weight: 700; }
.st-ok { background: #e3f1e8; color: var(--success); }
.st-wait { background: #fdf1d6; color: var(--warning); }
.st-off { background: #f1ece6; color: var(--ink-muted); }
.st-bad { background: #fbe4e2; color: var(--critical); }
.demo-mark { background: var(--soleil); color: var(--ink); font-weight: 700; border-radius: var(--radius-sm); padding: 0 6px; font-size: .8rem; }

/* Messages flash */
.flash { border-radius: var(--radius-md); padding: 12px 16px; margin: 0 0 12px; border-left: 6px solid; background: #fff; }
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--critical); }
.flash-info { border-color: var(--baobab); }

/* Formulaires */
form .field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { display: block; color: var(--ink-muted); font-size: .9rem; font-weight: 400; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--action); outline: none; }
.checks { display: grid; gap: 6px 16px; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.checks label, label.inline { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--action); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px 4px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.steps li { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface-creme); color: var(--ink-muted); font-weight: 600; font-size: .92rem; }
.steps li.on { background: var(--baobab); color: var(--on-brand); }
.steps li.done { color: var(--success); }

/* Listes et tableaux */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.list > li:last-child { border-bottom: none; }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-creme); color: var(--baobab); }
.table-wrap { overflow-x: auto; }

/* Messagerie */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--surface-creme); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: #e3f1e8; }
.msg .meta { display: block; font-size: .8rem; color: var(--ink-muted); margin-bottom: 2px; white-space: normal; }
.reasons { margin: 6px 0 0; padding-left: 20px; }
.reasons li { margin: 2px 0; }
.limits { color: var(--warning); }
details summary { cursor: pointer; font-weight: 700; color: var(--action); min-height: 32px; }
.charter dt { font-weight: 700; color: var(--baobab); margin-top: 8px; }
.charter dd { margin: 0 0 4px; }
.pre { white-space: pre-wrap; }
.nav .navlink { color: var(--on-brand); font-size: .95rem; font-weight: 600; text-decoration: none; font-family: var(--font-sans); }
.nav .navlink:hover { text-decoration: underline; color: #fff; }
nav.actions { margin: 0 0 16px; }
