/* --- Styles de base --- */
body {
    background: #ffffff;
    color: #000;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding-top: 50px; /* espace pour le header fixe */
}

/* --- Header --- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 2px solid blue;
    color: blue;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
}

/* Groupe logo + catégories */
.header .left {
    display: flex;
    align-items: center;
    gap: 70px;
}

/* Logo */
.header img {
    height: 35px;
    width: auto;
}

/* Catégories */
.header nav.categories {
    display: flex;
    gap: 20px;
}

/* Menu droit */
.header .right-menu {
    display: flex;
    gap: 20px;
    margin-right: 40px;
    white-space: nowrap;
    flex-shrink: 1;
}

/* Liens du header */
.header a {
    position: relative;
    text-decoration: none;
    color: currentColor;
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 400;
}

/* Soulignement progressif */
.header a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 1.5px;
    background: blue;
    transition: width 0.5s ease;
}

.header a:hover::after {
    width: 100%;
}

/* --- Bandeau défilant --- */
.scrolling-text-container {
    width: 100%;
    height: 50px;
    background: white;
    border-bottom: solid blue 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.scrolling-track {
    display: flex;
    width: max-content; /* éviter les trous */
    animation: scroll-left 40s linear infinite;
    will-change: transform;
}

.scrolling-group {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.scrolling-group span {
    white-space: nowrap;
    font-size: 25px;
    color: blue;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scrolling-text-container:hover .scrolling-track {
    animation-play-state: paused;
}

/* --- Navigation / projets --- */
.nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.nav a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    color: inherit;
    position: relative;
}

.nav a img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 4/3;
    background-color: blue;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.nav a:hover img { opacity: 0; }
.nav a:hover::after { opacity: 1; }

.nav a span {
    margin-top: 10px;
    color: blue;
    font-size: 18px;
    font-weight: 300;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Texte projet */
.texte-projet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 700px;
}

.projet-title {
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 15px;
}

/* === MOBILE / SMALL SCREENS === */
/* === MOBILE / SMALL SCREENS === */
@media (max-width: 950px) {

    /* espace sous header */
    body { 
        padding-top: 60px; 
    }

    /* --- HEADER --- */
    .header {
        height: 55px;         /* plus compact */
        padding: 0 10px;
        gap: 5px;
        border-bottom: 1.5px solid blue;
    }

    .header img { 
        height: 22px;         /* LOGO PLUS PETIT */
        width: auto;
    }

    /* cacher les catégories */
    .header nav.categories { 
        display: none !important;
    }

    /* right menu réduit */
    .header .right-menu {
        gap: 10px;
        flex-shrink: 1;
        overflow: hidden;
        min-width: 0;
        white-space: nowrap;
    }

    .header a {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* --- SCROLLING TEXT --- */
    .scrolling-text-container { 
        height: 36px; 
        border-bottom: 1.5px solid blue; 
    }

    .scrolling-track {
        animation-duration: 24s;
    }

    .scrolling-group span {
        font-size: 15px;
    }

    /* --- GRILLE des PROJETS : 1 colonne --- */
    .nav {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 15px;
    }

    .nav a img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .nav a span {
        font-size: 14px;
        font-weight: 400;
    }
}

.footer{
    font-size: 10px;
    margin-top: auto;
    margin-bottom: 5px;
    text-align: center;
    color: blue;
}


/* === TABLET / INTERMEDIATE SCREENS === */
/* @media (max-width: 900px){

    body { padding-top: 60px; }

    .header {
        height: 55px;
        padding: 0 15px;
        gap: 10px;
        border-bottom: 1.5px solid blue;
    }

    .header img {
    height: 25px;
    width: auto;
    }

    .header nav.categories { display: flex; gap: 10px; }

    .header .right-menu {
        gap: 10px;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header a { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .nav { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nav a img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }/*

    /* Texte projet */
    /*.texte-projet { grid-template-columns: 1fr 1fr; }
    .projet-title { font-size: 28px; }
} /*

