:root {
  /* Palette reprise du logo : bleu marine + rouge */
  --brand: #14427e;
  --brand-2: #1f5ea8;
  --accent: #d4302d;
  --red: #d4302d;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.boot { padding: 4rem; text-align: center; color: var(--muted); }

a { color: var(--brand-2); }
button { font-family: inherit; cursor: pointer; }

/* ---------------- Auth screens ---------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-hero {
  background: linear-gradient(150deg, var(--red), #7c1a1a 45%, var(--brand) 55%, #0c2c5a);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-hero .logo { font-size: 2.2rem; font-weight: 800; letter-spacing: .5px; display:flex; align-items:center; gap:.7rem;}
.auth-hero .hero-logo { width: 64px; height: 64px; border-radius: 12px; background:#fff; padding:4px; object-fit: contain; }
.auth-hero h1 { font-size: 2rem; margin: 1.5rem 0 .5rem; line-height: 1.2; }
.auth-hero p { opacity: .9; font-size: 1.05rem; max-width: 460px; line-height: 1.6; }
.auth-hero ul { margin-top: 1.5rem; padding-left: 1.1rem; line-height: 2; opacity: .92; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}
.auth-card h2 { margin: 0 0 .3rem; }
.auth-card .sub { color: var(--muted); margin: 0 0 1.6rem; font-size: .92rem; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.auth-tabs button {
  flex: 1; padding: .6rem; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; color: var(--muted); font-weight: 600;
}
.auth-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}

/* ---------------- Forms ---------------- */
label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .35rem; color: #334155; }
input, select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: .95rem; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); border-color: var(--brand-2); }
textarea { resize: vertical; min-height: 80px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.1rem; border: 0; border-radius: 8px; font-weight: 600; font-size: .95rem;
  background: var(--brand); color: #fff;
}
.btn:hover { background: #0a3257; }
.btn.full { width: 100%; margin-top: 1.4rem; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: #b3211f; }
.btn.ok { background: var(--ok); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn.sm { padding: .4rem .7rem; font-size: .82rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: .8rem; }
.row > * { flex: 1; }

/* ---------------- App layout ---------------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--brand); color: #cdd9e8; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 1.1rem 1.2rem; font-weight: 800; font-size: 1.1rem; color: #fff; display:flex; align-items:center; gap:.6rem; border-bottom: 1px solid rgba(255,255,255,.12); line-height:1.15;}
.sidebar .brand .brand-logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background:#fff; padding:2px; object-fit: contain; }
.nav-section { padding: .9rem .9rem .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fa6c4; }
.sidebar nav { flex: 1; padding: .8rem; overflow-y: auto; }
.sidebar nav button {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .7rem .8rem; margin-bottom: .25rem; border: 0; background: transparent;
  color: #cdd9e8; border-radius: 8px; font-size: .92rem; font-weight: 500;
}
.sidebar nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav button.active { background: var(--brand-2); color: #fff; font-weight: 600; }
.sidebar nav button .ico { width: 20px; text-align: center; }
.sidebar nav .badge { margin-left: auto; background: var(--accent); color:#fff; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700;}
.sidebar .userbox { padding: 1rem 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.sidebar .userbox .name { color: #fff; font-weight: 600; }
.sidebar .userbox .role { color: #9fb6cf; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px;}
.sidebar .userbox button { margin-top: .6rem; }

.main { padding: 1.8rem 2.2rem; max-width: 1280px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; flex-wrap: wrap; gap: .8rem;}
.page-head h1 { margin: 0; font-size: 1.5rem; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

/* Bouton hamburger : masqué sur grand écran, visible sur mobile/tablette */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: column; }
  .sidebar .brand { flex: 1; padding-left: 3.6rem; }
  .nav-toggle {
    display: block; position: absolute; top: .7rem; left: .7rem; right: auto; z-index: 2;
    background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px;
    padding: .45rem .65rem; font-weight: 700; font-size: 1.05rem; line-height: 1;
  }
  /* Menu replié par défaut ; ouvert via .nav-open */
  .sidebar nav { display: none; }
  .sidebar.nav-open nav { display: block; }
  .sidebar .userbox { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
  .sidebar .userbox button { margin-top: 0; margin-left: auto; }
  .main { padding: 1rem; }
  .page-head h1 { font-size: 1.25rem; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .modal { max-width: 100%; }
}

@media (max-width: 520px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .main { padding: .8rem; }
  .card { padding: 1rem; }
  .btn { padding: .6rem .9rem; }
  .row { flex-direction: column; }
  th, td { padding: .5rem .4rem; font-size: .82rem; }
  .month-grid .cell { min-height: 64px; }
  .stat .value { font-size: 1.5rem; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn, .page-head > div:last-child { width: 100%; }
}

/* ---------------- Cards & grids ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem; margin-bottom: 1.3rem;
}
.card h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.grid { display: grid; gap: 1.1rem; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2,1fr);} .grid.cols-3{grid-template-columns:1fr;} }
@media (max-width: 640px) { .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } .row{flex-direction:column;} }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);}
.stat .value { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat .label { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.stat .unit { font-size: .9rem; color: var(--muted); font-weight: 600; }
.stat.alt .value { color: var(--accent); }

/* ---------------- Tables ---------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.tag.pending { background: #fef3c7; color: #92400e; }
.tag.approved { background: #dcfce7; color: #166534; }
.tag.rejected { background: #fee2e2; color: #991b1b; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.group-chip { display:inline-flex; align-items:center; gap:.4rem; padding:.15rem .55rem; border-radius:999px; font-size:.8rem; font-weight:600; color:#fff;}

/* ---------------- Calendar ---------------- */
.cal-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-toolbar .title { font-weight: 700; font-size: 1.15rem; min-width: 220px; text-transform: capitalize;}
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background:#fff;}
.view-switch button { border: 0; background: #fff; padding: .45rem .8rem; font-weight: 600; color: var(--muted); font-size:.85rem;}
.view-switch button.active { background: var(--brand); color: #fff; }
.nav-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; width: 36px; height: 36px; font-size: 1.1rem; }

.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;}
.month-grid .dow { background: #f8fafc; padding: .5rem; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase;}
.month-grid .cell { background: #fff; min-height: 96px; padding: .35rem; font-size: .8rem; position: relative;}
.month-grid .cell.out { background: #f8fafc; color: #cbd5e1; }
.month-grid .cell.sunday { background: #fdf6f6; }
.month-grid .cell.holiday { background: #fde68a; box-shadow: inset 0 0 0 2px #f59e0b; }
.month-grid .cell.school { background: #eff6ff; }
.month-grid .cell.closed { background: #fef2f2; box-shadow: inset 0 0 0 2px #fecaca; }
.week-grid .wcell.school { background: #eff6ff; }
.week-grid .wcell.closed { background: #fef2f2; }
.month-grid .cell .num { font-weight: 700; font-size: .8rem; }
.month-grid .cell.today .num { background: var(--brand); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;}
.month-grid .cell .hol-label { font-size: .62rem; color: #92400e; font-weight: 700; display:block; margin-top:1px;}
.ev { display: block; color: #fff; border-radius: 5px; padding: 1px 5px; margin-top: 2px; font-size: .7rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: default;}
/* Demande en attente (DCP et autres) : hachuré / pointillés */
.ev.is-pending { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px); border: 1px dashed rgba(255,255,255,.9); }
.tag.is-pending, .group-chip.is-pending { border: 1px dashed rgba(255,255,255,.9); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 4px, transparent 4px 8px); }
.mini-grid span.has-ev.is-pending { outline: 1px dashed #fff; }

.week-grid { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.week-grid .wrow { display: grid; grid-template-columns: 150px repeat(6, 1fr); border-bottom: 1px solid var(--border);}
.week-grid .wrow:last-child { border-bottom: 0; }
.week-grid .whead { background: #f8fafc; font-weight: 700; font-size: .8rem; }
.week-grid .wcell { padding: .5rem; border-left: 1px solid var(--border); min-height: 44px; font-size:.8rem;}
.week-grid .wcell.namecol { border-left: 0; font-weight: 600; display:flex; align-items:center; gap:.4rem; }
.week-grid .wcell.holiday { background: #fde68a; box-shadow: inset 0 0 0 2px #f59e0b; }
.week-grid .whead .sub { font-weight: 500; color: var(--muted); font-size: .72rem; }

.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px){ .year-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .year-grid { grid-template-columns: 1fr;} }
.mini-month { border: 1px solid var(--border); border-radius: 10px; padding: .7rem; background:#fff;}
.mini-month h4 { margin: 0 0 .5rem; text-align: center; text-transform: capitalize; font-size: .95rem;}
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-grid span { aspect-ratio: 1; display:flex; align-items:center; justify-content:center; font-size:.68rem; border-radius:4px; color:#475569;}
.mini-grid span.has-ev { color: #fff; font-weight: 700; }
.mini-grid span.dim { color: #cbd5e1; }
.mini-grid span.head { color: var(--muted); font-weight:700; }

.day-list .day-event { display:flex; align-items:center; gap:.8rem; padding:.7rem; border:1px solid var(--border); border-radius:10px; margin-bottom:.5rem; }
.day-list .bar { width:6px; align-self:stretch; border-radius:3px; }

.legend { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.legend .item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }

.date-chip { display: inline-block; padding: .15rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 600; border: 1px solid transparent; }
.date-chip.past { background: #fef9c3; color: #854d0e; border-color: #fde68a; }      /* jaune : passées */
.date-chip.current { background: #dcfce7; color: #166534; border-color: #86efac; }   /* vert : en cours */
.date-chip.future { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }    /* bleu : à venir */
.date-chip.is-pending { border-style: dashed; opacity: .85; }

.empty { text-align: center; color: var(--muted); padding: 2rem; }
.help { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.alert { padding: .8rem 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.info-content { white-space: pre-wrap; line-height: 1.7; font-size: .95rem; }

/* ---------------- Modal ---------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem;}
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal header { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); display:flex; justify-content:space-between; align-items:center;}
.modal header h3 { margin: 0; }
.modal .body { padding: 1.4rem; }
.modal .foot { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .6rem; }
.close-x { border: 0; background: transparent; font-size: 1.4rem; color: var(--muted); cursor: pointer; }

/* ---------------- Toast ---------------- */
#toast-container { position: fixed; bottom: 1.2rem; right: 1.2rem; display: flex; flex-direction: column; gap: .6rem; z-index: 100;}
.toast { padding: .8rem 1.1rem; border-radius: 8px; color: #fff; box-shadow: var(--shadow); font-size: .9rem; animation: slideIn .25s ease; max-width: 360px;}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.info { background: var(--brand-2); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- Organigramme ---------------- */
.org-level { text-align: center; }
.org-level-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.org-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: .7rem .9rem; min-width: 180px; text-align: center; }
.org-name { font-weight: 700; }
.org-role { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.org-mail { display: inline-block; margin-top: .35rem; font-size: .8rem; }
.org-connector { width: 2px; height: 26px; background: var(--border); margin: .2rem auto; }
.org-branch { margin-top: 1rem; }
.org-branch-title { margin-bottom: .5rem; }

/* ---------------- Rapport / impression PDF ---------------- */
.report-head h1 { font-size: 1.3rem; margin: 0 0 .2rem; color: var(--brand); }
.report-head p { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; }
.report-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.report-table th, .report-table td { border: 1px solid #cbd5e1; padding: .4rem .55rem; text-align: left; font-size: .85rem; }
.report-table thead th { background: #f1f5f9; }

@media print {
  body { background: #fff; }
  .sidebar, .page-head, #admin-tabs, #toast-container, .modal-overlay, #exp-print, #exp-month, .help { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: none; margin: 0; padding: 0; }
  #print-area { display: block; }
}

/* ---------------- Organigramme en colonnes ---------------- */
.org-cols { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.org-col { flex: 1 1 200px; max-width: 280px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.org-col-head { color: #fff; font-weight: 800; text-align: center; padding: .55rem; }
.org-resp { padding: .6rem; background: #f8fafc; }
.org-members { padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }

/* ---------------- Mini-calendrier équipe ---------------- */
.team-weeks { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.team-week { width: 64px; border-radius: 8px; padding: .35rem; text-align: center; font-size: .72rem; border: 1px solid var(--border); }
.team-week.free { background: #dcfce7; border-color: #86efac; color: #166534; }
.team-week.busy { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.team-week .tw-date { font-weight: 700; }
.team-week .tw-state { margin-top: .15rem; }

@media (max-width: 520px) {
  .org-col { max-width: 100%; flex-basis: 100%; }
  .team-week { width: 56px; }
}

/* ---------------- Gestion des absences : encadrés ---------------- */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.person-box { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; background: #f8fafc; }
.person-box .pb-name { font-weight: 700; }

/* Semaine "moi" dans le mini-calendrier d'année */
.team-week.mine { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }

@media (max-width: 520px) {
  .person-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Retard chip & décompte saisie ---------------- */
.date-chip.retard { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.assign-solde { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: .55rem .7rem; margin: .5rem 0; font-size: .9rem; }
.mini-grid span.mini-closed { background: var(--danger); color: #fff; font-weight: 700; border-radius: 4px; }

/* ---------------- Page de garde / CGU ---------------- */
.cgu-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; background: var(--bg); }
.cgu-card { width: 100%; max-width: 760px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.cgu-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.cgu-head h1 { margin: 0; font-size: 1.5rem; }
.cgu-logo { width: 56px; height: 56px; border-radius: 10px; background: #fff; object-fit: contain; }
.cgu-lead { color: var(--muted); }
.cgu-body { max-height: 48vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; background: #fafbfc; }
.cgu-body h3 { margin: 1rem 0 .3rem; font-size: 1rem; color: var(--brand); }
.cgu-body h3:first-child { margin-top: 0; }
.cgu-body p, .cgu-body li { font-size: .9rem; line-height: 1.55; }
.cgu-check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; cursor: pointer; }
.cgu-check input { width: auto; margin-top: .2rem; }
.cgu-actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }

@media (max-width: 520px) { .cgu-card { padding: 1.2rem; } .cgu-body { max-height: 50vh; } }

/* ---------------- Règlement intérieur ---------------- */
.reglement { font-size: .9rem; line-height: 1.6; }
.reglement .ri-entete { text-align: center; border-bottom: 2px solid var(--brand); padding-bottom: 1rem; margin-bottom: 1rem; }
.reglement .ri-entete h1 { color: var(--brand); margin: .6rem 0 .3rem; font-size: 1.5rem; }
.reglement .ri-entete h2 { margin: 0; font-size: 1.1rem; }
.reglement h3 { color: var(--brand); border-top: 1px solid var(--border); padding-top: .8rem; margin: 1.2rem 0 .5rem; font-size: 1.05rem; }
.reglement h4 { margin: .9rem 0 .3rem; font-size: .95rem; color: #1e293b; }
.reglement ul { margin: .3rem 0 .6rem 1.1rem; }
.reglement p { margin: .4rem 0; }
.reglement-scroll { max-height: 50vh; overflow-y: auto; }

/* ---------------- Attestation PDF ---------------- */
.attestation { font-size: .95rem; line-height: 1.6; }
.attestation .att-head { display: flex; gap: 1rem; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: .8rem; }
.attestation .att-logo { width: 56px; height: 56px; object-fit: contain; }
