html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    position: relative;
}

.banner-logo {
    height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.footer-main {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 40px 0 25px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

    .footer-main h5 {
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

.footer-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 7px;
    }

    .footer-links a {
        color: #495057;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.footer-disclaimer {
    color: #6c757d;
    line-height: 1.5;
}

.footer-copyright {
    margin-top: 15px;
    font-weight: 500;
}

/* Barre située sous la bannière */
.top-links-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: white;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}


/* Lien de chaque colonne */
.top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}


    /* Pictogramme */
    .top-link i {
        font-size: 1.4rem;
    }


    /* Survol */
    .top-link:hover {
        background-color: #f5f5f5;
        color: #000;
    }
@media (max-width: 576px) {

    .top-link {
        gap: 5px;
        padding: 10px 3px;
        font-size: 0.8rem;
    }

        .top-link i {
            font-size: 1.1rem;
        }
}

.language-selector {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 130px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-flag {
    width: 28px;
    height: 19px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.euro-numero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .euro-numero-link:hover {
        transform: scale(1.15);
        filter: brightness(1.15) drop-shadow(0 3px 5px rgba(0,0,0,0.25));
    }

    .euro-numero-link:active {
        transform: scale(0.95);
    }

    .euro-numero-link:focus-visible {
        outline: 3px solid #0d6efd;
        outline-offset: 3px;
    }

@media (prefers-reduced-motion: reduce) {
    .euro-numero-link {
        transition: none;
    }
}

/* Boule principale sur la page de statistiques */
.numero-detail-boule {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 35px;
}

    .numero-detail-boule .euro-boule {
        width: 120px;
        height: 120px;
    }

/* Étoile principale sur la page de statistiques */
.etoile-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 35px;
}

    .etoile-detail .euro-etoile {
        width: 120px;
        height: 120px;
    }

/* Grille des numéros et étoiles */
.statistiques-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}

    /* Taille des SVG */
    .statistiques-grid .euro-boule,
    .statistiques-grid .euro-etoile {
        width: 60px;
        height: 60px;
    }

/* Tablette */
@media (max-width: 991px) {
    .statistiques-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .statistiques-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

        .statistiques-grid .euro-boule,
        .statistiques-grid .euro-etoile {
            width: 48px;
            height: 48px;
        }
}


/* ================================
   AIMyMillions - Home
================================ */

.home-hero {
    background: linear-gradient(135deg, #081c44, #1456a3);
    color: #fff;
}

    .home-hero .lead {
        max-width: 800px;
        margin: 0 auto;
    }

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 14px;
    border-left: 5px solid #1769c2;
}

/* Boules et étoiles */

.home-page .euro-numero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform .2s ease;
}

    .home-page .euro-numero-link:hover {
        transform: translateY(-3px);
    }

.home-page .draw-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.home-page .draw-separator {
    width: 20px;
}

.home-page .draw-numbers .euro-boule,
.home-page .draw-numbers .euro-etoile {
    width: 56px;
    height: 56px;
}

/* Indicateurs */

.stat-card {
    height: 100%;
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    background: #f5f8fd;
    border: 1px solid #e3eaf5;
}

.stat-value {
    font-size: 2rem;
    font-weight: 750;
    color: #1456a3;
}

.stat-label {
    font-size: .9rem;
    color: #64748b;
}

/* Classements */

.ranking-card {
    height: 100%;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

    .ranking-card h3 {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

.ranking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: .9rem;
}

    .ranking-row:last-child {
        border-bottom: none;
    }

    .ranking-row .euro-boule,
    .ranking-row .euro-etoile {
        width: 38px;
        height: 38px;
    }

    .ranking-row strong {
        margin-left: auto;
        white-space: nowrap;
    }

/* Grilles */

.number-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: #f5f8fd;
    border-radius: 12px;
}

    .number-grid .euro-boule,
    .number-grid .euro-etoile {
        width: 52px;
        height: 52px;
    }

.star-grid {
    background: #fff9e7;
}

/* Probabilités */

.probability-section {
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    background: #0c2859;
    color: white;
}

.probability-value {
    font-size: clamp(1.7rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffcf32;
}

/* Publicités */

.ad-slot {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px dashed #d5dce5;
    border-radius: 8px;
    color: #94a3b8;
    font-size: .8rem;
}

/* Responsive */

@media (max-width: 576px) {
    .home-page .draw-numbers .euro-boule,
    .home-page .draw-numbers .euro-etoile {
        width: 44px;
        height: 44px;
    }

    .number-grid {
        gap: 8px;
        padding: 14px;
    }

        .number-grid .euro-boule,
        .number-grid .euro-etoile {
            width: 43px;
            height: 43px;
        }

    .ranking-card {
        padding: 16px;
    }

    .ranking-row {
        gap: 7px;
    }
}

.navigation-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .navigation-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        border-color: #0d6efd;
    }

    .navigation-card:focus-visible {
        outline: 3px solid #0d6efd;
        outline-offset: 3px;
    }

    .navigation-card .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

@media (prefers-reduced-motion: reduce) {
    .navigation-card {
        transition: none;
    }

        .navigation-card:hover {
            transform: none;
        }
}
.footer-main .footer-links a,
.footer-main .footer-links a:link,
.footer-main .footer-links a:visited {
    color: #6c757d;
    text-decoration: none;
}

    .footer-main .footer-links a:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

/* ========================================
   Cooccurrences des numéros et étoiles
   ======================================== */

.cooccurrences-section .cooccurrence-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .cooccurrences-section .cooccurrence-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

.cooccurrences-section .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
}

/* Conteneur des SVG */
.cooccurrence-svg {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    /* Dimensionnement des boules et étoiles */
    .cooccurrence-svg svg {
        display: block;
        width: 64px !important;
        height: 64px !important;
        max-width: 100%;
        position: static;
    }

/* Nombre de tirages communs */
.cooccurrence-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

/* Libellé */
.cooccurrence-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Adaptation mobile */
@media (max-width: 576px) {
    .cooccurrence-svg {
        width: 60px;
        height: 60px;
    }

        .cooccurrence-svg svg {
            width: 54px !important;
            height: 54px !important;
        }
}

/* Résultats EuroMillions */

.tirage-row .euro-numero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    text-decoration: none;
}

.tirage-row .euro-boule,
.tirage-row .euro-etoile {
    display: block;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.tirage-row .euro-numero-link:hover {
    transform: scale(1.12);
    transition: transform 0.15s ease;
}

.tirage-row {
    min-height: 75px;
}
