*{
    margin : 0;
    padding : 0;
}

html{
    background-color: #080D16;
}
body {
    padding-top: 64px;
    overflow: hidden;
    height: 100vh;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin : 0;
    padding : 0;
    background-color: #121019;
    width: 100%;
    height: 64px;
}


#log{
    background-color: #E7B783;
    color: #000000;
    font-size: 16px;
    font-family: Lexend;
    font-weight: bold;
    width: 135px;
    height: 35px;
    border-radius: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}


#menu{
    border-bottom: thin solid #777160;
    height: 64px;
}

ul{
    display : flex;
    flex-direction : row;
    align-items: center;
    justify-content: space-around;
    height: 64px;
}

li{
    list-style-type:none;
}

button{
    background-color: #121019;
    border-style: none;
}

a{
    font-family: Lexend;
    text-decoration:none;
    color: #ffffff;
    font-size: 16px;
    transition: color 300ms;
}

ul a:hover{
    color: #E7B783;
}


.grid {
  display: grid;
  grid-template-columns: repeat(12, 60px); /* 12 colonnes de frettes + 1 colonne pour les noms */
  grid-template-rows: repeat(6, 40px);     /* 6 cordes */
  gap: 2px;
  padding-top: 3%;
  justify-content: center;
}

.gridd {
  display: grid;
  grid-template-columns: repeat(12, 60px); /* 12 colonnes de frettes + 1 colonne pour les noms */
  grid-template-rows: repeat(6, 40px);     /* 6 cordes */
  gap: 2px;
  padding-top: 3%;
  justify-content: center;
}

.cell, .Ncell{
  border: 1px solid #404040;
  background-color: #121019;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cell:hover {
  background-color: #E7B783;
}

.test{
    background-color: #ffffff;
}

.label{
    font-family: Lexend;
    font-size: 16px;
    background-color: #080D16;
    font-weight: 200;
    color: #ffffff;
    border: none;
}

.Nlabel{
    font-family: Lexend;
    font-size: 16px;
    background-color: #080D16;
    font-weight: 200;
    color: #ffffff;
    border: none;
}

.label:hover{
    background-color: #080D16;
}

h1{
    text-transform: uppercase;
    font-family: Lexend;
    font-weight: bold;
    display: flex;
    color: #ffffff;
    justify-content: center;
    padding-top: 3%;
    font-size: 40px;
}



.bb{
    width: 140px;
    height: 80px;
    background-color: #121019;
    border: thin solid #404040;
    color: #ffffff;
    font-family: Lexend;
    font-size: 16px;
    border-radius: 10px;
    transition: background-color 0.5s;
}

.bb:hover{
    background-color: #E7B783;
}

p{
display: flex;
    font-family: Lexend;
    font-size: 20px;
    color: #ffffff;
    font-weight: 200;
    justify-content: center;
    align-items: center;
    padding-bottom: 2%;
}

#prebottom{
    margin: 2% 25% 0% 25%;
    display:flex;
    flex-direction: column;
}

#Bottom{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.true{
    background-color: #E7B783;
    color: black;
}

.cell.clicked, .Ncell.clicked {
  background-color: #E7B783;
}

.clickedd {
  background-color: #9A5E1D;
}

.alert-error {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1e1b2e;
  color: #E7B783;
  border-left: 5px solid #ff4e4e;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  font-family: 'Lexend', sans-serif;
  z-index: 999;
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.alert-xp {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1e1b2e;
  color: #E7B783;
  border-left: 5px solid #05e810;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  font-family: 'Lexend', sans-serif;
  z-index: 999;
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.alert-body {
  margin-top: 10px;
  font-size: 14px;
}

.close-btn {
  background: none;
  border: none;
  color: #E7B783;
  font-size: 22px;
  cursor: pointer;
}

#progressBar {
    width: 100%;
    padding-top: 8%;
    color: #E7B783;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media screen and (max-width: 1500px) {
    p{
        font-size : 20px;
    }
    h2{
        font-size : 30px;
    }

        #prebottom{
        margin: 2% 20% 0% 20%;
        display:flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 1250px) {
    p{
        font-size : 18px;
    }

    h2{
        font-size : 26px;
    }
}

@media screen and (max-width: 1000px) {
    p{
        font-size : 18px;
    }
    h2{
        font-size : 18px;
    }

}

@media screen and (max-width: 700px) {
    h1{
        margin-top: 30px;
    }
    h2{
        font-size : 18px;
    }
        p{
        font-size : 14px;
    }
    .all-info{
        margin-top: 30px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .info{
        margin-bottom: 30px;
        width: 60%;
    }

}

.Ncell {
  position: relative; /* nécessaire pour placer un ::after */
}


.Ncell.repere::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== Formulaire de sélection des zones ===== */
.zone-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 1em;
    background: #121019;
    padding: 2em 2.5em;
    border-radius: 12px;
    border: thin solid #404040;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.zone-form__title {
    font-size: 1.25em;
    margin-bottom: 1.5em;
    color: #E7B783;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: Lexend;
    text-align: center;
}

.zone-form__options {
    display: flex;
    gap: 1.2em;
    margin-bottom: 1.8em;
    justify-content: center;
    flex-wrap: wrap;
}

.zone-form__label {
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: #1e1b2e;
    padding: 0.8em 1.4em;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.zone-form__label:hover {
    background: #2a2438;
    border-color: rgba(231, 183, 131, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 183, 131, 0.1);
}

.zone-form__label:has(input:checked) {
    background: rgba(231, 183, 131, 0.12);
    border-color: #E7B783;
    box-shadow: 0 0 15px rgba(231, 183, 131, 0.08);
}

.zone-form__checkbox {
    accent-color: #E7B783;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

.zone-form__label-text {
    font-size: 1.1em;
    color: #E7B783;
    font-family: Lexend;
}

.zone-form__submit {
    background: linear-gradient(135deg, #E7B783 60%, #d4a46a 100%);
    color: #121019;
    border: none;
    padding: 0.8em 2.5em;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: Lexend;
    text-transform: uppercase;
}

.zone-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 183, 131, 0.25);
}

.zone-form__submit:active {
    transform: translateY(0);
}