/* ==========================================
   1. MOBILE LANDSCAPE (max-height: 480px)
   ========================================== */
@media (max-height: 480px) {
    .logo img {
        width: 50px;
    }
    .title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .title span {
        font-size: 0.5rem;
    }
    .subtitle {
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 10vh;
    }
    .hero-simple h1 {
        font-size: 10vh;
    }
    .planet-top {
        top: -450px;
    }
    .content-wrapper {
        margin-top: -50dvh;
    }

    .aurora1 {
        background-size: auto 80%;
        top: 10%;
    }
    .aurora2 {
        background-size: auto 80%;
        top: 15%
    }
    .aurora3 {
        background-size: auto 80%;
        top: 20%;
    }

    .services h2 {
        margin-bottom: 0px;
    }
    .grid-services, .grid-projects {
        margin-top: 10px;
    }
    .service-card {
        flex: 1 1 calc(25% - 20px);
        padding: 10px 10px;
    }
    .service-card .icon {
        margin-bottom: 10px;
    }
    .service-card .icon img {
        width: 25px;
    }
    .service-card p {
        display: none;
    }

    .projects h2 {
        margin: 0;
    }
    .projects p {
        display: none;
    }
    .carousel-track {
        height: 200px;
    }
    .project-card {
        width: 230px;
        height: 200px;
    }
    .project-card.is-left {
        transform: translate(-50%, -50%) translateX(-240px) translateY(8px) translateZ(-200px) scale(.85) rotateY(-25deg);
    }
    .project-card.is-right {
        transform: translate(-50%, -50%) translateX(240px) translateY(8px) translateZ(-200px) scale(.85) rotateY(25deg);
    }
    .project-img {
        height: 100px;
    }
    .project-info h3 {
        margin: auto;
        font-size: 0.8rem;
    }
    .project-info p {
        display: none;
    }
    .project-card a {
        margin: auto 5px 5px 5px;
        font-size: 0.6rem;
    }
    .projects-button {
        display: none;
    }

    footer {
        display: none;
    }
    .footer-section footer {
        display: grid;
    }
    .footer-section {
        margin-top: 30px;
    }
    .footer-block h3 {
        font-size: 1.1rem;
    }
    .about-container h2 {
        margin-bottom: 0;
    }
    .about-container h3 {
        font-size: 1rem;
    }
    .about-container p {
        font-size: 0.7rem;
        margin: 0;
    }

    .project-block {
        width: 95%;
    }
    .project-text p {
        font-size: 0.7rem;
    }
    .screenshot-card.is-center {
        transform: translate(-50%, -50%) translateZ(0px) scale(.75) rotateY(0deg);
    }
    .screenshot-card.is-left {
        transform: translate(-50%, -50%) translateX(-135px) translateY(15px) translateZ(-100px) scale(.71) rotateY(335deg);
    }
    .screenshot-card.is-right {
        transform: translate(-50%, -50%) translateX(135px) translateY(15px) translateZ(-100px) scale(.71) rotateY(25deg);
    }
    .screenshot-card.is-left-hidden {
        transform: translate(-50%, -50%) translateX(-90px) translateY(25px) translateZ(-500px) scale(.64) rotateY(205deg);
    }
    .screenshot-card.is-right-hidden {
        transform: translate(-50%, -50%) translateX(90px) translateY(25px) translateZ(-500px) scale(.64) rotateY(165deg);
    }
    .project-detail {
        padding: 10px;
    }
    .nav-arrow {
        display: none;
    }
    
    .banner-wrapper {
        height: 40px;
    }
    .banner-wrapper img {
        object-position: top;
    }
}

/* ==========================================
   2. MOBILE PROTRAIT (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .logo img {
        width: 50px;
    }
    .title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .title span {
        font-size: 0.5rem;
    }
    .subtitle {
        letter-spacing: 1px;
    }
    .page-simple h2 {
        letter-spacing: 1px;
        font-size: 0.5rem;
    }

    .aurora-layer {
        width: 900%; /* pour repeat-x */
    }

    .grid-services, .grid-projects {
        margin-top: 20px;
    }
    .service-card {
        flex: 1 1 100%;
        padding: 10px 10px;
    }
    .service-card .icon {
        margin-bottom: 10px;
    }
    .service-card .icon img {
        width: 25px;
    }
    .service-card p {
        display: none;
    }

    .project-card {
        width: 250px;
        height: 350px;
    }
    .project-card.is-left {
        transform: translate(-40%, -50%) translateX(-200px) translateY(8px) translateZ(-200px) scale(.75) rotateY(-25deg);
    }
    .project-card.is-right {
        transform: translate(-40%, -50%) translateX(200px) translateY(8px) translateZ(-200px) scale(.75) rotateY(25deg);
    }
    .project-img {
        height: 100px;
    }
    .project-info h3 {
        font-size: 1rem;
    }
    .project-info p {
        font-size: 0.8rem;
    }
    .project-card a {
        margin: auto 5px 5px 5px;
    }

    .about-container h3 {
        font-size: 1rem;
    }
    .about-container p {
        font-size: 0.8rem;
    }
    footer {
        grid-template-columns: repeat(2, 1fr);
    }
    .copyright {
        grid-column: 1 / 3;
    }
    .footer-block {
        width: 90%;
    }
    .info {
        display: none;
    }
    .footer-block h3 {
        font-size: 0.8rem;
    }
    .footer-block p {
        font-size: 0.7rem;
    }
    .footer-block a {
        font-size: 0.7rem;
    }
    .cgu-short {
        display: inline;
    }
    .cgu-complete {
        display: none;
    }
    .copyright p {
        font-size: 0.5rem;
    }

    .project-block {
        width: 95%;
    }
    .project-text p {
        font-size: 0.7rem;
    }
    .screenshot-card.is-left {
        transform: translate(-50%, -50%) translateX(-135px) translateY(15px) translateZ(-100px) scale(.95) rotateY(335deg);
    }
    .screenshot-card.is-right {
        transform: translate(-50%, -50%) translateX(135px) translateY(15px) translateZ(-100px) scale(.95) rotateY(25deg);
    }
    .screenshot-card.is-left-hidden {
        transform: translate(-50%, -50%) translateX(-90px) translateY(25px) translateZ(-500px) scale(.85) rotateY(205deg);
    }
    .screenshot-card.is-right-hidden {
        transform: translate(-50%, -50%) translateX(90px) translateY(25px) translateZ(-500px) scale(.85) rotateY(165deg);
    }
    .project-detail {
        padding: 10px;
    }
    .nav-arrow {
        display: none;
    }
}