/* ==========================================================================
   FEUILLE DE MATCH
============================================================================ */


.titre-match {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}


.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}


.match-equipe {
    width: 40%;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #f5f5f5;
    text-align: center;
}


.match-vs {
    font-size: 28px;
    font-weight:bold;
    color:#003366;
}


.bloc-info {
    background:#eef5ff;
    border-radius:8px;
    padding:15px;
    margin:20px 0;
}


.score {
    text-align:center;
    font-size:36px;
    font-weight:bold;
    color:#003366;
    margin:20px 0;
}


.compositions {
    display:flex;
    gap:20px;
    margin-top:20px;
    text-align:center;
}


.composition {
    flex:1;
    border:1px solid #cccccc;
    border-radius:8px;
    background:#fafafa;
    padding:15px;
    text-align:center;
}


.composition h3 {
    margin-top:0;
    color:#003366;
}


.bloc-texte {
    border:1px solid #cccccc;
    border-radius:8px;
    padding:15px;
    margin-top:15px;
    background:#fafafa;
}



/* ==========================================================================
   GENERAL
============================================================================ */


body {

    font-family: Arial, sans-serif;

    margin:20px;

}


h2 {

    color:#003366;

}


a {

    color:#003366;

}



/* ==========================================================================
   TABLEAUX
============================================================================ */


.table-rencontres {

    border-collapse: collapse;

    width: 100%;

}



.table-rencontres th {

    background: #003366;

    color: white;

    padding: 8px;

    text-align: center;

}



.table-rencontres td {

    border: 1px solid #cccccc;

    padding: 8px;

}



/* alternance des rencontres */

.table-rencontres tbody tr:nth-child(even) {

    background-color: #eef5ff;

}


.table-rencontres tbody tr:nth-child(odd) {

    background-color: #ffffff;

}

.club-rencontre {
    font-weight: bold;
    color: #003366;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.equipe-rencontre {
    display: inline-block;
    font-size: 1.05em;
    font-weight: bold;
    color: #003366;
    background: #eaf2ff;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 4px 0 8px 0;
}

/* ==========================================================================
   ESPACEMENT ENTRE LES RENCONTRES
============================================================================ */


.table-rencontres tr {

    transition: background-color 0.2s;

}


.table-rencontres tbody tr:hover {

    background-color: #dbeaff;

}


/* séparation légère */

.table-rencontres td {

    border-bottom: 2px solid #ffffff;

}

/* ==========================================================================
   PAGE RENCONTRES
============================================================================ */


.table-container {

    overflow-x:auto;

}


.score-rencontre {

    font-size:1.4em;

    font-weight:bold;

    color:#003366;

    text-align:center;

    white-space:nowrap;

}

.equipe-club {

    font-weight:bold;

    color:#003366;

}



/* ==========================================================================
   BOUTONS
============================================================================ */


.bouton-action {

    display:inline-block;

    padding:5px 10px;

    margin:2px;

    border-radius:5px;

    background:#eef5ff;

    text-decoration:none;

    border:1px solid #cccccc;

}


.bouton-action:hover {

    background:#003366;

    color:white;

}


.club-rencontre {
    font-weight: bold;
    color: #003366;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.equipe-rencontre {
    font-size: 0.95em;
    margin-bottom: 8px;
}


/* ==========================================================================
   MOBILE
============================================================================ */


@media (max-width:768px) {


    body {

        margin:10px;

    }


    .match-header {

        flex-direction:column;

        gap:10px;

    }


    .match-equipe {

        width:90%;

    }


    .compositions {

        flex-direction:column;

    }


}


/* ==========================================================================
   entete
============================================================================ */


table {

    border-collapse: collapse;

}


th, td {

    padding:5px;

    vertical-align:top;

}


th {

    text-align:left;

}

/* ==========================================================================
   PAGE GESTION
============================================================================ */


.titre-page {

    text-align:center;

    color:#003366;

}



.menu-gestion-cartes {

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:30px;

}



.carte-gestion {

    display:block;

    width:180px;

    padding:20px;

    text-align:center;

    background:#eef5ff;

    border:1px solid #cccccc;

    border-radius:10px;

    text-decoration:none;

    color:#003366;

    font-weight:bold;

}



