*{margin: 0; padding: 0; box-sizing: border-box;
}
body.intro {
background-color: rgb(0, 0, 0);
background-image: url("fond.jpg");
background-repeat: no-repeat;
background-size: cover;
}
a {text-decoration: none;}

/* HEADER */
header, .num {display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    user-select: none;}
.logo-intro {
    padding-left: 24px;
    width: 180px;
    filter: invert(100%);
    }
.logo {padding-left: 24px;
    width: 180px;}


/*--- MENU ---*/
.btn {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 25px;
  cursor: pointer;
  border: none;
}
.dropdown {
  position: absolute;
  top: 61px;
  right: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.1s cubic-bezier(0.16, 1, 0.5, 1);
}

.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0rem);
}

.nav_items{
        position: absolute;
        right: 0px;
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.9) 75%);
        display: flex;
        flex-direction: column;
        font-family: 'Ubuntu'; font-weight: 500; font-style: normal;
        font-size: 16px;
        color: rgb(0, 0, 0);
    }
    
.nav_items a{ 
            padding: 12px 28px 12px 24em;
            position: relative;
            color: rgb(0, 0, 0);
            text-decoration: none;
            text-align: right;
            }
.nav_items :hover{
            color: rgb(255, 255, 255);
            background-image: linear-gradient(to right, rgba(255, 1, 14, 0)25%, rgba(255, 1, 14, 1)75%);
            }

.nav_toggle{
        display: flex !important;
        flex-direction: column;                
        cursor: pointer;      
    }
    .nav_toggle span{
        width: 30px;
        height: 3px;
        margin-bottom: 6px;
        border-radius: 2px;             
        transform-origin: 5px 0px;
    }
    .nav_toggle span.noir {background-color: black;}
    .close span{
        transform: rotate(45deg) translate(0px, 0px);
    }
    .close span:nth-child(2){
        display: none;
    }
    .close span:nth-child(3){
        transform: rotate(-45deg) translate(-5px, 1px);
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
        }
    .open{
        animation: fadeIn 0.4s ease-in-out;
    }

.local-projets a:nth-child(1):hover,
.local-analog a:nth-child(2):hover,
.local-mixmedia a:nth-child(3):hover,
.local-info a:nth-child(4):hover{
    background-image: linear-gradient(to right, rgba(206, 206, 206, 0)25%, rgba(206, 206, 206, 1)75%);
    }
h1 a{cursor: pointer;color: rgb(206, 206, 206);}
h1 a:hover{color:rgb(255, 1, 14)}


/* - - - INDEX - - - */

#carreIndex {
    display: flex;
    flex-direction: column; 
    min-height:91vh;
    flex-grow: 1;    
    margin: 0 0 24px 0;
    border-width: 1px 0 0 0;
    border-color: rgba(255, 255, 255, 0.9);
    border-style: solid;
}

.atwork{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
    }
.atwork span{
    width: 300px;
    color:rgb(255, 1, 14);
    font-family: 'Ubuntu'; font-weight: bold; font-style: normal;
    font-size: 2.5em;
    letter-spacing: -0.07em;
    line-height: normal;
    text-align: center;
    margin:0.2em;
    padding: 1.5em;
    border:1px solid rgb(255, 1, 14);
}

/* - - -  P A G E S  - - - */
#carre{
    display: flex;   
    flex-direction: column; 
    min-height:92vh;
    width: 100%;    
    margin: 0 0 12px 0;
    padding-bottom: 24px;
    border-width: 1px 0;
    border-color: rgb(0, 0, 0);
    border-style: solid;}

#headPortfolio{
    display: flex;
    margin-bottom: 24px;
}

.textePres {
    margin: 62px 62px 48px 24px;
    max-width: 60%;
}
.ensemble-image {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin: 0 48px 24px 48px;
    padding-top: 24px;
    }
.ensemble-image-sx70, .ensemble-image-media{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin: 0 48px 24px 48px;
    padding-top: 24px;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: rgb(221, 221, 221);
}
	
.portfolioX{
	width: 400px;
    min-height: 300px;
	border-bottom: 1px solid rgb(206, 206, 206);
	margin: 8px 8px 48px 8px;
    padding: 0 0 24px 0;
}
.portfolioX a:hover{opacity: 68%;}
.portfolioX h2{
	margin-top: 12px;}

.portfolioX p{max-width: 95%;margin: 6px 0 0 0;}

.ensemble-IM-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    margin: auto 5% auto 5%;
    }

.module-IM{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0 60px 0;
    width: fit-content;
    border-bottom: 1px solid rgb(206, 206, 206);}

