@charset "UTF-8";

/* --------------------- */
/* FONT */
@font-face {
    font-family: 'Archia';
    src: url('Archia-regular.woff') format('woff');
}

/* --------------------- */
/* RESET */
html, body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    padding-top: 60px; /* espace pour header fixe */
}

body {
    font-family: 'Archia', Arial, sans-serif;
    background-color: black;
    color: white;
}

/* --------------------- */
/* LIENS */
a, a:hover, a:visited, a:active {
    color: white;
    text-decoration: none;
    transition: font-weight 0.2s ease;
}

/* --------------------- */
/* HEADER FIXE */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    z-index: 1000; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    box-sizing: border-box;
}

header a:hover {
    font-weight: bold;
}

nav {
    display: flex;
    flex-wrap: wrap;
}

nav a {
    margin: 0 15px;
}

/* --------------------- */
/* MARQUEE */
.marquee-container {
    overflow: hidden;
    font-size: 46px;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------- */
/* LAYOUT DES COLONNES */
main {
    display: flex;
    justify-content: space-between;
}

.column {
    flex: 33.333%;
}

.image-container {
    padding: 15px;
    position: relative;
}

/* --------------------- */
/* IMAGES */
img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* --------------------- */
/* CAPTION (desktop) */
.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* HOVER DESKTOP */
.hover-opacity:hover img {
    opacity: 0.5;
}

.hover-opacity:hover .caption {
    opacity: 1;
}

/* PROJETS SPÉCIAUX */
.special-block img {
    opacity: 1;
}

.special-block:hover img {
    opacity: 0.5;
    filter: blur(8px);
}

.special-block:hover .caption {
    opacity: 1;
}

/* --------------------- */
/* DRAWING */
.drawing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.draw {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: lime;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    transform: translate(-50%, -50%);
}

/* --------------------- */
/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    white-space: nowrap;
}

.description {
    font-size: 20px;
    padding: 0 15px; /* ajoute de l'espace à gauche et à droite */
    box-sizing: border-box;
    max-width: 100%;
}


/* --------------------- */
/* RESPONSIVE MOBILE <=768px */
@media (max-width: 768px) {

    /* HEADER */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
	

    .description p {
        font-size: 18px; /* optionnel : texte un peu plus petit sur mobile */
        padding: 0 15px; /* espace horizontal sur mobile */
        line-height: 1.5;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
    }

    nav a {
        font-size: 14px;
        margin: 0;
    }

    /* MAIN */
    main {
        flex-direction: column;
    }

    .column {
        flex: 100%;
    }

    /* MARQUEE */
    .marquee-container {
        font-size: 20px;
        padding: 10px 0;
    }

    /* CAPTION MOBILE - TEXTE SOUS L'IMAGE */
    .image-container .caption {
        position: static;       /* texte sous l'image */
        transform: none;
        opacity: 1;
        font-size: 16px;
        text-align: left;
        padding: 5px 0 0 0;     /* petit espace au-dessus */
        white-space: nowrap;     /* une seule ligne */
        overflow: hidden;
        text-overflow: ellipsis;
        background: none;        /* pas de fond */
    }

    /* supprime hover sur mobile */
    .image-container.hover-opacity:hover .caption,
    .special-block:hover .caption {
        opacity: 1;
    }

    /* IMAGE : pas d'opacité au hover */
    .hover-opacity:hover img,
    .special-block:hover img {
        opacity: 1;
        filter: none;
    }
}

/* --------------------- */
/* TABLETTE 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    main {
        flex-wrap: wrap;
    }

    .column {
        flex: 50%;
    }
}