.carte-gestion:hover {

    background:#dbeaff;

}

/* ==========================================================================
   FORMULAIRES
============================================================================ */

.formulaire {

    max-width: 700px;

    margin: 20px auto;

    padding: 25px;

    background: #fafafa;

    border: 1px solid #cccccc;

    border-radius: 10px;

}


.formulaire p {

    margin-bottom: 15px;

}


.formulaire label {

    font-weight: bold;

}


.formulaire input[type=text],
.formulaire input[type=email],
.formulaire input[type=date],
.formulaire input[type=password],
.formulaire select,
.formulaire textarea {

    width: 100%;

    max-width: 100%;

    padding: 8px;

    border: 1px solid #cccccc;

    border-radius: 5px;

    box-sizing: border-box;

}


.formulaire textarea {

    resize: vertical;

}


.formulaire-actions {

    margin-top: 20px;

}


.bouton-valider {

    display: inline-block;

    padding: 8px 15px;

    background: #003366;

    color: white;

    text-decoration: none;

    border: none;

    border-radius: 5px;

    cursor: pointer;

}


.bouton-valider:hover {

    background: #004c99;

}


.bouton-annuler {

    margin-left: 10px;

    text-decoration: none;

    color: #003366;

    font-weight: bold;

}

.formulaire input[type=checkbox] {

    width: auto;

    margin-right: 5px;

}

.formulaire .case-cocher {

    display: flex;

    align-items: center;

    gap: 8px;

}

.formulaire-club {

    max-width: 700px;

    margin: 20px auto 10px auto;

    padding: 15px;

    background: #eef5ff;

    border: 1px solid #cccccc;

    border-radius: 10px;

}

.bouton-nouveau {

    display: inline-block;

    padding: 8px 15px;

    background: #003366;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-weight: bold;

    margin-bottom: 15px;

}

.bouton-nouveau:hover {

    background: #004c99;

}


/* ==========================================================================
   Lignes joueurs
============================================================================ */

.ligne-joueurs {

    background-color: #f5f9ff;

}

.liste-joueurs {

    padding-left: 20px;

    color: #444444;

}


.ligne-joueurs {

    background-color: #eef5ff;

    border-top: none;

}

.liste-joueurs {

    padding-left: 25px;

    font-size: 0.95em;

    color: #444444;

}

/* ==========================================================================
   PLANNING DES LIEUX - BLOCS FUSIONNÉS
========================================================================== */

