/* ============================================================
   ESIDEM · Fiches de formation au thème cobalt
   LO Digital Agency, 13 septembre 2026.

   Aligne le contenu des fiches WooCommerce sur le site statique
   esidem.com : mêmes jetons, mêmes finitions, mêmes polices.

   Portée : uniquement ce qui vit dans .esd-fiche, plus le bloc
   d'achat .esd-buy-row. Rien d'autre sur le site n'est touché.

   Les sélecteurs sont doublés (.esd-fiche.esd-fiche) pour passer
   devant le CSS additionnel du personnalisateur, qui est écrit
   plus loin dans la page. Aucun !important n'est nécessaire.

   Réversible : retirer ce fichier et la ligne d'appel dans
   functions.php remet la fiche exactement dans son état d'avant.
   ============================================================ */

/* ---------- 1. les jetons du site statique ---------- */
.esd-fiche.esd-fiche {
  --blue: #0064AA;
  --accent-mid: #00518A;
  --accent-night: #04243B;
  --gold: #FBBB21;
  --gold-texte: #96650B;          /* ambre lisible sur fond clair, 4,7:1 */
  --amber-tint: rgba(251, 187, 33, .12);
  --amber-line: rgba(251, 187, 33, .40);
  --ink: #283246;
  --body: rgba(40, 50, 70, .70);
  --gray: rgba(40, 50, 70, .50);
  --line: rgba(40, 50, 70, .14);
  --hairline: rgba(40, 50, 70, .08);
  --soft: #F2F7FB;
  --bevel: 22px;
  --display: 'DM Sans', system-ui, sans-serif;
  --texte: 'Maven Pro', system-ui, sans-serif;

  font-family: var(--texte);
  color: var(--body);
  font-size: 17px;
  line-height: 1.62;
}

.esd-fiche.esd-fiche p { color: var(--body); }
.esd-fiche.esd-fiche strong { color: var(--ink); font-weight: 700; }
.esd-fiche.esd-fiche a { color: var(--blue); }

/* ---------- 2. les titres, signature cobalt ---------- */
.esd-fiche.esd-fiche h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 1.2vw + 18px, 32px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 44px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.esd-fiche.esd-fiche h2::before {
  content: '';
  width: 14px;
  height: 9px;
  background: var(--gold);
  transform: skewX(-20deg);
  flex: 0 0 auto;
  position: relative;
  top: -.28em;
}
/* le trait ambre sous le titre faisait doublon avec le repère en biseau */
.esd-fiche.esd-fiche h2::after { display: none; }

.esd-fiche.esd-fiche h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 26px 0 10px;
}

/* ---------- 3. le bandeau de faits, en tuiles biseautées ---------- */
.esd-fiche.esd-fiche .esd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 0 0 34px;
}
.esd-fiche.esd-fiche .esd-fact {
  background: var(--soft);
  border: 0;
  border-top: 3px solid var(--gold);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, 0 100%);
  padding: 16px 18px 18px;
}
.esd-fiche.esd-fiche .esd-fact .l {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.esd-fiche.esd-fiche .esd-fact .v {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blue);
  line-height: 1.2;
}

/* ---------- 4. les listes, puce ambre ---------- */
.esd-fiche.esd-fiche .esd-list { list-style: none; padding: 0; margin: 0 0 18px; }
.esd-fiche.esd-fiche .esd-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-bottom: 1px solid var(--hairline);
}
.esd-fiche.esd-fiche .esd-list li:last-child { border-bottom: 0; }
.esd-fiche.esd-fiche .esd-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.02em;
  width: 11px;
  height: 7px;
  background: var(--gold);
  transform: skewX(-20deg);
}

/* ---------- 5. les modules du programme ---------- */
.esd-fiche.esd-fiche .esd-modules { display: grid; gap: 12px; margin: 0 0 30px; }
.esd-fiche.esd-fiche .esd-mod {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  padding: 15px 18px 16px;
}
.esd-fiche.esd-fiche .esd-mod-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.esd-fiche.esd-fiche .esd-mod .num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-night);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0;
}
.esd-fiche.esd-fiche .esd-mod .mt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  flex: 1 1 auto;
}
.esd-fiche.esd-fiche .esd-mod .pill {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-texte);
  background: var(--amber-tint);
  border: 1px solid var(--amber-line);
  padding: 3px 10px;
  border-radius: 0;
  flex: 0 0 auto;
}
.esd-fiche.esd-fiche .esd-mod p { margin: 0; font-size: 15.5px; }

/* ---------- 6. le tableau récapitulatif ---------- */
.esd-fiche.esd-fiche .esd-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.esd-fiche.esd-fiche .esd-table tr { border: 0; }
.esd-fiche.esd-fiche .esd-table td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  vertical-align: top;
  font-size: 15.5px;
}
.esd-fiche.esd-fiche .esd-table td:first-child {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  width: 210px;
  white-space: nowrap;
}
.esd-fiche.esd-fiche .esd-table td:last-child { color: var(--ink); font-weight: 500; }

/* ---------- 7. le ratio pratique et théorie ---------- */
.esd-fiche.esd-fiche .esd-ratio { border-top: 3px solid var(--blue); padding-top: 14px; }
.esd-fiche.esd-fiche .esd-ratio .t,
.esd-fiche.esd-fiche .esd-ratio .p {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
}

/* ---------- 8. le titre de section du récapitulatif ---------- */
.esd-fiche.esd-fiche .esd-summary-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---------- 9. mobile ---------- */
@media (max-width: 640px) {
  .esd-fiche.esd-fiche { font-size: 16px; }
  .esd-fiche.esd-fiche h2 { margin-top: 34px; }
  .esd-fiche.esd-fiche .esd-facts { grid-template-columns: 1fr; }
  .esd-fiche.esd-fiche .esd-table td:first-child { width: auto; white-space: normal; }
  .esd-fiche.esd-fiche .esd-mod .mt { flex: 1 1 100%; }
}
