/* ====================================================== */
/* === RESET & BASE ===================================== */
/* ====================================================== */
#app-root .wp-block-group.is-layout-flow { --wp--style--block-gap: 0; }

#app-root .pin-spacer { margin: 0 !important; }

#app-root section { margin-block-start: 0; margin-top: 0; }

:root {
    --android-green: #A4C639;
    --header-h: 0px;

}

.wp-block-template-part {background-color: rgb(255, 252, 225);color: rgb(14, 16, 15);}

* {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);}

html, body { overflow-x: clip; }

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

/* ====================================================== */
/* === LAYOUT STRUCTURE ================================= */
/* ====================================================== */
#accueil-container {display: flex;}

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

#robot-container{display: flex;height: 100dvh;}

/* ====================================================== */
/* === HEADER =========================== */
/* ====================================================== */
.brand-mobile {
    display: none;
    font-weight: 700;
    color: rgb(14,16,15);
    text-decoration: none;
    margin-right: auto;
}

.wp-block-navigation {font-size: clamp(0.66rem, 2.6vw, 1.2rem); justify-content: center; padding: 0 8vw 0 8vw}

.wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item:first-child {margin-right: auto;}

.wp-block-navigation-item__content[href="#header"] {
    pointer-events: none;
    cursor: default;
    color: inherit;
    text-decoration: none;
}

.wp-block-navigation-item__content[href="#header"]:hover {
    background: none !important; /* supprime effet hover éventuel */
    color: inherit !important;
}


/* ====================================================== */
/* === 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(1.2rem, 3.75vw, 3rem);
    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-size: clamp(1.2rem, 3.75vw, 3rem);
    font-weight: 600;
    opacity: 0;
    display: none;
}

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

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

/* ====================================================== */
/* === 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 1rem;
}

.quote-author {
    margin-left: auto;
    margin-top: 0.5rem;
    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);
}

.cursor {animation: blink 0.6s infinite;font-weight: bold;}

.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 ============================ */
/* ====================================================== */
#textRobot {
    display: flex;
    flex-direction: column;
    width: 75%;
    max-width: 100vw;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
}

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

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

#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(105%); }

.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);
    padding-top: 2rem;
}

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

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

.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.75rem, 1.7vw, 1.4rem);
    line-height: 1.4;
    gap: clamp(0.5rem, 1.5vw, 1rem);
}

.animated-second-text-section {text-align: center; padding-bottom: 2rem}

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

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

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

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

#textSection {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    padding: 0 10rem 0 10rem;
}

.morphSVG {
    text-align: center;
}

#maintenance {opacity: 0;}

/* ====================================================== */
/* === SECTION AVION ====================== */
/* ====================================================== */
#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));
}

#section-avion {
    position: relative;
    overflow: hidden;
    height: 100vh;
    text-align: center;
}

.intro-text {
    font-size: clamp(0.7rem, calc(0.7rem + 1.5vw), 2.5rem);
    opacity: 0;
    transform: translateY(50px);
    padding: 1rem;
}

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

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

.label {
    position: absolute;
    top: 0;
    left: 0;
    width: 20vw;
    font-family: 'Mori', sans-serif;
    text-align: center;
    color: white;
    transform: translate(-50%, 0) scale(0.3);
    transform-origin: top center;
    font-size: 1.2rem;
    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;
}

.label span {
    font-family: 'Mori', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    margin-top: 0.4rem;
}

/* ====================================================== */
/* === SECTION MES COMPETENCES ===========================*/
/* ====================================================== */
.comp-dev, .comp-mobile {
    width: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
}

