/* ==========================================
   BASES & COULEURS (NE PAS TOUCHER)
   ========================================== */
:root {
    --bg-color: #050510;
    --text-main: #ffffff;
    --text-muted: #a0a5cc;
    --neon-blue: #00e5ff;
    --neon-pink: #ff00ea;
    --neon-purple: #8a2be2;
    --neon-orange: #ff9800;
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 234, 0.15) 0%, transparent 50%);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ANIMATION TV (OFF / ON) */
.tv-content-wrapper {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
    position: relative;
    z-index: 10;
}

.tv-off {
    animation: tvOff 0.6s forwards cubic-bezier(0.23, 1, 0.32, 1);
}

.tv-on {
    animation: tvOn 0.6s forwards cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes tvOff {
    0% {
        transform: scale(1, 1);
        filter: brightness(1);
    }

    40% {
        transform: scale(1, 0.005);
        filter: brightness(2);
    }

    100% {
        transform: scale(0, 0);
        filter: brightness(5);
        opacity: 0;
    }
}

@keyframes tvOn {
    0% {
        transform: scale(0, 0);
        filter: brightness(5);
        opacity: 0;
    }

    60% {
        transform: scale(1, 0.005);
        filter: brightness(2);
        opacity: 1;
    }

    100% {
        transform: scale(1, 1);
        filter: brightness(1);
    }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================
   EFFETS CINÉMATOGRAPHIQUES (GRAIN, VIGNETTE, FLICKER)
   ========================================== */

/* 1. Grain Cinématographique (Réactif à la souris) */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    pointer-events: none;
    z-index: 998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    opacity: 0.04;
    transform: translate(calc(var(--mouse-x, 50%) * -0.05), calc(var(--mouse-y, 50%) * -0.05));
    transition: transform 0.1s ease-out;
}

/* 2. Effet Vignette (Supprimé à la demande de l'utilisateur) */

/* 3. Neon Flicker sur les Titres */
.neon-flicker {
    animation: flickerAnim 4s infinite alternate;
}

@keyframes flickerAnim {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* 4. Text Reveal (Apparition Fluide) */
.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    animation: revealAnim 1s forwards cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes revealAnim {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 5. Cartes 3D (Parallaxe) */
.card-3d-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card-3d-glare {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.3) 45%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 55%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    border-radius: inherit;
    mix-blend-mode: overlay;
    transform: translate3d(0, 0, 1px);
}

/* RESTE DU STYLE (ORIGINAL RESTORED) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 16, 0.9);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Nouvelles classes de navigation centralisées */
.main-nav-btn {
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-how {
    background: linear-gradient(90deg, #009ffd, #00e5ff);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-how:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

.btn-action {
    background: linear-gradient(90deg, #8a2be2, #ff00ea);
    box-shadow: 0 0 15px rgba(255, 0, 234, 0.4);
}

.btn-action:hover {
    box-shadow: 0 0 25px rgba(255, 0, 234, 0.8);
}

.btn-cart {
    background: linear-gradient(90deg, #00b09b, #00e5ff);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-cart:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

.main-nav-btn.active {
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    filter: brightness(1.2);
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

.hero-left h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), #fff, var(--neon-pink), var(--neon-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite, flickerAnim 4s infinite alternate;
}

@keyframes shine {
    0% {
        background-position: -100% center;
    }

    100% {
        background-position: 100% center;
    }
}

.hero-right-logo {
    position: absolute;
    right: 90px;
    top: 20px;
    margin-top: 20px;
}

.logo-frame {
    width: 250px;
    height: 250px;
    border-radius: 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatLogo 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(-20px);
        box-shadow: 0 15px 35px rgba(0, 229, 255, 0.2);
    }

    50% {
        transform: translateY(-35px);
        box-shadow: 0 25px 50px rgba(255, 0, 234, 0.4);
    }
}

.logo-frame::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(270deg, #00e5ff, #ff00ea, #8a2be2, #00e5ff);
    background-size: 400% 400%;
    animation: neonBorderMove 8s linear infinite;
    z-index: 0;
    filter: blur(3px);
    /* Effet néon diffus */
}

.logo-frame::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 21px;
    z-index: 1;
}

.logo-frame img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: logoBreath 4s ease-in-out infinite alternate;
}

@keyframes logoBreath {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 0, 234, 0.6));
    }
}

@keyframes neonBorderMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(0, 229, 255, 0.4);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: 0.3s all ease;
    animation: neonFeaturePulse 3s infinite ease-in-out;
}

