/* Règles spécifiques communes media query //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

* {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
p, span {
    color: #8e8e8e;
}
p.info-titre, span.info-titre {
    font-size: 0.9em;
}
p.info-texte, span.info-texte {
    font-size: 0.75em;
}
p.credit {
    font-size: 0.6em; 
    }
.info-button {
text-decoration: none;
border: none;
color: #f8f8f8;
background-color: #070707;
cursor: pointer;
}
a:link {
color: #070707;
}
a:hover {
opacity: 0.7;
}
a:visited {
color: #070707;
background-color: transparent;
text-decoration: none;
}
p.info-volet {
    font-size: 1em; 
    }
 a.info-link {
    font-size: 1.4em; 
    }    
a.footer-link {
    font-size: 1.8em;
    }
a.footer-nav {
    font-size: 1.2em; 
    }
a.footer-linkabout {
    font-size: 1.8em;
    color: #070707;
    }
a.footer-navabout {
    font-size: 1.2em;
    color: #070707;
    }
    

/*//////////////////////////////////////////////////////////////////////////////*/

body {
display: flex;
background-color: #f8f8f8;
height: 100vh;
width: 100vw;
    }
#container {
    display: flex;
    }
#volet {
    display: flex;
    padding: 1em;
    background-color: hsla(0, 0%, 0%, 0);
    opacity: 1;
    z-index: 998;
    position: fixed;
    top: 0;
    left: 0;
    transition: top 0.3s ease, left 0.3s ease;
    }
#fiche {
    display: flex;
    }
#about {
    display: flex;
    flex-direction: column;
    }
#media {
    display: flex;
    }
#cartel {
    position: relative;
    display: flex;
    padding: 1em;
    background-color: hsla(0, 0%, 0%, 0);
    opacity: 0.9;
    z-index: 997;
    transition: top 0.3s ease, left 0.3s ease, bottom 0.3s ease, right 0.3s ease;
    }
#onglet {
    position: fixed;
    display: block;
    opacity: 1;
    z-index: 997;
    transition: top 0.3s ease, left 0.3s ease, bottom 0.3s ease, right 0.3s ease;
    }
#mentions {
    display: flex;
    flex-direction: column;
    padding: 1em;
    justify-content: center;
    align-items: center;
    background-color: #070707;
    width: 100vw;
    z-index: 999;
    }
#article  {
    display: flex;
    flex-direction: column;
    padding: 1em;
    color: #8e8e8e;
    }
#table  {
    color: #8e8e8e;
    }

/* Ajout de règles spécifiques pour chaque media //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

@media (pointer:fine) {
    #container {
        flex-direction: column;
        row-gap: 0;
        height: fit-content;
    }
    #volet {
        width: 10vw;
        height: 100vh;
        flex-direction: column;
        margin-bottom: 1em;
        justify-content: center;
    }
    #fiche {
        flex-direction: row;
    }
    #about {
        margin-left: 10vw;
        width: 50vw;
        }
    #media {
        width: 80vw;
        height: fit-content;
        justify-content: right;
    }
    #cartel {
        flex-direction: column;
        justify-content: left;
        left:0;
        width: 20vw;
        opacity: 1;
    }
    #onglet {
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        left: 79vw;
        width: 31vw;
        height: auto;
    }
    #oTHc {
        display: none;
        }
    #oTVc {
        display: none;
        }
}

@media (pointer: coarse) and (orientation: portrait) {
    #container {
        flex-direction: column;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #volet {
        height: 5em; /* Ajuster la hauteur en conséquence */
        width: 100vw;
        column-gap: 1em;
        align-items: center;
        justify-content: center;
        margin-bottom: 1em;
    }
    #fiche {
        flex-direction: row;
        flex-wrap: nowrap;
        width: fit-content;
    }
    #about {
        left: 0;
        width: 100vw;
        }
    #media {
        width: 100vw;
        justify-content: right;
    }
    #cartel {
        left: 0;
        flex-direction: column;
        justify-content: left;
        width: 75vw;
    }
    #onglet {
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        left: 97vw;
        width: fit-content;
        height: fit-content;
    }
    #oTHc {
        display: none;
        }
    #oTVc {
        display: block;
        width: 93vw;
        height: auto;
    }
}
@media (pointer: coarse) and (orientation: landscape) {
    #container {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        overflow-y: hidden;
        align-items: end;
    }
    #volet {
        flex-direction: column;
        width: 16vw;
        height: 100vh;
        justify-content: center;
    }
    #fiche {
        flex-direction: column-reverse;
        flex-wrap: wrap;
        height: fit-content;
    }
    #about {
        left: 0;
        width: 66vw;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #media {
        height: 100vh;
        align-content: flex-start;
        align-items: start;
        width: fit-content;
    }
    #cartel {
        flex-direction: column;
        align-content: flex-end;
        height: 75vh;
        bottom: 0;
    }
    #onglet {
        left: 50%;
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        top: -90vh;
        height: fit-content;
        width: fit-content;
    }
    #oTHc {
        height: 93vh;
        width: auto;
        display: block;
        }
    #oTVc {
        display: none;
        }
    #mentions {
        height: 100vh;
        width: 3em;
        }
    .credit {
        -ms-transform: rotate(-90deg);
        transform: rotate(-90deg);
        white-space: nowrap;
    }
}