#competences-container {
    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 {
    width: min(92%, 1200px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

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

.content .text-box {
    z-index: 1;
    display: inline;
    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;
    width: 65%;
    font-size: 1rem;
    line-height: 1.5;
}

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

.icons li {
    list-style: none;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: rgb(255, 252, 225);
}

/* =============================================*/
/* === FOOTER ================================= */
/* =============================================*/
footer {position: relative;font-size: 1.2rem;}

.footer-socials {padding-top: 1rem;}

footer.wp-block-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px !important;
}

/* contenu centré pile au milieu */
.footer-content {
    flex: 1;
    text-align: center;
    margin: 0;
}

footer.wp-block-group a {text-decoration: none;}

footer.wp-block-group a:hover {text-decoration: underline;}

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

/* style flèche */
.footer-arrow {margin: 0}
.back-to-top svg {
    width: clamp(20px, 3.5vw, 36px);
    height: auto;
    fill: url(#pathGradient); /* remplissage dégradé */
    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); /* plus de rotation */
    filter: drop-shadow(0 0 14px #8A6DF0) brightness(1.2);
}

/* ====================================================== */
/* === RESPONSIVE RULES ================================= */
/* ====================================================== */

/* === Header === */
@media (max-width: 600px) {
    :root {
        --panel-dur: .35s;
        --panel-ease: ease-in-out;
    }

    .brand-mobile.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-1842c20c.wp-block-group-is-layout-constrained {pointer-events: none}

    /* Masquer le bouton "fermer" généré par WP */
    .wp-block-navigation__responsive-container-close {display: none !important; overflow-x: hidden;}

    .wp-block-navigation { padding: 0; font-size: clamp(1rem, 4vw, 2rem);}

    /* ----- HEADER ----- */
    header.wp-block-group {
        z-index: 1000;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background-color: rgb(255,252,225);
        padding: 12px 30px !important;
    }

    /* Voile noir qui slide comme le panneau */
    header.wp-block-group::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-h);
        background-color: rgb(14, 16, 15);
        transform: translateX(-100%);
        transition: transform var(--panel-dur) var(--panel-ease);
        z-index: 1;
        pointer-events: none;
    }
    header.wp-block-group > * { position: relative; z-index: 2; }

    /* Voile ouvert */
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    header.wp-block-group::before {
        transform: translateX(0);
    }

    /* Voile fermeture */
    html:has(.wp-block-navigation__responsive-container.is-closing)
    header.wp-block-group::before {
        transform: translateX(-100%);
    }

    /* ----- COULEURS HEADER ----- */
    /* Ouvert : passage doux en crème */
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    header.wp-block-group,
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    header.wp-block-group .brand-mobile,
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    header.wp-block-group .wp-block-navigation__responsive-container-open {
        color: rgb(255, 252, 225);
        border-color: rgb(255, 252, 225);
        transition: color var(--panel-dur) var(--panel-ease),
        border-color var(--panel-dur) var(--panel-ease);
    }

    /* Fermeture : retour instantané */
    html:has(.wp-block-navigation__responsive-container.is-closing)
    header.wp-block-group,
    html:has(.wp-block-navigation__responsive-container.is-closing)
    header.wp-block-group .brand-mobile,
    html:has(.wp-block-navigation__responsive-container.is-closing)
    header.wp-block-group .wp-block-navigation__responsive-container-open {
        color: rgb(14,16,15);
        border-color: rgb(14,16,15);
        transition: none !important;
    }

    /* ----- BRAND ----- */
    .brand-mobile {
        display: inline-block;
        font-weight: 700;
        text-decoration: none;
        color: rgb(14,16,15);
        padding: 0;
    }

    .wp-block-navigation .wp-block-navigation__container >
    .wp-block-navigation-item:first-child {
        display: none;
    }

    /* ----- BOUTON HAMBURGER ----- */
    .wp-block-navigation__responsive-container-open {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 16px;
        padding: 8px 16px;
        border-radius: 999px;
        border: 2px solid rgb(14,16,15);
        background: transparent;
        color: rgb(14,16,15);
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: transform .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        color var(--panel-dur) var(--panel-ease),
        border-color var(--panel-dur) var(--panel-ease);
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        -webkit-tap-highlight-color: transparent;
        box-shadow: none;
    }

    .wp-block-navigation__responsive-container-open.has-bars {
        display: inline-flex;
        align-items: center;
        gap: 16px;
    }

    /* Barres du hamburger */
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar {
        position: absolute;
        right: 16px;
        top: 50%;
        width: 26px;
        height: 2px;
        background: currentColor;
        transform-origin: center;
        transition: transform .25s ease, opacity .25s ease;
    }
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.top {
        transform: translateY(calc(-50% - 6px));
    }
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.middle {
        transform: translateY(-50%);
    }
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.bottom {
        transform: translateY(calc(-50% + 6px));
    }

    .wp-block-navigation__responsive-container-open.has-bars .burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
    }

    /* État ouvert = croix */
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.top {
        transform: translateY(-50%) rotate(45deg);
    }
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.middle {
        opacity: 0;
    }
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    .wp-block-navigation__responsive-container-open.has-bars .burger-bar.bottom {
        transform: translateY(-50%) rotate(-45deg);
    }

    /* Texte "Menu" */
    .wp-block-navigation__responsive-container-open svg { display: none !important; }
    .wp-block-navigation__responsive-container-open::before {
        content: "Menu";
        font-size: 0.9rem;
        font-weight: 600;
        position: static;
    }

    /* Accessibilité focus */
    .wp-block-navigation__responsive-container-open:focus { outline: none; }
    .wp-block-navigation__responsive-container-open:focus:not(:focus-visible) {
        outline: none; box-shadow: none;
    }
    .wp-block-navigation__responsive-container-open:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }
    .wp-block-navigation__responsive-container-open::-moz-focus-inner { border: 0; }

    /* États forcés WP */
    html:has(.wp-block-navigation__responsive-container.is-menu-open)
    .wp-block-navigation__responsive-container-open {
        box-shadow: none !important;
        outline: none !important;
        border-width: 2px;
    }
    .wp-block-navigation__responsive-container-open:active {
        box-shadow: none;
        border-width: 2px;
    }

    /* ----- PANNEAU LATÉRAL ----- */
    .wp-block-navigation__responsive-container {
        width: 100%;
        top: var(--header-h);
        height: calc(100svh - var(--header-h));
        transition: transform var(--panel-dur) var(--panel-ease);
        display: flex;
        flex-direction: column;
        background-color: rgb(255,252,225) !important;
        color: rgb(14,16,15) !important;
        animation: none !important;
        transform: translateX(-100%) translateY(0) !important;
        will-change: transform;
    }
    .wp-block-navigation__responsive-dialog { display: none; }

    .wp-block-navigation__responsive-container.is-menu-open {
        transform: translateX(0) translateY(0) !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-dialog {
        transform: translateX(0) translateY(0) !important;
        display: block;
    }

    /* Fermeture : slide out + contenu visible le temps de l’anim */
    .wp-block-navigation__responsive-container.is-closing {
        transform: translateX(-100%) !important;
    }
    .wp-block-navigation__responsive-container.is-closing
    .wp-block-navigation__responsive-dialog {
        display: block !important;
    }
}

