/* ============================
   Fichier : home.css
   Auteur : lyunabi
   Description : Styles pour la page d'accueil
   ============================ */

html, body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ── Page entry animation ──────────────────── */
@keyframes pageEntrance {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body {
    animation: pageEntrance 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

* {
    box-sizing: border-box;
}

/* ============================================ */
/* STRUCTURE GLOBALE - TOUTES LES SECTIONS */
/* ============================================ */

/* Wrapper de section (même structure partout) */
.section1,
.section-about,
.section-skills {
    width: 100%;
    padding: 80px 5%;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.section-skills {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Container de contenu (même largeur partout) */
.about-container,
.skills-container {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* SECTION HERO - Styles spécifiques */
/* ============================================ */

.hero-section {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: calc(100vh - 100px);
}

.dino-container {
    flex: 0 0 auto;
    position: relative;
    align-self: flex-start;
    margin-top: 40px;
    cursor: pointer;
    opacity: 0;
    animation: fadeInDino 1s ease-out 0.3s forwards, walk 1s ease-in-out infinite 1.3s;
}

.dino-container.jumping {
    animation: fadeInDino 0s forwards, jump 0.6s ease-out;
}

.dino-container img {
    width: 100%;
    max-width: 700px;
    height: auto;
}

.dino-back {
    position: relative;
}

.dino-front {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Animation de marche */
@keyframes walk {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Animation de saut (au clic) */
@keyframes jump {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    30% {
        transform: translateY(-60px) rotate(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(-80px) rotate(0deg) scale(1.15);
    }
    70% {
        transform: translateY(-60px) rotate(5deg) scale(1.1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Animation d'apparition pour le dino */
@keyframes fadeInDino {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation d'apparition pour le texte (de bas en haut) */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-container {
    align-self: center;
}

.text-container h1 {
    font-size: 90px;
    font-weight: 900;
    color: #1E1E1E;
    margin-bottom: 20px;
    line-height: 1;
    font-family: 'Pixelify Sans';
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.typing-advanced {
    font-size: 24px;
    font-weight: 500;
    color: #1E1E1E;
    line-height: 1.4;
    font-family: 'Poppins';
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.span-title {
    color: #FFBBFA;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 30px;
    background: #1E1E1E;
    margin-left: 3px;
    animation: blink 0.75s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ============================================ */
/* SECTION ABOUT - Styles spécifiques */
/* ============================================ */

.about-watermark {
    position: sticky;
    top: 0;
    left: 0;
    display: block;
    /* Annule l'espace occupé pour que l'about-container remonte par-dessus */
    margin-bottom: calc(-1 * clamp(80px, 16vw, 200px) * 1.15);
    font-family: var(--font-header);
    font-size: clamp(80px, 16vw, 200px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    -webkit-text-stroke: 2px rgba(120, 120, 120, 0.22);
    color: transparent;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    letter-spacing: 0.04em;
    animation: watermarkTicker 28s linear infinite;
}

@keyframes watermarkTicker {
    from { transform: translateX(0) rotate(-7deg); }
    to   { transform: translateX(-50%) rotate(-7deg); }
}

.about-container {
    display: flex;
    gap: 80px;
    color: #2A2A2A;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    align-items: center;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: var(--font-title);
    border-left: 4px solid #FF3CF0;
    padding-left: 20px;
    color: #2A2A2A;
}

.content-wrapper p {
    font-size: 18px;
    line-height: 1.8;
    font-family: var(--font-pgs);
    margin-bottom: 20px;
    color: rgba(42, 42, 42, 0.7);
}

/* CTA "en savoir plus" dans la section About */
.about-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 100px;
    padding: 12px 24px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 15px;
    color: #2A2A2A;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
    margin-top: 4px;
    text-decoration: none;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Rayon lumineux tournant */
.about-more-btn::before {
    content: '';
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 55%,
        #FF3CF0 72%,
        #FF98F7 84%,
        #FFBBFA 93%,
        transparent 100%
    );
    animation: spinBtnLight 2s linear infinite;
    z-index: 0;
}

/* Fond intérieur du bouton (masque le gradient sauf sur le bord) */
.about-more-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #FFE5FD;
    transition: background 0.3s ease;
    z-index: 1;
}

/* Texte au-dessus du fond */
.about-more-btn span {
    position: relative;
    z-index: 2;
}

@keyframes spinBtnLight {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-more-btn:hover {
    color: #2A2A2A;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 152, 247, 0.4);
}

.about-more-btn:hover::after {
    background: #FFD6FC;
}

.about-btn-arrow {
    transition: transform 0.3s ease;
}

.about-more-btn:hover .about-btn-arrow {
    transform: translateX(5px);
}

.image-box {
    flex: 0 0 480px;
    height: 480px;
    background-image: url('../IMG/me.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: scale(1.02);
}

.image-box::after {
    content: 'roar!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: #FFBBFA;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 2;
}

.image-box:hover::after {
    transform: translate(-50%, -50%) scale(1) rotate(-5deg);
    opacity: 1;
    animation: roarShake 0.5s ease-in-out;
}

@keyframes roarShake {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
    25% { transform: translate(-50%, -50%) scale(1.1) rotate(-8deg); }
    50% { transform: translate(-50%, -50%) scale(1.05) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); }
}

.image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-box:hover::before {
    opacity: 1;
}

.image-box img {
    display: none;
}

/* ============================================ */
/* SECTION SKILLS - Styles spécifiques */
/* ============================================ */

.skills-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: var(--font-title);
    border-left: 4px solid #FF98F7;
    padding-left: 20px;
    color: black;
}

/* ── Layout interactif ── */
.skills-interactive {
    display: flex;
    align-items: stretch;
    gap: 56px;
}

/* ── Dock vertical ── */
.skills-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 152, 247, 0.06);
    border: 1.5px solid rgba(255, 152, 247, 0.15);
    border-radius: 28px;
    padding: 32px 18px;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    position: relative;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
    padding: 0;
    outline: none;
}

.dock-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    filter: grayscale(40%) opacity(0.65);
}

.dock-item:not(.active):hover {
    transform: scale(1.1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
    background: rgba(255, 152, 247, 0.08);
}

.dock-item.active:hover {
    background: rgba(255, 152, 247, 0.2);
}

.dock-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.dock-item.active {
    background: rgba(255, 152, 247, 0.14);
    border-color: rgba(255, 152, 247, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 152, 247, 0.1), 0 6px 20px rgba(255, 152, 247, 0.18);
    animation: floatDock 3s ease-in-out infinite;
}

.dock-item.active img {
    filter: grayscale(0%) opacity(1);
}

/* Tooltip au survol */
.dock-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-pgs);
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10;
}

.dock-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1a1a1a;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ── Panneau de contenu ── */
.skill-panel {
    flex: 1;
    display: flex;
    align-items: stretch;
    transition: opacity 0.18s ease;
}

.skill-panel.fading {
    opacity: 0;
}

.skill-panel-inner {
    background: #fff;
    border: 2px solid rgba(255, 152, 247, 0.15);
    border-radius: 24px;
    padding: 60px 64px;
    box-shadow: 0 2px 32px rgba(255, 152, 247, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-panel-name {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Pixelify Sans';
    color: #FFBBFA;
    margin: 0 0 20px 0;
}

.skill-panel-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    font-family: var(--font-pgs);
    max-width: 680px;
    margin: 0;
    text-wrap: balance;
}

@keyframes floatDock {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ============================================ */
/* SECTION SKILLS FINDER - Styles spécifiques */
/* ============================================ */

.section-skills-finder {
    width: 100%;
    padding: 80px 5%;
    background-color: white;
}

.section-skills-finder-container {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
}

.section-skills-finder-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-title);
    border-left: 4px solid #FF98F7;
    padding-left: 20px;
    color: black;
}

.section-skills-finder-container .subtitle-finder {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-bottom: 50px;
    padding-left: 24px;
    line-height: 1.5;
}

/* ============================================ */
/* SECTION PROJECTS - Styles spécifiques */
/* ============================================ */

.section-projects {
    width: 100%;
    padding: 80px 5%;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.projects-container {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
}

.projects-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    font-family: var(--font-title);
    border-left: 4px solid #FF98F7;
    padding-left: 20px;
    color: black;
}

.projects-wrapper {
    display: flex;
    gap: 30px;
    position: relative;
}

/* ── Bento grid 3 colonnes ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: all 0.5s ease;
    flex: 1;
    align-items: stretch;
}

/* Bento: alternance large / étroit en zig-zag */
.project-card[data-project="1"] { grid-column: span 2; }
.project-card[data-project="4"] { grid-column: span 2; }
.project-card[data-project="6"] { grid-column: span 2; }

.projects-grid.shifted {
    width: 50%;
    grid-template-columns: repeat(2, 1fr) !important;
}
.projects-grid.shifted .project-card {
    grid-column: span 1 !important;
}

/* ── Carte projet ── */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 2px solid transparent;
    position: relative;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 240px;
    background: var(--card-bg, #fafafa);
    --x: 50%;
    --y: 50%;
    --card-glow: var(--card-accent, rgba(255, 152, 247, 0.9));
    --card-header-bg: rgba(0, 0, 0, 0.04);
}

/* ── Bande d'en-tête colorée ── */
.p-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -32px -28px 20px -28px;
    padding: 11px 20px 11px 24px;
    background: var(--card-header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Numéro dans le header */
.project-card .p-num {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--card-accent, #999);
    opacity: 0.5;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
}
.project-card:hover .p-num { opacity: 0.9; }

/* Tag catégorie dans le header */
.project-card .p-tag {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--card-accent, #999);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-card .p-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-accent, #999);
    flex-shrink: 0;
}

/* Badge WIP */
.p-wip {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--card-accent, #999);
    border: 1px solid var(--card-accent, #ddd);
    border-radius: 100px;
    padding: 2px 7px;
    flex-shrink: 0;
    opacity: 0.7;
}

.project-card h3 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: #2A2A2A;
    margin: 12px 0 8px 0;
    line-height: 1.25;
}

.project-card p {
    font-size: 13px;
    color: rgba(42, 42, 42, 0.65);
    font-family: var(--font-pgs);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

/* ── Footer : skills + CTA ── */
.p-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.p-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.p-skill {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: white;
    background: #FF84F7;
    padding: 3px 8px;
    border-radius: 100px;
    border: 1px solid #FF84F7;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}
.project-card:hover .p-skill { opacity: 1; }

/* CTA arrow */
.project-card .p-cta {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--card-accent, #999);
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.6;
}
.project-card:hover .p-cta {
    transform: translateX(4px);
    opacity: 1;
}

/* Spotlight border miroir — désactivé */
.project-card::before {
    display: none;
}

.project-card:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* ── Couleurs par projet — palette stricte ── */
.project-card[data-project="1"],
.project-card[data-project="2"],
.project-card[data-project="3"],
.project-card[data-project="4"],
.project-card[data-project="5"],
.project-card[data-project="6"] {
    --card-bg: #FFF2FE;
    --card-accent: #FF84F7;
    --card-header-bg: rgba(255, 132, 247, 0.08);
    --card-glow: rgba(255, 132, 247, 0.8);
}

/* ── Backdrop modal ── */
.project-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 7, 20, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.project-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal centré ── */
.project-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.94);
    opacity: 0;
    width: min(900px, 92vw);
    max-height: 88vh;
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 152, 247, 0.1);
    z-index: 999;
    pointer-events: none;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-detail.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* ── Hero header coloré ── */
.modal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px;
    background: #FFF2FE;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex-shrink: 0;
    position: relative;
}

.modal-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.modal-hero-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 3px;
}

.modal-hero-text {
    min-width: 0;
}

.modal-title {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--modal-accent, #FF98F7);
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-transform: lowercase;
}

.modal-location {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.42);
    letter-spacing: 0.04em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-hero-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.modal-hero-num {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: var(--modal-accent, #FF98F7);
    opacity: 0.18;
    line-height: 1;
    user-select: none;
}

/* ── Bouton fermer (dans le hero) ── */
.close-btn {
    position: static;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    font-size: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
    flex-shrink: 0;
    line-height: 1;
}

.close-btn:hover {
    background: var(--modal-accent, #FF98F7);
    color: white;
    transform: rotate(90deg);
}

/* ── Zone scrollable ── */
.project-detail-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.detail-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 36px 36px 40px;
}

.detail-scroll p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    font-family: var(--font-pgs);
}

/* ============================================ */
/* SECTION TESTIMONIALS */
/* ============================================ */

.section-testimonials {
    width: 100%;
    padding: 80px 5%;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
}

.testimonials-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-title);
    border-left: 4px solid #FF98F7;
    padding-left: 20px;
    color: black;
}

.testimonials-subtitle {
    font-family: var(--font-pgs);
    font-size: 16px;
    color: #888;
    margin-bottom: 56px;
    padding-left: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 32px 32px;
    border-radius: 24px;
    border: 2px solid rgba(255, 152, 247, 0.12);
    background: #fff;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    --x: 50%;
    --y: 50%;
}

/* Spotlight border */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: radial-gradient(
        400px circle at var(--x) var(--y),
        rgba(255, 152, 247, 0.9),
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.testimonial-card:hover::before { opacity: 1; }

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(255, 152, 247, 0.14);
    border-color: rgba(255, 152, 247, 0.3);
}

.testimonial-quote {
    font-family: var(--font-pixel);
    font-size: 72px;
    line-height: 0.8;
    color: #FFBBFA;
    display: block;
    user-select: none;
}

.testimonial-text {
    font-family: var(--font-pgs);
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 152, 247, 0.15);
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF98F7, #c084f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-meta strong {
    font-family: var(--font-pgs);
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.testimonial-meta span {
    font-family: var(--font-pgs);
    font-size: 13px;
    color: #999;
}

/* ============================================ */
/* STYLES POUR LE CONTENU DU PROJECT DETAIL */
/* ============================================ */

.detail-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: 'Pixelify Sans';
    border-left: none;
    padding-left: 0;
    color: var(--modal-accent, #FF98F7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-section-title::before {
    content: '§';
    opacity: 0.5;
    font-size: 14px;
}

.detail-skills .skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.detail-skills .skills-column {
    /* Pas de background */
}

.detail-skills .column-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Pixelify Sans';
    color: var(--modal-accent, #FF98F7);
    text-align: left;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.detail-skills .skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-skills .skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Pas de padding, background, border-radius */
}

.detail-skills .skill-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
}

.detail-skills .skill-name {
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-pgs);
    color: #1E1E1E;
    line-height: 30px;
}

/* SECTION DESCRIPTION DANS LE DETAIL */
.detail-description .description-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-description .description-header .detail-section-title {
    margin-bottom: 0;
    line-height: 1;
}

.detail-description .header-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
}

.detail-description .description-text {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    font-family: var(--font-pgs);
    text-align: justify;
}

/* SECTION MISSIONS DANS LE DETAIL */
.detail-missions .missions-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-missions .mission-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.detail-missions .mission-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--modal-accent, #FF98F7) 15%, transparent);
}

.detail-missions .mission-number {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Pixelify Sans';
    color: var(--modal-accent, #FF98F7);
    flex-shrink: 0;
    line-height: 1;
}

.detail-missions .mission-content h4 {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Pixelify Sans';
    color: #1E1E1E;
    margin-bottom: 10px;
}

.detail-missions .mission-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    font-family: var(--font-pgs);
    margin: 0;
}

/* SECTION GALLERY DANS LE DETAIL */
.detail-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-gallery .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.detail-gallery .gallery-item::after {
    content: 'see more';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: #FF98F7;
    padding: 8px 18px;
    border-radius: 20px;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 247, 0.4);
}

.detail-gallery .gallery-item:hover::before {
    opacity: 1;
}

.detail-gallery .gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.detail-gallery .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 152, 247, 0.3);
}

