/* -----TOUT----- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    height: 100vh;
    font-family: Arial, sans-serif;
    color: #000;
    overflow: hidden;
}

.sub-body {
    display: flex;
    height: calc(100% - 20px);
}

#block-tel {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #000;
    z-index: 9999;
}

@media (max-width: 767px) {
    #block-tel {
        display: block !important;
    }
}

#block-tel h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    color: #FFD1DC;
}



/* -----MENU DEPART----- */
#menu-depart {
    height: 100%;
    background-color: #FFD1DC;
}

#sous-menu-depart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e6c7b6;
    width: 40%;
    height: 50%;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#sous-sous-menu-depart {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
}

#menu-depart h1 {
    position: relative;
    top: -15%;
    font-size: clamp(2rem, 8.5vw, 20rem);
    font-family: "Monsieur La Doulaise", cursive;
    font-weight: 500;
    font-style: normal;
    color: white;
}

#menu-depart input {
    padding: 10px;
    font-size: 16px;
    flex: 1;
    width: 40%;
    text-align: center;
    border: 0;
}

#menu-depart button {
    padding: 10px 30px;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 67.5%;
    width: 40%;
    background-color: #FFD1DC;
    border: 0;
    color: white;
}

#menu-depart p {
    color: white;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    
}



/* -----BARRE DE REUSSITE----- */
#label-echec {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    left: 8px;
}

#label-reussite {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    right: 8px;
}

#success-bar-container {
  position: relative;
  flex: 1;
  height: 20px;
  overflow: visible;
  background: linear-gradient(to right, crimson, gold, limegreen);
}

#success-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #222;
  border-radius: 50%;
  transition: left 0.3s;
}



/* -----ORGANISATION FENETRE----- */
.section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px solid #000;
    position: relative;
}

.section:first-child {
    border-right: none;
}

.titre {
    border-bottom: 2px solid #000;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    background-color: #fff;
}



/* -----TELEPHONE----- */
#telephone {
    flex: 1;
    padding: 20px;
    background-color: #fff;
}



/* -----DATE----- */
#date {
    font-family: Arial, sans-serif;
    flex: 1;
    position: relative;
    height: 100%;
}

#image-fond {
    width: 100%;
    height: 90%;
    object-fit: cover;
    display: block;
}

#image-dessus {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    rotate: 0deg;
}

#date-affichage {
    position: absolute;
    top: 65%;
    left: 0;
    padding: 0 20px;
    font-size: 20px;
    color: black;
    width: 100%;
    text-align: center;
    background-color: rgba(250, 235, 215, 0.6);
}

.entree-texte {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    resize: none;
}

#date-message-box {
    display: flex;
    flex-direction: row;
    background-color: beige;
    font-size: 10px;
}