/* ====================================================== */
/* === RESET & BASE ===================================== */
/* ====================================================== */
:root {
    --android-green: #A4C639;
    --brand-cyan:   #22C7F2;
    --brand-blue:   #2F6FDB;
    --brand-violet: #6A2FD8;
    --brand-pink:   #FF2B86;
    --grad-brand: linear-gradient(
            135deg,
            var(--brand-cyan),
            var(--brand-blue),
            var(--brand-violet),
            var(--brand-pink)
    );
    --glass-bg: rgba(255,255,255,.10);
    --glass-stroke: rgba(255,255,255,.10);
    --glass-bg-soft: rgba(255,255,255,.06);
    --surface-1: rgba(34,199,242,.06);
    --surface-2: rgba(106,47,216,.12);
    --text-strong: rgba(255,252,225,.96);
    --text-muted: rgba(255,252,225,.78);
    --radius: 16px;
    --shadow-soft: 0 12px 32px rgba(0,0,0,.35);
    --shadow-brand: 0 0 24px rgba(34,199,242,.18);
    --max: 1260px;
}

* {box-sizing: border-box;margin: 0;padding: 0;}

body {
    background-color: var(--style-black);
    font-family: 'Mori', sans-serif;
    color: var(--style-white);
}

body.is-menu-open {
    position: static;
    width: 100%;
}

html.is-menu-open,
body.is-menu-open {
    overflow: hidden;
    touch-action: none;
}

html, body {
    overscroll-behavior: auto;
    overflow-y: auto;
    overflow-x: clip;
}

img, svg {max-width: 100%;height: auto;}

/* ====================================================== */
/* === SECTION ACCUEIL ================================== */
/* ====================================================== */
#accueil {display: flex; }

.left,
.right{
    height: calc(100svh - var(--header-height));
    position: relative;
    width: 50%;
}

/* ====================================================== */
/* === GLOBE BACKGROUND ================================= */
/* ====================================================== */
.globe-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.globe {pointer-events: none;opacity: 0;}

/* ====================================================== */
/* === BONJOUR TEXT ANIMATION =========================== */
/* ====================================================== */
.dot-j, .letter-B, .mask, .push-symbol, .flower {will-change: transform;}

#bonjour-scramble-container {
    position: absolute;
    left:6svw;
    top: 10%;
    width: clamp(16rem, 25.8vw, 31rem);
    max-width: 100svw;
    right: auto;
}

.bonjour-container {
    display: flex;
    transform-style: preserve-3d;
    font-size: clamp(2.48rem, 5.4vw, 6.2rem);
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    will-change: transform;
    line-height: 0.8;

}

.mask, .letter-B {transform-style: preserve-3d;}

.mask {
    display: inline-block;
    transform-origin: top center;
    transform: translateY(100%);
    overflow: hidden;
}

.letter-B {
    display: inline-block;
    transform-origin: center center;
    transform: translateY(-100%) rotateX(180deg);
}

/* ====================================================== */
/* === SYMBOL & LETTER EFFECTS ========================== */
/* ====================================================== */
.symbol {
    position: absolute;
    bottom: 60%;
    color: #0ff;
    font-size: clamp(1.6rem, 4.5vw, 4rem);
    display: inline-flex;
    gap: 0.1em;
    transform: scale(0);
    will-change: transform, opacity;
    pointer-events: none;
}

.letter-mask {display: flex;gap: 0.05em;overflow: hidden;}

.mask-j {display: inline-block;
    overflow: hidden;
    height: 1.2lh;
    position: relative;
    line-height: 0.8;
}

.o, .n, .j, .o-bis {position: relative;}

.letter-o, .letter-o-bis, .letter-n, .letter-j {display: inline-block;will-change: transform;}

.letter-o, .letter-o-bis {transform: translateY(100%);}

.letter-n {transform: translateY(-100%);}

.letter-j {
    transform: translateX(-100%);
    position: relative;
}

.dot-j {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--style-white);;
    border-radius: 50%;
    font-size: 0;
    transform-origin: center;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
}

