/*
Theme Name: Stoa
Author: François
*/

@font-face {
    font-family: 'albert';
    src: url("AlbertSans-VariableFont_wght.ttf");
}


/* esthetique focus */

a:focus,
button:focus {
    outline: none;
}

/* esthetique chargement */

main {
    animation: fadein 1.2s;
}

@keyframes fadein {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}



img,
figure,
.img-art {
    animation: fadein-img 2.4s;
}

@keyframes fadein-img {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ----------- SPLASH SCREEN ------------ */

@keyframes splash {

0%{
    visibility: visible;
    opacity: 1;
    z-index: 5;
}

    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }

}

.splash {
    background-color: white;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px, rgba(0, 0, 0, 0.15) 0px 1px 3px 1px;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    animation: splash 2s;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes splashlogo {
    0%{
        visibility: visible;
scale: 25%;
opacity: 0;
    }

    25%{
        opacity: 1;
    }
60% {opacity:1;}
    100%{
scale: 50%;
opacity: 0;
    }
}

@keyframes splashlogorotation180d {

    0%{
        visibility: visible;
scale: 25%;
opacity: 0;
rotate:-33deg;
    }

    25%{
        opacity: 1;
    }
    60% {opacity:1;}
    100%{
scale: 50%;
opacity: 0;
rotate:393deg;
    }
    
}

.logostoa-splash {
    margin: 0 auto;
    fill: #e6007e;
    transition: ease-in-out 0.2s;
    position: absolute;
    transform: scale(75%);
    z-index: 10;

    fill: #e6007e;
    margin: auto;
    width: 90%;
    animation: splashlogo 1.5s;
    transition: ease-in-out;
    visibility: hidden;

}

.spincrash-splash {
    position: absolute;
    fill:#e6007e;
    transform: scale(75%);
stroke-width: 0px;
transition: ease-in-out 0.2s;

fill: #e6007e;
    margin: auto;
    width: 90%;
    animation: splashlogorotation180d 1.5s;
    transition: ease-in-out;
    visibility: hidden;

    
}

.espace-mobile-home {
    height: 75px;
}


/* ----------- BODY ---------- */

body {
    margin: 0 auto 0 auto;
    font-family: arial;
    color: #383632;
    font-family: 'albert';
    /* background-image: url('broken-noise.png');*/
    scrollbar-width: none;
    /* background-color: #fff1bf;*/
    user-select: none;
    /*répartition pour le footer*/
    display: flex;
    flex-direction: column;
    height: 100vh;
}

::-webkit-scrollbar {
    display: none;
}



/* ----------- HEADER MENU ---------- */

header {
    /* border: solid red 5px; */
    /*emplacement*/
    z-index: 10;
    /*premier plan*/
    position: fixed;
    /*fixe*/
    top: 0px;
    /*en haut*/
    padding: 0;
    margin: 0;
    width: 100%;
    /*aspect*/
    font-size: 0px;
    background-color: white;
    opacity: 1;
    /*ombrages*/
    /*box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5.6px 0px, rgba(0, 0, 0, 0.2) 0px 5.6px 8px 0px;
    */
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px, rgba(0, 0, 0, 0.15) 0px 1px 3px 1px;

    /*ajustemnts*/
    justify-content: space-around;
    flex-flow: row wrap;
    /*alignements*/
    display: flex;
    align-items: end;
    justify-content: center;
}

/* logo */

header>a {
    /*apparence*/
    text-decoration: none;
    color: white;
    font-size: 0px;
    transition: ease-in-out 0.2s;
    /*emplacement*/
    /*alignements*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*dimensions*/
    height: 100px;
    width: 100px;
}

/*
header>a:hover {
background-color: #f9b233 ;
}
*/

.logostoa {
    height: 100px;
    margin: 0 auto;
    fill: #e6007e;
    transition: ease-in-out 0.2s;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(75%);
    z-index: 10;

}

.exception:hover .spincrash,
.exception:focus .spincrash {
    height: 100px;
    fill: #f9b233;
    rotate: 180deg;
    transition: ease-in-out 0.2s;
}

.spincrash{
    height: 100px;
    fill:#e6007e;
    transform: scale(75%);
stroke-width: 0px;
transition: ease-in-out 0.2s;
    
}


/*header>a>span {
    font-size: 43px;
    font-weight: 100;
}*/

/* choix menu */

header>div>ul {

    display: flex;
    justify-content: space-around;
    flex-flow: row wrap;
    align-items: end;
    margin: 0;
    padding: 0;
    font-size: 0px;
}

header>div>ul>li {
    color: white;
    list-style-type: none;
    margin: 0;
    transition: ease-in-out 0.2s;
    text-align: center;
    flex-grow: 1;
    font-size: 0px;
    display: flex;
    justify-content: space-around;
    flex-flow: row wrap;
    align-items: stretch;
}

header>div>ul>li>a {
    text-decoration: none;
    color: #e6007e;
    font-size: 20px;
    font-weight: 500;
    padding: 0px 10px 10px 10px;
    flex-grow: 1;
    border: solid 0px;
    transition: ease-in-out 0.2s;
}

header>div>ul>li>a:hover,
header>div>ul>li>a:focus {

    padding: 0px 10px 15px 10px;
    transition: ease-in-out 0.2s;
    border-bottom: #f9b233 solid 8px;
    color: #f9b233;
}

/* header>div>ul>li:hover {
    background-color: #f9b233;
    
    transition: ease-in-out 0.2s;
    } */


/* FORMULAIRE RECHERCHE */


header>form {
    flex-grow: 1;
    font-size: 20px;
    font-weight: 200;
    text-decoration: none;
    transition: ease-in-out 0.2s;
    display: flex;
    align-items: end;
    padding-top: 0px;
}

header>form>div {
    flex-grow: 1;
    font-size: 20px;
    font-weight: 200;
    text-decoration: none;
    transition: ease-in-out 0.2s;
    display: flex;
    align-items: center;
    padding-bottom: 5px;
}

.champ {
    /*auto-ajustement au parent*/
    flex-grow: 1;
    /*aspect*/
    background-color: rgba(255, 255, 255, 0);
    font-size: 20px;
    font-family: 'albert';
    font-weight: 500;
    color: #e6007e;
    text-decoration: none;
    align-items: center;
    min-width: 0px;
    text-align: right;
    border: none;
    transition: ease-in-out 0.2s;
    cursor: pointer;
    padding: 0;
}

.champ::placeholder {
    color: #e6007e;
    transition: ease-in-out 0.2s;
}

.champ:hover::placeholder {
    color: #f9b233;
    transition: ease-in-out 0.2s;
}

.champ:focus::placeholder {
    color: rgba(255, 255, 255, 0);
    transition: ease-in-out 0.2s;
}

.champ:focus {
    border: none;
    outline: none;
    transition: ease-in-out 0.2s;
}

/* --------- bouton chercher*/


.bouton-chercher {
    /*aspect*/
    border: none;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0);
    transition: ease-in-out 0.2s;
    cursor: pointer;
    padding: 0;
    margin: 0 5px;
    /*dimensions*/
    height: 35px;
    width: 35px;
    /*alignements*/
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.bouton-chercher:focus .focus-loupe {
    fill: #f9b233;
    transition: ease-in-out 0.2s;
    height: 25px;
    width: 25px;
}

button>svg {
    /*aspect*/
    transition: ease-in-out 0.2s;
    /*couleur*/
    fill: #e6007e;
    /*taille*/
    height: 20px;
    width: 20px;
}

button>svg:hover,
button>svg:focus {
    fill: #f9b233;
    transition: ease-in-out 0.2s;
    height: 25px;
    width: 25px;
}


/* ----------- MAIN ---------- */

main {
    background-color: white;
    border: solid white 1px;
    width: 45em;
    padding: 10em 4em 10em 4em;
    margin: 0px auto 0px auto;
    /*répatition pour le footer*/
    flex: 1 0 auto;
    flex-grow: 1;
    /*box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px 0px, rgba(0, 0, 0, 0.15) 0px 1px 3px 1px;
*/
    /*transition affichage medias*/
    transition: ease-in-out all 0.4s;
}


/* ----------- FOOTER ---------- */

footer {
    /*border: solid red 1px;*/
    height: 50px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px -1px 2px 0px,
        rgba(0, 0, 0, 0.15) 0px -1px 3px 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    z-index: 15;
    position: relative;

}

footer>p {
    margin: 0 auto;
    font-size: 15px;
    font-weight: 500;
}

footer>p>a {
    text-decoration: none;
    color: #e6007e;
    transition: ease-in-out 0.2s;
}

footer>p>a:hover,
footer>p>a:focus {
    color: #f9b233;
}

/* ----------- TEXTES ---------- */

h1 {
    padding: 25px 0 0 0;
    color: #e6007e;
    /*border: solid red 1px;*/
    font-size: 60px;
    font-weight: 500;
}

main>h2 {
    margin: 2em 0 0 0;
    border-bottom: solid 3px #e6007e;
    color: #e6007e;
    font-size: 30px;
    font-weight: 500;
}

p {
    /*border: solid red 1px;*/
    font-size: 20px;
    font-weight: 400;
}

sup{
    line-height: 0px;
}

em {
    /*border: solid red 1px;*/
    color: #e6007e;
    font-size: 22px;
    margin-left: 35px;
    padding-left: 10px;
    border-left: dotted 2px #e6007e;
    display: block;
    font-weight: 400;
}

strong {
    color: #e6007e;
    font-size: 30px;
    font-weight: 800;
    line-height: 0px;
}

.lien-in-art {
    color: white;
    text-decoration: none;
    background-color: #e6007e;
    transition: ease-in-out 0.2s;
}

.lien-in-art:hover,
.lien-in-art:focus {
    background-color: #f9b233;
    transition: ease-in-out 0.2s;
}


main>ul {
font-size: 20px;
list-style: square;
}
main>ul>li {
    padding: 5px 0;
}


/* ----------- ART. LISTE ----------- */
main>a {
    border: solid 5px #e6007e;
    padding: 25px;
    margin: 25px 35px;
    display: inline-block;
    text-decoration: none;
    color: #383632;

    transition: ease-in-out 0.2s;
}

main>a:hover,
main>a:focus {
    margin: 20px 35px 30px 35px;
    border: solid 5px #f9b233;
    transition: ease-in-out 0.2s;
}

.cat-home {
    color: #e6007e;
    font-weight: 600;
    font-size: 16px;
    transition: ease-in-out 0.2s;
    padding: 0;
    margin: 0;
}

article{
    display: flex;
}

.img-art {
    flex-basis: 30%;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    filter: grayscale(1);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all ease-in-out 0.2;
}

.info-art {
    flex-basis: 70%;
    float: right;
}



/* ----------- ART. BOUTON EXPLORER "ET ALORS ?..."  ---------- */

.lire-art {
    color: white;
    border: 0;
    text-decoration: none;
    background-color: #e6007e;
    padding: 10px;
    transition: ease-in-out 0.2s;
    font-weight: 600;
    font-family: 'albert';
    font-size: 16px;
    cursor: pointer;
}

.lire-art:hover,
.lire-art:focus {
    background-color: #f9b233;
    transition: ease-in-out 0.2s;
}


/* ---------- ART. LIEN TITRE ---------- */

.droite {
    align-content: end;
    align-items: end;
    text-align: right;
}

main>a>article>div>h2 {
    display: block;
    text-decoration: none;
    color: #e6007e;
    transition: ease-in-out 0.2s;
    font-size: 45px;
    font-weight: 500;
    margin: 0;
    letter-spacing: -1px;
}

main>a:hover article>div>div>button,
main>a:focus article>div>div>button {
    transition: ease-in-out 0.2s;
    background-color: #f9b233;
}

main>a:hover article>div>h2,
main>a:focus article>div>h2 {
    transition: ease-in-out 0.2s;
    color: #f9b233;
}

main>a:hover .cat-home,
main>a:focus .cat-home {
    transition: ease-in-out 0.2s;
    color: #f9b233;
}

main>a:hover .img-art,
main>a:focus .img-art {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

article>div>p {
    margin-top: 15px;
}

/* ---------- SINGLE ARTICLE ----------- */

.img-single {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.legende-single {
    position: absolute;
    bottom: 3px;
    right: 3px;
    color: white;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 3px;
    font-size: 12px;
}


/* ---------- GALLERIES ---------- */

figure {
    background-color: #e6007e;
    font-size: 0px;
    padding: 5px;
}

/* ---------- PROGRESSION ARTICLE ---------- */

.progress {
    z-index: 9;
}

#progress-bar {
    --scrollAmount: 0%;


    background: linear-gradient(to right, #f9b233 var(--scrollAmount), transparent 0);
    width: 100%;
    height: 10px;
    position: fixed;
    top: 100px;
    flex: 0;

}

/* ---------- RESULTATS RECHERCHE ---------- */

div#resultat ul {
    list-style: square;
    color: #e6007e;
}

div#resultat a {
    text-decoration: none;
    color: #e6007e;
    transition: ease-in-out 0.2s;
    font-weight: 500;
}


div#resultat a:hover {
    color: #f9b233;
}
































