@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --blue: #00bfff;
    --blue-2: #1e90ff;
    --cyan: #7dd3fc;
    --ink: #020617;
    --ink-2: #000814;
    --panel: rgba(255,255,255,.06);
    --ring: rgba(0,191,255,.25);
    --text: #e6f2ff;
    --muted: #b8c7da;
}

/* =========================
   BASE + BACKGROUND
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: Poppins, system-ui, Segoe UI, Roboto, Arial;
    color: var(--text);
    background: radial-gradient(1200px 700px at 20% 15%, #031126 0%, #000 60%);
    overflow-x: hidden;
}

.bg-conic {
    position: fixed; inset: -50%;
    background: conic-gradient(from 0deg, rgba(0,191,255,.14), transparent 70%);
    animation: spin 42s linear infinite; z-index: -3;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.blob {
    position: fixed; width: 620px; height: 620px; border-radius: 50%;
    filter: blur(120px); z-index: -2; opacity: .7;
}
.b1 { left: 8%; top: 12%; background: radial-gradient(circle at 30% 30%, rgba(0,191,255,.35), transparent 70%); animation: float 12s ease-in-out infinite alternate; }
.b2 { right: 6%; bottom: -8%; background: radial-gradient(circle at 70% 70%, rgba(30,144,255,.28), transparent 70%); animation: float 12s ease-in-out infinite alternate-reverse; }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(-40px) scale(1.15); } }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.2rem; }
.grid-2 { display: grid; gap: 1.2rem; }
@media(min-width:960px){ .grid-2{grid-template-columns:1.1fr .9fr;} }

/* =========================
   NAVBAR
========================= */
/* =========================
   NAVBAR — Fixe + Effet de scroll + Responsive
========================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 20, 0.6);
    border-bottom: 1px solid rgba(0, 191, 255, 0.18);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.12);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 30, 0.85);
    box-shadow: 0 2px 25px rgba(0, 191, 255, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 1.2rem;
    max-width: 1140px;
    margin: 0 auto;
}

/* --- LOGO --- */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cfe8ff;
    text-decoration: none;
    z-index: 1010;
}

.brand-name {
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--blue);
    text-shadow: 0 0 12px var(--blue);
}

/* --- LIENS (desktop) --- */
.links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.links a {
    color: #cfe8ff;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
}

.links a:hover {
    color: var(--blue);
}
.links a:hover::after {
    width: 100%;
}

/* --- STATUT --- */
.status {
    font-family: Orbitron, monospace;
    color: var(--cyan);
    font-size: 0.9rem;
}

.online {
    color: #00ffcc;
    animation: blink 1.3s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =========================
   MENU BURGER — Bouton
========================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 1011;
}
.menu-toggle span {
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Animation burger → croix --- */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   MENU MOBILE
========================= */
.menu-mobile {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 20, 0.96);
    border-bottom: 1px solid rgba(0, 191, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: 1010;
}
.menu-mobile.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.menu-mobile a {
    color: #cfe8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.menu-mobile a:hover {
    color: #00bfff;
    text-shadow: 0 0 10px #00ffff;
}

/* --- Overlay sombre derrière le menu --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1009;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    .links {
        display: none;
    }
    .status {
        display: none;
    }
}
/* =========================
   HERO
========================= */
.hero-bg {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: url("../images/background1.jpeg") no-repeat center right / cover;
}
.overlay-dark {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,20,0.9) 0%, rgba(0,0,40,0.8) 40%, rgba(0,0,60,0.3) 70%, rgba(0,0,60,0) 100%);
    z-index: 0;
}
.hero-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;

    /* largeur pleine, mais le texte garde de l’espace */
    width: 100%;
    max-width: 100%;

    /* hauteur du bloc */
    padding-block: 8rem;

    /* marge intérieure à gauche pour ne pas coller au bord */
    padding-left: 6%;
    padding-right: 2%;

    /* marge extérieure légère pour la respiration verticale */
    margin: 0.5rem 0;
}

/* Ajustement du texte */
.hero-copy {
    max-width: 600px;
}