/* ====================================================== */
/* === FLOWER ANIMATION ================================= */
/* ====================================================== */
.flower {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
    bottom: 90%;
    transform-origin: center;
    contain: layout style paint;
    transform: translateX(-350%);
    opacity: 0;
}

.petal {
    position: absolute;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 45deg at center, #f44, #fc3, #3c3);
    border-top-right-radius: 50px;
    transform-origin: bottom right;
}

.rotate-0, .rotate-90, .rotate-180, .rotate-270 {top: 0;left: 0;}

.rotate-0   { transform: rotate(0deg); }
.rotate-90  { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.rotate-270 { transform: rotate(270deg); }

/* ====================================================== */
/* === PUSH ANIMATION GROUPS ============================ */
/* ====================================================== */
.push-wrapper {
    position: absolute;
    width: 1em;
    height: 100%;
    left: 0;
    overflow: hidden;
}

.push-symbol {
    position: absolute;
    transform: scale(0);
    left: -10%;
    top: 10%;
    font-family: 'Courier New', monospace;
    opacity: 0;
    color: #7CFC00;
    text-shadow: 0 0 10px #7CFC00;
    transform-origin: center;
}

.groupe {position: absolute;}

.mask-letter {display: inline-block;overflow: hidden;}

.number-1, .number-0, .number-0-bis, .letter-u, .letter-r {display: inline-block;transform: translateY(110%);}

.letter-comma {
    display: inline-block;
    transform-origin: center center;
    transform: scale(0) rotate(0);
}

/* ====================================================== */
/* === SCRAMBLE TEXT AREA =============================== */
/* ====================================================== */
h1.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    font-size: 2rem;
    margin-block: 0.67em;
}

#scramble-container {
    margin-top: clamp(0.6rem, 2.5vw, 2.5rem);
    font-weight: 500;
    font-size: clamp(1rem, 3vw, 2.5rem);
    z-index: 1;
    line-height: 1.2;
}

#line-3 {font-weight: 600;}

.scramble-line {position: relative;white-space: nowrap;}

.scramble-text {display: inline-block;}

#cursor-icon {
    position: absolute;
    pointer-events: none;
    font-weight: 600;
    opacity: 0;
    display: inline-block;
    color: var(--style-white);;
    width: 1em;
    height: 1em;
}

#cursor-icon.final{ color:#7CFC00; animation:none; }

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

#cursor-icon.blink{ animation:blink 1s steps(2,start) infinite; }

/* ====================================================== */
/* === ACCOLADES / QUOTES SECTION ======================= */
/* ====================================================== */
.accolades-container {
    bottom: 6svh;
    left:50%;
    transform: translateX(-50%);
    position: absolute;
    width: clamp(12rem, 70vw, 36rem);
    height: clamp(4.5rem, 12vw, 10rem);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.accolade {
    width: clamp(0.6rem, 1.9vw, 1.9rem);
    fill: #fffce1;
    opacity: 0;
}

.accolade-left {
    position: relative;
    margin-right: clamp(0.4rem, 1vw, 1rem);
    top: 0;
    transform: none;
}

.accolade-right {
    position: relative;
    margin-left: clamp(0.4rem, 1vw, 1rem);
    top: 0;
    transform: none;
}

.pop-text {
    font-size: clamp(0.35rem, 1.8vw, 1.4rem);
    text-align: left;
    margin: 0;
}

.pop-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    transform: scale(0.2);
    will-change: transform;
    opacity: 0;
    position: relative;
    padding: 0 0.5rem;
}

.quote-author {
    margin-left: auto;
    margin-top: 0.3rem;
    font-style: italic;
    font-size: clamp(0.3rem, 1.5vw, 1.2rem);
    opacity: 0.8;
}

/* ====================================================== */
/* === TERMINAL INTERFACE =============================== */
/* ====================================================== */
.terminal {
    position: absolute;
    top:10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    background: #0f162e;
    border: 2px solid #00f0ff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 0 20px #00f0ff40;
    color: #7CFC00;
    font-family: 'Courier New', monospace;
    width: clamp(18.75rem, 31.25vw, 37.5rem);
    height: clamp(12rem, 16.66vw, 20rem);
    filter: url(#glitchFilter);
    opacity: 0;
}

.terminal.glow {box-shadow: 0 0 20px #7CFC00;animation: pulseGlow 2s ease-in-out infinite;}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 100, 0.6);
    }
    50% {
        box-shadow: 0 0 30px #7CFC00;
    }
}

