/* Trajectoire · l'espace des bénéficiaires de bilan de compétences.
   Même univers que le classeur imprimé : crème, or, marine, Georgia, liseré or fin.
   Source de vérité de la charte : ~/projets/bilan-competences-slc/template.py
   © Pam Redjimi · Source Leadership Consulting. Code, structure, questions et contenus
   protégés. Toute reproduction, extraction ou réutilisation interdite sans autorisation écrite. */

:root {
  --creme: oklch(97.2% 0.011 79);        /* #FAF7F2 */
  --creme-fonce: oklch(94.5% 0.016 79);
  --or: oklch(72.5% 0.121 88);           /* #C9A227 */
  --or-clair: oklch(88% 0.055 88);
  --marine: oklch(33.5% 0.079 259);      /* #1A365D */
  --marine-clair: oklch(46% 0.075 259);
  --encre: oklch(30% 0.005 260);
  --gris: oklch(52% 0.008 260);
  --gris-clair: oklch(78% 0.006 260);
  --bord: oklch(91.5% 0.012 79);         /* #e8e2d6 */
  --blanc: #ffffff;
  --vert: oklch(48% 0.088 155);
  --rouge: oklch(45% 0.125 27);

  --serif: Georgia, "Times New Roman", serif;
  --rayon: 3px;
  --ombre: 0 1px 2px oklch(30% 0.02 260 / 0.05), 0 8px 24px oklch(30% 0.02 260 / 0.05);
  --transition: 160ms cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  background: var(--creme);
  color: var(--encre);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  /* Le liseré or, signature de Pam, tient toute la hauteur de la page. */
  border-top: 2px solid var(--or);
}

/* ---------- structure ---------- */

.bandeau {
  background: var(--blanc);
  border-bottom: 1px solid var(--bord);
}

.bandeau .dedans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bandeau img { height: 46px; width: auto; }

.bandeau .qui {
  font-size: 14px;
  color: var(--gris);
  text-align: right;
  line-height: 1.45;
}

.bandeau .qui strong { color: var(--marine); font-weight: normal; display: block; font-size: 16px; }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 90px;
}

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

/* ---------- titres ---------- */

h1 {
  font-weight: normal;
  font-size: clamp(26px, 4.2vw, 34px);
  color: var(--marine);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: normal;
  font-size: 21px;
  color: var(--marine);
  margin-bottom: 4px;
}

h3 { font-size: 17px; color: var(--marine); font-weight: bold; margin-bottom: 4px; }

.filet { width: 64px; height: 2px; background: var(--or); border: none; margin: 14px 0 22px; }

.chapeau { color: var(--gris); font-size: 17px; max-width: 62ch; }

.discret { color: var(--gris); font-size: 14.5px; }

.oeil-de-perdrix {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
}

/* ---------- cartes ---------- */

.carte {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.carte.mise-en-avant { border-left: 2px solid var(--or); }

.carte h2 + .filet { margin-top: 10px; }

.carte-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- le chemin du bilan ---------- */

.chemin { list-style: none; margin: 0; }

/* Le marqueur ne s'applique qu'aux étapes elles-mêmes, jamais aux travaux listés dessous. */
.chemin > li {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 1px solid var(--bord);
  margin-left: 7px;
}

.chemin > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.chemin > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--creme);
  border: 1px solid var(--gris-clair);
}

.chemin > li.faite::before { background: var(--or); border-color: var(--or); }
.chemin > li.en-cours::before {
  background: var(--blanc);
  border: 2px solid var(--or);
  box-shadow: 0 0 0 4px oklch(72.5% 0.121 88 / 0.16);
}

.chemin .phase {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
}

.chemin .titre-etape { color: var(--marine); font-size: 18px; }
.chemin li.a-venir .titre-etape { color: var(--gris); }
.chemin .pour-elle { color: var(--gris); font-size: 15px; }

.chemin .etiquette { margin-top: 8px; }

/* Les travaux attachés à une étape : une ligne sobre, sans marqueur ni filet. */
.travaux { list-style: none; margin: 10px 0 0; }
.travaux li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.travaux a { color: var(--marine); text-underline-offset: 3px; }
.travaux a:hover { color: var(--or); }