/* Responsive */
@media (max-width: 1024px) {
    .hero-bg::before {
        width: 100%;
        left: 0;
        background-position: center right 10%;
        opacity: 0.4;
        /* légèrement atténuée sur petit écran */
    }

    .hero-wrap {
        padding-left: 8%;
        padding-right: 4%;
    }
}
.headline { font-family: Orbitron; font-weight: 700; font-size: clamp(2rem,6vw,3.8rem); line-height: 1.08; text-transform: uppercase; text-shadow: 0 0 25px var(--blue); }
.grad-blue { background: linear-gradient(90deg, var(--blue), #38bdf8); -webkit-background-clip: text; color: transparent; }
.grad-white { background: linear-gradient(90deg,#fff,#e2e8f0); -webkit-background-clip: text; color: transparent; }
.lead { margin-top: 14px; color: #cfe0ff; max-width: 52ch; }

.stats{display:flex; gap:1rem; margin-top:18px; list-style:none; color:#cfe8ff}
.stats li{border:1px solid rgba(255,255,255,.12); background:var(--panel); padding:.55rem .8rem; border-radius:999px; font-size:.88rem}
.stats li span{font-weight:700; color:#fff}

.cta-row{display:flex; flex-wrap:wrap; gap:.8rem; margin-top:18px}
.btn{display:inline-flex; align-items:center; gap:.5rem; border-radius:14px; padding:.9rem 1.15rem; font-weight:600; text-decoration:none; letter-spacing:.02em}
.btn-primary{background:var(--blue); color:#00121f; box-shadow:0 10px 28px rgba(0,191,255,.28)}
.btn-primary:hover{background:#0fb6ff}
.btn-ghost{border:1px solid rgba(255,255,255,.14); background:var(--panel); color:#e6f2ff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* =========================
   SECTIONS BASE
========================= */
.section { padding: 80px 0; }
.section-dark { background: linear-gradient(180deg, rgba(3,17,38,.7), rgba(0,0,0,.6)); }
.section-head { text-align: center; margin-bottom: 26px; }
.section-title { font-family: Orbitron; font-size: clamp(1.6rem,3.6vw,2.4rem); font-weight: 700; text-shadow: 0 0 18px var(--blue); }
.p-muted { color: #c7d5ea; }

/* =========================
   ABOUT
========================= */
/* =========================
   ABOUT — Portrait 3D
========================= */
.about-section {
    background: linear-gradient(180deg, rgba(3,17,38,.8), rgba(0,0,0,.7));
    padding: 100px 0;
}

.about-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.photo-3d {
    width: 85%;
    max-width: 420px;
    transform: rotateY(-8deg) rotateX(4deg);
    filter: drop-shadow(0 0 25px rgba(0,191,255,.25));
    transition: transform 0.8s ease, filter 0.6s ease;
}

.photo-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    filter: drop-shadow(0 0 35px rgba(0,255,255,.5));
}

.about-text {
    color: #e6f2ff;
}

.about-text .section-title {
    margin-bottom: 1.2rem;
}

.about-text .p-muted {
    line-height: 1.6;
    font-size: 1.05rem;
}

.about-text .chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}

.about-text .chip {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    color: #b8e4ff;
    transition: all .3s ease;
}

.about-text .chip:hover {
    background: rgba(0,191,255,.2);
    color: #fff;
    box-shadow: 0 0 10px rgba(0,191,255,.3);
}

/* Responsive */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        order: -1;
        margin-bottom: 2rem;
    }

    .photo-3d {
        max-width: 320px;
    }
}

.mini-cta{margin-top:14px}
.btn-slim{border:1px solid rgba(255,255,255,.14); padding:.55rem .85rem; border-radius:10px; text-decoration:none; color:#e6f2ff}
.btn-slim:hover{background:rgba(255,255,255,.1)}

/* =========================
   JOURNEY (Projet)
========================= */
.journey-section {
    position: relative;
    height: 120vh; /* ✅ réduit — juste assez pour le scroll et la ligne */
    padding: 60px 0 40px;
    /* 🌌 Fond néon avec dégradé spatial et lignes diagonales animées */
    background:
            linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 10, 20, 0.9)), /* ✅ assombrissement progressif */
            url("../images/black_map.png") no-repeat center center / cover;
    background-blend-mode: multiply;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 255, 255, 0.1);
}
.journey-map{
    position:relative;
    height:600px; 
    width: 100%; 
    display: flex;
    z-index: 1;
    background-image:
            url("../images/compass.png"),
            url("../images/runes.png");
    background-repeat: no-repeat;
    background-position: 90% 20%, 10% 80%;
    background-size: 200px, 250px;
    filter: brightness(1.1) sepia(0.2);}
#journey-path{width:100%;height:100%;overflow:visible;
    pointer-events: none !important;
    z-index: 0 !important;}
#path {
    stroke: #00ffff;
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 15px #00ffff);
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
}

.project-marker {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    background: rgba(0, 20, 40, 0.85);
    border: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease;
    pointer-events: auto !important; 
    cursor: pointer;
    z-index: 2;
}

.project-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px #00ffff;
}
.project-marker img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px #00ffff);
}

.project-marker .label {
    position: absolute;
    bottom: -28px;
    color: #00bfff;
    font-family: Orbitron, sans-serif;
    font-size: 0.9rem;
    text-shadow: 0 0 8px #00ffff;
}

.journey-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(0,191,255,0.08), transparent 70%);
    animation: pulse-bg 6s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes pulse-bg {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.9; transform: scale(1.05); }
}

