/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Présentation Brevet
   Paliers : 960 / 700 / 480
═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   1400px — grand écran / TV
══════════════════════════════════════════ */
@media (min-width: 1400px) {
  .cover-img-wrap { max-width: 320px; }
}

/* ══════════════════════════════════════════
   960px — tablette paysage / petit laptop
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .slide {
    overflow-y: auto;
    justify-content: flex-start;
    padding: 56px 40px 80px;
  }

  /* Cover */
  .cover-layout { grid-template-columns: 180px 1fr; gap: 22px; align-items: start; }
  .identity-card { padding: 16px 12px; gap: 8px; }
  .id-name        { font-size: 1.25rem; }
  .id-name strong { font-size: 1.55rem; }
  .cover-img-wrap { max-width: 380px; }

  h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 10px; }
  h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
  .cover-sub  { font-size: 0.96rem; margin-bottom: 18px; }

  /* Intro */
  .intro-layout  { grid-template-columns: 1fr; gap: 14px; }
  .intro-photo   { max-height: 200px; }
  .intro-real-img { max-height: 200px; }
  .intro-img     { height: 56px; }

  /* Stats */
  .stats-row { gap: 10px; }
  .stat-card  { padding: 16px 12px; }
  .stat-num   { font-size: 2.1rem; }
  .stat-num.frac { font-size: 1.6rem; }

  /* Cartes */
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards-3  { gap: 10px; }
  .fcard    { padding: 14px 12px; }
  .fcard h3 { font-size: 0.94rem; }
  .fcard-icon     { width: 36px; height: 36px; }
  .fcard-icon svg { width: 20px; height: 20px; }

  /* Conclusion */
  .concl-card  { width: 100%; padding: 18px 22px; }
  .concl-pills { gap: 8px; }
  .pill        { font-size: 0.82rem; padding: 8px 10px; }

  /* Hello Kitty 2 : réduite */
  .hello-kitty2-svg  { width: 160px; height: 160px; }
  .hello-kitty2-wrap { bottom: -10px; right: 12px; }

  /* Bouton accueil */
  .home-btn { left: 24px; bottom: 60px; }

  /* Navigation */
  .nav-btn     { width: 44px; height: 44px; }
  .nav-btn svg { width: 20px; height: 20px; }
  .nav-btns    { bottom: 22px; right: 24px; gap: 8px; }
  .slide-dots  { bottom: 28px; }
  .kb-hint     { display: none; }
}

