:root {
    font-size: 3em;
    --jaune:#ffedab;
    --marron:#401608;
    --rouge:rgb(128, 23, 9);
    --grisfonce : #312C28;
    --grisclair : #524b46;
}

b{
    color : var(--rouge);
}

h1,h2,h3 {
    color: var(--rouge);
    font-size: 2rem;
}

h4,h5 {
    color: var(--marron);
    font-size: 1.5rem;
}

*{
    box-sizing: border-box;
}

body,html {
    width: 100%;
    height: 100%;
}

body, html,header{
    background-color:var(--jaune) ;
    background-image: url("img/noise.png");
    background-size: 100px;
    padding: 0;
}


body{
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height:14%;
    max-height: 300px;
    padding: 0;
    margin: 0;
}

#entete{
    display: block;
    content: url('img/entete.png');
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    max-height: 300px;
    max-width: 100%;
    width: auto;
}

#bouton_menu {
    content: url('img/bouton_menu.png');
    position: absolute;
    top: 60%;
    left:50.5%;
    height: 17%;
    width: auto;
    transition: all 0.3s ease;
}

#menu {
    position: fixed;
    top: -100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('img/fond_menu.png'), url("img/noise.png");
    background-repeat: no-repeat, repeat;
    background-size: contain, 100px;
    background-position: center;
    height: 100%;
    width: 100%;
    z-index: 3;
}

#topmenu {
    flex-basis: 25%;
}

.div_bouton_menu {
    flex-basis: 5%;
    width: 100%;
    margin-bottom: 1.4em;
    text-align: center;
}

.bouton_menu {
    margin: auto;
    height: 70%;
    width: auto;
    cursor: pointer;
}

main {
    display: block;
    padding: 30px;
    margin-top: 300px;
    overflow: scroll;
}

#photos {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

a {
    color: var(--marron);
    text-decoration: none;
    font-family: helvetica, arial, sans-serif;
}


a:hover {
    color : var(--rouge);
    text-decoration: underline;
}

#logo {
    margin-left: auto;
}

#corps {
    width: 70%;
    margin: auto;
}

#couv {
    width: 100%;
    max-width : 100%;
    height : auto;
}

.logo {
    height: 70px;
    width: auto;
}

.image {
    width:250px;
}

figure {
    cursor:pointer;
    margin:20px;
}

figure img{
    margin:0;
    padding:0;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

figcaption {
    margin:0;
    margin-top: -10px;
    color:var(--jaune);
    background-color:var(--grisfonce);
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*LIGHTBOX */

#lightbox {
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10;
    overflow: auto;
    display: none;
}


#lightbox_container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    min-height: 100vh;
}

#lightbox_container p {
    color: #fff;
}

strong {
    color:var(--rouge);
    font-weight: bold;
}

.photolight {
    margin: auto;
    border: solid 20px white;
    animation: lightboxIn 0.5s;
}

#lightbox_container img{
    max-width: 100%;
    height: auto;
}

#lightclose{
    position: fixed;
    border: none;
    text-indent: -3000px;
    background: url('img/close.svg') center center / 100% 100% no-repeat transparent;
    cursor: pointer;
    width: 50px;
    height :50px;
    top: 20px;
    right: 7%;
    opacity: 0.7;
    transition: all ease 0.3s;
}

.lightbutton{
    border: none;
    text-indent: -3000px;
    cursor: pointer;
    background: url('img/fleche.svg') center center / 30px 60px no-repeat;
    width: 50px;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    margin-top: -15px;
    z-index: 0;
    opacity: 0.7;
    transition: all ease 0.3s;
}

.lightbutton:hover, #lightclose:hover{
    opacity: 1;
    transform: scale(1.2);
}

#lightprev{
    transform: rotate(180deg);
    right: auto;
    left: 0;
}

.vignette img {
    cursor: pointer;
    box-shadow: 3px 3px 3px grey;
}


/* Pour les écrans plus grands*/
@media screen and (min-device-width:850px) {
    body {
        min-width: 840px;
        min-height: 500px;
        display: flex;
        flex-wrap: nowrap;
        font-size: 0.3rem;
    }

    h1,h2,h3 {
        color: var(--rouge);
        font-size: 0.7rem;
    }
    
    h4,h5 {
        color: var(--marron);
        font-size: 0.5rem;
    }

    main {
        font-size: 1.3em;
        border : 5px double;
        margin: 1em;
        flex-grow: 1;
    }

    header {
        display: none;
    }

    #menu {
        position: relative;
        top: 0;
        margin-left: 20px;
        flex-basis: 25%;
        min-width: 300px;
    }

    .div_bouton_menu {
        flex-basis: initial;
        height: 60px;
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }
    

    #topmenu {
        flex-basis: 15%;
    }

    .bouton_menu {
        height: 45%;
    }

    main {
        margin-top: 10px;
    }
}


/* Pour les mobile en paysage*/
@media screen and (max-device-width:849px) and (orientation : landscape) {
    body {
        min-width: 840px;
        display: flex;
        flex-wrap: nowrap;
        font-size: 0.3rem;
    }

    h1,h2,h3 {
        color: var(--rouge);
        font-size: 0.6rem;
    }
    
    h4,h5 {
        color: var(--marron);
        font-size: 0.2rem;
    }

    main {
        font-size: 1.3em;
        border : 5px double;
        margin: 1em;
        flex-grow: 1;
    }

    header {
        display: none;
    }

    #menu {
        position: relative;
        top: 0;
        margin-left: 5px;
        flex-basis: 20%;
    }

    .div_bouton_menu {
        flex-basis: 7%;
        min-height: 40px;
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }
    

    #topmenu {
        flex-basis: 15%;
    }

    .bouton_menu {
        height: 45%;
    }

    main {
        margin-top: 10px;
    }
}

