/* --- CONFIGURATION GÉNÉRALE --- */
body {
    background-color: #0e0f14;
    color: white;
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
}

/* --- EFFET DE GRAIN (TEXTURE TYPE FRAMER) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15; 
    pointer-events: none;
    z-index: 9999;
    animation: noise-subtle 0.15s steps(2) infinite;
}

@keyframes noise-subtle {
    0% { transform: translate(0,0) }
    50% { transform: translate(1px, 1px) }
    100% { transform: translate(-1px, -1px) }
}

/* --- CURSEUR PERSONNALISÉ --- */
#custom-cursor {
    width: 12px;
    height: 12px;
    background: #afff38;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer: fine) {
    #custom-cursor { display: block; }
    body { cursor: none; }
    a, button, img, .thumb { cursor: none; }
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
header { padding: 80px 20px; }
h1 { font-size: 3.5rem; margin: 0; color: #afff38; text-transform: lowercase; }
.subtitle { color: #888; font-size: 1.2rem; margin-top: 10px; }

.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.nav-logo {
    width: 100px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

/* --- PROJETS --- */
.project-container { margin-bottom: 120px; }

.project-title {
    display: block;
    margin-bottom: 35px;
    color: #afff38;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 30px;
}

.slider-container {
    width: 85%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y; /* Permet le scroll vertical sur mobile, bloque l'horizontal pour le drag */
}

.slider-container:active {
    cursor: grabbing;
}

.slider {
    display: flex;
    gap: 25px;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 20px 0;
}

.slider img {
    flex: 0 0 350px;
    width: 350px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.slider img:hover { transform: scale(1.03); opacity: 0.85; }

.slide-arrow {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
    transition: background 0.3s;
}

.slide-arrow:hover { background: rgba(175, 255, 56, 0.2); }

/* --- SECTION CLIENTS --- */
.clients-section {
    padding: 100px 20px;
    background-color: #0e0f14;
    border-top: 1px solid #1a1a1a;
}

.section-subtitle {
    color: #afff38;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1500px;
    margin: 0 auto;
}

.client-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.client-item img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222;
    transition: border-color 0.3s;
}

.client-item span { margin-top: 15px; color: #666; font-size: 0.9rem; }

.client-item:hover { transform: translateY(-10px); }
.client-item:hover img { border-color: #afff38; }
.client-item:hover span { color: white; }

/* --- CONTACT & SUCCESS OVERLAY --- */
.contact-section { 
    padding: 100px 20px;
    background: #0e0f14;
    border-top: 1px solid #1a1a1a;
    position: relative;
}

form { display: flex; flex-direction: column; max-width: 500px; margin: 0 auto; gap: 20px; }

input, textarea { 
    padding: 18px; 
    background: #16171d; 
    border: 1px solid #222; 
    color: white; 
    border-radius: 10px; 
    font-family: inherit;
    font-size: 1rem;
}

button[type="submit"] { 
    padding: 18px; 
    background: #afff38; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 10px; 
    color: black;
    font-size: 1rem;
    transition: transform 0.3s;
}

button[type="submit"]:hover { transform: scale(1.02); background: white; }

/* --- STYLE DU CHECKMARK --- */
.success-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(14, 15, 20, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-overlay.active {
    display: flex;
    opacity: 1;
}

.checkmark-icon {
    width: 120px;
    height: 120px;
    background-color: #afff38;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(175, 255, 56, 0.4);
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active .checkmark-icon {
    transform: scale(1);
}

.checkmark-icon::after {
    content: "";
    width: 30px;
    height: 60px;
    border: solid black;
    border-width: 0 8px 8px 0;
    transform: rotate(45deg);
    margin-top: -10px;
}

/* --- FOOTER --- */
.social-footer {
    padding: 80px 20px;
    background-color: #0e0f14;
    border-top: 1px solid #1a1a1a;
}

.social-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; }

.social-icon img {
    width: 28px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.social-icon:hover img { opacity: 1; transform: translateY(-5px); }

.copyright { font-size: 0.7rem; color: #444; letter-spacing: 2px; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active img { transform: scale(1); }

.close-lightbox {
    position: absolute;
    top: 40px; right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* --- RESPONSIVE MOBILE (SMARTPHONES) --- */
@media (max-width: 768px) {
    /* Ajustement de l'en-tête */
    h1 { font-size: 2.5rem; }
    header { padding: 40px 20px; }
    .project-title { font-size: 0.8rem; margin-bottom: 20px; }
    
    /* Ajustement des sliders (Affiches plus petites) */
    .slider img {
        flex: 0 0 260px; /* Réduit la largeur des affiches */
        width: 260px;
    }
    .slider { gap: 15px; padding: 10px 0; }
    .slider-wrapper { padding: 0 5px; gap: 10px; }
    
    .slide-arrow {
        width: 35px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Grille des clients */
    .clients-grid { gap: 30px; }
    .client-item img { width: 80px; height: 80px; }
    .section-subtitle { font-size: 1.1rem; margin-bottom: 30px; }
    
    /* Formulaire de contact */
    .contact-section { padding: 60px 20px; }
    form { gap: 15px; }
    input, textarea, button[type="submit"] { padding: 15px; }
    
    /* Footer */
    .social-footer { padding: 50px 20px; }
    .social-links { gap: 25px; }
}