/*
Theme Name: Portfolio
Author: Joël DERMONT
Description: Mon portfolio
Version: 1.0
*/

/* ====================================================== */
/* === RESET & BASE ===================================== */
/* ====================================================== */
:root {
    --android-green: #A4C639;
    --panel-dur: .3s;
    --panel-ease: ease-in-out;
    --header-height: 6svh;
}

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

body {
    background-color: rgb(14, 16, 15);
    font-family: 'Mori', sans-serif;
    color: rgb(255, 252, 225);
}

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

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

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

/* ====================================================== */
/* === HEADER =========================================== */
/* ====================================================== */
#main-nav .nav-list .nav-item:first-child {
    margin-right: auto;
    pointer-events: none;
}

.nav-item.menu-toggle-item {display: none;}

#site-header {
    font-size: clamp(0.9rem, 1.1vw, 1.4rem);
    padding: 0 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgb(255,252,225);
    position: relative;
    overflow: hidden;
    color: rgb(14,16,15);
    height: var(--header-height);
}

#site-header::before{
    content:"";
    position:absolute; inset:0; height: 100%;
    background: rgb(14,16,15);
    transform: translateX(-100%);
    transition: transform var(--panel-dur) var(--panel-ease);
    pointer-events:none;
}

#site-header > * { position: relative; z-index: 2; }

.is-menu-open #site-header::before { transform: translateX(0); }

.is-menu-open #site-header { color: rgb(255,252,225); }

#main-nav{display:flex; align-items:center; justify-content:center; width:100%;}

.main-nav .nav-list{
    display:flex; align-items:center; justify-content:center;
    list-style:none; margin:0; padding:0;
    gap: clamp(1rem, 3vw, 2.5rem);
    width:100%;
}

#main-nav .nav-list .nav-item a{
    color: inherit;
    text-decoration: none;
    transition: all var(--panel-dur) var(--panel-ease);
}

#main-nav .nav-list .nav-item a:hover { text-decoration: underline; }

.menu-toggle{
    position:relative; display:inline-flex; align-items:center; gap:16px;
    padding:8px 16px; border:2px solid currentColor; border-radius:999px;
    font-weight:700; background:transparent; cursor:pointer;
    color: inherit;
    transition: color var(--panel-dur) var(--panel-ease), border-color var(--panel-dur) var(--panel-ease);
}

.menu-toggle .burger{ position:relative; width:26px; height:18px; display:inline-flex; }

.menu-toggle .burger-bar{
    position:absolute; left:0; right:0; height:2px; background: currentColor;
    transition: background-color var(--panel-dur) var(--panel-ease), transform .25s ease, opacity .25s ease;
}

.menu-toggle .burger-bar.top{ top:0; }
.menu-toggle .burger-bar.middle{ top:8px; }
.menu-toggle .burger-bar.bottom{ bottom:0; }

.is-menu-open .menu-toggle .burger-bar.top{ transform: translateY(8px) rotate(45deg); }
.is-menu-open .menu-toggle .burger-bar.middle{ opacity:0; }
.is-menu-open .menu-toggle .burger-bar.bottom{ transform: translateY(-8px) rotate(-45deg); }

.is-menu-open #site-header .menu-toggle{ border-color: rgb(255,252,225); }

.menu-panel{
    position: fixed;width: 100%;
    height: calc(100svh - var(--header-height));
    background: rgb(255,252,225); color: rgb(14,16,15);
    transform: translateX(-100%);
    transition: transform var(--panel-dur) var(--panel-ease);
    will-change: transform;
    font-size: clamp(0.9rem, 1.1vw, 1.4rem);
    z-index: 1;
}

.is-menu-open .menu-panel{ transform: translateX(0); }

.menu-panel .panel-list{
    list-style:none; margin:0;
    display:flex; flex-direction:column; gap:24px;
    padding: 2rem 8vw;
}

.menu-panel .panel-list li a{text-decoration:none; color: rgb(14,16,15);}

/* ====================================================== */
/* === 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:5svw;
    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);
    line-height: 0.8;
    will-change: transform;
}

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

.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: 50%;
    color: #0ff;
    font-size: clamp(1.6rem, 4.5vw, 4rem);
    display: inline-flex;
    gap: 0.1em;
    transform: scale(0);
    will-change: transform, opacity;
    opacity: 1;
    pointer-events: none;
}

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

.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;
    opacity: 0;
    z-index: -1000;
}

.dot-j {
    position: absolute;
    top: 55%;
    left: 50%;
    background-color: rgb(255, 252, 225);
    border-radius: 50%;
    font-size: 0;
    transform-origin: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* ====================================================== */
/* === FLOWER ANIMATION ================================= */
/* ====================================================== */
.flower {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
    bottom: 85%;
    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 =============================== */
/* ====================================================== */
#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: #fffce1;
    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: rgb(255, 252, 225);
    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;
    transform: scale(clamp(0.14, 0.25vw + 0.1, 0.44));
    pointer-events: none;
    opacity: 0;
}

