h1 {
    text-align: center;
}
body {
    background-color: #1E90FF;
    height: 100vh;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #fff;
}

header {
    background-color: #C1BDB3; 
    text-align: center;
    height : 17vh;
}


.centrer {
    text-align : center;
}




/* HEADER GLOBAL */
header {
    background-color: #C1BDB3;
    /* On remplace 17vh par 140px pour être identique à l'accueil */
    height: 140px; 
    text-align: center;
    position: relative;
    width: 100%;
}

/* FLEX PRINCIPAL */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.header-logo img {
    height: 90px;
    width: auto;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: white;
    /* Taille de police fixe */
    font-size: 2rem; 
    white-space: nowrap;
}
.header-profil {
    display: flex;
    align-items: center;
}

/* Boutons */
.btn-header {
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

/* Couleurs des boutons */
.btn-green {
    background-color: greenyellow;
    border-radius: 10px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
}


/* Double la taille du bouton */
#btn-valider {
    font-size: 1.6rem;   /* text x2 */
    padding: 20px 40px;  /* bouton plus large */
    border-radius: 12px;
}

/* Double la taille du logo + marge à gauche */
#logo {
    font-size: 3rem;     /* taille x2 */
    margin-left: 40px;   /* + marge */
}

/* Marge droite plus grande pour le bouton */
.btnCancel {
    margin-right: 40px;
}

.buttonMenu {
    border-radius: 25px;
    margin-top : 60px;
    font-size: 24px;
    transition: all 0.3s ease;
    width : 80%;
    background-color: #C1BDB3;
}

.position {
    align-items: left;
    height: 20px;
    width : auto;
}

button {
    width : 100%; /* on occupe toute la largeur*/
    text-align : center; /*le texte est centré*/
}

table {
    border-collapse: collapse;
    width: 100%;
    height : 15px;
}
  
th, td {
    border : 2px solid black;
    width : 8%;
    text-align : center;
    background-color: #DCDCDC;
    height : 40px;
    font-size: 2em;

}

.boutonScore {
    border-radius: 50%; /* bordure arrondi de 50 % pour les btn des scores*/
    height : 40px; /* hauteur des boutons de scores*/
    width : auto; /*largeur fait automatiquement*/
    margin-top : 40px; /*marges de 40 pixels en haut de chaque bouton*/
}




.scorePositif {
    background-color: greenyellow;
}
.scoreNegatif {
    background-color : red;
}

/* Styles pour le haut de la page */
header {
    background-color: #C1BDB3; /* Couleur de fond du haut de la page */
    text-align: center;
    height : 140px;
    width : 100%;
}

.centrer {
    text-align : center;
}

/* --- FOOTER (Style identique au Header) --- */
/* --- FOOTER PROFESSIONNEL --- */

.site-footer {
    background-color: #C1BDB3; /* Votre couleur Header */
    color: #333;               /* Texte sombre pour le contraste */
    padding-top: 40px;
    margin-top: 60px;          /* Espace avec le contenu du site */
    border-top: 4px solid #1E90FF; /* Rappel du bleu de votre charte en bordure */
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 30px 20px;
}

/* --- Colonnes --- */
.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

/* --- Identité (Col 1) --- */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 50px; /* Logo plus petit que le header */
    width: auto;
    margin-right: 10px;
}

.brand-name {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* --- FOOTER SIMPLIFIÉ --- */
/* --- FOOTER COMPACT & LARGE --- */

.site-footer {
    background-color: #C1BDB3;
    color: #333;
    padding-top: 15px;         /* Réduit de 30px à 15px pour moins de hauteur */
    margin-top: 40px;          /* Espace réduit avec le contenu du dessus */
    border-top: 4px solid #1E90FF;
    font-size: 0.9rem;   
}

.footer-container {
    width: 100%;               /* Prend toute la largeur disponible */
    max-width: none;           /* Supprime la limite de centrage */
    padding: 0 40px 10px 40px; /* Plus d'espace sur les côtés (40px) mais moins en bas */
    display: flex;
    justify-content: space-between;
    align-items: center;       /* Aligne verticalement au centre */
}

/* La colonne de droite (Contact) */
.footer-right {
    text-align: right;
}

/* Titre "Quilles de Huit" */
.footer-brand {
    font-weight: bold;
    font-size: 1.1rem;         /* Titre plus petit */
    margin-bottom: 5px;        /* Moins d'espace sous le titre */
    color: #000;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 15px;  
    margin-left: 15px;
}

.footer-desc {
    font-size: 0.85rem;
    color: #444;
    margin: 0;               
    display: inline-block;    
}

.footer-col h4 {
    display: none;             /* Astuce : on cache le titre "Informations" pour gagner une ligne */
}

/* Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;             /* Affiche les liens côte à côte (horizontal) */
    gap: 20px;                 /* Espace entre les liens */
}

.footer-links li {
    margin-bottom: 0;          /* Plus de marge en bas */
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.footer-links i {
    margin-right: 5px;
    color: #1E90FF;
}

/* Copyright (Barre du bas) */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 5px 0;            /* Barre très fine */
    font-size: 0.75rem;
    color: #555;
    margin-top: 10px;
}


body {
    background-color: #1E90FF; /* Votre couleur de fond */
    
    /* 1. Force la page à faire au moins la hauteur de l'écran */
    min-height: 100vh;
    
    /* 2. Active Flexbox pour gérer la disposition verticale */
    display: flex;
    flex-direction: column;
    
    /* 3. Supprime les marges par défaut pour éviter l'ascenseur inutile */
    margin: 0;
}
.container, .container-fluid {
    flex: 1;
}

/* Style commun pour harmoniser tous les boutons (Score, Actions) */
.newPartie, .cancelCoup, .reinitialiser {
    border-radius: 20px;       /* Arrondi identique pour tous (plus de rond) */
    height: 60px;              /* Hauteur identique pour tous */
    width: 100%;               /* Occupe toute la colonne */
    border: none;              /* Enlève les bordures par défaut */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre pour l'effet bouton */
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top : 40px;
}

/* Effet au survol */
.newPartie:hover, .cancelCoup:hover, .reinitialiser:hover {
    transform: translateY(-3px); /* Petit effet de soulèvement */
}

.cancelCoup, .reinitialiser {
    background-color: red;
}
.newPartie {
    background-color: greenyellow;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 10px;
        padding-top: 20px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-right {
        text-align: center;
    }

    .header-content {
        padding: 0 10px;
    }

    .header-logo img {
        height: 45px;
    }

    .header-title {
        font-size: 22px;
    }

    .btn-header {
        font-size: 16px;
        padding: 6px 10px;
    }

    .header-logo img {
        height: 60px;
        width: auto;
    }
}