/* === Section robot & accueil === */
@media (orientation: portrait) {
        #accueil-container {
            display: flex;
            flex-direction: column;
        }

        .left {
            width: 100%;
            height: calc(100dvh - var(--header-h));
        }

        .right {
            width: 100%;
            height: 100dvh;
        }

        /* Fallback portrait si 100dvh indisponible */
        @supports not (height: 100dvh) {
            .left {
                height: calc(100svh - var(--header-h));
            }

            .right {
                height: 100svh;
            }
        }
    }

@media (max-width: 375px) and (orientation: portrait) {
        #bonjour-scramble-container {left:20svw;top: 18svh;}
        #scramble-container {margin-top: 1.5rem}
        .accolades-container {bottom: 13svh;}
        .accolade {width: 0.8rem}
        .pop-text-container { padding: 0 0.5rem; }
        .pop-text {font-size: 0.6rem;}
        .quote-author {font-size: 0.4rem; margin-top: 0.3rem}
        .terminal {width: 20rem;height: 13rem;top:20%;}
        .terminal-body {font-size: 1rem;}
        #textSection {display: flex; flex-direction: column;padding: 0 0 0 0.5rem; align-items: center}
        #textRobot {width: 60%;}
        #pin-windmill-container {width: 40%;}  #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -0.535);}
        .pin_marker_end   { bottom: 0; transform: translateY(120%); }
        .whoa-text {font-size: 0.9rem;}
        .quote-left svg, .quote-right svg {width: 1rem;height: auto;}
        .morphSVG {width: 45%;}
        .animated-text-section, .animated-second-text-section {font-size: 0.7rem;line-height: 0.8rem;}
        .quote-container {padding-left: 0.5rem}
        #section-avion .label, #section-avion .label span {font-size: 0.5rem;}
        .intro-text {font-size:0.9rem;}
}

@media (min-width: 376px) and (max-width: 430px) and (orientation: portrait) {
    #bonjour-scramble-container {left:18svw; top:20svh; width:22rem;}
    #scramble-container {margin-top:1.8rem; font-size:1.6rem;}
    #cursor-icon { font-size: 1.6rem; }
    .accolades-container {bottom:18svh;}
    .accolade {width:1rem;}
    .pop-text-container {padding:0 0.75rem;}
    .pop-text {font-size:0.8rem;}
    .terminal {width:22rem; height:14rem; top:22%;}
    .terminal-body {font-size:1.05rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 0.5rem; align-items:center;}
    #textRobot {width:60%;}
    .pop-text {font-size:0.6rem}
    .quote-author {font-size: 0.4rem; margin-top: 0.3rem}
    #pin-windmill-container {width:40%;}
    #pin-windmill-wrap {top:calc(clamp(140px, 13vw, 250px) * -0.545);}
    .pin_marker_end {bottom:0; transform:translateY(125%);}
    .whoa-text {font-size:0.8rem;}
    .quote-left svg, .quote-right svg {width:1.25rem; height:auto;}
    .morphSVG {width:52%;}
    .animated-text-section, .animated-second-text-section {font-size:0.7rem; line-height:1.1rem;}
    .quote-container {padding-left:0.5rem;}
    #section-avion .label, #section-avion .label span {font-size: 0.5rem;}
    .intro-text {font-size:0.9rem;}
}

@media (min-width: 431px) and (max-width: 600px) and (orientation: portrait) {
    #bonjour-scramble-container {left:18svw; top:18svh; width:24rem;}
    #scramble-container {margin-top:2rem; font-size:1.9rem;}
    #cursor-icon { font-size: 1.9rem; }
    .accolades-container {bottom:12svh;}
    .accolade {width:1.2rem;}
    .pop-text-container {padding:0 0.9rem;}
    .pop-text {font-size:0.95rem;}
    .quote-author {font-size: 0.5rem; margin-top: 0.3rem}
    .terminal {width:24rem; height:15rem; top:22%;}
    .terminal-body {font-size:1.15rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 0.5rem; align-items:center;}
    #textRobot {width:60%;}
    #pin-windmill-container {width:40%;}
    #pin-windmill-wrap {top:calc(clamp(140px, 13vw, 250px) * -0.535);}
    .pin_marker_end {bottom:0; transform:translateY(120%);}
    .whoa-text {font-size:1.1rem;}
    .quote-left svg, .quote-right svg {width:1.5rem; height:auto;}
    .morphSVG {width:54%;}
    .animated-text-section, .animated-second-text-section {font-size:1rem; line-height:1.2rem;}
    .quote-container {padding-left:0.5rem;}
    #section-avion .label, #section-avion .label span {font-size: 0.6rem;}
    .intro-text {font-size:0.9rem;}
}

