/* =========================================================================
   Pages « Sobre » : Formations (maquette C « Parcours »), Certification AFA
   (maquette C « Essentiel ») et A propos (maquette A « Recit »), validees le
   2026-11-13. Cahier des charges : Bureau/« Vitrine Caelys maquette 1.md »,
   sections 17 a 21.
   Charge APRES accueil-sobre.css (socle : jetons, grille de 8 colonnes,
   en-tete, boutons, chiffres, FAQ, appel final, pied de page).
   Mode clair : classe `theme-clair` sur <html> (mecanisme commun du site).
   Copyright (c) 2026 Yohann Bordin, Tous droits reserves.
   ========================================================================= */

:root {
  --sb-encadre-fond: #12100E;
  --sb-toutes-fond: #15100D;
  --sb-recit: #C9C1B7;
}
.theme-clair {
  --sb-encadre-fond: #FFFFFF;
  --sb-toutes-fond: #F1E2D6;
  --sb-recit: #3D352E;
}

/* Lien de la page en cours dans l'en-tete (section 17). */
.sb-nav > a[aria-current="page"] { color: var(--sb-texte); }

/* ---------- En-tete de page ------------------------------------------- */
.sb-page-tete { padding-top: 96px; }
.sb-page-tete-court { padding-top: 80px; }
.sb-page-tete-court .s6 { padding-bottom: 72px; }
@media (max-width: 860px) {
  .sb-page-tete { padding-top: 56px; }
  .sb-page-tete-court { padding-top: 48px; }
  .sb-page-tete-court .s6 { padding-bottom: 48px; }
}
.vitrine .sb .sb-h1-page { max-width: 20ch; }
.sb-ariane { font-size: 14px; color: var(--sb-discret); margin-bottom: 24px; }
.sb-ariane a { color: var(--sb-second); }
.sb-ariane a:hover { color: var(--sb-texte); }
.sb-page-lien { margin-top: 32px !important; }

/* ---------- Tuile de logo de module (section 17) ----------------------- */
.sb-tuile-logo {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(circle at 50% 55%, rgba(203, 107, 63, .22), rgba(26, 22, 19, 0) 62%), var(--sb-tuile);
}
.sb-tuile-logo svg { max-width: none; }

/* ---------- Encadre (19.6, 20.4) --------------------------------------- */
.sb-encadre {
  border-radius: 24px; border: 1px solid rgba(229, 192, 110, .3); background: var(--sb-encadre-fond);
  padding: 48px 56px; row-gap: 24px; align-items: start;
}
.sb-encadre-tete { display: flex; flex-direction: column; gap: 20px; }
.sb-encadre-ico {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(229, 192, 110, .45); color: var(--sb-champagne);
}
.sb-encadre-texte { font-size: 17px; line-height: 1.65; color: var(--sb-intro); }
.sb-encadre-note { font-size: 14px; line-height: 1.6; color: var(--sb-discret); margin-top: 16px !important; }
@media (max-width: 860px) { .sb-encadre { padding: 32px 22px; } }

/* Appel final a deux boutons (19.8, 20.5) et note dessous. */
.sb-final-deux { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
/* Colonne trop etroite pour deux boutons cote a cote (Certification, 3
   colonnes) : empiles, a largeur egale. */
.sb-final-pile { flex-direction: column; align-items: stretch; }
@media (max-width: 860px) {
  .sb-final-deux { justify-content: flex-start; }
  .sb-final-pile { flex-direction: row; align-items: center; }
}
.sb-fin-note { margin-top: 32px !important; font-size: 14px; line-height: 1.6; color: var(--sb-discret); max-width: 70ch; }

/* =========================================================================
   FORMATIONS
   ========================================================================= */

/* 18.2 Parcours : trois etapes reliees par un trait a la hauteur du centre
   des tuiles (surtitre 18 px + 20 px d'ecart + moitie de tuile 48 px). */
.pf-parcours {
  margin-top: 48px; border-radius: 20px; border: 1px solid var(--sb-ligne);
  background: var(--sb-encadre-fond); padding: 48px 40px;
}
.pf-etapes { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0; padding: 0; list-style: none; }
.pf-etapes::before {
  content: ""; position: absolute; left: 48px; right: 48px; top: 86px; height: 1px;
  background: linear-gradient(90deg, rgba(230, 107, 60, .6), rgba(230, 107, 60, .15));
}
.pf-etape { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pf-etape-sur {
  height: 18px; line-height: 18px; margin: 0 0 20px !important; white-space: nowrap;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-champagne);
}
.pf-etape-tuiles { display: flex; gap: 24px; }
.pf-tuile-lien { display: flex; flex-direction: column; align-items: center; width: 132px; color: var(--sb-texte); }
.pf-tuile { width: 96px; height: 96px; border-radius: 22px; position: relative; z-index: 1; transition: border-color .2s ease; }
a.pf-tuile-lien:hover .pf-tuile { border-color: rgba(230, 107, 60, .55); }
.pf-tuile-socle { border-color: rgba(230, 107, 60, .55); }
.pf-examen {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(229, 192, 110, .45); background: var(--sb-encadre-fond); color: var(--sb-champagne);
}
.pf-nom { font-size: 15px; font-weight: 600; margin-top: 14px; line-height: 1.35; }
.pf-sous { font-size: 13px; color: var(--sb-second); margin-top: 4px; }
@media (max-width: 1040px) { .pf-etape-tuiles { gap: 12px; } .pf-tuile-lien { width: 112px; } .pf-parcours { padding: 40px 24px; } }
@media (max-width: 860px) {
  .pf-parcours { padding: 32px 20px; }
  .pf-etapes { flex-direction: column; align-items: center; gap: 56px; }
  .pf-etapes::before { display: none; }
  .pf-etape:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: -42px; width: 1px; height: 28px;
    background: linear-gradient(180deg, rgba(230, 107, 60, .6), rgba(230, 107, 60, .15));
  }
  .pf-etape-tuiles { flex-wrap: wrap; justify-content: center; }
  .pf-etape-sur { white-space: normal; height: auto; }
}

