@view-transition {
    navigation: auto;
}

::view-transition-group(root){
    animation-duration : 0.3s;
    animation-timing-function: ease-in-out;
}

::view-transition-old(root){
    animation-name: slide-out;
}

::view-transition-new(root){
    animation-name: slide-in;
}

@keyframes slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100vw); opacity: 0; }
}

@keyframes slide-in {
    from { transform: translateX(100vw); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #ab2b18;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #080F14;
    color: #333;

}

.titre {
    margin-bottom: 20px;
    padding-bottom: 20px;
    /* Détection automatique de la hauteur de l'encoche / Dynamic Island */
    padding-top: calc(20px + env(safe-area-inset-top));
    color: white;
    text-align: center;
    background-color: #ab2b18;
    border-radius: 0 0 25px 25px;
}

.ctn-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.ctn-menu h2 {
    padding: 0;
    text-align: left;
    margin: 0 0 0 25px;
}

.btn-menu {
    position: relative;
    left: 20px;
    width: 30px;
    height: 30px;
    background-image: url("images/burger-bar.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
}

.btn-logOut {
    position: relative;
    left: 5px;
    width: 30px;
    height: 30px;
    background-image: url("images/remove-icon-png-3.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
}

.form {
    color: white;
    background: #232935;
    padding: 25px 20px;
    margin: 0 20px 0 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    padding-top: 10px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #3b4252;
    background-color: #16171a;
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #ab2b18;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #972315;
}

.top-nav {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease;
}

.top-nav.open {
    max-height: 200px;
    opacity: 1;
}

.menu-links-ctn {
    background-color: #ab2b18;
    padding: 0 20px 15px 20px;
    display: flex;
    justify-content: center;
}

.menu-links {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.menu-links a {
    position: static;
    padding: 6px 12px;
    display: inline-block;
    color: #ffffff;
    border-radius: 20px;
}

.menu-links-ctn #current {
    background-color: white;
    color: #ab2b18;
    border: 1px solid white;
}

a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.ctn-help {
    position : relative;
    color : white;
    padding: 20px;
    width: 100%;
    top : 50%;
    box-sizing: border-box; /* Inclut le padding et les bordures dans la largeur totale */
    max-width: 100%;

}

.help-text{
    background-color: #232935;
    color : white;
}

.btn-logOut{
    background-image: url("images/log-out.png");
}