@font-face {
    font-family: "SyneMono";
    src: url("font/SyneMono-Regular.woff2") format("woff2");
}


/* ======================= */
/* Core Reset & Box-sizing */
/* ======================= */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

:root{
    --primary-color: #0000A0;
    --primary-alternative-color: rgba(0,0,160,0.3);
    --secondary-color: #FF6400;
    --third-color: #EFEFEF;
    --primary-font: "SyneMono";
    --border-size: 2px;
}

::selection {
  background-color: rgba(255, 100, 0, 0.2); /* Couleur de surlignement */
}



/* ======= BODY ======= */
body {
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 27px;
    background-color: var(--third-color);
}

#header-cote a,
.header-gauche a{
    color: var(--primary-color);
}

a{
    color: var(--secondary-color);
    text-decoration: none;
}


/* ====== FIXED ZOOM TRAIT ====== */

#trait-vertical-gauche{
    position: fixed;
    z-index: 7;
    width: 2000px;
    transform: rotate(90deg);
    transform-origin: left top;
    left: 45px;
    top: 3%;
    border: 1.2px solid var(--primary-color);
}

#trait-horizontal-haut{
    position: fixed;
    z-index: 7;
    width: 100%;
    left: 45px;
    top: 3%;
    border: 1.2px solid var(--primary-color);
}

.trait-zoom{
    position: fixed;
    z-index: 7;
    width: 6%;
    height: 2%;
    left: 95%;
    top: 94.5%;
    border-bottom: var(--border-size) solid var(--primary-color);
}


/* =============================== */
/* TYPOGRAPHY CONTAINER & ENTRIES  */
/* =============================== */
#conteneur{
    display: grid;
    grid-template-rows: repeat(60,20px);    
    justify-content: start;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 90%;
    overflow: hidden;
}

#conteneur h1{
    z-index: 100 !important;
    height: 15px;
    line-height: 15px;
    text-align: center;
}

h1{
    width: fit-content;
    display: flex;
    margin: 2px 20px 0px 20px; 
    position: relative;
    font-size: 21px;
    color: var(--primary-color);
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}

h1:hover{
    color: var(--secondary-color);
}


/* Entries interactivity */
.entree-font{
    pointer-events: auto !important;
    z-index: 100 !important;
    position: relative;
    cursor: pointer;
}

.low-opacity{
    opacity:.3;
}


/* ============================ */
/* HEADER SIDEBAR - ROTATED TEXT */
/* ============================ */
#header-cote{
    position: fixed;
    left: 22px;
    top: 8%;
    width: fit-content;
    height: 6%;

    text-transform: uppercase;
    z-index: 9;

    background-color: var(--third-color);
    border: var(--border-size) solid var(--primary-color);
    color: var(--primary-color);
    font-size: 35px;

    transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    padding: 0.5em 1em;
    box-sizing: border-box;
}

/* ========== TOP HEADER BAR ========== */
.header{
    font-size: 16px;
    color: var(--primary-color);
    position: fixed;
    top: 20px;
    /*width: 92%;*/
    height: 3.7%;
    z-index: 9;
    left: 115px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.header-gauche{
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    position: relative;
    padding: 0.1% 1.5%;
    background-color: var(--third-color);
    border: var(--border-size) solid var(--primary-color);
}

.header p{
    position: relative;
    z-index: 9;
    padding-left: 13px;
    padding-right: 14px;
    white-space: nowrap;
}

.header ul{
    position: fixed;
    height: 3.7%;
    z-index: 9;
    top: 0.5vh;
    right: 30px;
    width: auto;
    padding-right: 0.5%;
    padding-top: 0.1%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--third-color);
    border: var(--border-size) solid var(--primary-color);
}

.header ul li{
    display: inline;
    cursor: pointer;
}

.header ul a{
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.header ul a:hover,
.infos-panel:hover,
.credits-panel:hover{
  color: var(--secondary-color);
}

/* ========== INFO & CREDITS PANELS ========== */
.infos-panel, 
.credits-panel{
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.infos-panel{
    margin-left: -12.5%;
}


/* Descriptions text */
.infos-panel-description,
.credits-panel-description{
    position: fixed;
    font-size: 13px;
    line-height: 16.5px;
    z-index: 9;
    left: 115px;
    padding-left: 1.5%;
    top: 8%;
    width: 27.3%;
    display: none;
    border: var(--border-size) solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--third-color);
}

.infos-panel-description p,
.credits-panel-description p{
    margin-top: 4%;
    width: 95%;
}


/* ========== FONT PANEL BOX ========== */
.header-panel-font{
    pointer-events: auto;
    position: fixed;
    z-index: 9;
    left: 8%;
    top: 8%;
    width: 27.3%;
    border: var(--border-size) solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--third-color);
    display: none;
}


/* ===== TOP PANEL FONT ===== */
.haut-panel-font {
    width: 100%;
    font-size: 13px;
    line-height: 16.5px;
}

