:root {
    /* Couche remplie */
    --fill-size: 55px;
    --fill-margin: 4px;

    /* Couche contours */
    --outline-size: 72px;
    --outline-margin: 8px;
}


/* =========================
   PAGE
   ========================= */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    /*overflow: hidden;*/
    font-family:arial;
    font-size:16px;
}

body {
    position: relative;
/*
    background: linear-gradient(
        90deg,
        rgba(42, 123, 155, 1) 0%,
        rgb(56, 156, 195) 100%
       
    );
    */

    background: linear-gradient(
        90deg,
        rgb(92, 164, 107) 0%,
        rgb(219, 238, 161) 100%
       
    );
}


/* =========================
   CONTENUS
   ========================= */

   .content{
    width:auto;
    max-width:1000px;
    background-color:white;
    margin:0px auto;
    z-index:10;
    position: relative;
    height:100vh;
    padding:2rem;
    box-shadow:-5px -5px 5px rgb(58, 132, 79,0.2);
    border-radius:1rem 1rem 0 0;
    margin-top:1rem;
   }

   


/* =========================
  LOGIN
   ========================= */




.login{
    width:20rem;
    height:auto;
    max-width:1000px;
    background-color:white;
    margin:0px auto;
    z-index:10;
    position: relative;
    box-shadow:15px 15px 15px rgba(0, 0, 0, 0.2);
    border-radius:1rem;
    margin-top:1rem;
    display:flex;
    flex-direction:column;
    /*justify-content: center;*/
    align-items: center;
background: linear-gradient(60deg, rgba(44, 113, 27, 1) 0%, rgb(125, 201, 102) 100%);
    /*background-color:rgb(92, 164, 107);*/
    color:white;
   }

.login__container{
    padding:2rem;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content:center;
    box-sizing:border-box;
    width:100%;

}

.login__session-title{
    font-size:1.5rem;
   
}
.login__session-code{
     font-size:2.5rem;
     font-weight:bold;
     color:rgb(255, 255, 255);
    
}

#login-session-container{
    height:8rem;
}
#login-form-container{
    height:18rem;
    background-color:rgba(255,255,255,0.2);
    border-radius:0 0 1rem 1rem;
}
.login__icon{
    width:4rem;
    height:4rem;
    background-image:url("icon_user_white.png");
    background-repeat:no-repeat;
    background-size:cover;
}

.login__pseudo{
    font-size:1.1rem;
    padding:0.5rem;
}

.login__input input{
  padding: 0.5rem;
  font-size: 1.2rem;
  border-radius: 1rem;
  border: 0px;
}


.login__button{
    padding:0.5rem;
    background-color:darkgreen;
    border-radius:0.3rem;
    color:white;
    cursor:pointer;
    margin-top:2rem;
    font-size:1.2rem;
}

/* =========================
   COUCHES
   ========================= */

.hex-layer {
    position: absolute;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;

    font-size: 0;
}


/* =========================
   COUCHE 1
   ========================= */

.hex-layer-fill {
    z-index: 1;
}


.hex-layer-fill .hex {
    position: absolute;

    width: var(--fill-size);
    height: calc(
        var(--fill-size) * 1.1547
    );

    clip-path: polygon(
        0% 25%,
        0% 75%,
        50% 100%,
        100% 75%,
        100% 25%,
        50% 0%
    );

    background: var(--hex-color);
}



/* ==========================================
   COUCHE 2 — STRUCTURES HEXAGONALES
   ========================================== */

.hex-layer-outline {
    z-index: 2;

    pointer-events: none;
    overflow: hidden;
}


.hex-layer-outline .outline-hex {
    position: absolute;

    display: block;

    margin: 0;

    transform: translate(-50%, -50%);
}


.hex-layer-outline .outline-hex svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}


.hex-layer-outline .outline-hex polygon {
    fill: none;

    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;

    vector-effect: non-scaling-stroke;
}

/*Traits de connexion*/

.hex-layer-outline .hex-connection {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    pointer-events: none;
}


.hex-layer-outline .hex-connection line {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;

    vector-effect: non-scaling-stroke;
}

/* ==========================================
   ANIMATION DE CROISSANCE
   ========================================== */


/*
 * Les enfants sont initialement invisibles.
 *
 * On conserve translate(-50%, -50%)
 * pendant toute l'animation afin de ne pas
 * modifier leur positionnement par le centre.
 */

.hex-layer-outline .outline-hex {
    opacity: 0;

    animation-name:
        organicHexAppear;

    animation-duration:
        var(--hex-fade-duration, 400ms);

    animation-delay:
        var(--appearance-delay, 0ms);

    animation-timing-function:
        ease-out;

    animation-fill-mode:
        forwards;
}


/*
 * Le premier parent est immédiatement
 * visible et ne joue aucune animation.
 */

.hex-layer-outline .outline-hex.is-root {
    opacity: 1;
    animation: none;
}


/*
 * Apparition progressive de l'enfant.
 */

@keyframes organicHexAppear {

    from {
        opacity: 0;

        transform:
            translate(-50%, -50%);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%);
    }
}


/*
 * Chaque ligne se dessine progressivement
 * depuis le parent vers son enfant.
 */

.hex-layer-outline
.hex-connection line {

    animation-name:
        organicConnectionAppear;

    animation-duration:
        var(--line-duration, 280ms);

    animation-delay:
        var(--appearance-delay, 0ms);

    animation-timing-function:
        ease-out;

    animation-fill-mode:
        forwards;
}


/*
 * Le JavaScript initialise
 * stroke-dashoffset avec la longueur
 * complète du trait.
 *
 * Il suffit donc de revenir à zéro.
 */

@keyframes organicConnectionAppear {

    to {
        stroke-dashoffset: 0;
    }
}


/*
 * Accessibilité :
 *
 * si l'utilisateur demande une réduction
 * des animations dans son système,
 * tous les éléments sont affichés
 * immédiatement.
 */

@media (prefers-reduced-motion: reduce) {

    .hex-layer-outline .outline-hex {
        opacity: 1;
        animation: none;
    }

    .hex-layer-outline
    .hex-connection line {
        stroke-dashoffset: 0 !important;
        animation: none;
    }
}