/* ══════════════════════════════════════════
   700px — tablette portrait / grands phones
══════════════════════════════════════════ */
@media (max-width: 700px) {
  .slide { padding: 52px 18px 100px; }

  /* Cover : tout en colonne */
  .cover-layout { grid-template-columns: 1fr; gap: 14px; }

  /* Carte identité : bande horizontale compacte */
  .identity-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 16px;
    padding: 12px 14px;
  }
  .college-badge        { flex-direction: row; }
  .badge-icon           { width: 20px; height: 20px; }
  .id-divider           { display: none; }
  .id-name              { font-size: 1rem; line-height: 1.2; }
  .id-name strong       { display: inline; font-size: 1.12rem; }
  .id-class             { font-size: 0.88rem; }
  .id-year, .id-mention { font-size: 0.72rem; }

  h1 { font-size: clamp(1.35rem, 5.5vw, 2rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.7rem); }

  .cover-sub    { font-size: 0.88rem; }
  .cover-img-wrap { max-width: 100%; }
  .eyebrow      { font-size: 0.64rem; }
  .slide-lead   { font-size: 0.85rem; }
  .slide-header { margin-bottom: 10px; }

  /* Intro */
  .intro-layout   { grid-template-columns: 1fr; gap: 10px; }
  .intro-photo    { max-height: 160px; border-radius: 12px; }
  .intro-real-img { max-height: 160px; border-radius: 12px; }
  .intro-img      { display: none; }

  /* Stats : liste verticale avec chiffre à gauche */
  .stats-row {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 8px;
  }
  .stat-card {
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    text-align: left;
  }
  .stat-num      { grid-column: 1; grid-row: 1 / 3; font-size: 1.9rem; min-height: unset; }
  .stat-num.frac { font-size: 1.4rem; }
  .stat-unit     { grid-column: 2; grid-row: 1; margin: 0; font-size: 0.72rem; align-self: end; }
  .stat-label    { grid-column: 2; grid-row: 2; font-size: 0.72rem; align-self: start; }

  /* Cartes : 1 colonne, icône à gauche */
  .cards-3,
  .cards-4 { grid-template-columns: 1fr; gap: 7px; }

  .fcard {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    padding: 11px 13px;
  }
  .fcard h3 { font-size: 0.88rem; margin: 0; line-height: 1.2; }
  .fcard-body {
    grid-template-columns: 1fr !important;
    margin-top: 2px;
  }
  .fcard-body-img { width: 100% !important; max-height: 140px; }
  .card-img { display: none; }

  /* Popup cartes : colonne unique */
  .card-popup-inner .fcard { padding: 22px; }
  .card-popup-inner .fcard-body { grid-template-columns: 1fr; }
  .card-popup-inner .fcard-body-img { width: 100%; max-height: 160px; }

  /* Conclusion */
  .concl-card    { padding: 14px 16px; }
  .concl-pills   { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
  .pill          { font-size: 0.8rem; padding: 7px 10px; }
  blockquote     { font-size: 0.86rem; padding-left: 12px; margin-bottom: 14px; }
  .opening       { font-size: 0.8rem; }
  .concl-signature { font-size: 0.77rem; margin-top: 8px; }

  /* Hello Kitty 2 : cachée sur mobile (trop encombrante) */
  .hello-kitty2-wrap { display: none; }

  /* Bouton accueil */
  .home-btn { left: 16px; bottom: 22px; width: 40px; height: 40px; border-radius: 11px; }
  .home-btn svg { width: 18px; height: 18px; }

  /* Navigation */
  .nav-btns    { right: 14px; bottom: 18px; gap: 6px; }
  .nav-btn     { width: 40px; height: 40px; }
  .nav-btn svg { width: 18px; height: 18px; }
  .slide-dots  { bottom: 24px; gap: 6px; }
  .dot         { width: 7px; height: 7px; }
  .dot.active  { width: 22px; }
  .slide-counter { top: 15px; right: 16px; font-size: 0.7rem; }
}

/* ══════════════════════════════════════════
   480px — smartphones compacts
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .slide { padding: 46px 14px 90px; }

  h1 { font-size: clamp(1.15rem, 6.5vw, 1.6rem); }
  h2 { font-size: clamp(1.1rem, 5.5vw, 1.45rem); }

  .identity-card  { gap: 5px 12px; padding: 10px 12px; }
  .id-name        { font-size: 0.9rem; }
  .id-name strong { font-size: 1rem; }

  .stat-num { font-size: 1.65rem; }

  .fcard    { padding: 9px 11px; column-gap: 9px; }
  .fcard h3 { font-size: 0.83rem; }
  .fcard-icon     { width: 30px; height: 30px; border-radius: 7px; }
  .fcard-icon svg { width: 16px; height: 16px; }

  /* Popup plein écran sur petits phones */
  .card-popup-inner { max-width: 96vw; }
  .card-popup-inner .fcard  { padding: 16px; }
  .card-popup-inner .fcard h3 { font-size: 1.1rem; }
  .card-popup-inner .fcard p  { font-size: 0.88rem; }

  .concl-card { padding: 12px; }
  blockquote  { font-size: 0.8rem; }

  /* Bouton accueil */
  .home-btn { left: 12px; bottom: 18px; width: 36px; height: 36px; border-radius: 9px; }
  .home-btn svg { width: 16px; height: 16px; }

  /* Navigation */
  .nav-btn     { width: 36px; height: 36px; }
  .nav-btn svg { width: 15px; height: 15px; }
  .nav-btns    { right: 12px; bottom: 18px; }
}