@media (min-width: 601px) and (max-width: 767px) and (orientation: portrait) {
    #bonjour-scramble-container {left:16svw; top:16svh; width:26rem;}
    #scramble-container {margin-top:2.2rem; font-size:2.1rem;}
    #cursor-icon { font-size: 2.1rem; }
    .accolades-container {bottom:11svh;}
    .accolade {width:1.35rem;}
    .pop-text-container {padding:0 1rem;}
    .pop-text {font-size:1.05rem;}
    .terminal {width:26rem; height:16rem; top:21%;}
    .terminal-body {font-size:1.25rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 0.5rem; align-items:center;}
    #textRobot {width:60%;}
    #pin-windmill-container {width:40%;}
    #pin-windmill-wrap {top:calc(clamp(140px, 13vw, 250px) * -0.535);}
    .pin_marker_end {bottom:0; transform:translateY(120%);}
    .whoa-text {font-size:1.35rem;}
    .quote-left svg, .quote-right svg {width:1.75rem; height:auto;}
    .morphSVG {width:56%;}
    .animated-text-section, .animated-second-text-section {font-size:1.1rem; line-height:1.3rem;}
    .quote-container {padding-left:0.5rem;}
    .intro-text {font-size:0.9rem;}
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    #bonjour-scramble-container {left:18svw; top:15svh; width:28rem;}
    #scramble-container {margin-top:2.6rem; font-size:2.4rem;}
    #cursor-icon { font-size: 2.4rem; }
    .accolades-container {bottom:8svh;}
    .accolade {width:1.5rem;}
    .pop-text-container {padding:0 1.1rem;}
    .pop-text {font-size:1.2rem;}
    .terminal {width:30rem; height:18rem; top:20%;}
    .terminal-body {font-size:1.35rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 0.5rem; align-items:center;}
    #textRobot {width:75%;}
    #pin-windmill-container {width:25%;}
    #pin-windmill-wrap {top:calc(clamp(140px, 13vw, 250px) * -0.63);}
    .pin_marker_end {bottom:0; transform:translateY(115%);}
    .whoa-text {font-size:1.6rem;}
    .quote-left svg, .quote-right svg {width:2rem; height:auto;}
    .morphSVG {width:58%;}
    .animated-text-section, .animated-second-text-section {font-size:1.25rem; line-height:1.3rem;}
    .animated-second-text-section {padding-left: 0.5rem}
    .quote-container {padding-left:0.5rem;}
    .robot-apk {width: clamp(120px, 20vw, 200px);}
    #pin-windmill-svg {width: clamp(160px, 20vw, 240px); height: clamp(160px, 20vw, 240px);}
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    #bonjour-scramble-container {left:20svw; top:18svh; width:32rem;}
    #scramble-container {margin-top:3rem; font-size:2.8rem;}
    #cursor-icon { font-size: 2.8rem; }
    .accolades-container {bottom:9svh;}
    .accolade {width:1.6rem;}
    .pop-text-container {padding:0 1.3rem;}
    .pop-text {font-size:1.35rem;}
    .terminal {width:34rem; height:20rem; top:22%;}
    .terminal-body {font-size:1.5rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 1rem; align-items:center;}
    #textRobot {width:75%;}
    #pin-windmill-container {width:25%;}
    #pin-windmill-wrap {top:calc(clamp(180px, 15vw, 280px) * -0.6);}
    .pin_marker_end {bottom:0; transform:translateY(120%);}
    .whoa-text {font-size:2rem;}
    .quote-left svg, .quote-right svg {width:2.4rem; height:auto;}
    .morphSVG {width:60%;}
    .animated-text-section, .animated-second-text-section {font-size:1.5rem; line-height:1.4;}
    .animated-second-text-section {padding-left:1rem;}
    .quote-container {padding-left:1rem;}
    .robot-apk {width: clamp(140px, 16vw, 240px);}
    #pin-windmill-svg {width: clamp(200px, 18vw, 300px); height: clamp(200px, 18vw, 300px);}
}

@media (min-width: 1367px) and (max-width: 1919px) and (orientation: portrait) {
    #bonjour-scramble-container {left:22svw; top:20svh; width:34rem;}
    #scramble-container {margin-top:3.5rem; font-size:3rem;}
    #cursor-icon { font-size: 3rem; }
    .accolades-container {bottom:10svh;}
    .accolade {width:1.8rem;}
    .pop-text-container {padding:0 1.5rem;}
    .pop-text {font-size:1.4rem;}
    .terminal {width:38rem; height:22rem; top:24%;}
    .terminal-body {font-size:1.7rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 1rem; align-items:center;}
    #textRobot {width:75%;}
    #pin-windmill-container {width:25%;}
    #pin-windmill-wrap {top:calc(clamp(200px, 17vw, 300px) * -0.4);}
    .pin_marker_end {bottom:0; transform:translateY(120%);}
    .whoa-text {font-size:2.3rem;}
    .quote-left svg, .quote-right svg {width:2.6rem; height:auto;}
    .morphSVG {width:62%;}
    .animated-text-section, .animated-second-text-section {font-size:1.7rem; line-height:1.5;}
    .animated-second-text-section {padding-left:1.2rem;}
    .quote-container {padding-left:1.2rem;}
}