/* les contenus selon les différents médias////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

@media (pointer:fine) {
    img.portrait,video.portrait {
        max-height: 90vh;
        max-width: 70vw;
        width: auto;
        height: auto;
        }
    img.paysage,video.paysage {
        max-width: 70vw;
        max-height: 70vh;
        width: auto;
        height: auto;
        }
    img#ongletPortrait {
        width: 20px;
        height: 40px;
        }
    video.in-info {
        top: 4.75em;
        position: absolute;
        max-height: 12.5em;
        width: auto; 
        height: auto;
        }
    #wipH {
        display: block;
        height: 5em;
        width: 90vw;
        background-image: repeating-linear-gradient(to right, darkorange, darkorange, 0.5px, transparent 0.5px, transparent);
        background-size: 25px 25px;
        background-color: #f8f8f8;
    }
    #wipV {
        display: none;
    }
    img.profil {
        padding-top: 5vw;
        max-width: 20vw;
        width: auto; 
        height: auto;
        }
    #article {
        font-size: 1.25em;
        }
    #table  {
        font-size: 0.8em;
        }
    a.footer-link {
    color: #070707;
    }
    a.footer-nav {
    color: #070707;
    }
}
    
@media (pointer: coarse) {
    img.portrait,video.portrait {
        max-width: 100vw; 
        max-height: 90vh;
        width: auto; 
        height: auto;
        }
    img.paysage,video.paysage {
        max-width: 100vw; 
        object-fit: contain;
        width: auto; 
        height: auto;
        }
    img.ongletPortrait {
        width: 20px;
        height: 40px;
        position: relative;
        left: -2.35em;
        top: -1em;
        margin-bottom: -2.7em;
        }
    video.in-info {
        top: 4.75em;
        position: absolute;
        max-height: 9.5em;
        width: auto; 
        height: auto;
        opacity: 1;
        }
    #wipH {
        display: block;
        height: 5em;
        width: 100vw;
        background-image: repeating-linear-gradient(to right, #ff8c00, #ff8c00 0.5px, transparent 0.5px, transparent);
        background-size: 25px 25px;
        background-color: #f8f8f8;
    }
    #wipV {
        display: none;
    }
    img.profil {
        padding-top: 8vw;
        max-width: 50%; 
        width: auto; 
        height: auto;
        }
    #article {
        font-size: 0.94em;
        }
    #table  {
        font-size: 0.6em;
        }
}
 
@media (pointer: coarse) and (orientation: landscape) {
    img.portrait,video.portrait {
        max-width: 70vw;
        max-height: 100vh;
        width: auto;         
        height: auto;
        }
    img.paysage,video.paysage {
        max-width: 90vw; 
        max-height: 100vh;
        width: auto; 
        height: auto; 
        }
    video.in-info {
        top: 4.75em;
        position: absolute;
        max-height: 9.5em;
        width: auto; 
        height: auto;
        }
    #wipH {
        display: none;
    }
    #wipV {
        display: block;
        height: 100vh;
        width: 16vw;
        background-image: repeating-linear-gradient(to top, #ff8c00, #ff8c00 0.5px, transparent 0.5px, transparent);
        background-size: 25px 25px;
        background-color: #f8f8f8;
    }
    img.profil {
        align-self: flex-start;
        width: auto; /* Laisse l'image s'adapter automatiquement en largeur */
        max-height: 96vh; /* Limite la hauteur pour éviter le débordement */
        height: auto; /* Laisse l'image s'adapter automatiquement en hauteur */
        margin-top: -16vh; /* Supprime la marge ajoutée précédemment */
        object-fit: contain; /* Garantit que l'image conserve ses proportions sans être déformée */
        object-position: center; /* Centre l'image horizontalement et verticalement */
        }
    #article {
        font-size: 0.94em;
        }
    #table  {
        font-size: 0.6em;
        }
}