.module-IM img{
    margin-bottom: 12px; max-width: 100%;max-height: 90vh;}

.legendeIm{text-align: left;
    align-self: flex-start;
    max-width: 1000px;
    padding: 6px 0 24px 0;}

.ensemble-image-sx70 img, .ensemble-image-media img {
    margin: 0 12px 0 12px;}


.ensemble-image.sanscopieA{display:flex;align-items: center;}
.ensemble-image.sanscopieA img{padding: 3px;}
.ensemble-image.sanscopieA a:hover{opacity: 68%;}

.legende-ensemble{
    width: 90%; display:flex; justify-content: center;
    padding: 12px 0 24px 0;
}

/* -----------------------------------------------------------
    styles pour slider
*/
.cont-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px auto;
    border-bottom: 1px solid rgb(206, 206, 206);
}

.slider {
    position: relative;
    background-color: aqua;
}

.slider img {  
    margin: 0 auto;
    align-self: center;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

.cont-slider .ant, .cont-slider .sig {
    position: absolute; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    height: 85%;
    top: 0;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 10000; 
}
.ant img{filter: invert(77%) sepia(0%) saturate(4216%) hue-rotate(136deg) brightness(108%) contrast(94%);width: 1em;}
.sig img{filter: invert(77%) sepia(0%) saturate(4216%) hue-rotate(136deg) brightness(108%) contrast(94%);width: 1em;}
.cont-slider .ant {left: -100px;}
.cont-slider .sig {right: -100px;}

.ant:hover, .sig:hover {filter: invert(19%) sepia(99%) saturate(7100%) hue-rotate(353deg) brightness(130%) contrast(117%);}

.texto-slider {
    height:fit-content;
    vertical-align: top;
    text-align: center;
    margin-bottom: 12px;
    padding: 8px 0 3px 0;
}
.texto-slider span{
    color: rgb(180, 180, 180);
    font-size: 0.9em;
    line-height: 1em;}
.contador-slider {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: rgb(180, 180, 180);
}


/*---*/

/* - - - I N F O - - - */

.CO2{text-align: left;
text-decoration: none;
margin: 6px 10px 6px 48px;
color: rgb(206, 206, 206);
}

.line_icon {
    display: flex;
    align-items: center;
    margin: 6px 48px 6px 48px;
}
.line_icon a{color: black;}
.line_icon a:hover{color: rgb(206, 206, 206);}
.dim_icon {
    width: 1em;
    margin-right: 6px;
    margin-bottom: -2px;
}


/* - - - FONTS - - - */
h1 {font-family: 'Ubuntu'; font-weight: bold; font-style: normal;
    font-size: 2.4em;
    padding: 24px 24px 24px 48px;
    letter-spacing: 0.09em;
    color: rgb(206, 206, 206);
}

h2 {font-family: 'Ubuntu'; font-weight: bold; font-style: normal;
    font-size: 1.4em;
    letter-spacing: 0.05em;
    color: rgb(206, 206, 206);}
	 

p, figcaption {font-family: 'Ubuntu'; font-weight: 400; font-style: normal;
    font-size: 1em;
    line-height: 1.5em;
    letter-spacing: -0.01em;
	color: rgb(62, 62, 62);}

.FRlang{color: rgb(0, 0, 0);}
.ENlang{color: black;}
.ESlang{color: black;}
.num {
    margin: 12px 0 0 12px;
    color: rgba(255, 255, 255, 0.33);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 100px;}

.cont-slider .ant, .cont-slider .sig{font-family: 'Ubuntu'; font-weight: 700; font-style: normal;font-size: 4em;}

/*- - - */
/* FOOTER */

.piednoir {
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Ubuntu'; font-weight: 500; font-style: normal;
    font-size: 10px;
    letter-spacing: 0.15em;
    padding: 0 24px 12px 24px;
}


/*--- M E D I A S -----------------------------------------------------*/

/* TRES GRAND ECRAN */
@media only screen and (min-width: 1200px){

}
/* GRAND ECRAN */
@media only screen and (min-width: 992px) and (max-width: 1366px){

.module-IM {
    max-width: 640px;
    }
.cont-slider {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 24px auto;
    border-bottom: 1px solid rgb(206, 206, 206);
}
.ant img{width: 0.9em;}
.sig img{width: 0.9em;}
}


/* PETIT BUREAU / TABLET */
@media only screen and (min-width: 768px) and (max-width: 991px){

#headPortfolio{
        display: flex;   
        flex-direction: column;}
h1 {display: flex;
        flex-wrap: wrap;
        padding-left: 24px;
        width: 100%;}

.module-IM img{ margin-bottom: 12px;
    max-width: 100%;
    max-height: 90vh;}
}