@media (min-width: 1920px) and (orientation: portrait) {
    #bonjour-scramble-container {left:24svw; top:22svh; width:38rem;}
    #scramble-container {margin-top:4rem; font-size:3.4rem;}
    #cursor-icon { font-size: 3.4rem; }
    .accolades-container {bottom:12svh;}
    .accolade {width:2rem;}
    .pop-text-container {padding:0 1.8rem;}
    .pop-text {font-size:1.6rem;}
    .terminal {width:42rem; height:24rem; top:26%;}
    .terminal-body {font-size:1.9rem;}
    #textSection {display:flex; flex-direction:column; padding:0 0 0 1.2rem; align-items:center;}
    #textRobot {width:75%;}
    #pin-windmill-container {width:25%;}
    #pin-windmill-wrap {top:calc(clamp(220px, 18vw, 340px) * -0.39);}
    .pin_marker_end {bottom:0; transform:translateY(120%);}
    .whoa-text {font-size:2.6rem;}
    .quote-left svg, .quote-right svg {width:3rem; height:auto;}
    .morphSVG {width:65%;}
    .animated-text-section, .animated-second-text-section {font-size:2rem; line-height:1.6;}
    .animated-second-text-section {padding-left:1.5rem;}
    .quote-container {padding-left:1.5rem;}
}

@media (max-width: 750px) and (orientation: landscape) {
        .wp-block-navigation {font-size: 0.7rem; justify-content: center; padding: 0 8vw}
        .bonjour-container{font-size: 2rem;}
        #scramble-container {font-size: 1.05rem; margin-top: 0.8rem}
        #cursor-icon {font-size: 1.05rem;}
        .accolades-container {bottom: 4svh;}
        .pop-text-container { padding: 0 0.45rem; }
        .quote-author {margin-top: 0.15rem;}
        .container-robot {bottom: 16svh;}
        .terminal {width: 14rem;height: 8rem}
        .terminal-body { font-size: 0.7rem; }
        .progress-bar {height: 1.5rem;}
        .whoa-text {font-size: 0.8rem;}
        .morphSVG {width: 22%;}
        .pop-text {font-size:0.7rem}
        .quote-author {font-size: 0.4rem}
        .animated-text-section, .animated-second-text-section {font-size: 0.65rem;line-height: 0.75rem;}
        .animated-second-text-section {padding-bottom: 0.5rem; }
        #textSection {display: flex; flex-direction: column;padding: 0; align-items: center}
        .quote-container { padding-top:0.5rem; }
        #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -0.55);}
        .intro-text {font-size:1rem;}
    }

@media (min-width: 751px) and (max-width: 767px) and (orientation: landscape) {
        .wp-block-navigation { font-size: 0.85rem; justify-content: center; padding: 0 7vw; }
        .bonjour-container { font-size: 2.2rem; }
        #scramble-container { font-size: 1.2rem; margin-top: 1rem; }
        #cursor-icon { font-size: 1.2rem; }
        .accolades-container { bottom: 6svh;  }
        .pop-text-container { padding: 0 0.55rem; }
        .quote-author { margin-top: 0.2rem; }
        .container-robot { bottom: 13svh; }
        .progress-bar {height: 1.5rem;}
        .terminal { width: 16.5rem; height: 10rem;}
        .terminal-body { font-size: 0.8rem; }
        .whoa-text { font-size: 1.05rem; }
        .pop-text {font-size:0.8rem}
        .quote-author {font-size: 0.5rem}
        .morphSVG { width: 26%; padding: 1.6rem}
        .animated-text-section, .animated-second-text-section { font-size: 0.85rem;line-height: 0.95rem; }
        .animated-second-text-section { padding-bottom: 0.5rem; }
        .quote-container { padding-top: 0.5rem; }
        #textSection { display: flex; flex-direction: column; padding: 0; align-items: center; }
        .quote-container { padding-top:0.5rem; }
        .intro-text {font-size:1rem;}
    }