/* 17.2 Bande « Inclus dans chaque module » */
.pf-inclus { border-top: 1px solid var(--sb-ligne-2); border-bottom: 1px solid var(--sb-ligne-2); padding: 48px 0; }
.vitrine .sb .pf-inclus-titre { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; color: var(--sb-texte); margin: 0 0 32px; }
.pf-inclus-liste { row-gap: 24px; margin: 0; padding: 0; list-style: none; }
.pf-inclus-liste li { display: flex; align-items: center; gap: 16px; font-size: 15px; line-height: 1.5; color: var(--sb-liste); }
.pf-inclus-ico {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(229, 192, 110, .35); color: var(--sb-champagne);
}
@media (max-width: 860px) { .pf-inclus-liste li.s2 { grid-column: span 2; } }
@media (max-width: 560px) { .pf-inclus-liste li.s2 { grid-column: 1 / -1; } }

/* 18.4 Un module : tuile carree (3 colonnes) et texte (5 colonnes),
   tuile a gauche pour M1 et M3, a droite pour M2 et M4. */
.pf-module { align-items: center; row-gap: 32px; }
.pf-module-tuile { aspect-ratio: 1 / 1; border-radius: 24px; }
.pf-module-tuile svg { width: 140px; height: 140px; }
.pf-module-texte { padding-left: 32px; }
.pf-module-droite .pf-module-tuile { order: 2; }
.pf-module-droite .pf-module-texte { order: 1; padding-left: 0; padding-right: 32px; }
.pf-module-etiquette { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sb-second); margin: 0 0 12px !important; }
.pf-module-desc { font-size: 17px; line-height: 1.6; color: var(--sb-intro); margin-top: 16px !important; max-width: 52ch; }
.pf-module-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.pf-surtitre { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-champagne); margin: 0 0 14px !important; }
.pf-coches { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pf-coches li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--sb-liste); }
.pf-coches svg { flex: 0 0 16px; margin-top: 3px; color: var(--sb-orange); }
.pf-exam { font-size: 15px; line-height: 1.55; color: var(--sb-second); }
.pf-module-pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sb-ligne);
}
.pf-faits { font-size: 15px; font-weight: 600; color: var(--sb-texte); }
.pf-faits.sb-champagne { color: var(--sb-champagne); }
@media (max-width: 860px) {
  .pf-module-tuile, .pf-module-droite .pf-module-tuile { order: 0; max-width: 160px; width: 100%; }
  .pf-module-tuile svg { width: 96px; height: 96px; }
  .pf-module-texte, .pf-module-droite .pf-module-texte { order: 1; padding: 0; }
}
@media (max-width: 560px) { .pf-module-cols { grid-template-columns: 1fr; gap: 24px; } }

/* 18.5 Toutes branches */
.pf-toutes {
  border-radius: 24px; border: 1px solid rgba(229, 192, 110, .4); background: var(--sb-toutes-fond);
  padding: 48px; align-items: center; row-gap: 24px;
}
.pf-toutes-tuile { width: 100%; max-width: 150px; aspect-ratio: 1 / 1; border-radius: 22px; }
.pf-toutes-tuile svg { width: 78%; height: auto; }
.pf-toutes-droite { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 860px) {
  .pf-toutes { padding: 32px 22px; }
  .pf-toutes .s2 { grid-column: 1 / -1; }
}

