/* -----------------------------------------------------------
   1. SUPPRESSION DU CURSEUR NATIF SUR TOUT LE SITE
----------------------------------------------------------- */
*, *::before, *::after, html, body, button, a, div {
    cursor: none !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* -----------------------------------------------------------
   2. CONTENEUR DE SLIDE (3 ÉCRANS : CV <- TROTTOIR -> PROJETS)
----------------------------------------------------------- */
#viewport {
    display: flex;
    width: 300vw;
    height: 100vh;
    transform: translateX(-100vw);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

body.show-cv #viewport {
    transform: translateX(0vw);
}

body.show-projects #viewport {
    transform: translateX(-200vw);
}

.screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    flex-shrink: 0;
}

/* -----------------------------------------------------------
   3. ÉCRAN TROTTOIR (CENTRE)
----------------------------------------------------------- */
#street-screen {
    background-image: url('fond.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

@keyframes vibrate {
    0% { transform: scale(1.05) translate(0, 0); }
    20% { transform: scale(1.05) translate(-3px, 2px) rotate(-2deg); }
    40% { transform: scale(1.05) translate(3px, -2px) rotate(2deg); }
    60% { transform: scale(1.05) translate(-2px, -1px) rotate(-1deg); }
    80% { transform: scale(1.05) translate(2px, 3px) rotate(1deg); }
    100% { transform: scale(1.05) translate(0, 0); }
}

.interactive-obj {
    position: absolute;
    user-select: none;
    z-index: 2;
    display: block;
    text-decoration: none;
}

.interactive-obj img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
}

.interactive-obj:hover img {
    animation: vibrate 0.3s infinite linear;
    filter: drop-shadow(0px 15px 25px rgba(255,255,255,0.2));
}

#obj-clefs {
    width: 280px;
    top: 15%;
    left: 10%;
    z-index: 2;
}

#obj-sac {
    width: 750px;
    top: 10%;
    right: -150px;
    left: auto;
    transform: rotate(15deg);
    z-index: 1;
}

#obj-livre {
    width: 560px;
    top: 50%;
    left: 10%;
    transform: rotate(12deg);
}

#obj-clavier {
    width: 350px;
    top: -10%;
    right: 850px;
    left: auto;
    transform: rotate(-55deg);
}

#obj-porte-carte {
    width: 220px;
    top: 65%;
    left: 45%;
    transform: rotate(-10deg);
}

/* TOOLTIPS */
.tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #111111;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10;
}

#obj-clavier .tooltip {
    top: auto;
    bottom: -110px;
    left: auto;
    right: 140px;
    transform: rotate(55deg);
}

.interactive-obj:hover .tooltip {
    opacity: 1;
}

/* -----------------------------------------------------------
   4. ÉCRAN CV / POCHETTE (GAUCHE)
----------------------------------------------------------- */
#cv-screen {
    background-image: url('fond_2.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pochette-container {
    width: 800px;
    max-width: 92vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-pochette {
    width: 100%;
    height: auto;
    transform: rotate(-6deg);
    filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cv-page {
    position: absolute;
    width: 75%;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    pointer-events: none;
}

.page-1 {
    top: 5%;
    left: 8%;
    transform: rotate(-12deg);
}

.page-2 {
    top: 15%;
    right: 3%;
    transform: rotate(8deg);
}

.pochette-container:hover .img-pochette {
    transform: rotate(-4deg) scale(1.02);
    filter: drop-shadow(0px 25px 35px rgba(0, 0, 0, 0.7));
}

.pochette-container:hover .page-1 {
    transform: rotate(-9deg) scale(1.02);
}

.pochette-container:hover .page-2 {
    transform: rotate(11deg) scale(1.02);
}

/* -----------------------------------------------------------
   5. ÉCRAN PROJETS (DROITE)
----------------------------------------------------------- */
#projects-screen {
    background-image: url('fond_2.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    max-width: 1150px;
    width: 82%;
    z-index: 2;
    padding: 20px;
    margin-right: 60px;
}

.project-card {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.5));
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Inclinaisons légères (< 5°) */
.card-1 { transform: rotate(-3deg); }
.card-2 { transform: rotate(2deg); }
.card-3 { transform: rotate(3deg); }
.card-4 { transform: rotate(-4deg); }

/* Effet au survol : redressement et léger grossissement */
.project-card:hover {
    transform: scale(1.05) rotate(0deg);
    filter: drop-shadow(0px 18px 28px rgba(0, 0, 0, 0.7));
    z-index: 10;
}

#obj-dauphin {
    width: 330px;
    right: 30px;
    top: 40%;
    transform: translateY(-50%) rotate(15deg);
    z-index: 3;
}

/* -----------------------------------------------------------
   6. BOUTONS RETOUR & TÉLÉCHARGEMENT
----------------------------------------------------------- */
.btn-back-img {
    position: absolute;
    top: 40px;
    width: 120px;
    height: auto;
    z-index: 10;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.4));
}

.btn-back-img.right { right: 40px; }
.btn-back-img.left { left: 40px; }

.btn-back-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0px 8px 15px rgba(255, 255, 255, 0.3));
}

.btn-download-link {
    position: absolute;
    bottom: 0;
    right: 100px;
    z-index: 10;
    display: block;
}

.btn-download-img {
    width: 260px;
    height: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5));
}

.btn-download-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 8px 18px rgba(255, 255, 255, 0.3));
}

.btn-linkedin-link {
	position: absolute;
    bottom: 0; /* Aligne le bas du panneau tout en bas de l'écran */
    left: 40px;
    z-index: 10;
    display: block;
}

.btn-linkedin-img {
	width: 400px;
    height: auto;
    display: block; /* Supprime l'espace blanc réservé sous le texte/image */
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5))
}

.btn-linkedin-img:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0px 8px 18px rgba(255, 255, 255, 0.3));
}

/* -----------------------------------------------------------
   7. BRAS CURSEUR
----------------------------------------------------------- */
#arm-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
}

#arm-image {
    display: block;
    height: 700px;
    width: auto;
    transform-origin: 50% 0%;
    transition: transform 0.12s ease-out;
    filter: drop-shadow(15px 25px 12px rgba(0, 0, 0, 0.45));
}

body.is-clicking #arm-image {
    transform: var(--current-transform) translateY(18px) scale(0.95) !important;
}