.header {display: flex;gap: 8px;}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red   { background: #f44; }
.yellow { background: #fc3; }
.green { background: #3c3; }

.terminal-body {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
}

.progress-bar {
    border: 2px solid #00f0ff;
    border-radius: 10px;
    overflow: hidden;
    height: clamp(30px, 4vw, 40px);
    background: #021;
    opacity: 0;
    transition: opacity .4s ease;
}

.progress-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#22ddee,#38f8b4);
    text-align: center;
    font-weight: bold;
    color: #000;
    transform-origin: left center;
}

.final-text {opacity: 0;transition: opacity .3s ease;}

/* ====================================================== */
/* === LIGNES MATRIX ==================================== */
/* ====================================================== */
canvas#matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* ===================================================== */
/* === ANIMATION ROBOT APK ============================= */
/* ===================================================== */
.container-robot {
    display: inline-block;
    overflow: hidden;
    position: absolute;
    bottom: clamp(100px, 10vw, 160px);
    left: 0;
    height: clamp(120px, 11vw, 200px);
    width: 100%;
}

.robot-apk {
    position: absolute;
    width: clamp(100px, 10vw, 160px);
    transform: translateX(-100%);
    bottom: 0;
    height: auto;
    opacity: 0;
}

#marqueur-apk {
    position: absolute;
    border-radius: 50%;
    bottom: 0;
    width: 10px;
    height: 10px;
}

/* ====================================================== */
/* === SECTION ROBOT + TEXTE ============================ */
/* ====================================================== */
#qui-suis-je{display: flex;height: 100svh;}

#textRobot {
    display: flex;
    flex-direction: column;
    width: 75%;
    max-width: 100vw;
    justify-content: space-evenly;
    align-items: center;
    opacity: 0;
    gap:2rem;
}

#pin-windmill-container {
    flex: 0 0 auto;
    height: 100svh;
    position: relative;
    width: 25%;
}

#pin-windmill-wrap {
    position: relative;
    top: calc(clamp(140px, 13vw, 250px) * -0.52);
}

#pin-windmill {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

#pin-windmill-svg {
    width: clamp(140px, 13vw, 250px);
    height: clamp(140px, 13vw, 250px);
    will-change: transform;
}

.pin_marker_start,
.pin_marker_end {
    right: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    color: #fdf8dc;
    z-index: 10;
}

.pin_marker_start { top: 0; transform: translateY(-100%)}
.pin_marker_end   { bottom: 0; transform: translateY(100%); }

.pin_marker_start svg,
.pin_marker_end svg,
.robot-line {
    width: clamp(30px, 5vw, 60px);
    height: clamp(2px, 0.5vw, 4px);
    flex-shrink: 0;
}

.text-start, .text-end { font-size: clamp(0.7rem, 1.5vw, 1rem);}

.quote-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.quote-left {display: flex;align-items: flex-start;}

.quote-right {display: flex;align-items: flex-end;}

.quote-left svg, .quote-right svg {width: clamp(12px, 3vw, 36px);height: auto; opacity: 0}

.whoa-text {
    font-family: 'Mori', sans-serif;
    font-weight: 500;
    overflow: hidden;
    font-size: clamp(0.9rem, 2.3vw, 2rem);
    line-height: 1.4;
}

.whoa-text .char {
    display: inline-block;
    transform: translateX(60px);
    opacity: 0;
    will-change: transform, opacity;
}

.split-line {display: block;overflow: hidden;}

.animated-text-section, .animated-second-text-section {
    font-family: 'Mori', sans-serif;
    color: var(--style-white);;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(0.8rem, 1.8vw, 1.5rem);
    line-height: 1.4;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    visibility: hidden;
}

.animated-text-section { flex: 1 1 0;}

.animated-second-text-section {text-align: center;}

.line-group {
    display: inline;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
}

.splitLines {
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.split-line .char {display: inline-block;will-change: transform, opacity;}

.virgule {margin-left: -1rem;}

#textSection {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: clamp(2rem, 5vw, 4rem);
}

