/* roots */

:root {
    --primary: #000;
    --secondary: greenyellow;
    --font: "Autoscape";
    --font2: "KleischHeadlineLLEduWeb-Thin";
    --font3: "KleischHeadlineLLEduWeb-ThinItalic";
    --font4: "KleischHeadlineLLEduWeb-Light";
    --font4a : "KleischHeadlineLLEduWeb-LightItalic";
    --font5: "KleischHeadlineLLEduWeb-Regular";
    --font6: "KleischHeadlineLLEduWeb-Medium"
 
}

/* fonts */


@font-face {
    font-family: "Autoscape";
    src: url(../fonts/AutoscapeLLEduWeb-Regular.woff),
    url(../fonts/AutoscapeLLEduWeb-Regular.woff2);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "KleischHeadlineLLEduWeb-Thin";
    src: url("../fonts/KleischHeadlineLLEduWeb-Thin.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
}
  

@font-face {
    font-family: "KleischHeadlineLLEduWeb-ThinItalic";
    src: url("../fonts/KleischHeadlineLLEduWeb-ThinItalic.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-ThinItalic.woff2") format("woff2");
    font-weight: thin;
    font-style: italic;
}

@font-face {
    font-family: "KleischHeadlineLLEduWeb-Light";
    src: url("../fonts/KleischHeadlineLLEduWeb-Light.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-Light.woff2") format("woff2");
    font-weight: light;
    font-style: normal;
}

@font-face {
    font-family: "KleischHeadlineLLEduWeb-LightItalic";
    src: url("../fonts/KleischHeadlineLLEduWeb-LightItalic.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-LightItalic.woff2") format("woff2");
    font-weight: light;
    font-style: italic;
}


@font-face {
    font-family: "KleischHeadlineLLEduWeb-Regular";
    src: url("../fonts/KleischHeadlineLLEduWeb-Regular.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "Kleisch";
    src: url("../fonts/KleischHeadlineLLEduWeb-Italic.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-Italic.woff2") format("woff2");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "KleischHeadlineLLEduWeb-Medium";
    src: url("../fonts/KleischHeadlineLLEduWeb-Medium.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-Medium.woff2") format("woff2");
    font-weight: medium;
    font-style: normal;
}

/* @font-face {
    font-family: "Kleisch";
    src: url("../fonts/KleischHeadlineLLEduWeb-MediumItalic.woff") format("woff"),
    url("../fonts/KleischHeadlineLLEduWeb-MediumItalic.woff2") format("woff2");
    font-weight: medium;
    font-style: italic;
}  */



/* CSS */

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

::selection {
    background-color: var(--secondary);
}

body {
    font-family: var(--font4);
    background-color: var(--primary);
    color: var(--primary);
    padding: 20px;
}


/* Disposition principale */
main {
    display: grid;
    gap: 15px;
    border: 3px solid var(--primary);
    border-radius: 9px;
    padding: 10px;
}

.project {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 texte, 2/3 images */
    gap: 10px;
    align-items: start;
    background-color: #fff;
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 9px;
}

.left-content {
    display: flex;
    flex-direction: column;
}



.title {
    font-family: var(--font4);
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 9px;
    text-align: center;
    justify-content: center;
    height: 100%; /* Même hauteur que main-title */
    display: flex;
    align-items: center;
}


.description {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding: 10px;
    border: 2px solid var(--primary); 
    border-radius: 9px;
}

/* Images et contenant */

.box_img {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    background-color: var(--primary);
    color: var(--primary);
    height: 60vh;
    margin-top: 0.2em;
    border: 3px solid var(--primary);
    border-radius: 9px;
    padding: 0.7em;
}

.image-carousel::-webkit-scrollbar {
    display: none; /* Supprime la barre de défilement pour un rendu propre */
}

.image {
    flex: 0 0 auto; /* Les images prennent leur taille naturelle */
    scroll-snap-align: start; /* Aligne au début lors du défilement */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0.7em;
}

.image img {
    height: 100%; /* Respecte la hauteur du conteneur */
    width: auto; /* Largeur automatique pour garder les proportions */
    object-fit: contain; /* Garde les proportions */
    padding: 0.3em;
}

video {
    width: 100%; /* Ajuste l'image pour qu'elle ne dépasse pas */
    height: 100%; /* Respecte la hauteur du conteneur */
    object-fit: contain; /* Garde les proportions */
    padding: 0.3em;
}

.context {
    padding: 10px;
    text-align: center;
    border: 2px solid var(--primary);
    border-radius: 4.5px;
    /* box-shadow: 3px 3px var(--primary); */
}

.context {
    background-color: #fff;
    font-style: var(--font);
}

.image {
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 3px var(--primary);
}

.ancr {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.filter-link {
    text-decoration: none;
    color: inherit;
    padding: 0.3rem 0.8rem;
    transition: all 0.3s ease;

}

.filter-link:hover {
    color: var(--primary);
    font-family: var(--font5);
}

.filter-link.active {
    text-decoration: underline;
    font-family: var(--font5);
    color: var(--primary);
}

.main-title {
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 9px;
    text-align: center;
    justify-content: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tags {
    text-align: center;
    justify-content: left;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;            
    max-width: 100%;
}


.tag {
    padding: 0.2rem 1rem;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    transition: opacity 0.2s ease;
    border: 2px solid var(--primary);
    border-radius: 9px;
    font-family: var(--font4a);
}

.tag:hover {
    color: var(--primary);
}

a {
    font-family: var(--font5);
    text-decoration: none;
    color: #222;
    animation: blink-red 2s linear infinite;
    transition: color 0.3s, text-decoration 0.3s;
}

@keyframes blink-red {
  0%, 100% {
    color: #222;
  }
  50% {
    color: #FF4136;
  }
}

a:hover {
  animation: none;
  color: #FF4136;
  text-decoration: underline;
}




/* Responsive Design */
@media (max-width: 1023px) {
    .project {
        grid-template-columns: 1fr 1fr; /* Tablette : 50/50 */
    }
    
    .box_img {
        height: 50vh; /* Réduire la hauteur sur tablette */
    }
}

@media (max-width: 767px) {
    body {
        padding: 5px;
    }

    .project {
        grid-template-columns: 1fr; /* Mobile : une seule colonne */
        gap: 5px;
    }
    
    .left-content {
        order: 1; /* Texte en premier */
    }
    
    .box_img {
        order: 2; /* Images en second */
        height: 40vh; /* Hauteur réduite sur mobile */
    }
    
    .title {
        font-size: 0.9rem; /* Texte plus petit */
    }
    
    .filter-link {
        padding: 0.2rem 0.5rem; /* Filtres plus compacts */
        font-size: 0.85rem;
    }
}