/* Reset CSS */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body{line-height:1}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}
table{border-collapse:collapse;border-spacing:0}

/* Variables */
:root {
    --color: #7a7a7a;
    --color2: #cbcbcb;
    --container-width-desktop: 60%;
    --container-width-tablet: 90%;
    --container-width-mobile: 95%;
}

/* Animation du fond gris */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}




/* Header fixe en haut */
.header-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-section h1,
.header-section .infos-link {
    font-size: 1.3rem;
    padding: 5px 10px 5px 10px;
}

/* Pour ne pas que le contenu soit caché derrière le header fixe */
body {
    padding-top: 80px; /* ajuster selon la hauteur du header */
}

.Informations {
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 10;


}

.Informations.show {
    transform: translateY(0);
}

.content {
    padding-top: 70px;
    margin-top: 0;
    transition: margin-top 0.5s ease; /* ✅ animation du déplacement */
}




/* Styles généraux */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

h1, h2 {
    font-size: 1.5em;
    color: var(--color);
    margin: 0;
}

.container {
    margin: 0 auto;
}

/* Texte de présentation */
.container > section:nth-child(2) {
    width: var(--container-width-desktop);
    max-width: 1200px;
    margin: 20px auto;
}

    .Informations p {
     width: var(--container-width-desktop);
    margin: 0 auto;
    }


.space {
    margin-right: 19px;
}

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


/* Contact info */
.contact-info {
    font-family: monospace;
    width: 100%;
    padding: 20px 10px;
    text-align: left;
    margin-top: 40px;
    background-color: white;
}

/* Mots surlignés */
.highlighted-word {
    display: inline-block;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 90%;
    border: 1px solid var(--color2);
    color: var(--color2);
}

.highlighted-word:hover {
    background-color: var(--color2);
    color: white;
    cursor: auto;
}



/* Slideshow */


.slideshow-wrapper {
    position: relative;
    width: var(--container-width-desktop);
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(to bottom, #a0a0a0, #d0d0d0, #b8b8b8, #e5e5e5);
    background-size: 100% 400%;
    animation: gradientAnimation 3s ease infinite;
}

.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow-container.visible {
    opacity: 1;
}

.slides {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slides:first-child {
    display: block;
    opacity: 1;
}

.slides.active {
    display: block;
    opacity: 1;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Titre et informations superposés */
.slide-title {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color2);
    padding: 8px 12px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-title.visible {
    opacity: 1;
}

.status-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    margin-right: -4px;
    margin-left: 20px;
}

.slide-title + .status-badge {
    left: calc(20px + var(--title-width) + 10px);
}

.slide-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-info.visible {
    opacity: 1;
}

.slide-info .type,
.slide-info .agency,
.slide-info .client {
    background: rgba(0, 0, 0, 0.7);
    color: var(--color2);
    padding: 8px 12px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    display: inline-block;
}

/* Curseur personnalisé */
.custom-cursor {
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    pointer-events: none;
    font-family: monospace;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

/* Navigation */
.prev, .next {
    display: none;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-tablet);
    }
    
 .Informations p {
     width: var(--container-width-tablet);
    max-width: 1200px;
    margin: 0 auto;
    }

    .slideshow-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {

    .Informations p {
     width: var(--container-width-mobile);
    max-width: 1200px;
    margin: 0 auto;
    }



    .container {
        width: var(--container-width-mobile);
    }
    
    .slideshow-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .slide-title,
    .slide-info .type,
    .slide-info .agency,
    .slide-info .client {
        font-size: 12px;
        padding: 6px 10px;
    }

    .slide-title {
        top: 10px;
        left: 10px;
    }

    .slide-info {
        bottom: 10px;
        left: 10px;
        gap: 6px;
    }

    .custom-cursor {
        padding: 6px 10px;
        font-size: 12px;
    }

    .status-badge {
        padding: 3px 6px;
        font-size: 10px;
        margin-left: 8px;
    }

    .slide-title + .status-badge {
        left: calc(10px + var(--title-width) + 8px);
    }

    .container > section:nth-child(2) {
        width: 100%;
    }
}

.contact-button {
    display: inline-block;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color2);
    padding: 8px 12px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

@media screen and (max-width: 768px) {
    .contact-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.legal {
    padding:10px;
    font-size: 0.5rem;
    color: #c6c6c6;
    max-width: 800px;
    line-height: 1.4;
    text-align: justify;
}

.legal a {
    color: #c6c6c6;
    text-decoration: none;
    border-bottom: 1px solid #c6c6c6;
}

.legal a:hover {
    color: #c6c6c6;
    border-bottom-color: #c6c6c6;
}

/* Styles pour le compteur mobile */
.mobile-counter {
    display: none;
    text-align: left;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #666;
}

/* Styles pour les informations sous le diaporama sur mobile */
.mobile-info {
    display: none;
    margin-top: 1rem;
    text-align: left;
}

.mobile-info .type,
.mobile-info .agency,
.mobile-info .client {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

/* Media queries pour mobile */
@media screen and (max-width: 767px) {
    .custom-cursor {
        display: none !important;
    }
    
    .mobile-counter {
        display: block;
    }
    
    .mobile-info {
        display: block;
    }
    
    .slide-info {
        display: none;
    }
} 