/*ul 1*/
.liste-colonne-total{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/*ul 1 - li 1*/
.conteneur-textes-typos-panel{
    width: 60%;
    border-bottom: var(--border-size) solid var(--primary-color);
}

.conteneur-textes-typos-panel p{
    padding-right: 6%;
}

/*ul 1 - li 2*/
.bloc-sans-image-panel-font{
    width: 40%;
    position: relative;
    border-bottom: var(--border-size) solid var(--primary-color);
    border-left: var(--border-size) solid var(--primary-color);
}


 .diagonal {
    position: absolute;
    width: 2px; /* épaisseur du trait */
    height: 100%;
    background-color: blue;
    top: 0;
    z-index: 10;
    left: 50%;
    border: 2px solid blue;
    transform-origin: center;
  }



/*ul 2*/
.sous-conteneur-textes-typos {
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
    list-style: none;
}

.sous-conteneur-textes-typos li {
    width: 100%;
    box-sizing: border-box;
    padding-left: 8%;
}

/*ul 2 li 1*/
.texte-intro-typo{
    border-bottom: var(--border-size) solid var(--primary-color);
}

.texte-workshop{
    margin-top: 0;
}


/* ===== FONT TITLE STYLING ===== */
.font-title{
    height: 18vh;
    width: 100%;
    font-size: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.font-title h2{
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

/* ===== BOTTOM PANEL FONT ===== */
.bas-panel-font ul {
    margin: 0;
    padding: 0;
    display: flex;
    text-transform: uppercase;
    border-top: var(--border-size) solid var(--primary-color);
}

.etudiants-typos, .telecharger-typos{
    display: flex;
    padding-left: 5%;
    border-right: var(--border-size) solid var(--primary-color);
}

.etudiants-typos{width: 50%;}
.telecharger-typos{width: 120%;}

.textes-droite-typos{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}






/* ==================== */
/* GRID & BACKGROUND BOX */
/* ==================== */
.box{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    
    /*--pattern background--*/
    background-color: var(--third-color);
    background-image: radial-gradient(var(--primary-color) 0.5px, var(--third-color) 0.5px);
    background-size: 20px 20px;
}

.zoom-conteneur{ 
    top:0; 
    left:33%; 
    width:50vw;
    height:100vh;  
    display: grid;  
    place-items:center;
    padding-top: 10px;
}


/* Text transform helpers */
.glyphsetcapitales{text-transform: uppercase;}
.glyphsetbasedecasse{text-transform: lowercase;}

[contenteditable]{outline: 0px solid transparent;}


/* Move transition */
.target{
    transition: transform 1s;
    transform-origin: top left;
}



/* ==================== */
/* SCROLLBAR STYLING    */
/* ==================== */
::-webkit-scrollbar{
    height: 6px;
    width: 6px;
}

/* Trace de la barre de scroll */
::-webkit-scrollbar-track{
    background-color: rgba(0, 0, 0, 0);
}
 
/* Couleur de la barre */
::-webkit-scrollbar-thumb {
    background-color: var(--primary-alternative-color); 
    border-radius: 3px;
}


/* ==================== */
/*        ASCII         */
/* ==================== */
.entree-ascii{
    font-size:.5em;
    line-height:1em;
    position:absolute;
    z-index: 2;
    color: var(--primary-alternative-color);
}

.entree-ascii pre{
    font-family:"SyneMono" !important;
}




/* ==================== */
/*       BUTTONS        */
/* ==================== */
.buttons{
    font-size: 16px;
    position: fixed;
    right: 30px;
    bottom: 1.5%;
    z-index: 9;
    display: flex;
    width: 200px;
    height: 3.7%;
    border: var(--border-size) solid var(--primary-color);
    background-color: var(--third-color);
    text-transform: uppercase;
    justify-content: space-between;
}

/*pas de selection de texte*/
.buttons{
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Chrome, Safari, Opéra depuis la version 15 */
    -ms-user-select: none; /* Internet explorer depuis la version 10 et Edge */
    user-select: none; /* Propriété standard */
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.btn{
    overflow: hidden;
    position: relative;
    display: flex;
    height: 3.8vh;
    color: var(--primary-color);
    z-index: 9;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.btn:hover{
    color: var(--secondary-color);
}

/*reglages des textes "agrandir" et "réduire"*/
.btn p{
    position: absolute;
    margin-left: 20px;
    margin-right: 20px;
}

/*réglages de la barre de séparation*/
.buttons p{
    position: relative;
    z-index: 9;
    color: var(--primary-color);
}




/*TELEPHONE*/
@media screen and (max-width: 700px){
    .header ul{
        left: 22px;
        width: auto;
        top: 88%;
        width: 320px;
    }

    .header{
        left: 22px;
    }

    .trait-zoom{
        display: none;
    }

    .buttons{
        left: 22px;
    }

    .infos-panel-description,
    .credits-panel-description{
        width: 75%;
        left: 90px;
    }

    .header-panel-font{
        left: 90px;
        width: 75%;
    }
}

/*TABLETTE*/
@media screen and (min-width: 700px) and (max-width: 800px) {
    .infos-panel-description,
    .credits-panel-description{
        width: 45.5%;
    }

    .header{
        left: 22px;
    }
}

@media screen and (min-width: 800px) and (max-width: 1200px){
    .infos-panel-description,
    .credits-panel-description{
        width: 40.5%;
    }
}











