
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: "Inter", "Segoe UI", sans-serif;
            background: #fff7f8;
            color: #4b3d40;
            line-height: 1.6;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px 80px;
        }

        .hero {
            text-align: center;
            margin-bottom: 50px;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 10px;
            color: #c97d8d;
            font-weight: 700;
            letter-spacing: -1px;
        }

        .hero p {
            color: #8f6f77;
            font-size: 1.1rem;
        }

        .baby-card {
            background: white;
            border-radius: 24px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(201, 125, 141, 0.08);
            margin-bottom: 30px;
            text-align: center;
        }

        .baby-name {
            font-size: 2rem;
            color: #c97d8d;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .baby-stats {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
            color: #7b6469;
        }

        .section {
            background: white;
            border-radius: 24px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(201, 125, 141, 0.08);
        }

        .section h2 {
            margin-top: 0;
            color: #c97d8d;
            font-size: 1.6rem;
            margin-bottom: 20px;
        }

        .rules-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
        }

        .rule {
            background: #fff1f4;
            padding: 18px;
            border-radius: 16px;
            border: 1px solid #f4d9df;
        }

        .podium {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
        }

        .podium-card {
            border-radius: 24px;
            padding: 30px;
            text-align: center;
            background: linear-gradient(180deg, #fff, #fff6f8);
            border: 1px solid #f0d9de;
            transition: 0.25s ease;
        }

        .podium-card:hover {
            transform: translateY(-4px);
        }

        .podium-card.gold {
            border: 2px solid #e8c36a;
        }

        .podium-card.silver {
            border: 2px solid #d8d8d8;
        }

        .podium-card.bronze {
            border: 2px solid #d8a17b;
        }
        /* 🧭 header podium */
        
        
        .podium-header{
            display:flex;
            justify-content:space-between;
            align-items:center;
            margin-bottom:15px;
            flex-wrap:wrap;
            gap:10px;
        }

        /* 🔘 toggle */
        .toggle-switch{
            display:flex;
            gap:8px;
        }

        .toggle-switch button{
            border:1px solid #e5b7c2;
            background:#fff;
            color:#c97d8d;
            padding:8px 14px;
            border-radius:999px;
            cursor:pointer;
            font-weight:600;
            transition:0.2s;
        }

        .toggle-switch button.active{
            background:#c97d8d;
            color:#fff;
        }

                /* 📦 blocs internes propres */
        .cell-block{
            display:flex;
            flex-direction:column;
            gap:4px;
            white-space:nowrap; /* 👈 empêche les retours à la ligne internes */
        }

        /* 📊 tableau fluide */
        table{
            width:100%;
            border-collapse:collapse;
            table-layout:auto;
        }

        /* 👶 prénoms plus compacts */
        td:nth-child(4){
            max-width:240px;
        }

        td:nth-child(4) .tag{
            white-space:nowrap;
        }

        .rank {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .participant {
            font-size: 1.4rem;
            font-weight: 700;
            color: #5d4b4f;
        }

        .score {
            margin: 12px 0;
            color: #c97d8d;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .details {
            color: #7c666b;
            font-size: 0.95rem;
        }

        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            gap: 15px;
            flex-wrap: wrap;
        }

        button {
            border: none;
            background: #c97d8d;
            color: white;
            padding: 12px 18px;
            border-radius: 14px;
            cursor: pointer;
            font-weight: 600;
            transition: 0.2s ease;
        }

        button:hover {
            background: #b86b7c;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            text-align: left;
            padding: 14px;
            background: #fff1f4;
            color: #9a6470;
            font-size: 0.9rem;
        }

        td {
            padding: 16px 14px;
            border-bottom: 1px solid #f3e2e6;
            vertical-align: top;
            font-size: 0.95rem;
        }

        tr:hover {
            background: #fff9fa;
        }

        .tag {
            display: inline-block;
            background: #fff1f4;
            border: 1px solid #f0d7de;
            border-radius: 999px;
            padding: 4px 10px;
            margin: 3px;
            font-size: 0.8rem;
        }

        .footer {
            text-align: center;
            margin-top: 50px;
            color: #9a7f86;
            font-size: 0.95rem;
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.2rem;
            }

            table {
                font-size: 0.85rem;
            }

            .baby-stats {
                flex-direction: column;
                gap: 10px;
            }
        }


        @media (max-width: 768px){

    table{
        display:block;
        overflow-x:auto; /* 🔥 scroll propre mobile */
        white-space:nowrap;
    }

    .cell-block{
        font-size:0.85rem;
    }

    td{
        vertical-align:top;
    }


    /* on masque l'ancien header de tableau */
    table thead {
        display: none;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        background: white;
        margin-bottom: 15px;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        padding: 15px;
    }

    td {
        border: none;
        padding: 8px 0;
    }

    /* numéro + nom */
    td:nth-child(1),
    td:nth-child(2) {
        font-weight: 700;
        font-size: 1rem;
    }

    /* pronostic + jour J deviennent blocs aérés */
    td:nth-child(3),
    td:nth-child(5) {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 0.9rem;
    }

    /* prénoms en wrap propre */
    td:nth-child(4) {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
         max-width:440px;
    }

    /* points */
    td:nth-child(6) {
        margin-top: 10px;
        font-size: 1.1rem;
    }
}