#journey {
    margin-bottom: 0; /* supprime les marges internes */
}

#skills {
    margin-top: -80px; /* rapproche la section suivante */
}
/* =========================
   SKILL TREE
========================= */
.skill-tree {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at center, #020617 0%, #000 90%);
    color: #e0f2ff;
    overflow: hidden;
}
.tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Nœuds --- */
.skill-node {
    position: relative;
    width: 150px; height: 150px;
    border: 2px solid rgba(0,191,255,0.2);
    border-radius: 20px;
    background: rgba(10,15,40,0.8);
    box-shadow: 0 0 20px rgba(0,191,255,0.2);
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.skill-icon { width: 64px; height: 64px; margin: 1rem auto 0.5rem; }
.skill-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.6) drop-shadow(0 0 5px #00bfff); transition: filter 0.4s ease; }

/* cadenas ouvert (débloqué) */
.skill-node.locked::before {
    content: "🔒";
    position: absolute;
    top: 8px; right: 10px;
    opacity: 0.6;
    font-size: 1.2rem;
}
.skill-node.unlocked::before {
    content: "🔓";
    position: absolute;
    top: 8px; right: 10px;
    opacity: 1;
    font-size: 1.2rem;
    color: #00ffff;
}

.skill-name { font-family: Orbitron; color: #00bfff; font-size: 1rem; margin-bottom: 0.2rem; }
.skill-level { font-size: 0.8rem; color: #9ac7ff; }

/* survol */
.skill-node.unlocked {
    border-color: #00ffff;
    box-shadow: 0 0 35px #00ffff;
}
.skill-node.unlocked .skill-icon img {
    filter: brightness(1.2) drop-shadow(0 0 15px #00ffff);
}
.skill-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 45px #00ffff, 0 0 80px #0077ff;
}


/* =========================
   CONTACT / FOOTER
========================= */
.card-form {
    max-width: 760px; margin: 0 auto;
    border: 1px solid rgba(0,191,255,.22);
    background: var(--panel);
    border-radius: 18px;
    padding: 18px;
}
.card-form input, .card-form textarea {
    width: 100%;
    color: #fff;
    background: rgba(0,0,30,.55);
    border: 1px solid rgba(0,191,255,.3);
    border-radius: 12px;
    padding: .8rem .9rem;
    font: inherit;
}
.card-form textarea { min-height: 140px; resize: vertical; }
.card-form button { margin-top: 10px; }

/* =========================
   CONTACT — Quête Finale RPG
========================= */
.quest-contact {
    position: relative;
    background: radial-gradient(circle at center, rgba(0,10,30,0.8), rgba(0,0,0,0.95));
    text-align: center;
    overflow: hidden;
    padding: 120px 0;
}

.quest-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/runes.png") no-repeat center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.quest-wrapper {
    position: relative;
    margin-top: 2rem;
}

/* --- Coffre au trésor --- */
.treasure-chest {
    position: relative;
    width: 220px;
    height: 140px;
    margin: 0 auto 2rem;
    perspective: 600px;
}

.treasure-chest .base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #042b3b, #000c14);
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 0 30px rgba(0,255,255,0.2);
}

.treasure-chest .lid {
    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #00bfff, #00334d);
    border: 2px solid rgba(0,255,255,0.4);
    border-radius: 12px 12px 0 0;
    transform-origin: bottom;
    transform: rotateX(0deg);
    transition: transform 2.5s cubic-bezier(0.17, 0.84, 0.44, 1);
}

/* --- Formulaire caché au départ --- */
.quest-form {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 700px;
}

.quest-form input,
.quest-form textarea {
    background: rgba(0, 0, 30, 0.65);
    border-color: rgba(0, 191, 255, 0.4);
}

.quest-form button {
    background: linear-gradient(90deg, #00bfff, #38bdf8);
    color: #00121f;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 0 18px rgba(0, 191, 255, 0.4);
    transition: transform 0.3s ease;
}
.quest-form button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px #00ffff;
}

/* --- Animation d'ouverture du coffre --- */
.quest-contact.open .treasure-chest .lid {
    transform: rotateX(120deg);
}
.quest-contact.open .quest-form {
    opacity: 1;
    transform: translateY(0);
}
/* Halo magique bleu au moment de l’ouverture */
.quest-contact.open .treasure-chest::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 50%;
    width: 180px;
    height: 100px;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(0,255,255,0.6), transparent 70%);
    filter: blur(40px);
    opacity: 0;
    animation: glowTreasure 2.8s ease-out forwards;
}

