/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'main', sans-serif;
    letter-spacing: -1px;
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    position: relative;
    transition: opacity 0.3s ease;

    /* fond entièrement blanc */
    background: #fff;   /* ou : background-color: #ffffff; */
    
    color: #333;
}

/* ===== TEXT STYLES ===== */
.name-link, .projects-section a, .menu li, .project, .normal, .infos, .awards, .texte {
    color: #333;
    font-weight: bold;
    position: relative;
}

.name-link:hover, .projects-section a:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===== FONTS ===== */
@font-face {
    font-family: CircularSpotifyTextBold;
    src: url("../assets/fonts/Elyesfontv2-Regular.ttf") format("opentype");
}

@font-face {
    font-family: main;
    src: url("../assets/fonts/Elyesfontv2-Regular.ttf") format("opentype");
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ===== HOME LAYOUT ===== */
.home-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.name-section {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 3rem;
}

.center-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-section {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 3rem;
    gap: 2rem;
}

.projects-section a {
    font-size: 1em;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.projects-section a:hover {
    transform: scale(1.05);
}

.projects-section li {
    list-style: none;
    margin-bottom: 1rem;
}

.name-link {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.name-link:hover {
    transform: scale(1.05);
}

/* ===== PROJECT PAGES ===== */
.project {
    position: absolute;
    color: #333;
    mix-blend-mode: normal;
}

.back {
    font-size: 1em;
    margin-left: 92vw;
    margin-top: 5.5vh;
    transition: color 0.3s ease;
    transform: none !important;
    scale: 1 !important;
    width: auto !important;
    height: auto !important;
}

.back:hover {
    color: #000;
    transform: none !important;
    scale: 1 !important;
    width: auto !important;
    height: auto !important;
    font-size: 1em !important;
    margin-left: 92vw !important;
    margin-top: 5.5vh !important;
}

.normal {
    color: #333;
}

/* ===== LINKS ===== */
a {
    text-decoration: none;
    color: black;
}

/* ===== VIDEOS ===== */
article video {
    position: absolute;
    width: 62vw;
    z-index: 10; /* ou supprime cette ligne */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}


.blackmilan video {
    width: 700px;
}

/* ===== SLIDERS ===== */
.sliderj {
    width: 100%;
    height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 4vw;
    overflow-x: scroll;
    display: flex;
}

.sliderc {
    width: 100%;
    height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 4vw;
    overflow-x: scroll;
    display: flex;
}

.sliderj img video,
.sliderc img video {
    width: 50%;
    margin-top: 4vh;
    object-fit: contain;
    margin-left: auto;
}

.slide {
    margin-right: 4vw;
}

.sliderj::-webkit-scrollbar,
.sliderc::-webkit-scrollbar {
    display: none;
}

/* ===== CONTACT PAGE ===== */
.contactpage {
    display: flex;
    color: black;
    list-style: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    gap: 10vw;
}

.bloc-image img {
    width: 300px;
}

.bloc-texte p {
    margin-bottom: 4vh;
}

.bloc-texte {
    margin-top: 12vh;
}

.contact {
    display: flex;
    gap: 2px;
}

.icon {
    width: 30px;
}

.texte {
    width: 280px;
}

.infos {
    font-size: 1em;
}

.awards {
    width: 350px;
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
    width: 100%;
}

.video-grid video {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===== MANIFESTO ===== */
#manifesto {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#manifesto video {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== NUMBER GRID ===== */
#number-grid {
    display: grid;
    grid-template-columns: repeat(3, 3rem);
    grid-auto-rows: 3rem;
    gap: 0.1px;
    padding: 6px;
}

#number-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
}

#number-grid span:hover {
    color: #000;
    transform: scale(1.1);
}

/* ===== IMAGE GRID ===== */
#img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 80vmin;
    max-width: 700px;
}

#img-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.hover-number {
    display: none;
    margin-right: 10px;
    color: #000000; 
    font-weight: bold;
    font-family: 'Elyesfontv2-Regular.ttf', Elyesfontv2-Regular.ttf;
}

a:hover .hover-number {
    display: inline;
}