.detail-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Gallery "in progress" state ── */
.gallery-wip {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 32px;
    background: linear-gradient(135deg, #fdf4ff 0%, #fce7fd 100%);
    border-radius: 18px;
    border: 2px dashed rgba(255, 152, 247, 0.35);
    text-align: center;
}

.gallery-wip-pixel {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 13px;
    color: #FF98F7;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-wip-dino {
    font-size: 40px;
    line-height: 1;
    animation: wipBounce 1.8s ease-in-out infinite;
}

@keyframes wipBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.gallery-wip h4 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 18px;
    color: #1E1E1E;
    margin: 0;
}

.gallery-wip p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0;
    max-width: 260px;
    line-height: 1.5;
}

/* ── KC Project Gallery ── */
.detail-gallery .gallery-kc {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.detail-gallery .gallery-kc .gallery-item {
    aspect-ratio: auto;
    min-height: 0;
}

.detail-gallery .gallery-kc .gallery-story {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: 9 / 16;
}

.detail-gallery .gallery-kc .gallery-tweet {
    grid-column: auto;
}

.detail-gallery .gallery-kc .gallery-yt {
    grid-column: 2 / span 2;
}


/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(255, 152, 247, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF98F7;
    border: none;
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    background: #FFBBFA;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 152, 247, 0.8);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: #FF98F7;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 152, 247, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================ */
/* SCROLL ARROW - Flèche d'invitation au scroll */
/* ============================================ */

.scroll-arrow {
    position: absolute;
    bottom: 230px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounceArrow 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-arrow svg {
    filter: drop-shadow(0 4px 8px rgba(255, 152, 247, 0.4));
    transition: transform 0.3s ease;
}

.scroll-arrow:hover svg {
    transform: translateY(5px);
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(15px);
    }
}

/* ============================================ */
/* RESPONSIVE TABLETTE (768px - 1024px) */
/* ============================================ */

@media (max-width: 1024px) {
    /* Structure globale */
    .section1,
    .section-about,
    .section-skills,
    .section-skills-finder,
    .section-multidisciplinarity,
    .section-projects,
    .section-testimonials {
        padding: 60px 4%;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-container h2 {
        font-size: 28px;
    }

    /* Skills Finder Section */
    .section-skills-finder-container h2 {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .section-skills-finder-container .subtitle-finder {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .projects-container h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .projects-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .project-card[data-project="1"],
    .project-card[data-project="4"],
    .project-card[data-project="6"] {
        grid-column: span 1;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 13px;
    }

    .project-detail {
        width: 60%;
    }

    .project-detail-content h2 {
        font-size: 28px;
    }

    /* Hero Section */
    .hero-section {
        gap: 60px;
    }

    .dino-container img {
        max-width: 500px;
    }

    .text-container h1 {
        font-size: 70px;
    }

    .typing-advanced {
        font-size: 22px;
    }

    /* About Section */
    .about-container {
        gap: 30px;
    }

    .content-wrapper h2 {
        font-size: 28px;
    }

    .content-wrapper p {
        font-size: 17px;
    }

    .image-box {
        flex: 0 0 400px;
        height: 400px;
    }

    /* Skills Section */
    .skills-container h2 {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .skill-panel-inner {
        padding: 32px 36px;
    }

    .skill-panel-name {
        font-size: 30px;
    }

    .skill-panel-desc {
        font-size: 16px;
    }
}

/* ============================================ */
/* RESPONSIVE MOBILE (< 768px) */
/* ============================================ */

@media (max-width: 768px) {
    /* Structure globale */
    .section1,
    .section-about,
    .section-skills,
    .section-skills-finder,
    .section-multidisciplinarity,
    .section-projects,
    .section-testimonials {
        padding: 40px 20px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-container h2 {
        font-size: 24px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .testimonials-subtitle {
        padding-left: 18px;
        font-size: 14px;
        margin-bottom: 36px;
    }

    /* Skills Finder Section */
    .section-skills-finder-container h2 {
        font-size: 24px;
        margin-bottom: 5px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .section-skills-finder-container .subtitle-finder {
        font-size: 14px;
        margin-bottom: 30px;
        padding-left: 18px;
    }

    .projects-container h2 {
        font-size: 24px;
        margin-bottom: 30px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .projects-grid.shifted {
        width: 100%;
        grid-template-columns: 1fr !important;
    }

    .project-card[data-project="1"],
    .project-card[data-project="4"],
    .project-card[data-project="6"] {
        grid-column: span 1;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 14px;
    }

    .p-skills {
        display: none;
    }

    .project-detail {
        top: auto;
        bottom: -100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 90vh;
        transform: none;
        border-radius: 24px 24px 0 0;
        transition: bottom 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
    }

    .project-detail.active {
        bottom: 0;
        transform: none;
        opacity: 1;
    }

    .modal-hero {
        padding: 20px;
    }

    .modal-hero-num {
        font-size: 48px;
    }

    .project-detail-content {
        padding: 0;
    }

    .detail-scroll {
        padding: 24px 20px 36px;
        max-height: calc(90vh - 90px);
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        min-height: auto;
        align-items: center;
    }

    .dino-container {
        align-self: center;
        margin: 0 auto 20px auto;
        max-width: 280px;
        width: 280px;
        position: relative;
    }

    .dino-container img {
        max-width: 280px;
        width: 100%;
        display: block;
    }

    .dino-front {
        top: 5px;
        left: 5px;
    }

    .text-container h1 {
        font-size: 48px;
    }

    .typing-advanced {
        font-size: 18px;
    }

    .cursor {
        height: 20px;
    }

    /* Masquer la flèche de scroll sur mobile */
    .scroll-arrow {
        display: none;
    }

    /* About Section */
    .section-about::before {
        top: -25%;
        left: -25%;
        width: 150%;
        height: 150%;
        opacity: 0.3;
        animation: pixelScroll 15s linear infinite;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .content-wrapper h2 {
        font-size: 24px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .content-wrapper p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .image-box {
        flex: none;
        width: 100%;
        max-width: 280px;
        height: 280px;
        margin: 0 auto;
        border-radius: 15px;
    }

    /* Skills Section */
    .skills-container h2 {
        font-size: 24px;
        margin-bottom: 32px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .skills-interactive {
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }

    .skills-dock {
        flex-direction: row;
        border-radius: 20px;
        padding: 14px 18px;
        justify-content: center;
    }

    .dock-tooltip {
        display: none;
    }

    .skill-panel-inner {
        padding: 28px 24px;
    }

    .skill-panel-name {
        font-size: 26px;
    }

    .skill-panel-desc {
        font-size: 15px;
    }
}

/* ============================================ */
/* RESPONSIVE TRÈS PETIT MOBILE (< 480px) */
/* ============================================ */

@media (max-width: 480px) {
    /* Structure globale */
    .section1,
    .section-about,
    .section-skills,
    .section-skills-finder,
    .section-multidisciplinarity,
    .section-projects,
    .section-testimonials {
        padding: 30px 15px;
    }

    .testimonial-card {
        padding: 28px 22px 24px;
    }

    .testimonial-quote {
        font-size: 56px;
    }

    /* Skills Finder Section */
    .section-skills-finder-container h2 {
        font-size: 20px;
        margin-bottom: 5px;
        padding-left: 12px;
    }

    .section-skills-finder-container .subtitle-finder {
        font-size: 13px;
        margin-bottom: 25px;
        padding-left: 15px;
    }

    .projects-container h2 {
        font-size: 20px;
        margin-bottom: 25px;
        padding-left: 12px;
    }

    .projects-grid {
        gap: 15px;
    }

    .project-card img {
        height: 150px;
    }

    .project-card h3 {
        font-size: 18px;
        padding: 15px 15px 8px 15px;
    }

    .project-card p {
        font-size: 13px;
        padding: 0 15px 15px 15px;
    }

    .project-detail-content {
        padding: 25px 15px;
    }

    .project-detail-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .detail-scroll {
        padding-right: 10px;
    }

    .detail-scroll p {
        font-size: 15px;
    }

    .modal-hero {
        padding: 16px;
    }

    .modal-hero-num {
        font-size: 32px;
    }

    .modal-title {
        font-size: 17px;
    }

    /* Detail sections responsive */
    .detail-section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .detail-skills .skills-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-skills .column-title {
        font-size: 16px;
    }

    .detail-skills .skill-icon {
        width: 35px;
        height: 35px;
        border-radius: 0;
    }

    .detail-skills .skill-name {
        font-size: 14px;
        line-height: 35px;
    }

    .detail-description .header-icon {
        width: 35px;
        height: 35px;
        border-radius: 0;
    }

    .detail-missions .mission-number {
        font-size: 30px;
    }

    .detail-missions .mission-content h4 {
        font-size: 16px;
    }

    .detail-missions .mission-content p {
        font-size: 13px;
    }

    .detail-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Lightbox responsive */
    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Hero Section */
    .hero-section {
        gap: 30px;
    }

    .dino-container {
        max-width: 250px;
    }

    .text-container h1 {
        font-size: 36px;
    }

    .typing-advanced {
        font-size: 16px;
    }

    .cursor {
        height: 18px;
    }

    .content-wrapper h2 {
        font-size: 20px;
        margin-bottom: 20px;
        padding-left: 12px;
    }

    .content-wrapper p {
        font-size: 15px;
    }

    /* Skills Section */
    .skills-container h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .dock-item {
        width: 58px;
        height: 58px;
    }

    .dock-item img {
        width: 36px;
        height: 36px;
    }

    .skill-panel-inner {
        padding: 22px 18px;
    }

    .skill-panel-name {
        font-size: 22px;
    }

    .skill-panel-desc {
        font-size: 14px;
    }
}