@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .wp-block-navigation { justify-content: center; }
    .bonjour-container { font-size: 3rem; }
    #scramble-container { font-size: 1.4rem; margin-top: 1rem; }
    #cursor-icon { font-size: 1.4rem; }
    .accolades-container { bottom: 2svh; }
    .accolade { width: 1.2rem; }
    .container-robot { bottom: 16svh; }
    .progress-bar {height: 1.5rem;}
    .terminal { width: 18rem; height: 10rem; }
    .terminal-body { font-size: 0.8rem; }
    .progress-bar {height: 1.5rem;}
    .pop-text {font-size:0.8rem}
    .quote-author {font-size: 0.5rem}
    .quote-left svg, .quote-right svg { width: 1rem;}
    .morphSVG { width: 20%; }
    .animated-text-section, .animated-second-text-section { font-size: 0.9rem; line-height: 1.05rem; }
    .animated-second-text-section { padding-bottom: 0.5rem; }
    #textSection {  padding: 0 2rem 0 2rem; align-items: center; }
    .quote-container { padding-top: 0.5rem; }
    #pin-windmill-wrap {top: calc(clamp(140px, 13vw, 250px) * -0.55);}
    .intro-text {font-size:1.2rem;}
}

@media (min-width: 1024px) and (max-width: 1365px) and (orientation: landscape) {
    #bonjour-scramble-container { left: 10svw; top: 15svh; }
    .wp-block-navigation { justify-content: center; }
    .wp-block-navigation__container.is-responsive.wp-block-navigation { gap: 2.2rem; }
    .bonjour-container { font-size: 3.6rem; }
    #scramble-container { font-size: 1.8rem; margin-top: 1.2rem; }
    #cursor-icon { font-size: 1.8rem; }
    .accolades-container { bottom: 5svh; width: clamp(18rem, 72vw, 44rem); height: clamp(6rem, 14vw, 11.5rem); }
    .accolade { width: 1.6rem; }
    .container-robot { bottom: 14svh; }
    .terminal { width: 24rem; height: 14rem; top: 15svh; }
    .terminal-body { font-size: 1.05rem; }
    .progress-bar { height: 1.8rem; }
    .whoa-text { font-size: 1.4rem; }
    .quote-left svg, .quote-right svg { width: 1.6rem; }
    .pop-text { font-size: 0.95rem; }
    .quote-author { font-size: 0.75rem; }
    .morphSVG { width: 30%; }
    .animated-text-section, .animated-second-text-section { font-size: 1.05rem; line-height: 1.2rem; padding: 1.6rem; }
    .animated-second-text-section { padding-bottom: 0.5rem; }
    #textSection { padding: 0 2rem 0 2rem; align-items: center; }
    .quote-container { padding-top: 0.5rem; }
    #pin-windmill-wrap { top: calc(clamp(140px, 13vw, 250px) * -0.55); }
}

@media (min-width: 1366px) and (max-width: 1919px) and (orientation: landscape) {
    .wp-block-navigation { justify-content: center; }
    .wp-block-navigation__container.is-responsive.wp-block-navigation { gap: 2.6rem; }
    .bonjour-container { font-size: 4rem; }
    #scramble-container { font-size: 2rem; margin-top: 1.4rem; }
    #cursor-icon { font-size: 2rem; }
    .accolades-container { bottom: 9svh; width: clamp(20rem, 70vw, 46rem); height: clamp(6.5rem, 14vw, 12rem); }
    .accolade { width: 1.7rem; }
    .container-robot { bottom: 12svh; }
    .terminal { width: 26rem; height: 15rem; top: 15svh; }
    .terminal-body { font-size: 1.15rem; }
    .progress-bar { height: 2rem; }
    .whoa-text { font-size: 1.5rem; }
    .quote-left svg, .quote-right svg { width: 1.8rem; }
    .pop-text { font-size: 1rem; }
    .quote-author { font-size: 0.85rem; }
    .morphSVG { width: 34%; }
    .animated-text-section, .animated-second-text-section { font-size: 1.2rem; line-height: 1.3rem; padding: 2rem; }
    .animated-second-text-section { padding-bottom: 4rem; }
    #textSection { padding: 0 2rem 0 2rem; align-items: center; }
    .quote-container { padding-top: 4rem; }
    #pin-windmill-wrap { top: calc(clamp(160px, 14vw, 280px) * -0.5); }
}

@media (min-width: 1920px) and (orientation: landscape) {
        .wp-block-navigation__container.is-responsive.wp-block-navigation { gap: 3rem}
        .animated-text-section, .animated-second-text-section {font-size: clamp(1rem, 2vw, 1.6rem);}
    }

@media (min-width: 2560px) and (max-width: 3839px) {
    .wp-block-navigation { padding: 0 7vw 0 7vw; font-size: 1.8rem; }
    #bonjour-scramble-container { left: 13svw; top: 19svh; }
    .wp-block-navigation__container.is-responsive.wp-block-navigation { gap: 3.5rem; }
    .bonjour-container { font-size: 6rem; }
    #scramble-container { font-size: 3.2rem; margin-top: 3rem; }
    #cursor-icon { font-size: 3rem; }
    .accolades-container { bottom: 10svh; width: clamp(26rem, 70vw, 60rem); height: clamp(8rem, 14vw, 15rem); }
    .accolade { width: 2.2rem; }
    .terminal { width: 46rem; height: 28rem; top: 19svh; }
    .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: 400px; height: 400px; }
    .animated-text-section, .animated-second-text-section { font-size: 2rem; padding: 10rem; }
    .quote-container { padding: 10rem 10rem 0 10rem; }
    .container-robot {bottom: clamp(100px, 11vw, 280px);height: clamp(160px, 18vw, 280px);}
    .robot-apk {width: clamp(160px, 18vw, 280px);}
    #pin-windmill-wrap {top: calc(clamp(200px, 18vw, 360px) * -0.52);}
    #pin-windmill-svg {width: clamp(200px, 18vw, 360px);height: clamp(200px, 18vw, 360px);}
}