.planning-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.planning-semaine {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.planning-semaine th,
.planning-semaine td {
    border: 1px solid #cccccc;
    padding: 0;
    vertical-align: top;
}

.planning-semaine th {
    text-align: center;
    padding: 6px;
    background-color: #eef5ff;
    color: #003366;
}

.planning-heure {
    width: 60px;
    min-width: 60px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    padding: 5px !important;
}

.planning-case {
    height: 55px;
    position: relative;
    font-size: 0.85em;
}


/* ==========================================================================
   CELLULE FUSIONNÉE
========================================================================== */

.cellule-evenement {
    padding: 0 !important;
    vertical-align: top !important;
}

.cellule-evenement .planning-evenement {
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}


/* ==========================================================================
   ÉVÉNEMENT - BASE
========================================================================== */

.planning-evenement {
    box-sizing: border-box;

    width: 100%;
    height: 100%;

    padding: 7px;

    border-radius: 6px;

    font-size: 0.88em;
    line-height: 1.25;

    overflow: hidden;
}


/* =========================================================================
   OCCUPATIONS RÉCURRENTES
   ========================================================================= */

/* Occupation normale */
.planning-evenement.planning-occupation {
    background-color: #dff0e3;
    border: 2px solid #6fa77b;
    color: #285c34;
}

/* Occupation remplacée */
.planning-evenement.planning-occupation.occupation-remplacee {
    background-color: #e8e0f5;
    border: 1px solid #9b7fc4;
    color: #5a4675;
    padding: 2px 4px;
    font-size: 0.72em;
    line-height: 1.05;
}

/* Mot "REMPLACÉE" */
.planning-evenement.planning-occupation.occupation-remplacee small {
    color: #c62828;
    font-weight: bold;
    font-size: 1em;
}
/* ==========================================================================
   BLOCAGE - BLEU GRIS
========================================================================== */

.planning-evenement.planning-blocage {

    background-color: #d9e2ec;

    border: 2px solid #607d94;

    color: #263746;
}

/* ==========================================================================
   RENCONTRE NORMALE
========================================================================== */

.planning-evenement.rencontre {

    background-color: #dcecff;

    border: 2px solid #4d8dcc;

    color: #16456e;
}


/* ==========================================================================
   RENCONTRE NON CONFIRMÉE
========================================================================== */

.planning-evenement.rencontre.non-confirmee {

    background-color: #fff3cd;

    border: 2px solid #e0a800;

    color: #765900;
}


/* ==========================================================================
   CONFLIT
   Rouge réservé exclusivement aux conflits
========================================================================== */

.planning-evenement.conflit {

    background-color: #f8d7da;

    border: 2px solid #dc3545;

    color: #842029;
}


/* ==========================================================================
   RENCONTRE NON CONFIRMÉE + CONFLIT
   Le conflit est prioritaire
========================================================================== */

.planning-evenement.rencontre.non-confirmee.conflit {

    background-color: #f8d7da;

    border: 2px solid #dc3545;

    color: #842029;
}


/* ==========================================================================
   TEXTE
========================================================================== */

.planning-evenement strong {

    font-weight: bold;
}


/* Mention conflit */

.planning-evenement .mention-conflit {

    font-weight: bold;

    text-transform: uppercase;

    margin-top: 4px;
}


/* Mention non confirmée */

.planning-evenement .mention-non-confirmee {

    font-weight: bold;

    text-transform: uppercase;

    margin-top: 4px;
}


/* Mention remplacée */

.planning-evenement .mention-remplacee {

    font-size: 0.9em;

    font-weight: bold;

    text-transform: uppercase;
}


/* ==========================================================================
   OCCUPATION REMPLACÉE : AFFICHAGE TRÈS COMPACT
========================================================================== */

.cellule-evenement
.planning-evenement.planning-occupation.remplacee {

    justify-content: center;

    padding: 2px;

    font-size: 0.70em;
}


/* ==========================================================================
   LIEU
========================================================================== */

.planning-lieu {

    border: 2px solid #aaa !important;

    border-radius: 8px;

    padding: 12px;

    margin-bottom: 30px;

    background: #fff;

    box-sizing: border-box;
}


.planning-lieu h3 {

    margin-top: 0;

    margin-bottom: 12px;

    color: #003366;
}


/* ==========================================================================
   TABLEAU
========================================================================== */

.planning-wrapper {

    overflow-x: auto;
}


.planning-semaine {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}


.planning-semaine th,
.planning-semaine td {

    border: 1px solid #ccc;

    padding: 0;

    vertical-align: top;
}


.planning-semaine th {

    text-align: center;

    background-color: #eef5ff;

    color: #003366;

    padding: 6px;
}


.planning-heure {

    width: 60px;

    min-width: 60px;

    text-align: center;

    font-weight: bold;

    white-space: nowrap;
}


.planning-case {

    height: 55px;

    font-size: 0.85em;
}


/* ==========================================================================
   EFFET VISUEL DES ÉVÉNEMENTS
========================================================================== */

.planning-evenement {

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.planning-evenement:hover {

    transform: scale(1.01);

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    position: relative;

    z-index: 5;
}


/* ==========================================================================
   PETITS ÉCRANS
========================================================================== */

@media (max-width: 768px) {

    .planning-evenement {

        font-size: 0.78em;

        padding: 4px;
    }

    .planning-heure {

        width: 50px;

        min-width: 50px;
    }

}

/* ==========================================================================
   COULEURS DU PLANNING
========================================================================== */

/* Occupation récurrente */
.planning-evenement.planning-occupation {

    background-color: #dff0e3;

    border: 2px solid #6fa77b;

    color: #285c34;
}


/* Blocage */
.planning-evenement.planning-blocage {

     background-color: #d9e2ec;

    border: 2px solid #607d94;

    color: #263746;
}


/* Rencontre */
.planning-evenement.planning-rencontre {

    background-color: #dcecff;

    border: 2px solid #4d8dcc;

    color: #16456e;
}


/* Rencontre non confirmée */
.planning-evenement.planning-rencontre.non-confirmee {

    background-color: #fff3cd;

    border: 2px solid #e0a800;

    color: #765900;
}


/* Conflit : rouge réservé aux conflits */
.planning-evenement.conflit {

    background-color: #f8d7da;

    border: 2px solid #dc3545;

    color: #842029;
}


/* Occupation remplacée */
.planning-evenement.planning-occupation.remplacee {

    background-color: #fff8df;

    border: 1px solid #d6bd62;

    color: #78651c;

    padding: 2px 4px;

    font-size: 0.70em;

    line-height: 1.05;
}

/* ==========================================================================
   EN-TÊTE ET NAVIGATION PRINCIPALE
========================================================================== */

/* Zone générale de l'en-tête */

header {
    background: linear-gradient(135deg, #003366, #005a96);
    color: white;
    padding: 22px 25px;
    margin: -20px -20px 20px -20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 1px;
}

header p {
    margin: 6px 0 0 0;
    font-size: 0.95em;
    opacity: 0.9;
}


/* ==========================================================================
   UTILISATEUR CONNECTÉ
========================================================================== */

body > p:first-of-type {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background: #eef5ff;
    border-left: 4px solid #003366;
    color: #003366;
    font-weight: bold;
    border-radius: 4px;
}


/* ==========================================================================
   MENU PRINCIPAL
========================================================================== */

.menu-principal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 15px 0 25px 0;
    padding: 10px;

    background: #f4f7fa;
    border: 1px solid #d5dde5;
    border-radius: 10px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}


/*
   Les séparateurs "|" présents actuellement dans menu.php
   deviennent invisibles.
*/

.menu-principal {
    font-size: 0;
}


/* Boutons du menu */

.menu-principal a {
    display: inline-block;

    padding: 9px 17px;

    background: white;
    color: #003366;

    border: 1px solid #c8d4df;
    border-radius: 7px;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: bold;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* Survol */

.menu-principal a:hover {
    background: #003366;
    color: white;
    border-color: #003366;

    transform: translateY(-1px);

    box-shadow: 0 3px 6px rgba(0, 51, 102, 0.20);
}


/* ==========================================================================
   BOUTONS D'ACTION
========================================================================== */

.bouton-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
    margin: 3px;

    background: #eef5ff;
    color: #003366;

    border: 1px solid #b9cce0;
    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.bouton-action:hover {
    background: #003366;
    color: white;

    border-color: #003366;

    transform: translateY(-1px);

    box-shadow: 0 3px 6px rgba(0, 51, 102, 0.20);
}


/* ==========================================================================
   TITRES DE PAGE
========================================================================== */

h2 {
    color: #003366;

    border-bottom: 3px solid #dbeaff;

    padding-bottom: 8px;

    margin-top: 20px;
    margin-bottom: 20px;
}


/* ==========================================================================
   NAVIGATION DES SEMAINES
========================================================================== */

.navigation-semaine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin: 15px 0 25px 0;
    padding: 12px 15px;

    background: #f4f7fa;

    border: 1px solid #d5dde5;
    border-radius: 10px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    text-align: center;
}


.navigation-semaine strong {
    color: #003366;
    font-size: 1.05em;
}


/* ==========================================================================
   BOUTONS "NOUVEAU"
========================================================================== */

.bouton-nouveau {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    background: #003366;
    color: white;

    border: 1px solid #003366;
    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.bouton-nouveau:hover {
    background: #005a96;
    color: white;

    transform: translateY(-1px);

    box-shadow: 0 3px 7px rgba(0, 51, 102, 0.25);
}


/* ==========================================================================
   BOUTONS FORMULAIRES
========================================================================== */

.bouton-valider {
    padding: 9px 17px;

    background: #003366;
    color: white;

    border: 1px solid #003366;
    border-radius: 7px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.bouton-valider:hover {
    background: #005a96;

    transform: translateY(-1px);

    box-shadow: 0 3px 7px rgba(0, 51, 102, 0.25);
}


/* ==========================================================================
   BOUTON ANNULER
========================================================================== */

.bouton-annuler {
    display: inline-block;

    padding: 8px 14px;

    margin-left: 8px;

    color: #555;

    background: #f3f3f3;

    border: 1px solid #ccc;
    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;
}


.bouton-annuler:hover {
    background: #e5e5e5;
    color: #333;
}


/* ==========================================================================
   PETITS ÉCRANS
========================================================================== */

@media (max-width: 768px) {

    header {
        margin: -10px -10px 15px -10px;
        padding: 18px;
    }

    header h1 {
        font-size: 1.6em;
    }

    .menu-principal {
        justify-content: center;
    }

    .menu-principal a {
        flex: 1 1 auto;
        text-align: center;
    }

    .navigation-semaine {
        flex-direction: column;
    }

    .navigation-semaine .bouton-action {
        width: 100%;
        box-sizing: border-box;
    }

}

/* ==========================================================================
   BOUTONS FILTRER
========================================================================== */

.bouton-filtrer {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    background: #005a96;
    color: white;

    border: 1px solid #004a7c;
    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.bouton-filtrer:hover {
    background: #003366;
    color: white;

    transform: translateY(-1px);

    box-shadow: 0 3px 7px rgba(0, 51, 102, 0.25);
}


/* ==========================================================================
   ZONE DES FILTRES
========================================================================== */

.zone-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;

    margin: 15px 0 20px 0;
    padding: 15px;

    background: #f4f7fa;

    border: 1px solid #d5dde5;
    border-radius: 10px;
}


.zone-filtres label {
    display: block;

    margin-bottom: 5px;

    color: #003366;

    font-weight: bold;
}


.zone-filtres select,
.zone-filtres input {
    padding: 8px 10px;

    border: 1px solid #b9c7d3;
    border-radius: 6px;

    background: white;

    box-sizing: border-box;
}


.zone-filtres select:focus,
.zone-filtres input:focus {
    outline: none;

    border-color: #005a96;

    box-shadow: 0 0 0 2px rgba(0, 90, 150, 0.12);
}


/* ==========================================================================
   BOUTON RÉINITIALISER
========================================================================== */

.bouton-reset-filtre {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    background: white;
    color: #555;

    border: 1px solid #bbb;
    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;
}


.bouton-reset-filtre:hover {
    background: #eeeeee;
    color: #333;
}

/* Statut de confirmation */

.rencontre-confirmee {
    color: #287a3e;
    font-weight: bold;
}

.rencontre-non-confirmee {
    color: #c62828;
    font-weight: bold;
}

/* ==========================================================================
   EN-TÊTE PRINCIPAL
========================================================================== */

header {
    background-color: #eaf2f8;
    border: 1px solid #c5d5e2;
    border-radius: 10px;
    padding: 18px 25px;
    margin-bottom: 15px;
    text-align: center;
}

header h1 {
    margin: 0 0 5px 0;
    color: #003366;
}

header p {
    margin: 0;
    color: #4b6275;
}

/* ==========================================================================
   EN-TÊTE HARDOYTARRAK
========================================================================== */

header {
    background: #eaf2f8 !important;
    color: #003366 !important;
    border: 1px solid #c5d5e2;
    border-radius: 10px;
    padding: 18px 25px;
    margin: 0 0 15px 0;
    text-align: center;
}

header h1 {
    background: transparent !important;
    color: #003366 !important;
    margin: 0 0 6px 0;
    text-align: center;
}

header p {
    background: transparent !important;
    color: #4b6275 !important;
    margin: 0;
    text-align: center;
}

.bouton-planning {
    background-color: #dcecff;
    border: 1px solid #4d8dcc;
    color: #16456e;
    font-weight: bold;
    padding: 8px 14px;
}

.bouton-planning:hover {
    background-color: #4d8dcc;
    color: white;
}
