*{
    box-sizing: border-box;
}

body{
    background: #e8e8e8;
    font-family: "Area-Inktrap", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-optical-sizing: auto;
    margin: 0;
    color: #0909ff;
}

h1{
    margin: 0;
}

img{
    max-width: 100%;
    height: auto;
    display: block;
}

p{
    max-width: 600px;
}


/* HEADER */
.header{
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    height: 85px;
}

.header a{
    font-weight: 800;
    text-decoration: none;
    color: #0909ff;
    font-size: 19px;
    margin-bottom: 12px;
}

.header-nav{
    display: grid;
    grid-template-columns: repeat(2,auto);
    gap: 24px;
}

.main{
    padding: 0px;
}

/* --- Bandeau défilant (fonctionnel : droite → gauche, infini) --- */
.scrolling-text-container {
    width: 100%;
    height: 90px;
    background: #0909ff;
    overflow: hidden;
    display: block;            /* container block */
    position: relative;
    color: rgb(255, 255, 255);
    /* aligner verticalement le texte */
    display: flex;
    align-items: center;
}

/* La piste : largeur 200% pour contenir deux copies côte à côte */
.scrolling-track {
    display: flex;
    width: 200%;               /* important : double largeur du viewport */
    box-sizing: border-box;
    align-items: center;
    animation: scroll-left 20s linear infinite;
    will-change: transform;
}

/* Chaque "groupe" occupe la moitié de la piste (50%) => 2 groupes = 100% visible + 100% copie */
.scrolling-group {
    flex: 0 0 50%;             /* prend 50% de la track (donc 100% du viewport chacun) */
    display: flex;
    align-items: center;
    gap: 40px;
    padding-left: 2rem;        /* petit padding gauche pour respirer */
    box-sizing: border-box;
}

/* Le texte lui-même */
.scrolling-group span {
    white-space: nowrap;
    font-size: 30px;
    line-height: 1;
    color: white;
}

/* Animation : défile vers la gauche (de 0 à -50% de la piste) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);        /* début : piste alignée à gauche du container */
    }
    100% {
        transform: translateX(-50%);     /* fin : la seconde moitié de la piste est alignée à gauche */
    }
}

/* Optionnel : pause au survol */
.scrolling-text-container:hover .scrolling-track {
    animation-play-state: paused;
}

.title{
    font-size: 35px;
    font-weight: 800;
    background: white;
    color: #0909ff;
    text-align: center;
    line-height: 2.5;
    margin: 0;
}

.nav{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    justify-content: center;
    gap: 48px 20px;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 100px;
    color: #0909ff;
}

.nav a{
    text-decoration: none;
    font-size: 10px;
    background: white;
    transition: all .5s;
}

.nav a img{
    width: 100%;
    height:100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s;
    z-index: 0;
    /* color: #0909ff; */
    transition: all .5s;
    /* mix-blend-mode: darken; */
}

.nav a span{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 800;
    color: #0909ff;
    text-align: left;
    position: relative;
}

.nav a:hover img{
    opacity: 0.3;
}

.nav a:hover{
    background: #0909ff;
}


/** PAGE PROJET**/
.projet{
    background: #0909ff;
    color: rgb(255, 255, 255);
}

.projet h1{
    font-size: 100px;
}

.item{
    display: grid;
    place-items: center;
    color: #ff00f2;
    text-decoration: none;
    background: #0909ff;
    font-size: 100px;
}

.item img, .item .desc{
    grid-column: 1/-1;
    grid-row: 1/-1;
    transition: opacity,0.3s;
}

.item .desc{
    opacity: 0;
    /* background: rgba(255, 255, 255, 0.539); */
    padding: 12px;
    border-radius: 3px;
}

.item:hover .desc{
    opacity: 1;
    z-index: 999;
}

.item:hover img{
    opacity: 0.2;
 }

@media (max-width:600px){
    .nav{
        grid-template-columns: 1fr;

    }

}


/* A PROPOS */
a{
    text-decoration: underline;
    color: #0909ff;
}

p{
    max-width: 600px;
    margin-left: 20px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

/* PROJET */
.info{
    max-width: 600px;
    margin: 20px;
    align-items: justify left;
}

.gallery-grid{
    background-color: #e8e8e8;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    padding-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

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