@media (min-width: 3840px) {
    .wp-block-navigation { padding: 0 10vw 0 10vw; font-size: 2.2rem; }
    #bonjour-scramble-container { left: 14svw; top: 20svh; width: 40rem}
    .wp-block-navigation__container.is-responsive.wp-block-navigation { gap: 4.5rem; }
    .bonjour-container { font-size: 8.5rem; }
    #scramble-container { font-size: 4.5rem; margin-top: 4rem; }
    #cursor-icon { font-size: 4.5rem; }
    .accolades-container { bottom: 12svh; width: clamp(36rem, 65vw, 80rem); height: clamp(10rem, 14vw, 20rem); }
    .accolade { width: 3rem; }
    .terminal { width: 64rem; height: 38rem; top: 22svh; }
    .terminal-body { font-size: 2.8rem; }
    .progress-bar {height: 5rem;border-radius: 1.5rem;}
    .whoa-text { font-size: 3.5rem; }
    .quote-left svg, .quote-right svg { width: 4rem; }
    .morphSVG svg { width: 500px; height: 500px; }
    .animated-text-section, .animated-second-text-section { font-size: 2.8rem; padding: 14rem; }
    .quote-container { padding: 14rem 14rem 0 14rem; }
    .container-robot {bottom: clamp(140px, 13vw, 360px);height: clamp(200px, 22vw, 360px);}
    .robot-apk {width: clamp(200px, 22vw, 360px);}
    #pin-windmill-wrap {top: calc(clamp(240px, 22vw, 440px) * -0.51);}
    #pin-windmill-svg {width: clamp(240px, 22vw, 440px);height: clamp(240px, 22vw, 440px);}
}

/* === Section avion === */
@media screen and (orientation: portrait) and (max-width: 450px) {
        .label {
            width: 12vw;
            font-size: 0.5rem;
            transform: translate(-50%, 0) scale(0.45);
        }

        .label span {
            font-size: 0.5rem;
        }

        #aeronautic,
        #technicien,
        #dev,
        #avatar {
            transform: scale(0.14);
        }

        .section-top h1,
        .section-bottom h2 {
            font-size: 1.3rem;
        }

        .section-top p,
        .section-bottom p {
            font-size: 0.8rem;
            padding: 0 1rem;
        }
    }

@media screen and (max-width: 768px) {
        .label {
            width: 11.25vw;
            font-size: 0.5rem;
            transform: translate(-50%, 0) scale(0.525);
        }

        .label span {
            font-size: 0.5rem;
        }

        #aeronautic,
        #technicien,
        #dev,
        #avatar {
            transform: scale(0.165);
        }

        .section-top h1,
        .section-bottom h2 {
            font-size: 1.5rem;
        }

        .section-top p,
        .section-bottom p {
            font-size: 0.825rem;
            padding: 0 1.5rem;
        }
    }

@media screen and (max-width: 768px) and (orientation: portrait) {
    .label {
        width: 12vw;
        font-size: 0.7rem;
    }

    .label span {
        font-size: 0.7rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
        .label {
            width: 15vw;
            font-size: 0.9rem;
            transform: translate(-50%, 0) scale(0.7);
        }

        .label span {
            font-size: 0.9rem;
        }

        #aeronautic,
        #technicien,
        #dev,
        #avatar {
            transform: scale(0.22);
        }

        .section-top h1,
        .section-bottom h2 {
            font-size: 2rem;
        }

        .section-top p,
        .section-bottom p {
            font-size: 1.1rem;
            padding: 0 2rem;
        }
    }

@media screen and (min-width: 1024px) and (max-width: 1440px) {
        .label {
            width: 17vw;
            font-size: 1.1rem;
            transform: translate(-50%, 0) scale(0.775);
        }

        .label span {
            font-size: 1.1rem;
        }

        #aeronautic,
        #technicien,
        #dev,
        #avatar {
            transform: scale(0.26);
        }

        .section-top h1,
        .section-bottom h2 {
            font-size: 2.2rem;
        }

        .section-top p,
        .section-bottom p {
            font-size: 1.15rem;
            padding: 0 2.5rem;
        }
    }

@media screen and (min-width: 1441px) and (max-width: 1920px) {
        .label {
            width: 20vw;
            font-size: 1.3rem;
            transform: translate(-50%, 0) scale(0.85);
        }

        .label span {
            font-size: 1.3rem;
        }

        #aeronautic,
        #technicien,
        #dev,
        #avatar {
            transform: scale(0.3);
        }

        .section-top h1,
        .section-bottom h2 {
            font-size: 2.5rem;
        }

        .section-top p,
        .section-bottom p {
            font-size: 1.25rem;
            padding: 0 3rem;
        }
    }