.morphSVG {
    display: flex;
    justify-content: center;
    align-items: center;
}

#maintenance {opacity: 0;}

.animated-text-section .virgule,
.animated-second-text-section .virgule{
    display: inline;
    margin-left: -0.25em;
}

.animated-text-section .point,
.animated-second-text-section .point{
    display: inline;
    margin-left: -0.25em;
}

/* ====================================================== */
/* === SECTION AVION ==================================== */
/* ====================================================== */
.label {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(12vw, 18vw, 24vw);
    font-family: 'Mori', sans-serif;
    text-align: center;
    color: white;
    font-size: clamp(0.5rem, 1vw + 0.2rem, 2.5rem);
    font-weight: 400;
    background: linear-gradient(to right, #4EDAF7, #8A6DF0, #C583F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    pointer-events: none;
    display: inline-block;
    vertical-align: top;
    line-height: 1;
    padding: 0.5rem;
}

.label span {
    font-family: 'Mori', sans-serif;
    font-size: clamp(0.5rem, 1vw + 0.2rem, 2.5rem);
    font-weight: 400;
    display: block;
    margin-top: 0.4rem;
}

#aeronautic,
#technicien,
#dev,
#avatar {
    position: absolute;
    transform-origin: center;
    pointer-events: none;
    opacity: 0;
}

.intro-text {
    font-size: clamp(0.7rem, 1.2vw + 0.5rem, 3.6rem);
    padding-top: 10svh;
    opacity: 0;
    transform: translateY(70px);
}

#plane {
    transform-origin: center;
    transform-box: fill-box;
}

#plane path {
    filter:
            drop-shadow(0 8px 6px rgba(0,0,0,0.4))
            drop-shadow(0 20px 20px rgba(0,0,0,0.6));
}

#mon-parcours {
    position: relative;
    min-height: 100svh;
    text-align: center;
    overflow: hidden;
}

#mon-parcours svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.scroll-plane-path svg,
.scroll-plane svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#mon-parcours .scroll-plane-path,
#mon-parcours .scroll-plane {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#plane,
#corePath,
#topPath,
#bottomPath,
#trailPath {
    opacity: 0;
}

/* ====================================================== */
/* === SECTION MES COMPETENCES ========================== */
/* ====================================================== */
.comp-dev,
.comp-mobile {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 3rem);
    padding: clamp(1rem, 3vw, 2rem);
}

#mes-competences {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main-title {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3.2rem);
    text-align: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    width: 100%;
}

.content .image {
    flex: 2 1 400px;
    min-width: 260px;
}

