/* ------------------------------
   GLOBAL
------------------------------ */
body {
    margin: 0;
    background: #0d0d0d;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;

}

button {
    cursor: pointer;
    border: none;
    font-size: 16px;
    background: #8B0000; /* rouge foncé */
    color: white;        /* texte blanc */
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
}


/* ------------------------------
   HEADER : CHOIX DU MODÈLE
------------------------------ */
.model-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 10px;
}

.model-selector button {
    background: #8B0000;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}

.model-selector button:hover {
    background: #8B0000;
}

/* ------------------------------
   MOCKUP VIEWER
------------------------------ */
.mockup-viewer {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Mobile arrows (F3) */
.mobile-arrows {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
}

.mockup-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;   /* ← centre le texte */
    display: block;       /* ← garantit qu’il occupe toute la ligne */
    margin-top: 10px;     /* ← remet l’espace perdu */
    color: white
}
.site-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    color: white;
}

    .arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: black;
    border: 3px solid #8B0000;
    color: white;
    font-size: 22px;
    font-weight: bold;
    transition: 0.2s;
}

.arrow-btn:hover {
    background: #1a1a1a;
}

/* Mockup container */
.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: -20px;
    padding: 5px;
    padding-top: 0px;
    margin: top -10px;
}

.mockup {
    width: 550px;
    filter: drop-shadow(0 0 75px #8B0000);
    display: none;
}

.mockup.active {
    display: block;
}

/* Logo overlay */
.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: grab;
    z-index: 10;
}

/* ------------------------------
   ACTION BUTTONS
------------------------------ */
.actions {
    margin-top: 20px;
    text-align: center;
}

#uploader {
    margin-bottom: 15px;
}

#copy-btn {
    background: #8B0000;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}

#copy-btn:hover {
    background: #8B0000;
}

/* ------------------------------
   ZOOM FULLSCREEN
------------------------------ */
#zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto; /* ⭐ permet de scroller */
    overflow-x: hidden;
}

.zoom-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

#zoom-close {
    background: black;
    border: 3px solid #8B0000;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
}

.zoom-content {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#zoom-mockup {
    max-height: 90%;
    filter: drop-shadow(0 0 20px #8B0000);
}

.zoom-logo {
    position: absolute;
    width: 150px;
    cursor: grab;
}

/* Zoom controls (A2‑1) */
.zoom-controls {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zoom-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: black;
    border: 3px solid #8B0000;
    color: white;
    font-size: 28px;
    font-weight: bold;
    transition: 0.2s;
}

.zoom-btn:hover {
    background: #1a1a1a;
}

/* ------------------------------
   RESPONSIVE MOBILE (M3)
------------------------------ */
@media (max-width: 900px) {

    .mockup-container {
        flex-direction: column;
        gap: 0;
    }

    .mockup {
        width: 90%;
        margin: 0 auto;
    }

    .mobile-arrows {
        display: flex;
    }

    /* ⭐ Correction : cacher les mockups par défaut */
    #mockup-front,
    #mockup-back {
        display: none;      /* ← AJOUT */
        position: relative;
        z-index: 1;
    }

    /* ⭐ Correction : n'afficher que celui qui a .active */
    #mockup-front.active,
    #mockup-back.active {
        display: block;     /* ← AJOUT */
    }

    .logo-overlay {
        width: 100px;
    }
}
