/* charte-pages.css — habillage charte v2 des pages "génériques"
   (celles encore en Bootstrap / markup simple, rendues dans <main class="corps">).
   À charger APRÈS les autres feuilles de page. Scopé à .corps pour ne pas
   toucher aux pages pleine largeur (home, calendrier, drive, votes, menu…). */

.corps {
  box-shadow: none;
  border: 1px solid var(--filet, #E8E0DC);
  max-width: 1180px;
  padding: 28px 32px;
}
@media (max-width: 700px) { .corps { padding: 18px 16px; } }

/* --- titres --- */
.corps h1 {
  font-family: var(--titre, 'Space Grotesk'), sans-serif;
  font-weight: 700; font-size: 1.7rem; line-height: 1.2;
  color: var(--turquoise-fonce, #067264); margin: 0 0 14px;
}
.corps h2 { font-family: var(--titre, 'Space Grotesk'), sans-serif; font-weight: 700;
  font-size: 1.3rem; margin: 22px 0 12px; color: var(--marine, #001C31); }
.corps h3 { font-family: var(--titre, 'Space Grotesk'), sans-serif; font-weight: 600;
  font-size: 1.08rem; margin: 18px 0 8px; color: var(--marine, #001C31); }
.corps h4, .corps h5 { font-family: var(--titre, 'Space Grotesk'), sans-serif; }

.corps a { color: var(--turquoise-fonce, #067264); }
.corps a:hover { color: var(--marine, #001C31); }
.corps p { line-height: 1.6; }
.corps hr, .corps .border-bottom, .corps .border-top { border-color: var(--filet, #E8E0DC) !important; }
.corps legend { font-family: var(--titre, 'Space Grotesk'), sans-serif; font-weight: 600;
  font-size: 1.15rem; color: var(--marine, #001C31); }

/* --- champs de formulaire (crispy / bootstrap) --- */
.corps input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),
.corps select, .corps textarea, .corps .form-control {
  border: 1px solid var(--bord-champ, #C9C2B4); border-radius: var(--rayon, 4px);
  padding: 10px 12px; font: 400 14px/1.4 var(--texte, 'Public Sans'), sans-serif;
  background: #fff; color: var(--marine, #001C31); box-shadow: none;
}
.corps .form-control:focus, .corps input:focus, .corps select:focus, .corps textarea:focus {
  outline: 2px solid var(--turquoise, #09A38C); outline-offset: -1px; border-color: var(--turquoise, #09A38C);
}
.corps label, .corps .form-group > label, .corps .control-label {
  font: 600 13.5px/1.4 var(--texte, 'Public Sans'), sans-serif; color: var(--marine, #001C31); margin-bottom: 5px;
}
.corps .form-group, .corps .mb-3 { margin-bottom: 16px; }
.corps .form-text, .corps .help-block, .corps small.text-muted {
  color: var(--ardoise, #516B8F); font-size: 12px;
}
.corps .asteriskField { color: #BF0C2B; }

/* --- boutons --- */
.corps .btn, .corps button:not(.navbar-toggler):not([class*="toggle"]):not(.link-button) {
  border-radius: var(--rayon, 4px); font: 600 13.5px/1 var(--texte, 'Public Sans'), sans-serif;
  padding: 11px 20px; border: 1px solid transparent; cursor: pointer;
}
/* pages inter-élu·e·s : titres de catégories + liens en carte */
.corps .link-category-title { font-family: var(--titre, 'Space Grotesk'), sans-serif;
  color: var(--turquoise-fonce, #067264); font-size: 1.3rem; margin: 20px 0 12px; }
.corps .link-category-title i { font-style: normal; }
.corps .link-content { max-width: 620px; margin: 0 auto; }
.corps .btn-primary, .corps .btn-info, .corps .btn-success, .corps .btn-outline-info {
  background: var(--turquoise, #09A38C); border-color: var(--turquoise, #09A38C); color: #fff;
}
.corps .btn-primary:hover, .corps .btn-info:hover, .corps .btn-success:hover, .corps .btn-outline-info:hover {
  background: var(--turquoise-fonce, #067264); border-color: var(--turquoise-fonce, #067264); color: #fff;
}
.corps .btn-secondary, .corps .btn-outline-secondary, .corps .btn-light, .corps .btn-default {
  background: #fff; border-color: var(--filet, #E8E0DC); color: var(--marine, #001C31);
}
.corps .btn-danger, .corps .btn-outline-danger, .corps .btn-admin {
  background: #fff; border-color: #BF0C2B; color: #BF0C2B;
}
.corps .btn-link { color: var(--turquoise-fonce, #067264); padding-left: 0; padding-right: 0; }

/* --- tableaux de données (dont alias des tableaux "maison" trésorerie) --- */
.corps .table, .corps .table-treasury, .corps .table-tresorie, .corps .table-tresore {
  width: 100%; border-collapse: collapse; margin: 8px 0 16px; box-shadow: none; }
.corps .table th, .corps .table td,
.corps .table-treasury th, .corps .table-treasury td,
.corps .table-tresorie th, .corps .table-tresorie td,
.corps .table-tresore th, .corps .table-tresore td {
  border: 0; border-bottom: 1px solid var(--filet, #E8E0DC);
  padding: 10px 12px; text-align: left; vertical-align: top;
  font: 400 13.5px/1.45 var(--texte, 'Public Sans'), sans-serif; }
.corps .table th, .corps .table thead th,
.corps .table-treasury thead th, .corps .table-tresorie thead th, .corps .table-tresore thead th {
  font: 600 10.5px/1.3 var(--donnee, 'JetBrains Mono'), monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ardoise, #516B8F);
  background: var(--aplat, #F7F6F3); border-bottom: 1px solid var(--filet, #E8E0DC); }
.corps .table-striped tbody tr:nth-child(odd) { background: var(--aplat, #F7F6F3); }
.corps .program { margin: 14px 0; background: #fff; border: 1px solid var(--filet, #E8E0DC);
  border-radius: 0; box-shadow: none; padding: 16px 18px; }

/* --- annuaire : blocs de contacts dépliables --- */
.corps .contacts { border: 1px solid var(--filet, #E8E0DC); border-left: 3px solid var(--turquoise, #09A38C);
  background: #fff; padding: 16px 18px; margin: 4px 0 16px; }
.corps .contacts h2 { margin-top: 6px; }

/* --- cartes Bootstrap --- */
.corps .card { border: 1px solid var(--filet, #E8E0DC); border-radius: 0; box-shadow: none;
  margin-bottom: 14px; background: #fff; }
.corps .card-header { background: var(--aplat, #F7F6F3); border-bottom: 1px solid var(--filet, #E8E0DC);
  font: 600 13.5px/1.35 var(--texte, 'Public Sans'), sans-serif; padding: 12px 15px; }
.corps .card-content, .corps .card-body { padding: 14px 15px; }
.corps .card-content p, .corps .card-body p { margin: 0 0 7px; font-size: 13.5px; }

/* --- alertes --- */
.corps .alert { border-radius: 0; border: 0; border-left: 3px solid var(--turquoise, #09A38C);
  background: var(--aplat, #F7F6F3); color: var(--marine, #001C31);
  font: 400 13.5px/1.55 var(--texte, 'Public Sans'), sans-serif; padding: 13px 16px; }
.corps .alert-success { border-left-color: var(--turquoise, #09A38C); }
.corps .alert-danger, .corps .alert-error { border-left-color: #BF0C2B; }
.corps .alert-warning { border-left-color: var(--jaune, #FFF59D); }
.corps .alert-info { border-left-color: var(--bleu-clair, #869ECE); }

/* --- badges / pills --- */
.corps .badge { border-radius: 3px; font: 600 10.5px/1 var(--donnee, 'JetBrains Mono'), monospace;
  padding: 4px 7px; letter-spacing: .04em; }

/* --- pages documentaires (mentions légales, doc…) --- */
.corps .doc-fil { font: 500 12px/1 var(--donnee, 'JetBrains Mono'), monospace;
  color: var(--ardoise, #516B8F); margin: 0 0 18px; }
.corps .doc-fil a { color: var(--ardoise, #516B8F); }
.corps .doc-fil a:hover { color: var(--marine, #001C31); }
.corps .doc-fil b { color: var(--marine, #001C31); font-weight: 500; }
.corps .doc-surtitre { font: 500 11.5px/1.4 var(--donnee, 'JetBrains Mono'), monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise-fonce, #067264); margin: 0 0 14px; }
.corps .doc-section { border-top: 1px solid var(--filet, #E8E0DC); padding: 22px 0; margin: 0; }
.corps .doc-section:last-child { border-bottom: 1px solid var(--filet, #E8E0DC); }
.corps .doc-section > h2 { margin-top: 0; }
.corps .doc-section ul { margin: 10px 0; padding-left: 20px; }
.corps .doc-section li { margin: 6px 0; line-height: 1.6; }

/* petites fiches d'information (label + valeur) */
.corps .fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin: 16px 0 4px; }
.corps .fiche { background: #fff; border: 1px solid var(--filet, #E8E0DC); padding: 14px 16px; min-width: 0; }
.corps .fiche-label { font: 600 10.5px/1.3 var(--donnee, 'JetBrains Mono'), monospace;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ardoise, #516B8F); margin-bottom: 7px; }
.corps .fiche p { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }

.corps .doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* --- formulaire en 2 colonnes (demande de remboursement, etc.) --- */
.corps .remb-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

/* --- pastilles de statut --- */
.corps .remb-pill { display: inline-block; border-radius: 3px; padding: 4px 8px;
  font: 600 11px/1.3 var(--texte, 'Public Sans'), sans-serif; white-space: nowrap; }
.corps .remb-pill.remb-attente { background: var(--aplat, #F7F6F3); color: var(--ardoise, #516B8F); border: 1px solid var(--filet, #E8E0DC); }
.corps .remb-pill.remb-cours { background: var(--menthe, #C5FCEE); color: #00544A; }
.corps .remb-pill.remb-ok { background: var(--turquoise, #09A38C); color: #fff; }
