/* ============================================================
   VARIABLES & BASE
   ============================================================ */
:root {
    --bleu: #0B3D91;
    --bleu-clair: #e9f0ff;
    --gris-clair: #f8f9fa;
    --radius: 12px;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #f4f6f9;
    /* padding-top géré dynamiquement par JS */
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background-color: var(--bleu);
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff !important;
}

.club-logo {
    height: 120px;
    transition: 0.3s ease;
}

.navbar-brand span {
    font-size: 1.8rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .club-logo {
        height: 40px;
    }
    .navbar-brand span {
        font-size: 1.1rem;
    }
}

/* ============================================================
   BANDEAU LOGOS OBLIGATOIRES (sous navbar)
   ============================================================ */
.bandeau-obligatoire {
    position: fixed;
    top: var(--navbar-height, 130px); /* mis à jour par JS */
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1019; /* sous la navbar (1030) mais au-dessus du contenu */
}

.bandeau-obligatoire img {
    height: 50px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .bandeau-obligatoire img {
        height: 35px;
    }
}

/* ============================================================
   CONTENU PAGE
   ============================================================ */
.page-content {
    padding-top: 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(rgba(11,61,145,0.5), rgba(11,61,145,0.5)),
                url('../img/hero.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    margin-bottom: 20px;
}

.card-modern {
    border: none;
    border-radius: 15px;
    transition: 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card iframe {
    display: block;
    margin: 0 auto;
    max-width: 500px;
}

.card-modern a {
    color: var(--bleu);
    text-decoration: none;
}

.card-modern a:hover {
    text-decoration: underline;
}

.card-modern input,
.card-modern select {
    border-radius: 8px;
}

/* ============================================================
   TITRES DE SECTION
   ============================================================ */
.section-title {
    font-weight: 700;
    color: var(--bleu);
    border-left: 4px solid var(--bleu);
    padding-left: 10px;
    margin-bottom: 25px;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
form label {
    font-weight: 500;
}

.btn-primary {
    padding: 10px 25px;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: var(--bleu);
    color: white;
}

/* ============================================================
   MATCHS & RÉSULTATS
   ============================================================ */
.team-home {
    color: var(--bleu);
    font-weight: bold;
}

.match-card {
    background-color: var(--gris-clair);
    border-left: 5px solid var(--bleu);
    transition: 0.2s ease;
}

.match-card:hover {
    background-color: var(--bleu-clair);
}

.match-team {
    font-size: 16px;
    color: var(--bleu);
}

.match-date {
    font-size: 14px;
    color: #666;
}

.match-score {
    font-weight: 600;
    margin-top: 5px;
}

.result-card {
    background-color: var(--gris-clair);
    border-left: 5px solid var(--bleu);
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.score {
    font-weight: bold;
    font-size: 18px;
}

.result-badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.victory { background-color: #28a745; color: white; }
.draw    { background-color: #0d6efd; color: white; }
.loss    { background-color: #dc3545; color: white; }

/* Slider résultats */
.results-slider {
    position: relative;
    min-height: 400px;
}

.result-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.result-slide.active {
    opacity: 1;
}

.result-slide::after {
    content: "\2022  \2022  \2022";
    display: block;
    text-align: center;
    margin-top: 10px;
    opacity: 0.3;
}

/* ============================================================
   BRÈVES
   ============================================================ */
.breves-container {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.breve-item {
    position: absolute;
    width: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.breve-item.active {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   ANNIVERSAIRES
   ============================================================ */
.anniv-item {
    background-color: var(--gris-clair);
    padding: 10px;
    border-radius: 10px;
    border-left: 4px solid var(--bleu);
    transition: 0.2s ease;
}

.anniv-item:hover {
    background-color: var(--bleu-clair);
}

.anniv-slider {
    position: relative;
    height: 70px;
}

.anniv-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}

.anniv-slide.active {
    opacity: 1;
}

/* ============================================================
   SPONSORS
   ============================================================ */

/* Page planning — logos cliquables */
.sponsor-link {
    display: inline-block;
    transition: 0.2s ease;
}

.sponsor-link:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.sponsor-img {
    max-height: 200px;
    max-width: 400px;
    object-fit: contain;
}

/* Bandeau défilant sponsors (accueil) */
.sponsors-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll-sponsors linear infinite;
    animation-duration: calc(6s * var(--nb-sponsors, 5));
    width: max-content;
}


.sponsors-scroll-img {
    height: 150px;      /* était 80px */
    max-width: 300px;   /* était 180px */
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sponsors-scroll-img {
        height: 100px;    /* était 55px */
        max-width: 200px; /* était 120px */
    }
}

@keyframes scroll-sponsors {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--bleu);
}

/* ============================================================
   TABLES (mobile)
   ============================================================ */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
}

/* Dans planning2.php uniquement */
.mois-nav .btn {
    border-width: 1px;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
}

.salle-bleue  { background-color: #D4D4F6 !important; }
.salle-verte  { background-color: #d4f6d4 !important; }
.salle-ext    { background-color: #f8f9fa !important; }


.table-hover tbody tr.salle-bleue,
.table-hover tbody tr.salle-bleue:hover { 
    background-color: #D4D4F6 !important; 
}

.table-hover tbody tr.salle-verte,
.table-hover tbody tr.salle-verte:hover { 
    background-color: #d4f6d4 !important; 
}

.table tbody td.salle-bleue { 
    background-color: #D4D4F6 !important; 
}

.table tbody td.salle-verte { 
    background-color: #d4f6d4 !important; 
}

/* Séparateur de semaine mobile */
.separateur-semaine {
    border-top: 3px solid #0B3D91;
    margin: 20px 0 15px 0;
    position: relative;
}