/* 18.6 Vehicules a moteur */
.pf-vehicule {
  margin-top: 48px; display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap;
  border-radius: 20px; border: 1px solid var(--sb-ligne); background: var(--sb-carte); padding: 32px 48px;
}
.pf-vehicule-tuile { width: 72px; height: 72px; border-radius: 18px; }
.pf-vehicule-texte { flex: 1 1 320px; }
.pf-vehicule-texte .pf-module-etiquette { margin-bottom: 6px !important; }
.vitrine .sb .pf-vehicule-titre { font-size: 22px; font-weight: 600; letter-spacing: normal; color: var(--sb-texte); margin: 0 0 8px; }
@media (max-width: 860px) { .pf-vehicule { padding: 28px 22px; } }

/* =========================================================================
   CERTIFICATION AFA
   ========================================================================= */

/* 19.2 Chiffres : « 800 CHF » et « 1 semaine » sont plus larges qu'un
   nombre, on les reduit sur petit telephone pour tenir en demi-colonne. */
@media (max-width: 560px) { .pc-stats .sb-stat-n { font-size: 24px; } }

/* 19.3 Liste des modules */
.pc-mods { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sb-ligne-2); }
.pc-mods li { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--sb-ligne-2); }
.pc-mods-tuile { width: 56px; height: 56px; border-radius: 14px; }
.pc-mods-texte { flex: 1 1 auto; min-width: 0; }
.vitrine .sb .pc-mods h3 { font-size: 16px; font-weight: 600; letter-spacing: normal; color: var(--sb-texte); }
.pc-mods p { font-size: 14px; line-height: 1.5; color: var(--sb-second); margin-top: 4px; }
.pc-mods .sb-lien { white-space: nowrap; }
@media (max-width: 560px) {
  .pc-mods li { flex-wrap: wrap; }
  .pc-mods .sb-lien { margin-left: 76px; }
}