/* ---------- étiquettes d'état ---------- */

.etiquette {
  display: inline-block;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--bord);
  color: var(--gris);
  background: var(--creme);
  white-space: nowrap;
}

.etiquette.a-faire { border-color: var(--or); color: oklch(45% 0.09 88); background: oklch(97% 0.03 88); }
.etiquette.rendu { border-color: var(--gris-clair); }
.etiquette.repondu { border-color: var(--vert); color: var(--vert); background: oklch(96% 0.03 155); }

/* ---------- boutons ---------- */

.bouton {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: var(--rayon);
  border: 1px solid var(--marine);
  background: var(--marine);
  color: var(--blanc);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.bouton:hover { background: var(--marine-clair); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: 0.45; cursor: not-allowed; }

.bouton.secondaire { background: transparent; color: var(--marine); }
.bouton.secondaire:hover { background: var(--creme); }

.bouton.discret {
  background: transparent;
  border-color: var(--bord);
  color: var(--gris);
  font-size: 14.5px;
  padding: 8px 14px;
}
.bouton.discret:hover { background: var(--creme); color: var(--marine); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- formulaires ---------- */

label { display: block; color: var(--marine); margin-bottom: 6px; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 11px 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px oklch(72.5% 0.121 88 / 0.18);
}

.question { padding: 22px 0; border-bottom: 1px solid var(--bord); }
.question:last-of-type { border-bottom: none; }
.question .numero { color: var(--or); font-size: 13px; letter-spacing: 0.12em; }
.question .intitule { color: var(--marine); font-size: 18px; margin: 2px 0 4px; }
.question .aide { color: var(--gris); font-size: 14.5px; margin-bottom: 10px; }
.question.manquante .intitule { color: var(--rouge); }

.choix { display: flex; flex-wrap: wrap; gap: 8px; }

.choix label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  cursor: pointer;
  font-size: 15.5px;
  transition: all var(--transition);
}

.choix label:hover { border-color: var(--or-clair); }
.choix input { accent-color: oklch(33.5% 0.079 259); }
.choix label:has(input:checked) {
  border-color: var(--marine);
  background: var(--marine);
  color: var(--blanc);
}
.choix label:has(input:checked) input { accent-color: var(--blanc); }

/* échelles et notes */
.echelle { display: flex; flex-wrap: wrap; gap: 6px; }

.echelle label {
  margin: 0;
  min-width: 44px;
  text-align: center;
  padding: 9px 4px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  cursor: pointer;
  transition: all var(--transition);
}
.echelle label:hover { border-color: var(--or-clair); }
.echelle input { position: absolute; opacity: 0; pointer-events: none; }
.echelle label:has(input:checked) { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.echelle .bornes { width: 100%; display: flex; justify-content: space-between; color: var(--gris); font-size: 13px; }

/* tableaux d'exercice */
.tableau-exercice { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.tableau-exercice th {
  text-align: left;
  font-weight: normal;
  color: var(--marine);
  font-size: 14px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--or);
  white-space: nowrap;
}
.tableau-exercice td { padding: 6px 6px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau-exercice input, .tableau-exercice textarea, .tableau-exercice select { font-size: 15px; padding: 8px 10px; }
.tableau-exercice textarea { min-height: 66px; }
.tableau-exercice .retirer {
  border: none;
  background: none;
  color: var(--gris-clair);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}
.tableau-exercice .retirer:hover { color: var(--rouge); }

.defilant { overflow-x: auto; }

/* fiches d'exercice : une entree = une carte, les rubriques les unes sous les autres.
   C'est la forme qu'il faut quand une entree a quinze rubriques (l'enquete metier) :
   un tableau obligerait a faire defiler l'ecran de cote pour lire une seule reponse. */
.fiche {
  border: 1px solid var(--bord);
  border-top: 2px solid var(--or);
  border-radius: 4px;
  padding: 4px 18px 18px;
  margin: 14px 0;
}
.entete-fiche {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--bord);
  margin-bottom: 6px;
}
.entete-fiche .retirer {
  border: none;
  background: none;
  color: var(--gris-clair);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}
.entete-fiche .retirer:hover { color: var(--rouge); }
.fiche .rubrique { padding: 12px 0 0; }
.fiche .rubrique .intitule { color: var(--marine); font-size: 15.5px; margin-bottom: 6px; }
.fiche .rubrique input,
.fiche .rubrique textarea,
.fiche .rubrique select { width: 100%; }
.fiche .rubrique textarea { min-height: 80px; }

/* ---------- fil de messages ---------- */

.fil { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }

.bulle {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--bord);
  background: var(--blanc);
  font-size: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bulle .quand { display: block; margin-top: 8px; font-size: 12.5px; color: var(--gris); }
.bulle.delle { align-self: flex-end; background: var(--creme-fonce); border-color: var(--creme-fonce); }
.bulle.depam { align-self: flex-start; border-left: 2px solid var(--or); }

/* ---------- le mot de Pam ---------- */

.mot-de-pam {
  background: oklch(97% 0.03 88);
  border: 1px solid var(--or-clair);
  border-left: 2px solid var(--or);
  border-radius: var(--rayon);
  padding: 18px 22px;
  margin: 18px 0;
  white-space: pre-wrap;
}
.mot-de-pam .signature { display: block; margin-top: 10px; color: var(--gris); font-size: 14px; }

/* ---------- listes de documents et créneaux ---------- */

.liste-simple { list-style: none; }

.liste-simple li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bord);
  flex-wrap: wrap;
}
.liste-simple li:last-child { border-bottom: none; }
.liste-simple a { color: var(--marine); }