.intro-text {
    font-size: clamp(0.7rem, 1.2vw + 0.5rem, 3.6rem);
    padding: clamp(0.75rem, 2vw, 2.5rem);
    opacity: 0;
    transform: translateY(50px);
}

#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;
}

#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;
}

#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(1rem, 3vw, 2rem);
    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: rgb(255, 252, 225);
    display: flex;
    justify-content: center;
    align-items: center;
}

.icons li svg {
    width: 1em;
    height: 1em;
    fill: rgb(255, 252, 225);
}
/* ====================================================== */
/* === FOOTER =========================================== */
/* =======================================================*/
#site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1.2vw, 28px);
    background-color: rgb(255, 252, 225);
}

#site-footer .footer-content p .footer-text {
    pointer-events: none;
    color: rgb(14, 16, 15);
}

#site-footer .footer-content p {
    display: flex;
    justify-content: center;
    align-items: center;
}

#site-footer .footer-content p a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgb(14, 16, 15);
    flex-wrap: nowrap;
}

#site-footer .footer-content p a:hover {
    text-decoration: underline;
}

.footer-socials { padding-top: clamp(0.25rem, 1vw, 1rem); }

.footer-content {
    flex: 1;
    text-align: center;
    padding: 2svh 0 2svh 0;
}

.footer-content p {
    font-size: clamp(0.9rem, 1.1vw, 1.4rem);
    line-height: 1.35;
    color: rgb(14, 16, 15);
}

.footer-left { width: clamp(28px, 2.5vw, 60px); }

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 5vw, 110px);
    height: clamp(44px, 5vw, 110px);
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(138,109,240,0.12) 0%, transparent 70%);
    transition: background 0.4s ease;
}

.footer-arrow { margin: 0; }

.back-to-top svg {
    width: clamp(20px, 2.2vw, 52px);
    height: auto;
    fill: url(#pathGradient);
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    transition: transform .3s ease, filter .3s ease;
}

.back-to-top:hover {
    background: radial-gradient(circle at center, rgba(138,109,240,0.25) 0%, transparent 80%);
}

.back-to-top:hover svg {
    transform: translateY(-5px) scale(1.15);
    filter: drop-shadow(0 0 14px #8A6DF0) brightness(1.2);
}

.footer-socials svg {
    width: clamp(14px, 1.5vw, 28px);
    height: auto;
}

.footer-socials a:hover svg {
    opacity: 0.7;
    transform: scale(1.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a {
    text-decoration: none !important;
}

.footer-socials a:first-child {
    margin-right: 0.5rem;
}

.footer-socials a:hover {
    text-decoration: none !important;
}
/* ====================================================== */
/* === PAGE 404 ================================= */
/* ====================================================== */
#primary {
    height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:2rem;
}

#primary a {
    color: #C583F7;
}

/* ====================================================== */
/* === RESPONSIVE RULES ================================= */
/* ====================================================== */
@media (max-width:600px) {
    .nav-list .menu-toggle-item {display: block;}
    .main-nav .nav-list .nav-item:not(.menu-toggle-item):nth-last-child(-n+5) {display: none;}
    #main-nav .nav-list .nav-item:first-child {font-weight: 700;font-size: 1.3rem;}
    .menu-panel .panel-list{font-size: 1rem;}
    :root {--header-height: 7svh;}
    .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);}
    .pin_marker_end   { bottom: 0; transform: translateY(120%); }
}

@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;}
    .footer-socials svg {width: 3rem;}
    .footer-socials a:first-child {margin-right: 1rem;}
}

@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 (orientation: portrait) and (max-width: 1368px) {
    #site-header {font-size: 1.2rem;}
}

@media (orientation: portrait) and (min-width: 1369px) and (max-width: 1919px) {
    #site-header {font-size: 1.4rem;}
}

@media (orientation: portrait) and (min-width: 1920px) and (max-width: 3839px) {
    #site-header {font-size: 2.5rem;}
}

@media (orientation: portrait) and (min-width: 3840px) {
    #site-header {font-size: 3rem;}
}

@media (max-width: 1000px) and (orientation: landscape) {
    #site-header {font-size: 1rem}
    .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;}
    .is-menu-open #main-nav .nav-list .nav-item:first-child {font-weight: 700;font-size: 1.3rem;}
    .menu-panel .panel-list{font-size: 1rem;}
    :root {--header-height: 16svh;}
}

@media (min-width: 1440px) and (orientation: landscape) {
    #site-header { font-size: 1.4rem; }
}

@media (min-width: 2560px) and (orientation: landscape) {
    #site-header { font-size: 1.8rem; }
    #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; }
}

@media (min-width: 3840px) and (orientation: landscape) {
    #site-header { font-size: 2.8rem; }
    #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;}
}