/* 19.4 Tableau de l'examen */
.pc-ligne-titre { row-gap: 16px; align-items: end; }
.pc-ligne-texte { margin-top: 0 !important; }
.pc-table { width: 100%; margin-top: 48px; border-collapse: collapse; text-align: left; }
.pc-table thead th {
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-champagne);
  padding: 0 16px 14px 0; border-bottom: 1px solid var(--sb-ligne-2);
}
.pc-table tbody th, .pc-table td {
  padding: 20px 16px 20px 0; border-bottom: 1px solid var(--sb-ligne-2); vertical-align: top;
  font-size: 15px; line-height: 1.55; color: var(--sb-second); font-weight: 400;
}
.pc-table tbody th { color: var(--sb-texte); font-weight: 600; width: 30%; }
.pc-table td:nth-child(2) { width: 18%; color: var(--sb-liste); }
.pc-table td.ca-frais { white-space: nowrap; color: var(--sb-texte); font-weight: 600; text-align: right; padding-right: 0; }
.pc-table thead th:last-child { text-align: right; padding-right: 0; }
.pc-table-mod { display: flex; align-items: center; gap: 14px; }
.pc-table-tuile { width: 40px; height: 40px; border-radius: 11px; }
.pc-sous-table { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 24px; }
.pc-note { font-size: 14px; line-height: 1.6; color: var(--sb-discret); max-width: 64ch; }
/* Plusieurs notes sous le tableau (TVA, licence, examen Vie) : une colonne. */
.pc-notes { display: flex; flex-direction: column; gap: 10px; flex: 1 1 32rem; }
.pc-notes .pc-note { margin: 0; }
@media (max-width: 860px) {
  /* Chaque cellule porte son libelle (::before), la ligne d'en-tete devient inutile. */
  .pc-table thead { display: none; }
  .pc-table, .pc-table tbody, .pc-table tr, .pc-table tbody th, .pc-table td { display: block; width: 100% !important; }
  .pc-table tr { padding: 20px 0; border-bottom: 1px solid var(--sb-ligne-2); }
  .pc-table tbody th, .pc-table td { border: 0; padding: 4px 0; text-align: left !important; }
  .pc-table tbody th { margin-bottom: 8px; }
  .pc-table td::before { content: attr(data-col) " · "; color: var(--sb-champagne); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
}

/* 19.5 Ce qu'il faut savoir : accordeon avec icones */
.pc-savoir { border-top: 1px solid var(--sb-ligne-2); }
.pc-savoir details { border-bottom: 1px solid var(--sb-ligne-2); padding: 20px 0; }
.pc-savoir summary { display: flex; align-items: center; gap: 20px; cursor: pointer; list-style: none; min-height: 44px; }
.pc-savoir summary::-webkit-details-marker { display: none; }
.vitrine .sb .pc-savoir h3 { flex: 1 1 auto; font-size: 18px; font-weight: 500; letter-spacing: normal; color: var(--sb-texte); margin: 0; }
.pc-savoir-ico {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(229, 192, 110, .35); color: var(--sb-champagne);
}
.pc-savoir .sb-chev { transition: transform .3s ease; color: var(--sb-second); display: inline-flex; }
.pc-savoir details[open] .sb-chev { transform: rotate(180deg); }
.pc-savoir-corps { padding: 12px 0 4px 64px; }
.pc-savoir-corps p { font-size: 15px; line-height: 1.6; color: var(--sb-second); max-width: 60ch; }
.pc-savoir-corps p + p { margin-top: 12px !important; }
.pc-savoir-corps .sb-lien { margin-top: 16px; }
@media (max-width: 560px) { .pc-savoir-corps { padding-left: 0; } }

/* Jauge du seuil : 60 % officiel (orange), 80 % conseille (champagne). */
.pc-jauge { position: relative; margin: 28px 0 8px; padding-bottom: 30px; max-width: 520px; }
.pc-jauge-barre { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pc-jauge-off { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; background: rgba(230, 107, 60, .35); }
.pc-jauge-cons { position: absolute; left: 60%; top: 0; bottom: 0; width: 20%; background: var(--sb-champagne); }
.pc-jauge-rep { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; }
.pc-rep-60 { left: calc(60% - 1px); background: var(--sb-marque); }
.pc-rep-80 { left: calc(80% - 1px); background: var(--sb-champagne); }
.pc-jauge-lib { position: absolute; top: 20px; font-size: 13px; white-space: nowrap; transform: translateX(-50%); }
.pc-lib-60 { left: 60%; color: var(--sb-orange); }
.pc-lib-80 { left: 80%; color: var(--sb-champagne); }
/* Petit telephone : les deux etiquettes s'alignent a gauche de leur repere,
   sur deux lignes, pour ne jamais toucher le bord droit. */
@media (max-width: 560px) {
  .pc-jauge { padding-bottom: 52px; }
  .pc-jauge-lib { transform: translateX(calc(-100% + 6px)); }
  .pc-lib-80 { top: 42px; }
}

/* =========================================================================
   A PROPOS
   ========================================================================= */
.pa-chapeau { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; color: var(--sb-orange); margin-top: 20px !important; max-width: 34ch; }
.pa-filet { border: 0; border-top: 1px solid var(--sb-ligne-2); margin: 0; }
.pa-histoire { padding-top: 72px; }
.pa-histoire-gauche { position: sticky; top: 32px; align-self: start; }
.vitrine .sb .pa-h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; color: var(--sb-texte); margin: 0; }
.pa-trait { display: block; width: 48px; height: 2px; background: var(--sb-marque); margin: 24px 0; }
.pa-citation { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--sb-texte); }
.pa-recit p { font-size: 18px; line-height: 1.75; color: var(--sb-recit); }
.pa-recit p + p { margin-top: 22px !important; }
@media (max-width: 860px) {
  .pa-histoire { padding-top: 48px; }
  .pa-histoire-gauche { position: static; }
}

/* 20.3 Frise du parcours */
.pa-frise {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 28px;
  margin: 48px 0 0 !important; padding: 0; list-style: none;
}
.pa-frise::before {
  content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, rgba(230, 107, 60, .6), rgba(230, 107, 60, .15));
}
.pa-frise li { position: relative; }
.pa-point {
  display: block; width: 13px; height: 13px; border-radius: 50%; position: relative; z-index: 1;
  border: 1.5px solid var(--sb-marque); background: var(--sb-fond);
}
.pa-frise li.est-actuel .pa-point { background: var(--sb-marque); box-shadow: 0 0 0 5px rgba(230, 107, 60, .18); }
.pa-frise-sur { margin: 18px 0 8px !important; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-champagne); }
.pa-frise-texte { font-size: 15px; line-height: 1.55; color: var(--sb-intro); }
@media (max-width: 860px) { .pa-frise::before { display: none; } }

/* ---------- Mode clair : details en dur --------------------------------- */
.theme-clair .sb-encadre { border-color: rgba(140, 100, 20, .3); }
.theme-clair .sb-encadre-ico, .theme-clair .pf-examen, .theme-clair .pf-inclus-ico, .theme-clair .pc-savoir-ico { border-color: rgba(140, 100, 20, .35); }
.theme-clair .pf-toutes { border-color: rgba(140, 100, 20, .35); }
.theme-clair .pc-jauge-barre { background: rgba(27, 23, 20, .08); }
.theme-clair .pf-parcours, .theme-clair .pf-vehicule { box-shadow: 0 1px 2px rgba(27, 23, 20, .04); }