@keyframes neonFeaturePulse {
    0% {
        box-shadow: 0 0 10px var(--neon-blue), inset 0 0 5px rgba(0, 229, 255, 0.2);
        border-color: rgba(0, 229, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-blue), inset 0 0 10px rgba(0, 229, 255, 0.4);
        border-color: var(--neon-blue);
    }

    100% {
        box-shadow: 0 0 10px var(--neon-blue), inset 0 0 5px rgba(0, 229, 255, 0.2);
        border-color: rgba(0, 229, 255, 0.4);
    }
}

.results-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5% 60px 5%;
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.profil-card {
    border-left: 4px solid var(--neon-blue);
    margin-bottom: 25px;
    transition: 0.3s;
    padding: 25px;
}

.profil-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: white;
    text-transform: uppercase;
    font-weight: 800;
}

.price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--neon-pink);
}

.btn-main {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 32px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--neon-blue);
}

.upload-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    /* Moins épais */
    border-radius: 20px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    max-width: 750px;
    /* Largeur maximale définie */
}

.upload-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    outline: none;
    font-size: 1rem;
}

/* On réduit la taille du bouton uniquement dans cette barre pour qu'elle puisse être plus fine */
.upload-box .btn-main {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.neon-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.neon-orbit-system {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.orbit-ring.ring-blue {
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-top: 5px solid var(--neon-blue);
    border-bottom: 5px solid var(--neon-blue);
    animation: rotateRight 1s linear infinite;
}

.orbit-ring.ring-pink {
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border-right: 5px solid var(--neon-pink);
    border-left: 5px solid var(--neon-pink);
    animation: rotateLeft 1s linear infinite;
}

.orbit-ring.ring-orange {
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-top: 5px solid var(--neon-orange);
    border-right: 5px solid var(--neon-orange);
    animation: rotateRight 1.5s linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

.orbit-ring.ring-orange.show {
    opacity: 1;
}

@keyframes rotateRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.loading-text-style {
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
}

.loading-warning {
    color: var(--neon-pink);
    font-size: 0.8rem;
}

.loading-heavy {
    color: var(--neon-orange);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease, max-height 0.8s ease, transform 1s ease;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.loading-heavy.show {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    animation: pulseOrange 2s infinite ease-in-out 1s;
    /* Démarre après la transition */
}

@keyframes pulseOrange {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
        filter: brightness(1.3);
    }
}


/* EFFET TÉLÉPORTATION DYNAMIQUE (HARRY POTTER) */
@keyframes magicTeleport {
    0% {
        transform: translate(var(--tx, 10px), var(--ty, -20px)) scale(0) rotate(360deg) skew(20deg);
        filter: blur(40px) brightness(15) contrast(2);
        opacity: 0;
    }

    10% {
        transform: translate(0, 0) scale(1.05) rotate(var(--rot, -2deg)) skew(var(--sk, 1deg));
        filter: blur(8px) brightness(2) contrast(1.2);
        opacity: 1;
    }

    15%,
    85% {
        transform: translate(0, 0) scale(1) rotate(var(--rot, -2deg)) skew(var(--sk, 1deg));
        filter: blur(0) brightness(1) contrast(1);
        opacity: 1;
    }

    90% {
        transform: translate(var(--tx, -10px), var(--ty, 20px)) scale(1.1) rotate(calc(var(--rot, -2deg) * -2)) skew(calc(var(--sk, 1deg) * -2));
        filter: blur(15px) brightness(3);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx, -10px), var(--ty, 20px)) scale(0) rotate(-360deg) skew(-20deg);
        filter: blur(40px) brightness(15);
        opacity: 0;
    }
}

.teleport-container {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 250px;
    position: relative;
    overflow: visible;
    /* Laisser les éléments sortir si besoin */
}

.teleport-item {
    text-decoration: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    padding: 15px 30px;

    /* Forme asymétrique cassée */
    border-radius: 40px 15px 35px 20px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

    opacity: 0;
    width: max-content;
    max-width: 400px;
    animation: magicTeleport 8s infinite ease-in-out;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teleport-item.t1 {
    --tx: 30px;
    --ty: -40px;
    --rot: -3deg;
    --sk: 2deg;
    animation-delay: 1s;
    border-left: 5px solid var(--neon-blue);
    border-right: 2px solid rgba(0, 229, 255, 0.3);
}

.teleport-item.t2 {
    --tx: -30px;
    --ty: 40px;
    --rot: 2deg;
    --sk: -2deg;
    animation-delay: 5s;
    border-right: 5px solid var(--neon-pink);
    border-left: 2px solid rgba(255, 0, 234, 0.3);
}

.teleport-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: scale(1.08) rotate(0deg) skew(0deg) !important;
    z-index: 100;
}

.teleport-item .highlight {
    color: var(--neon-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teleport-item.t2 .highlight {
    color: var(--neon-pink);
}

.contact-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 5%;
}

.contact-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    background: rgba(5, 5, 16, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s all ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   AVIS & TÉMOIGNAGES (REVIEWS)
   ========================================== */
/* Étoiles interactives Ultra-Premium */
.star-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 15px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem !important;
    /* MEGA STARS */
    color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    user-select: none;
}

/* Couleurs au survol (Gradient temporaire) */
.star-rating label.hover-1,
.star-rating label.active-1,
.star-static.active-1 {
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.star-rating label.hover-2,
.star-rating label.active-2,
.star-static.active-2 {
    color: #009ffd;
    text-shadow: 0 0 20px rgba(0, 159, 253, 0.6);
}

.star-rating label.hover-3,
.star-rating label.active-3,
.star-static.active-3 {
    color: #8a2be2;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.star-rating label.hover-4,
.star-rating label.active-4,
.star-static.active-4 {
    color: #ff00ea;
    text-shadow: 0 0 20px rgba(255, 0, 234, 0.6);
}

.star-rating label.hover-5,
.star-rating label.active-5,
.star-static.active-5 {
    color: #ff00ea;
    text-shadow: 0 0 30px rgba(255, 0, 234, 0.8);
}

.star-rating label:hover,
.star-rating label:hover~label {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Animation de Pulse Initial */
@keyframes starPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.3);
        filter: brightness(1.5);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.star-active-anim {
    animation: starPulse 0.4s ease-out;
}

/* Animation de Glow Continu (Breathing) */
@keyframes starBreath {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
        transform: scale(1);
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px currentColor);
        transform: scale(1.05);
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
        transform: scale(1);
    }
}

/* ==========================================
   CALCULATRICE CYBERNÉTIQUE (MATRIX)
   ========================================== */
.calculator-section {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* CALCULATRICE TRIGGER AREA (NO FRAME) */
.calculator-trigger-area {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    width: 100%;
    min-height: 100px;
    position: relative;
    transition: 0.5s;
}

.calculator-trigger-area.active {
    min-height: 580px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 20px;
}

/* PORTAIL ORANGE DOUBLE CERCLE */
.orange-portal {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.circle-outer,
.circle-inner {
    position: absolute;
    border: 2px solid var(--neon-orange);
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.circle-outer {
    width: 100%;
    height: 100%;
    animation: rotateRight 3s linear infinite;
    box-shadow: 0 0 15px var(--neon-orange);
}

.circle-inner {
    width: 60%;
    height: 60%;
    animation: rotateLeft 2s linear infinite;
    opacity: 0.7;
}

.portal-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--neon-orange));
    animation: portalPulse 2s infinite ease-in-out;
}

@keyframes portalPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ANIMATION ONDE LIQUIDE ORANGE (STABLE) */
.orange-assemble-text {
    color: var(--neon-orange);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    max-width: 400px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 1;
    filter: none;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
    line-height: 1.4;
    user-select: none;
}



#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.calculator-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px;
    text-align: center;
    transition: 0.5s;
}

.real-calculator {
    width: 260px;
    background: rgba(5, 5, 15, 0.95);
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1);
    z-index: 100;
    position: relative;
    backdrop-filter: blur(20px);
    clip-path: polygon(0% 5%, 5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.real-calculator.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.calc-screen {
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 12px;
    text-align: right;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.calc-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 255, 255, 0.05) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.screen-label {
    font-size: 0.65rem;
    color: var(--neon-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.screen-instruction {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.screen-value {
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screen-result {
    color: var(--neon-pink);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calc-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.calc-tab.active {
    background: var(--neon-blue);
    color: black;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

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

.num-btn {
    width: 100%;
    aspect-ratio: 1;
    max-width: 70px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    color: var(--neon-blue);
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    text-shadow: 0 0 8px var(--neon-blue);
}

.num-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    color: white;
    transform: translateY(-2px);
}

.num-btn.action {
    color: var(--neon-pink);
    border-color: rgba(255, 0, 234, 0.3);
}

.num-btn.equal {
    grid-column: span 3;
    width: 100%;
    max-width: none;
    margin-top: 5px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border: none;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 0, 234, 0.4);
    aspect-ratio: auto;
    height: 50px;
}

.num-btn.equal:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 0, 234, 0.6);
}

.calc-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
    opacity: 0.8;
    transition: 0.3s;
}

.calc-close-btn:hover {
    opacity: 1;
    color: var(--neon-pink);
    transform: rotate(90deg);
}

.matrix-anim-out-reverse {
    animation: matrixFadeIn 0.8s reverse forwards;
}

/* Animations Matrix Apparition/Disparition */
@keyframes matrixFadeIn {
    from {
        opacity: 0;
        filter: blur(10px) brightness(2);
    }

    to {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

@keyframes matrixFadeOut {
    from {
        opacity: 1;
        filter: blur(0) brightness(1);
    }

    to {
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
}

.matrix-anim-in {
    animation: matrixFadeIn 0.8s forwards;
}

.matrix-anim-out {
    animation: matrixFadeOut 0.8s forwards;
}

.star-breathing {
    animation: starBreath 2s infinite ease-in-out;
}

.star-static {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Cartes d'avis */
.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s all ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 234, 0.3);
    box-shadow: 0 15px 40px rgba(255, 0, 234, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.average-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 234, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

/* ==========================================
   MARQUEE (AVIS ALÉATOIRES DÉFILANTS)
   ========================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(5, 5, 16, 0.5);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding-left: 30px;
    animation: scrollMarquee 40s linear infinite;
    width: max-content;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* HEADER GALLERY NEON */
.header-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: nowrap;
}

.neon-thumb {
    width: 175px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: neon-pulse 3s infinite ease-in-out;
}

.neon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.neon-thumb:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 30px var(--neon-blue);
    border-color: #fff;
    z-index: 10;
}

.neon-thumb:hover img {
    transform: scale(1.1);
}

@keyframes neon-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3), inset 0 0 5px rgba(0, 229, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(0, 229, 255, 0.3);
    }
}

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

    /* ---- ANTI-DÉBORDEMENT GLOBAL ---- */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* ---- HEADER : 2 par ligne sur mobile uniquement ---- */
    header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 8px 3% !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* On "efface" les conteneurs pour que tous les boutons soient au même niveau */
    header nav, 
    header nav ul, 
    header nav ul li {
        display: contents !important;
    }

    header .main-nav-btn {
        flex: 1 1 calc(50% - 10px) !important; /* Prend la moitié de la largeur */
        font-size: 0.65rem !important;
        padding: 10px 4px !important;
        text-align: center !important;
        white-space: normal !important;
        display: flex; /* Retrait du !important ici pour laisser le JS ou l'inline style le cacher */
        align-items: center !important;
        justify-content: center !important;
        min-height: 45px !important;
    }

    /* Sécurité pour forcer le masquage si le style inline dit display:none */
    header .main-nav-btn[style*="display:none"],
    header .main-nav-btn[style*="display: none"] {
        display: none !important;
    }

    /* ---- HERO SECTION ---- */
    .hero-section {
        flex-direction: column !important;
        padding: 20px 4% !important;
        gap: 15px !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .hero-left {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .hero-left h1 {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
        word-break: break-word !important;
    }

    /* Cache la 2ème ligne du titre sur mobile */
    .mobile-hidden {
        display: none !important;
    }

    .hero-left p {
        font-size: 0.85rem !important;
        text-align: center !important;
    }

    .hero-left p br {
        display: none;
    }

    /* Lien devis centré */
    .hero-left a {
        text-align: center !important;
        display: block !important;
    }

    /* Texte calculatrice centré */
    .orange-assemble-text {
        text-align: center !important;
    }

    /* Logo hero : On utilise display: contents pour pouvoir réordonner les enfants */
    .hero-right-logo {
        display: contents !important;
    }

    .logo-frame {
        order: -1 !important;
        /* Force le logo à passer au dessus de hero-left */
        display: flex !important;
        width: 120px !important;
        height: 120px !important;
        margin: 15px auto 15px auto !important;
        position: static !important;
        animation: floatLogoMobile 6s ease-in-out infinite !important;
    }

    .logo-frame img {
        width: 100% !important;
        height: 100% !important;
    }

    @keyframes floatLogoMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Téléportation : Réactivée et stabilisée sur mobile */
    .teleport-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        min-height: auto !important;
        margin-top: 10px !important;
    }

    .teleport-item {
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        animation: none !important;
        /* On enlève l'animation qui fait disparaître */
        position: static !important;
        transform: none !important;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        border-radius: 15px !important;
        filter: none !important;
    }

    .teleport-item.t1,
    .teleport-item.t2 {
        --tx: 0;
        --ty: 0;
        --rot: 0;
        --sk: 0;
    }

    /* ---- GALERIE IMAGES : 4 en ligne horizontale, carrées ---- */
    .header-gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .header-gallery .neon-thumb {
        flex: 1 1 0 !important;
        width: 0 !important;
        /* force le flex à distribuer équitablement */
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    /* ---- BOX ANALYSE URL ---- */
    .upload-box {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .upload-box input[type="text"] {
        width: 100% !important;
        font-size: 0.9rem !important;
    }

    .upload-box .btn-main {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
    }

    /* ---- SECTION CALCULATRICE + DEVIS ---- */
    div[style*="align-items: flex-start"][style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .calculator-trigger-area {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Suppression de la bordure gauche du texte devis */
    div[style*="border-left: 1px solid rgba(255,255,255,0.1)"] {
        border-left: none !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    /* Flèches : réduite sur mobile */
    .ambient-diamonds {
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .ambient-diamonds svg {
        width: 25px !important;
        height: 25px !important;
    }

    /* ---- RÉSULTATS / GRILLE ---- */
    .results-grid {
        grid-template-columns: 1fr !important;
    }

    .results-area {
        padding: 15px 4% 40px !important;
    }

    .sidebar {
        order: 2;
    }

    #results-container {
        order: 1;
    }

    /* ---- FEATURES (3 colonnes → 1 colonne) ---- */
    .features {
        grid-template-columns: 1fr !important;
        padding: 30px 4% !important;
        gap: 15px !important;
    }

    .feature-item {
        padding: 20px 16px !important;
    }

    /* ---- GLASS PANELS ---- */
    .glass-panel {
        padding: 15px !important;
    }

    /* ---- FOOTER ---- */
    footer {
        padding: 25px 4% !important;
    }

    footer>div>button {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 14px 20px !important;
    }

    /* ---- CARTES AVIS ---- */
    .review-card {
        padding: 15px !important;
    }

    .marquee-card {
        min-width: 240px !important;
    }

    /* ---- PROFILS ---- */
    .profil-card {
        padding: 15px !important;
    }

    .price-tag {
        font-size: 1.6rem !important;
    }

    /* ---- TITRES GÉNÉRAUX ---- */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }
}

/* ---- TRÈS PETITS ÉCRANS (< 480px) ---- */
@media (max-width: 480px) {

    .hero-left h1 {
        font-size: 1.4rem !important;
    }

    /* On garde 4 en ligne même sur petit téléphone */
    .header-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }

    header nav ul {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ---- TRÈS PETITS ÉCRANS (< 480px) ---- */
@media (max-width: 480px) {

    .hero-left h1 {
        font-size: 1.6rem !important;
    }

    .header-gallery {
        grid-template-columns: 1fr !important;
    }

    header nav ul {
        grid-template-columns: 1fr !important;
    }
}