.content .image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.content .text-box {
    flex: 1 1 280px;
    max-width: 500px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 0.6vw + 0.6rem, 1.15rem);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: clamp(16px, 2.5vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.icons {
    display: flex;
    gap: clamp(1.25rem, 5vw, 3rem);
    justify-content: center;
    flex-wrap: wrap;
    width: min(80%, 1100px);
}

.icons li {
    list-style: none;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: var(--style-white);;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icons li svg {
    width: 1em;
    height: 1em;
    fill: var(--style-white);;
}

/* ====================================================== */
/* === SECTION MES REALISATIONS ========================== */
/* ====================================================== */
#mes-realisations{
    width: min(var(--max), 100%);
    margin: 100px auto 80px;
    padding-top: 1rem;
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(1rem, 3vw, 2rem);
    display:flex;
    flex-direction:column;
    gap: clamp(1.5rem, 5vw, 3rem);
}

.pf-section{
    border: 1px solid var(--glass-stroke);
    border-radius: calc(var(--radius) + 6px);
    background: var(--glass-bg-soft);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    overflow:hidden;
}

.pf-section__head{
    padding: 22px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pf-title{
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pf-chip{
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(15,15,15,.35);
    color: var(--text-strong);
    box-shadow: 0 0 0 1px rgba(34,199,242,.08) inset;
}

.pf-section__body{
    padding: 22px;
    display:flex;
    flex-direction:column;
    gap: 22px;
}

.pf-block{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
}

.pf-meta{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap: 12px;
}

.pf-kicker{
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    text-shadow: 0 0 10px rgba(34,199,242,.45);
}

.pf-meta h3{
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.2;
}

.pf-meta p{
    font-size: clamp(0.95rem, 0.6vw + 0.6rem, 1.05rem);
    color: var(--text-muted);
    line-height: 1.6;
}

.pf-features{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    margin-top: 6px;
}

.pf-pill{
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background:
            linear-gradient(
                    135deg,
                    rgba(34,199,242,.14),
                    rgba(106,47,216,.12)
            ),
            rgba(15,15,15,.35);
    border: 1px solid rgba(34,199,242,.35);
    color: var(--text-strong);
    box-shadow:
            0 0 0 1px rgba(255,43,134,.08) inset,
            0 0 18px rgba(34,199,242,.18);
    backdrop-filter: blur(20px);
    transition: all .25s ease;
}

.pf-pill:hover{
    border-color: rgba(255,43,134,.55);
    box-shadow:
            0 0 0 1px rgba(34,199,242,.18) inset,
            0 0 22px rgba(255,43,134,.28);
}

.pf-carousel{
    border-radius: var(--radius);
    overflow:hidden;
    border: 1px solid rgba(34,199,242,.35);
    background:
            radial-gradient(600px 300px at 20% 20%, rgba(34,199,242,.18), transparent 60%),
            radial-gradient(600px 300px at 80% 70%, rgba(255,43,134,.14), transparent 60%),
            rgba(0,0,0,.35);
    box-shadow: var(--shadow-brand);
    display:flex;
    flex-direction:column;
    justify-content: center;
}

.pf-slides{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pf-slides::-webkit-scrollbar{ display:none; }

.pf-slide{
    scroll-snap-align: start;
    min-width: 100%;
    display:block;
}

.pf-slide > img{
    width: 100%;
    height: auto;
    display: block;
}

.pf-slide__content{
    text-align:center;
    padding: 18px;
    max-width: 44ch;
}

.pf-slide__content strong{
    font-size: 18px;
    color: var(--text-strong);
}

.pf-slide__content span{
    font-size: 13px;
    color: var(--text-muted);
    line-height:1.55;
}

.pf-carousel__nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 12px;
    border-top: 1px solid rgba(34,199,242,.22);
    background: rgba(15,15,15,.45);
}

.pf-dots{
    display:flex;
    gap: 8px;
}

.pf-dot{
    width: 10px;
    height: 10px;
    border-radius:999px;
}

.pf-dots .pf-dot:nth-child(1){
    background: var(--brand-cyan);
    box-shadow: 0 0 14px rgba(34,199,242,.45);
}
.pf-dots .pf-dot:nth-child(2){
    background: var(--brand-violet);
    box-shadow: 0 0 14px rgba(106,47,216,.45);
}
.pf-dots .pf-dot:nth-child(3){
    background: var(--brand-pink);
    box-shadow: 0 0 14px rgba(255,43,134,.45);
}

.pf-controls{
    display:flex;
    gap: 8px;
}

.pf-btn{
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(34,199,242,.45);
    background: rgba(34,199,242,.10);
    color: var(--text-strong);
    transition: all .15s ease;
}

.pf-btn:hover{
    background: rgba(255,43,134,.18);
    border-color: rgba(255,43,134,.55);
}

.pf-slide[id^="cinema-mob-"],
.pf-slide[id^="ticket-mob-"]{
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-slide[id^="cinema-mob-"] > img,
.pf-slide[id^="ticket-mob-"] > img{
    height: 100%;
    width: auto;
    display: block;
}

.pf-actions{
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;

    padding: 9px 14px;
    border-radius: 999px;
    font-family: 'Courier New', monospace;
    letter-spacing: .04em;
    color: var(--text-strong);

    background:
            linear-gradient(
                    135deg,
                    rgba(34,199,242,.14),
                    rgba(106,47,216,.12)
            ),
            rgba(15,15,15,.35);

    border: 1px solid rgba(34,199,242,.45);

    box-shadow:
            0 0 0 1px rgba(255,43,134,.08) inset,
            0 0 18px rgba(34,199,242,.18);

    backdrop-filter: blur(20px);
    transition: all .25s ease;
}

.pf-cta:hover{
    border-color: rgba(255,43,134,.55);
    background: rgba(255,43,134,.14);
    box-shadow:
            0 0 0 1px rgba(34,199,242,.18) inset,
            0 0 22px rgba(255,43,134,.28);
}

/* ====================================================== */
/* === BOUTON MES SERVICES ================================= */
/* ====================================================== */
.glow-on-hover {
    margin: auto auto 80px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fffce1;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    gap: 14px;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.glow-on-hover:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(
            45deg,
            #1AC1F6,
            #2485EA,
            #563EDD,
            #8523D1,
            #E70F9A,
            #1AC1F6
    );
    background-size: 400%;
    filter: blur(5px);
    border-radius: 10px;
    z-index: -1;
    animation: glowing 20s linear infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.glow-on-hover:hover:before {
    filter: blur(8px);
    transform: scale(1.05);
}

.glow-on-hover:after {
    content: '';
    position: absolute;
    inset: 0;
    background: #111;
    border-radius: 10px;
    z-index: -1;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.arrow-rail {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 16px;
    pointer-events: none;
}

.chev {
    width: 12px;
    height: 12px;
    display: block;
    animation: chev-pulse 1.3s ease-in-out infinite;
}

.chev:nth-child(2) { animation-delay: 0.12s; }
.chev:nth-child(3) { animation-delay: 0.24s; }

.chev polyline {
    fill: none;
    stroke: #fffce1;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
            drop-shadow(0 0 3px rgba(255,252,225,0.9))
            drop-shadow(0 0 10px rgba(255,252,225,0.6))
            drop-shadow(0 0 18px rgba(255,252,225,0.35));
}

@keyframes chev-pulse {
    0%   { opacity: 0; transform: translateX(0); }
    50%  { opacity: 1; transform: translateX(2px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* ====================================================== */
/* === RESPONSIVE RULES ================================= */
/* ====================================================== */
@media (max-width:600px) {
    #mes-realisations {scroll-margin-top: var(--header-height);}
    #mes-competences {scroll-margin-top: 15px;}
    #accueil, #qui-suis-je, #mon-parcours {scroll-margin-top: var(--header-height);}
    .bonjour-container {font-size: clamp(3rem, 9vw, 5rem);}
    #scramble-container {font-size: clamp(1.4rem, 5vw, 2.2rem); padding-top: 0.9rem}
    .accolades-container {width: 80%; height: auto;bottom: 18svh}
    .accolade {width: clamp(0.7rem, 4vw, 1.1rem);}
    .pop-text {font-size: clamp(0.7rem, 3vw, 1rem);}
    .quote-author {font-size: clamp(0.7rem, 2.5vw, 0.9rem);}
    .terminal {top:25%}
    .pin_marker_end   { bottom: 0; transform: translateY(120%); }
    .pf-block{grid-template-columns: 1fr;}
    .pf-carousel{min-height: 260px;}
}
@media (min-width: 1921px) {
    #bonjour-scramble-container {left: 12svw; top: 18svh; width: 36rem;}
    .bonjour-container {font-size: 6.5rem;}
    #scramble-container {font-size: 3rem; margin-top: 2.5rem;}
    #cursor-icon {font-size: 3rem;}
    .accolades-container {bottom: 10svh; width: 60rem; height: 15rem;}
    .accolade {width: 2.2rem;}
    .terminal {width: 48rem; height: 30rem; top: 18svh;}
    .terminal-body {font-size: 2rem;}
    .progress-bar {height: 4rem; border-radius: 1rem;}
    .whoa-text {font-size: 2.4rem;}
    .quote-left svg, .quote-right svg {width: 3rem;}
    .morphSVG svg {width: 420px; height: 420px;}
    .animated-text-section, .animated-second-text-section {font-size: 2rem; padding: 8rem;}
    .quote-container {padding: 8rem 8rem 0 8rem;}
    .container-robot {bottom: 10vw; height: 18vw;}
    .robot-apk {width: 10vw;}
    #pin-windmill-wrap {top: calc(10vw * -0.62);}
    #pin-windmill-svg {width: 12vw; height: 12vw;}
    .content {width: min(92%, 1800px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2rem);}
    .content .text-box {font-size: 1.5rem;}
    .comp-dev .main-title, .comp-mobile .main-title {font-size: 3.5rem;}
}
@media (min-width: 3840px) {
    #bonjour-scramble-container {left: 10svw; top: 16svh; width: 48rem;}
    .bonjour-container {font-size:10rem;}
    #scramble-container {font-size: 4rem; margin-top: 5rem;}
    #cursor-icon {font-size: 4rem;}
    .accolades-container {bottom: 10svh; width: 120rem; height: 18rem;}
    .accolade {width: 2.6rem;}
    .pop-text {font-size: 2rem;}
    .quote-author {font-size: 1.6rem;}
    .terminal {width: 60rem; height: 36rem; top: 16svh;}
    .terminal-body {font-size: 2.4rem;}
    #pin-windmill-wrap {top: calc(10vw * -0.72);}
    .progress-bar {height: 5rem; border-radius: 1.2rem;}
    .whoa-text {font-size: 3rem;}
    .quote-left svg, .quote-right svg {width: 3.6rem;}
    .morphSVG svg {width: 550px; height: 550px;}
    .animated-text-section, .animated-second-text-section {font-size: 2.4rem; padding: 10rem;}
    .quote-container {padding: 10rem 10rem 0 10rem;}
    .container-robot {bottom: 8vw; height: 16vw;}
    .robot-apk {width: 8vw;}
    #pin-windmill-wrap {top: calc(10vw * -0.65);}
    #pin-windmill-svg {width: 14vw; height: 14vw;}
    .content {width: min(92%, 2500px); gap: clamp(1.5rem, 3.5vw, 3rem);}
    .content .text-box {font-size: 2.1rem;}
    .comp-dev .main-title {font-size: 5rem;}
    .comp-dev {gap: 4rem;}
    .icons li {font-size: 3rem;}
    .icons {gap: 4rem;}
    #site-footer .footer-content p {font-size: 2rem;}
}
@media (orientation: portrait) {
    #accueil {display: flex;flex-direction: column;}
    .left {width: 100%;height: 94svh;}
    .right {width: 100%;height: 100svh;}
    #bonjour-scramble-container {left:20%; top: 22%}
    #textSection {flex-direction: column;align-items: center;}
    .morphSVG {width: 50%;text-align: center;}
    #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -0.54);}
}
@media (max-width: 1000px) and (orientation: landscape) {
    .morphSVG {width: 25%;}
    #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -0.55);}
    .content {width: 500px;}
    #scramble-container, #cursor-icon {font-size: 1.4rem;}
}
@media (min-width: 2560px) and (orientation: landscape) {
    #pin-windmill-wrap { top: calc(clamp(120px, 12vw, 200px) * -0.8); }
    .comp-dev,
    .comp-mobile { gap: 2.5rem; }
    .robot-apk { width: 10vw; }
    .content { max-width: 1800px; gap: clamp(1.5rem, 2vw, 3rem); }
    .content .text-box { max-width: 650px; font-size: clamp(1.2rem, 0.5vw + 0.9rem, 1.6rem); padding: clamp(20px, 2vw, 48px); }
    .comp-dev .main-title, .comp-mobile .main-title { font-size: 3.8rem; }
    #mes-realisations{
        width: min(1800px, 94%);
        margin: 140px auto 120px;
        padding-top: 2rem;
        padding-right: clamp(1.5rem, 2.5vw, 3.2rem);
        padding-left:  clamp(1.5rem, 2.5vw, 3.2rem);
        gap: clamp(2rem, 3vw, 3.5rem);
    }

    .pf-section__head{
        padding: 28px 28px 18px;
        gap: 16px;
    }

    .pf-title{
        font-size: clamp(2rem, 1.4vw, 2.8rem);
    }

    .pf-chip{
        font-size: 14px;
        padding: 10px 14px;
    }

    .pf-section__body{
        padding: 28px;
        gap: 26px;
    }

    .pf-block{
        gap: 28px;
        padding: 22px;
        border-radius: calc(var(--radius) + 4px);
    }

    .pf-kicker{
        font-size: 13px;
        letter-spacing: .20em;
    }

    .pf-meta h3{
        font-size: clamp(1.5rem, 0.9vw, 1.9rem);
        line-height: 1.15;
    }

    .pf-meta p{
        font-size: clamp(1.15rem, 0.5vw + 0.9rem, 1.35rem);
        line-height: 1.65;
    }

    .pf-pill{
        font-size: 14px;
        padding: 9px 13px;
    }

    .pf-slide__content{
        padding: 22px;
        max-width: 52ch;
    }

    .pf-slide__content strong{
        font-size: 22px;
    }

    .pf-slide__content span{
        font-size: 15px;
        line-height: 1.6;
    }

    .pf-carousel__nav{
        padding: 14px;
    }

    .pf-dot{
        width: 12px;
        height: 12px;
    }

    .pf-btn{
        font-size: 13px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .pf-slide[id^="cinema-mob-"],
    .pf-slide[id^="ticket-mob-"]{
        height: 460px;
    }
    .pf-cta{
        font-size: 13px;
        padding: 11px 18px;

        box-shadow:
                0 0 0 1px rgba(255,43,134,.12) inset,
                0 0 22px rgba(34,199,242,.22);
    }

    .pf-actions{
        margin-top: 14px;
        gap: 12px;
    }
}
@media (min-width: 3840px) and (orientation: landscape) {
    #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -1.1);}
    .comp-dev,
    .comp-mobile {gap: 3rem;}
    .robot-apk {width: 10vw;}
    .content {max-width: 2300px;gap: clamp(2rem, 1.5vw, 4rem);}
    .content .text-box {max-width: 800px;font-size: clamp(1.5rem, 0.4vw + 1rem, 2rem);padding: clamp(24px, 1.8vw, 56px);}
    .comp-dev .main-title, .comp-mobile .main-title {font-size: 4.5rem;}
    #mes-realisations{
        width: min(2500px, 94%);
        margin: 170px auto 140px;
        padding-top: 2.5rem;
        padding-right: clamp(2rem, 2.2vw, 4rem);
        padding-left:  clamp(2rem, 2.2vw, 4rem);
        gap: clamp(2.5rem, 2.6vw, 4.2rem);
    }

    .pf-section__head{
        padding: 34px 34px 22px;
        gap: 18px;
    }

    .pf-title{
        font-size: clamp(2.6rem, 1.2vw, 3.4rem);
    }

    .pf-chip{
        font-size: 16px;
        padding: 12px 16px;
    }

    .pf-section__body{
        padding: 34px;
        gap: 30px;
    }

    .pf-block{
        gap: 32px;
        padding: 26px;
        border-radius: calc(var(--radius) + 6px);
    }

    .pf-kicker{
        font-size: 15px;
        letter-spacing: .22em;
    }

    .pf-meta h3{
        font-size: clamp(1.9rem, 0.8vw, 2.4rem);
        line-height: 1.12;
    }

    .pf-meta p{
        font-size: clamp(1.35rem, 0.45vw + 1rem, 1.7rem);
        line-height: 1.7;
    }

    .pf-features{
        gap: 10px;
    }

    .pf-pill{
        font-size: 16px;
        padding: 11px 15px;
    }

    .pf-slide__content{
        padding: 26px;
        max-width: 60ch;
    }

    .pf-slide__content strong{
        font-size: 26px;
    }

    .pf-slide__content span{
        font-size: 17px;
        line-height: 1.65;
    }

    .pf-carousel__nav{
        padding: 16px;
    }

    .pf-dot{
        width: 14px;
        height: 14px;
    }

    .pf-btn{
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .pf-slide[id^="cinema-mob-"],
    .pf-slide[id^="ticket-mob-"]{
        height: 560px;
    }
    .pf-cta{
        font-size: 15px;
        padding: 14px 22px;

        border-width: 1.5px;

        box-shadow:
                0 0 0 1px rgba(34,199,242,.18) inset,
                0 0 30px rgba(34,199,242,.32),
                0 0 60px rgba(255,43,134,.18);
    }

    .pf-actions{
        margin-top: 18px;
        gap: 16px;
    }
}

