/* ══════════════════════════════════════════════════════
   IFRAME MOBILE — 600px de large et moins
   Référence : iframe de 390×900
   ----------------------------------------------------------
   Un bloc par nombre de pilotes (rows-1 … rows-15).
   Chaque bloc est COMPLET et indépendant : modifier un
   bloc ne change que cet affichage avec ce nombre de
   pilotes. Ne supprime pas de ligne : change la valeur.

   Bloc @media (max-width: 600px) : remplace entièrement
   les valeurs TV et ordinateur. Chaque ligne passe sur
   2 niveaux (disposition dans table.css).

   Les lignes se partagent toujours la hauteur disponible.
   Plus de 15 pilotes → bloc rows-15.

   ── Variables ───────────────────────────────────────
   Lignes
     --row-min-height    hauteur mini d'une ligne (sinon le tableau défile)
     --row-max-height    hauteur maxi d'une ligne (none = pas de limite)
     --row-padding       marges intérieures d'une ligne (haut droite bas gauche)
     --header-padding    marges de la ligne des titres de colonnes
     --col-gap           espace entre les colonnes
     --line-gap          espace entre les 2 niveaux d'une ligne
     --head-line-gap     idem pour les titres de colonnes
   Colonnes
     --col-pos-width     largeur de la colonne position
   Titres de colonnes (POS., PILOTE…)
     --head-size / --head-spacing   taille / espacement des lettres
   Position
     --dot-size          carré de difficulté
     --dot-gap           espace carré ↔ numéro
     --pos-size          numéro de position
   Pilote
     --name-size         pseudo du pilote
     --team-size         écurie [ABC]
     --driver-gap        espace pseudo ↔ écurie ↔ titres
     --badge-size        badges de titres (taille affichée)
     --badge-font-size   lettre dans le badge (si pas d'image)
     --badge-year-size   année du titre posée sur le badge (Alien 2025…)
     --titles-gap        espace entre badges
   Niveau
     --level-size / --level-padding / --level-min-width
   Temps
     --time-size         meilleur temps
     --total-size        temps total
   ══════════════════════════════════════════════════════ */

@media (max-width: 600px) {

    /* ── 1 pilote ──────────────────────────────────── */
    #table.rows-1 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 2 pilotes ─────────────────────────────────── */
    #table.rows-2 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 3 pilotes ─────────────────────────────────── */
    #table.rows-3 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 4 pilotes ─────────────────────────────────── */
    #table.rows-4 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 5 pilotes ─────────────────────────────────── */
    #table.rows-5 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 6 pilotes ─────────────────────────────────── */
    #table.rows-6 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 7 pilotes ─────────────────────────────────── */
    #table.rows-7 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 8 pilotes ─────────────────────────────────── */
    #table.rows-8 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 9 pilotes ─────────────────────────────────── */
    #table.rows-9 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 10 pilotes ────────────────────────────────── */
    #table.rows-10 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 11 pilotes ────────────────────────────────── */
    #table.rows-11 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 12 pilotes ────────────────────────────────── */
    #table.rows-12 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 13 pilotes ────────────────────────────────── */
    #table.rows-13 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 14 pilotes ────────────────────────────────── */
    #table.rows-14 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

    /* ── 15 pilotes ────────────────────────────────── */
    #table.rows-15 {
        /* Lignes */
        --row-min-height: 58px;
        --row-max-height: none;
        --row-padding:    8px 16px 8px 14px;
        --header-padding: 6px 16px 6px 14px;
        --col-gap:        12px;
        --line-gap:       4px;
        --head-line-gap:  3px;

        /* Colonne position (les autres s'adaptent) */
        --col-pos-width:   46px;

        /* Titres de colonnes */
        --head-size:    8px;
        --head-spacing: 1px;

        /* Position */
        --dot-size: 8px;
        --dot-gap:  6px;
        --pos-size: 26px;

        /* Pilote */
        --name-size:       19px;
        --team-size:       16px;
        --driver-gap:      6px;
        --badge-size:      27px;
        --badge-font-size: 16px;
        --badge-year-size: 8px;
        --titles-gap:      4px;

        /* Niveau */
        --level-size:      12px;
        --level-padding:   3px 8px;
        --level-min-width: 38px;

        /* Temps */
        --time-size:  16px;
        --total-size: 12px;
    }

}