@media screen and (min-width: 2560px) and (max-width: 3839px) {
    .label {
        width: 22vw;
        font-size: 1.6rem;
        transform: translate(-50%, 0) scale(1.05);
    }
    .label span { font-size: 1.6rem; }

    #aeronautic, #technicien, #dev, #avatar { transform: scale(0.36); }

    .section-top h1, .section-bottom h2 { font-size: 3.2rem; }
    .section-top p, .section-bottom p { font-size: 1.5rem; padding: 0 3.5rem; }

    .intro-text { font-size: 2.8rem; margin-top: 3rem; padding: 4rem; }
}

@media screen and (min-width: 3840px) {
    .label {
        width: 24vw;
        font-size: 2.5rem;
        transform: translate(-50%, 0) scale(1.25);
    }
    .label span { font-size: 2.5rem; }

    #aeronautic, #technicien, #dev, #avatar { transform: scale(0.44); }

    .section-top h1, .section-bottom h2 { font-size: 4rem; }
    .section-top p, .section-bottom p { font-size: 1.8rem; padding: 0 4.5rem; }

    .intro-text { font-size: 3.6rem; margin-top: 3.5rem; padding: 5rem; }
}

/* === Section Mes compétences === */
@media screen and (max-width: 1024px) {
    .content {width: min(70%, 900px);justify-content: center;flex-direction: column;}
    .content .text-box {width: 100%;}
    .icons {padding-bottom: 1rem }
}

@media screen and (min-width: 2560px) and (max-width: 3839px) {
    .content {width: min(92%, 1800px);gap: 2rem;}
    .content .text-box {font-size: 1.6rem;}
    .icons li {font-size: 3rem;}
    .main-title {font-size: 3rem;}
}

@media screen and (min-width: 3840px) {
    .content {width: min(92%, 2400px);gap: 3rem;}
    .content .text-box {font-size: 2rem;}
    .icons li {font-size: 4rem;}
    .main-title {font-size: 4rem;}
}

/* === Footer === */
@media (max-width: 450px) {
        footer.wp-block-template-part {
            padding-bottom: var(--safe-bottom);
        }

        footer.wp-block-group {
            padding: 12px;
            gap: 6px;
        }

        .footer-content p {
            font-size: clamp(0.9rem, 3.5vw, 0.98rem);
            line-height: 1.25;
        }

        .footer-socials { margin-top: 2px; }
        .footer-socials svg {
            width: clamp(16px, 6vw, 20px);
        }

        .footer-left {
            width: clamp(36px, 11vw, 48px);
        }

        .back-to-top {
            width: clamp(44px, 11vw, 48px);
            height: clamp(44px, 11vw, 48px);
        }
        .back-to-top svg {
            width: clamp(16px, 7vw, 24px);
        }
    }

@media (max-width: 768px) {
        footer.wp-block-group {
            padding: 16px;
            gap: 8px;
        }

        .footer-content p {
            font-size: clamp(0.95rem, 2.6vw, 1.05rem);
            line-height: 1.3;
        }

        .footer-socials svg {
            width: clamp(18px, 4.5vw, 22px);
            height: auto;
        }

        /* espace gauche pour équilibrer avec la flèche */
        .footer-left {
            width: clamp(40px, 7vw, 56px);
        }

        /* cible confortable mais plus compacte */
        .back-to-top {
            width: clamp(44px, 8vw, 52px);
            height: clamp(44px, 8vw, 52px);
        }
        .back-to-top svg {
            width: clamp(18px, 6vw, 28px);
            height: auto;
        }
    }

@media (min-width: 2560px) and (max-width: 3839px) {
    footer.wp-block-group {
        padding: 40px;
        gap: 20px;
    }
    .footer-content p {
        font-size: clamp(1.3rem, 1.6vw, 1.6rem);
        line-height: 1.5;
    }
    .footer-socials svg {
        width: clamp(28px, 2vw, 40px);
        height: auto;
    }
    .footer-left {
        width: clamp(64px, 3vw, 80px);
    }
    .back-to-top {
        width: clamp(68px, 3vw, 84px);
        height: clamp(68px, 3vw, 84px);
    }
    .back-to-top svg {
        width: clamp(28px, 2vw, 40px);
        height: auto;
    }
}

@media (min-width: 3840px) {
    footer.wp-block-group {
        padding: 60px;
        gap: 28px;
    }
    .footer-content p {
        font-size: clamp(1.6rem, 1.8vw, 2rem);
        line-height: 1.6;
    }
    .footer-socials svg {
        width: clamp(36px, 2.2vw, 52px);
        height: auto;
    }
    .footer-left {
        width: clamp(80px, 3.5vw, 110px);
    }
    .back-to-top {
        width: clamp(84px, 3.5vw, 110px);
        height: clamp(84px, 3.5vw, 110px);
    }
    .back-to-top svg {
        width: clamp(36px, 2.2vw, 52px);
        height: auto;
    }
}