/* =======================
   STRUCTURE
======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #007aa3, #003f55);
    color: white;
}

/* =======================
   NAVBAR
======================= */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background-color: #001f3f;
    padding: 20px 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.navbar img {
    justify-self: start;
    width: 70px;
}

.navbar .titre {
    justify-self: center;
    font-size: 1.8em;
    color: #00d4ff;
    text-align: center;

}

.navbar a {
    justify-self: end;
}

.navbar a:hover {
    color: #ff9800;
}

/* =======================
 CARRES
======================= */
.carre_container {
    margin-top: 110px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.carre {
    width: 25px;
    height: 25px;
    background-color: #ff5252;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255,82,82,0.6);
    transition: transform 0.1s, opacity 0.1s;
}

.carre.active {
    transform: scale(1.3);
    opacity: 0.5;
}

/* =======================
   CONTAINER PRINCIPAL
======================= */
.container {
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    gap: 25px;
}

/* =======================
   CARTES
======================= */

.tableau_score, 
.param {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 20px;
    width: 22em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.espace_jeu {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 20px;
    width: 30em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
/* =======================
   TABLEAU SCORE
======================= */
.tableau_score p {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #00e5ff;
}

.tableau_score ul {
    list-style: none;
}

.tableau_score li {
    margin: 8px 0;
    font-size: 1.5em;
}

/* =======================
   ESPACE JEU
======================= */
.espace_jeu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.champ {
    background-color: #1c1c1c;
    color: #00e5ff;
    font-size: 22px;
    height: 50px;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    border: none;
}

input::placeholder {
    color: gray;
}


.pre_chaine {
    font-size: 1.7em;
    color: #a32900;
}

.chaine {
    font-size: 1.7em;
    color: #e03700;
}
.score {
    font-size: 1.4em;
}
.com {
    font-size: 1.1em;
}


/* =======================
   BOUTONS
======================= */
button {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    color: white;
    padding: 10px 25px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* =======================
   PARAMÈTRES
======================= */
.param fieldset {
    border: none;
}

.param legend {
    font-size: 1.3em;
    color: #00e5ff;
    margin-bottom: 10px;
}

.param p {
    margin-top: 12px;
}

.param label {
    margin-right: 15px;
}