/* --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   -------------- MOBILE ----------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   --------------------------------------------------
   -------------------------------------------------- */

@media only screen and (max-width: 950px) {
    main {
        border: solid white 1px;
        width: 90%;
        max-width: 40em;
        padding: 3em 0em 10em 0em;
        /*répatition pour le footer*/
        flex: 1 0 auto;
        flex-grow: 1;
    }


    /* MENU BURGER */

    /* Sidenav menu */
    .sidenav {

        z-index: 18;
        height: 75px;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        background-color: white;
        transition: all ease-in-out 0.3s;
        display: block;
    }

    /* Sidenav menu links */

    .sidenav a {

        padding: 8px;
        margin: auto;
    }

    .sidenav ul>li>a {
        width: auto;
        padding: 8px;
    }

    .sidenav ul>li {
        display: block;
        padding: 12px;
    }

    .sidenav ul {
        display: block;
    }

    .sidenav a:hover,
    .sidenav a:focus {
        text-decoration: none;
        color: #f9b233;
        border-bottom: solid 0px;
        padding: 8px;
    }


    /* Active class */
    .sidenav.active {
        visibility: visible;
        opacity: 1;
        height: 60%;
    }

    /* Close btn */
    .close div {
        display: block;
        width: 35px;
        height: 35px;
        z-index: 100;
        position: absolute;
        top: 10px;
        left: 10px;
        margin-top: 10px;
        cursor: pointer;
    }

    .line1 {
        width: 24px;
        height: 5px;
        background-color: #e6007e;
        position: fixed;
        rotate: -45deg;
        margin-top: 8px;
        margin-left: 9px;
    }

    .line2 {
        width: 32px;
        height: 5px;
        background-color: #e6007e;
        position: fixed;
        margin-top: 15px;
        margin-left: 13px;
    }

    .line3 {
        width: 24px;
        height: 5px;
        background-color: #e6007e;
        position: fixed;
        rotate: 45deg;
        margin-top: 22px;
        
        margin-left: 9px;
    }



    /* Icône burger */
    .burger-icon span {
        display: block;
        width: 35px;
        height: 5px;
        background-color: #e6007e;
        margin: 10px;
    }

    header>form {
        margin: auto;
        padding-right: 20px;
        padding-top: 5px;
        flex-grow: 0;
        width: 100%;
    }

    header>form>div {
        flex-grow: 0;
        margin: auto;
        padding-left: 45px;
    }

    .champ {

        text-align: center;
        width: 150px;
        flex-grow: 0;
    }

    
    .top-hidden {
        margin-top: 10px;
        margin-left: 10px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        cursor: pointer;
        background-color: white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);    }



    #progress-bar {
        --scrollAmount: 0%;


        background: linear-gradient(to right, #f9b233 var(--scrollAmount), transparent 0);
        width: 100%;
        height: 10px;
        position: fixed;
        top: 0px;
        flex: 0;

    }

    h1 {
        font-size: 50px;
        padding-top: 75px;
    }

    main>h2 {
        font-size: 30px;
    }

    main {
        padding-top: 0;
        padding-bottom: 4em;
    }

    main>a {
        padding: 15px;
        margin: 15px;
    }

    main>a:hover,
    main>a:focus {
        padding: 15px;
        margin: 15px;
    }

    article>p {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 19px;
    }

    main>a>article>h2 {
        font-size: 30px;
        hyphens: auto;
    }

    .lire-art {
        color: white;
        border: 0;
        text-decoration: none;
        background-color: #e6007e;
        padding: 10px;
        transition: ease-in-out 0.2s;
        font-weight: 600;
        font-family: 'albert';
        font-size: 16px;
        cursor: pointer;
        width: 100%;
    }

    .splash {
        display: flex;
    }

    article{
        display: block;
    }

    .img-art {
        background-size: cover;
        background-position: center;
        height: 250px;
        width: 100%;
        margin-bottom: 10px;
    }

    .img-single {
        height: 325px;
    }



    .logostoa {
        height: 100px;
        margin: 0 auto;
        fill: #e6007e;
        transition: ease-in-out 0.2s;
        position: absolute;
        top: 8px;
        left: 50%;
        translate: -50px;
        transform: scale(75%);
        z-index: 10;
    
    }
    




}
























@media only screen and (max-height: 650px) {
    .sidenav.active{
        height: 100%;
    }
}