/* TABLET */
@media only screen and (min-width: 576px) and (max-width: 767px){

#headPortfolio{
        display: flex;   
        flex-direction: column;}
h1 {display: flex;
        flex-wrap: wrap;
        padding-left: 24px;
        width: 100%;}

.nav_items{
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 1) 88%);}

.nav_items a{padding: 12px 32px 12px 600px;}
    
.module-IM{width: fit-content;
    margin-bottom: 68px;
    border-bottom: 1px solid rgb(206, 206, 206);}

.module-IM img{ margin-bottom: 12px;
    max-width: 100%;
    max-height: 90vh;}
}

@media only screen and (max-height: 768px){
.module-IM{width: fit-content;
    margin-bottom: 68px;
    border-bottom: 1px solid rgb(206, 206, 206);}
.module-IM img{ margin-bottom: 12px;
    max-width: 100%;
    max-height: 90vh;}
}

/* BIGO MALIN */
@media only screen and (max-width: 575px) and (orientation: portrait){

body {min-height:100vh;background-position: center;}
.atwork span{
    width: 280px;
    font-size: 2em;
    margin:0.3em;
    padding: 0.5em 0 0.5em 0;
}

.cont-slider{
    display: flex;
    justify-content: center;
    flex-flow: column;
    width: 90%;}
.texto-slider {
    height:fit-content;
    vertical-align: top;
    text-align: center;
    padding: 8px 0 3px 0;
    width: 100%;
    font-family: 'Ubuntu'; font-weight: 400; font-style: normal;
    font-size: 0.8em;}
.contador-slider {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 0.9em;}

.cont-slider .ant, .cont-slider .sig {font-size: 42px;}
.cont-slider .ant {left: -50px;}
.cont-slider .sig {right: -50px;}

.nav_items{
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 1) 88%);}

#headPortfolio{
        display: flex;   
        flex-direction: column;}
h1 {display: flex;
        flex-wrap: wrap;
        padding-left: 24px;
        width: 100%;}

.nav_items a{padding: 12px 32px 12px 600px;}

.ensemble-image {
    margin-right: 24px;
    }

.portfolioX{max-width: 90vw;margin: 0 0 48px 0;}

.textePres {
    margin: 0%;
    padding: 12px 12px 48px 24px;
    max-width: 90%;
    }

.module-IM{width: fit-content;
    margin-bottom: 68px;
    border-bottom: 1px solid rgb(206, 206, 206);}

.module-IM img{ margin-bottom: 12px;
    max-width: 100%;
    max-height: 80vh;}
.legendeIm{text-align: left;
    max-width: 90%;
    padding: 6px 0 24px 0;}
.piednoir{
        display: flex;
        flex-flow: column;
        align-items: flex-start;} 
.piednoir span {padding-bottom: 6px;}
}

@media only screen
and (max-device-height: 475px)
and (orientation: landscape)
{
body {min-height:100vh;background-position: center;}
.atwork{
    display: flex;
    justify-content: center;
    align-items:flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
    }
.atwork span{
    width: 240px;
    font-size: 1.7em;
    margin:0.3em;
    padding: 0.4em 0 0.4em 0;
}
.textePres {
    margin: 0%;
    padding: 12px 12px 48px 24px;
    max-width: 90%;
    }
.legendeIm{text-align: left;
    max-width: 90%;
    padding: 6px 0 24px 0;}

.module-IM{height: 85vh; border: none;}


}


/*---- fleche haut ---*/
.back-to-top{ 
position: fixed; 
bottom: 80px; 
right: 40px; 
width: 40px;
height: 40px;
display: flex; 
justify-content: center; 
align-items: center; 
cursor: pointer; 
transition: opacity 0.3s; 
opacity: 0.8; 
z-index: 1000; /* Asegura que esté por encima de otros elementos */ 
}
.back-to-top img{width: 60px;filter: invert(77%) sepia(0%) saturate(4216%) hue-rotate(136deg) brightness(108%) contrast(94%);}
--.back-to-top:link {filter: invert(77%) sepia(0%) saturate(4216%) hue-rotate(136deg) brightness(108%) contrast(94%);}
.back-to-top:hover { 
filter: invert(19%) sepia(99%) saturate(7100%) hue-rotate(353deg) brightness(130%) contrast(117%);
opacity: 1; 
} 
/* Opcional: Ocultar la flecha inicialmente */ 
.back-to-top { 
display: none; 
}

/* Opcional: Mostrar la flecha después de cierto desplazamiento */ 
.back-to-top.show { 
display: flex; 
} 