.creneau { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.creneau.a-moi { border-left: 2px solid var(--or); padding-left: 14px; background: oklch(97% 0.03 88); }

/* ---------- progression ---------- */

.barre-progression { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.barre-progression .piste { flex: 1; height: 8px; background: var(--creme-fonce); border-radius: 999px; overflow: hidden; }
.barre-progression .avant { height: 100%; background: var(--gris-clair); }
.barre-progression .apres { height: 100%; background: var(--or); }

/* ---------- états vides, messages ---------- */

.rien {
  text-align: center;
  padding: 46px 24px;
  color: var(--gris);
  border: 1px dashed var(--bord);
  border-radius: var(--rayon);
  background: var(--blanc);
}
.rien strong { display: block; color: var(--marine); font-weight: normal; font-size: 19px; margin-bottom: 6px; }

.alerte {
  border: 1px solid var(--bord);
  border-left: 2px solid var(--or);
  background: var(--blanc);
  padding: 14px 18px;
  border-radius: var(--rayon);
  margin-bottom: 18px;
}
.alerte.probleme { border-left-color: var(--rouge); color: var(--rouge); }
.alerte.bien { border-left-color: var(--vert); color: var(--vert); }

.chargement { color: var(--gris); padding: 40px 0; text-align: center; }

/* ---------- navigation par onglets ---------- */

.onglets {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--bord);
  margin-bottom: 26px;
  overflow-x: auto;
}

.onglets button {
  font-family: var(--serif);
  font-size: 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gris);
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.onglets button:hover { color: var(--marine); }
.onglets button[aria-selected="true"] { color: var(--marine); border-bottom-color: var(--or); }

.pastille {
  display: inline-block;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 12px;
  border-radius: 999px;
  background: var(--or);
  color: var(--blanc);
  margin-left: 7px;
  padding: 0 5px;
}

/* ---------- pied de page ---------- */

footer.bas {
  border-top: 2px solid var(--or);
  background: var(--blanc);
  padding: 22px 24px 30px;
  text-align: center;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.65;
}
footer.bas .marque { color: var(--marine); }

/* ---------- écran d'entrée ---------- */

.entree { max-width: 520px; margin: 8vh auto; }

/* ---------- téléphone ---------- */

@media (max-width: 900px) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  main { padding: 24px 16px 70px; }
  .carte { padding: 20px 18px; }
  .bandeau .dedans { padding: 14px 16px; }
  .bandeau img { height: 38px; }
  .bulle { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
