/* =========================================================
   TaPrépa · DA « Fiche de révision » (17/10/2026)
   Reproduit la trame de Yanis : docs/da-fiche-revision/
   Trame Fiche de révision.pdf. Un seul en-tête pour TOUS les
   cours (français, maths, pompier) : window.FicheDA.entete().
   ========================================================= */
:root{
  --fda-bleu:#174f86;
  --fda-rouge-1:#d03846;
  --fda-rouge-2:#fa0f34;
  --fda-gris:#d2d6df;
  --fda-gris-2:#d6d8dc;
}

.fda{ background:#fff; color:#141a27; border-radius:18px; padding:26px 28px 8px; margin:0 0 22px;
      box-shadow:0 1px 0 rgba(20,26,39,.04), 0 10px 30px -18px rgba(20,26,39,.25); }

.fda__logo{ display:block; height:30px; width:auto; margin:0 0 18px; }

/* ligne du haut : bandeau bleu en biseau + triangle rouge */
.fda__haut{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:0 0 30px; }
.fda__bandeau{
  display:inline-block; background:var(--fda-bleu); color:#fff;
  font-weight:600; font-size:.95rem; letter-spacing:.06em; text-transform:uppercase;
  padding:13px 64px 13px 20px;
  clip-path:polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
}
.fda__coin{
  width:96px; height:92px; flex:none;
  background:linear-gradient(120deg, var(--fda-rouge-1), var(--fda-rouge-2));
  clip-path:polygon(0 0, 100% 0, 100% 100%);
}

/* bloc titre : bleu en biseau, triangle gris, pastille du logo */
.fda__bloc{ position:relative; margin-top:26px; }
.fda__titre-zone{
  position:relative; min-height:112px;
  background:linear-gradient(100deg, #fff 46%, var(--fda-gris-2) 82%);
}
.fda__titre-bleu{
  position:absolute; inset:0;
  background:var(--fda-bleu);
  clip-path:polygon(0 0, 48% 0, 80% 100%, 0 100%);
}
.fda__titre{
  position:relative; margin:0; padding:38px 20px 30px 22%;
  max-width:68%; color:#fff;
  font-size:1.7rem; font-weight:600; line-height:1.15; letter-spacing:.01em; text-transform:uppercase;
}
.fda__pastille{
  position:absolute; top:-30px; left:26px; z-index:2;
  width:62px; height:62px; border-radius:50%;
  background:#fff; border:3px solid var(--fda-bleu);
  display:grid; place-items:center; box-shadow:0 4px 12px -4px rgba(20,26,39,.35);
}
.fda__pastille img{ width:40px; height:40px; }
.fda__source{
  margin:0; padding:14px 20px; background:var(--fda-gris);
  text-align:center; font-size:1.05rem; font-weight:400; color:#141a27;
}

@media (max-width:760px){
  .fda{ padding:18px 16px 4px; border-radius:14px; }
  .fda__logo{ height:24px; margin-bottom:14px; }
  .fda__haut{ margin-bottom:22px; }
  .fda__bandeau{ font-size:.8rem; padding:11px 50px 11px 14px; }
  .fda__coin{ width:64px; height:60px; }
  .fda__titre-zone{ min-height:92px; }
  .fda__titre-bleu{ clip-path:polygon(0 0, 62% 0, 88% 100%, 0 100%); }
  .fda__titre{ font-size:1.2rem; padding:34px 14px 22px 20%; max-width:80%; }
  .fda__pastille{ width:50px; height:50px; top:-24px; left:16px; }
  .fda__pastille img{ width:32px; height:32px; }
  .fda__source{ font-size:.92rem; padding:11px 14px; }
}