@keyframes glowTreasure {
    0% { opacity: 0; transform: translate(-50%, 20px) scale(0.6); }
    50% { opacity: 1; transform: translate(-50%, -10px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -30px) scale(1.4); }
}

.alert {
    margin: 1rem auto;
    padding: 1rem 1.4rem;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    font-weight: 600;
}
.alert.success {
    background: rgba(0,255,170,.1);
    border: 1px solid #00ffaa;
    color: #00ffaa;
}
.alert.error {
    background: rgba(255,0,0,.1);
    border: 1px solid #ff6666;
    color: #ff6666;
}

.footer {
    border-top: 1px solid rgba(0,191,255,.18);
    background: rgba(0,0,20,.55);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
}
.footer a { text-decoration: none; color: #cfe8ff; }
.footer a:hover { color: var(--blue); }


/*PROJETS-DETAILS*/
/* === PAGE DÉTAILS === */
.hero-detail {
    background: linear-gradient(180deg, rgba(0,0,20,0.9), rgba(0,0,0,0.8)),
    url("../images/skytech.png") no-repeat center/cover;
    padding: 160px 0 100px;
    color: var(--text, #fff);
    text-align: left;
}

.hero-content {
    max-width: 900px;
    padding-inline: 2rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
    list-style: none;
}

.tech-list li {
    border: 1px solid rgba(0,255,255,.4);
    background: rgba(0,20,40,.8);
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .88rem;
    color: #0ff;
}

.project-detail {
    padding: 80px 0;
}

.detail-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width:960px){
    .detail-grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.detail-text ul {
    margin-left: 1.5rem;
    line-height: 1.6;
}

.detail-media img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0,191,255,0.25);
}

/* =========================
   RESPONSIVE GLOBAL MOBILE
========================= */
@media (max-width: 768px) {

    /* === NAVBAR === */
    .nav-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 1rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 20, 0.95);
        border-top: 1px solid rgba(0, 191, 255, 0.25);
        padding: 1.4rem 0;
        gap: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        cursor: pointer;
        z-index: 1002;
    }

    .status {
        display: none;
    }

    /* === HERO === */
    .hero-bg {
        background-position: center;
        background-size: cover;
        text-align: center;
    }

    .hero-wrap {
        padding: 6rem 1rem 4rem;
        align-items: center;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .headline {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        line-height: 1.2;
    }

    .cta-row {
        justify-content: center;
    }

    /* === ABOUT === */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .photo-3d {
        max-width: 280px;
        transform: none;
    }

    .chips {
        justify-content: center;
    }

    /* === JOURNEY — Version mobile (pile verticale) === */
    .journey-section {
        height: auto;
        padding: 70px 0 90px;
        background-position: center top;
    }

    .journey-map {
        height: auto;
        min-height: 520px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        filter: none;
        gap: 2rem;
    }

    #journey-path {
        display: none; /* cache le tracé SVG */
    }

    .project-marker {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 36px auto 10px;
        transform: none !important;
        opacity: 1 !important;
        scale: 1 !important;
    }

    .project-marker:hover {
        transform: scale(1.05);
    }

    .project-marker img {
        width: 70%;
        height: 70%;
    }

    .project-marker .label {
        position: static;
        margin-top: 8px;
        font-size: 0.9rem;
    }

    /* === SKILL TREE === */
    .tree-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.2rem;
        padding: 2rem 1rem;
    }

    .skill-node {
        width: 120px;
        height: 120px;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    /* === CONTACT / QUEST === */
    .quest-contact {
        padding: 80px 1rem;
    }

    .treasure-chest {
        width: 180px;
        height: 110px;
    }

    .treasure-chest .lid {
        height: 45px;
        transition: transform 3.5s cubic-bezier(0.17, 0.84, 0.44, 1);
    }

    .quest-form {
        max-width: 100%;
        padding: 0 0.8rem;
    }

    .quest-form input,
    .quest-form textarea {
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .quest-form button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    /* === FOOTER === */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }

    .footer a {
        font-size: 0.9rem;
    }

    /* === Ajustements divers === */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .p-muted {
        font-size: 0.95rem;
    }

    /* Empêche le scroll horizontal */
    html, body {
        overflow-x: hidden;
    }
}
