/*■■■ RESPONSIVE FONTS ■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

/* Très petits mobiles (< 320px) */
/* Très petits mobiles (< 320px) */
html {
    font-size: 18px; /* Mobile de base */
    overflow-x: hidden;
}

/* Mobiles (320px - 400px) */
@media screen and (min-width: 20em) { /* 320px */
    html {
        font-size: calc(18px + (18 - 18) * ((100vw - 320px) / (400 - 320)));
        /* Reste à 18px */
    }
}

/* Tablettes et desktop (400px - 1200px) */
@media screen and (min-width: 25em) { /* 400px */
    html {
        font-size: calc(18px + (16 - 18) * ((100vw - 400px) / (1200 - 400)));
        /* Diminue progressivement de 18px à 16px */
    }
}

/* Grand desktop (> 1200px) */
@media screen and (min-width: 75em) { /* 1200px */
    html {
        font-size: 16px; /* Plus petit sur grand écran */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*■■■ FONTS ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
@font-face {
    font-family: 'MaTypo';
    src: url('fonts/Nudles-Hairline.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MaTypo';
    src: url('fonts/Nudles-Fat.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'exposure';
    src: url('fonts/ExposureTrial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'inter';
    src: url('fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MaTypo', Arial, sans-serif;
    background: white;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}



/*■■■ NAVIGATION ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 10000;
    font-family: 'inter';
}

.nav-left .logo {
    display: inline-block;
}

.nav-left .logo img {
    /*height: 1.875rem;*/
    height: 2.5rem;
    /* 30px → fluide (30-37.5px) */
    width: auto;
}

.nav-right {
    display: flex;
    gap: 30px;
}

.nav-right a {
    text-decoration: underline;
    color: #000;
    font-size: 0.875rem;
    /* 14px → fluide (14-17.5px) */
    transition: opacity 0.3s;
}

.nav-right a:hover {
    opacity: 0.6;
}





/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
                    CONTACT.html 
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

.contacts {
    align-items: center;
    width: 50%;
    padding: 40px;
}

.contact-item {
    align-items: center;
    justify-content: center;
    display: flex;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 40px;
    padding-right: 40px;
    cursor: pointer;
    font-size: 3.125rem;
    /* 50px → fluide (50-62.5px) */
    border: solid;
    border-width: 1px;
    border-radius: 500px;
    margin-bottom: 10px;
}





/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
                    ABOUT.html 
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

.about-me {
    padding: 100px;
}

.labeur {
    font-size: 1.5625rem;
    /* 25px → fluide (25-31.25px) */
    line-height: 1.6;
}

.button {
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border: solid;
    border-width: 1px;
    padding-bottom: 8px;
    padding-top: 8px;
    padding-left: 20px;
    padding-right: 20px;
    color: #c9c9c9;
}

.reset-button {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.875rem;
    /* 30px → fluide (30-37.5px) */
    color: #c9c9c9;
}





/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
                    INDEX.html 
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

hr {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border: none;
    border-top: 0.5px solid #000;
    transform: translateY(-50%);
    margin: 0;
}



/*■■■ CAROUSEL ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*■■■ CAROUSEL ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
.carousel {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100vh;
    width: 100%;
    padding: 0 250px;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.projects-preview {
    width: 10%;
    min-width: 250px;
    height: auto;
    opacity: 0.4;
    margin-left: -110px;
    filter: grayscale(1);
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.projects-preview:hover,
.projects-preview.active { /* Ajoutez cette classe */
    width: 25%;
    height: auto;
    opacity: 1;
    margin-left: -110px;
    filter: grayscale(0);
    z-index: 10000;
}

/* Style de la scrollbar */
.carousel::-webkit-scrollbar {
    height: 10px;
}

.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.carousel::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Pour Firefox */
.carousel {
    scrollbar-width: thin;
    scrollbar-color: #000 #f1f1f1;
}

/* Texte - bas à gauche */
.project-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 45%;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-info.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-text h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    /* 20px → fluide (20-25px) */
}

.info-text p {
    margin: 5px 0;
    font-size: 0.875rem;
    /* 14px → fluide (14-17.5px) */
    font-family: 'inter', Arial, sans-serif;
}

.info-softwares {
 opacity: 25%;
}

.info-text br {
    content: "";
    display: block;
    margin: 12px 0; /* Espace autour du br */
}

.info-images {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Permet le retour à la ligne */
    align-items: flex-end;
    gap: 10px;
    max-width: 45%; /* Limite à 45% de la largeur de l'écran */
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.info-images.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-images img {
    /*filter: grayscale(1);*/
    width: 100px;
    height: auto;
    flex-shrink: 0; /* Empêche les images de rétrécir */
}



/*■■■ LIGHTBOX ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

#lightbox-image {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    text-decoration: underline;
    top: 30px;
    right: 50px;
    font-size: 1.5625rem;
    /* 25px → fluide (25-31.25px) */
    color: #000;
    cursor: pointer;
    z-index: 3001;
}

.lightbox-close:hover {
    opacity: 0.5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    text-decoration: underline;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5625rem;
    /* 25px → fluide (25-31.25px) */
    color: #000;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.5;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}




/*■■■ FILTRES ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
.filter-container {
    position: fixed;
    top: 80px;
    left: 40px;
    display: flex;
    gap: 15px;
    z-index: 9000;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: 'inter', Arial, sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px; 
}

.filter-btn::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1px solid #000;
    display: inline-block;
    transition: all 0.3s;
    box-sizing: border-box;
}

/* Croix à l’intérieur du carré */
.filter-btn:hover::before {
    background:
        linear-gradient(45deg,
            transparent 45%,
            #000 45%,
            #000 55%,
            transparent 55%),
        linear-gradient(-45deg,
            transparent 45%,
            #000 45%,
            #000 55%,
            transparent 55%);
}

.filter-btn.active::before {
    background: #000; 
}

.filter-btn:hover {
    opacity: 0.6;
}




/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
                    POP-UP WINDOWS
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

/* === WRAPPER === */
.window-popup-contact,
.window-popup-about {
    display: none;
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.window-popup-contact.active,
.window-popup-about.active {
    display: block;
    pointer-events: none;
}

/* === CONTAINERS === */
.window-container-contact,
.window-container-about {
    position: fixed;
    background: white;
    border: 0.5px solid #000;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-container-contact {
    top: 100px;
    right: 40px;
    width: 35%;
    max-width: 90%;
}

.window-container-about {
    top: 65%;
    right: 40px;
    width: 100%;
    max-width: 90%;
}

/* === HEADER === */
.window-header {
    flex-shrink: 0;
    background: white;
    border-bottom: 0.5px solid #000;
    color: black;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window-title {
    font-size: 0.875rem;
    font-weight: normal;
    font-family: 'inter';
}

.window-close {
    font-family: 'inter';
    font-size: 0.875rem;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.2s;
}

.window-close:hover {
    opacity: 50%;
}

/* === CONTENT === */
.window-content {
    flex: 1;
    padding: 30px;
    line-height: 1.8;
    overflow-y: auto;
    word-wrap: break-word;
}

.window-content p {
    margin: 10px 0;
    font-size: 1rem;
}

.window-content a {
    color: #000;
    text-decoration: none;
}

.window-content a:hover {
    opacity: 0.6;
}

/* === FOOTER === */
.window-footer {
    flex-shrink: 0;
    padding: 10px 30px;
    background: none;
}

.reset-button {
    text-transform: lowercase;
    text-decoration: underline;
    color: #000;
    border: 0px;
    background: transparent;
    cursor: pointer;
    font-family: 'inter';
    font-size: 0.875rem;
    transition: all 0.3s;
    padding: 0;
}

.reset-button:hover {
    opacity: 50%;
}

/* === ANIMATIONS === */
@keyframes windowOpen {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* === RESIZE HANDLES === */
.resize-handle {
    position: absolute;
    z-index: 10;
}

/* Coins */
.resize-handle.top-left {
    top: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.resize-handle.top-right {
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

.resize-handle.bottom-left {
    bottom: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

.resize-handle.bottom-right {
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

/* Bords */
.resize-handle.top {
    top: -5px;
    left: 0;
    right: 0;
    height: 10px;
    cursor: n-resize;
}

.resize-handle.bottom {
    bottom: -5px;
    left: 0;
    right: 0;
    height: 10px;
    cursor: s-resize;
}

.resize-handle.left {
    left: -5px;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: w-resize;
}

.resize-handle.right {
    right: -5px;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: e-resize;
}