/* ------------------------------ */
/*        STYLE GLOBAL            */
/* ------------------------------ */

body {
    margin: 0;
    padding: 0;
    background: #0d0d0d;
    font-family: 'Segoe UI', sans-serif;
    color: #f2f2f2;
}

h1, h3 {
    margin: 0;
    padding: 0;
}

/* ------------------------------ */
/*            HEADER              */
/* ------------------------------ */

header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    font-size: 42px;
    font-weight: 700;
    color: #ff7b00;
    text-shadow: 0 0 12px #ff3c00;
}

/* ------------------------------ */
/*         LAYOUT GLOBAL          */
/* ------------------------------ */

.container {
    display: flex;
    gap: 30px;
    padding: 20px;
}
/* ------------------------------ */
/*      SECTION GAUCHE (PREVIEW)  */
/* ------------------------------ */

.preview-section {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Conteneur des deux images (avant + dos) */
#sectionGauche {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Style des mockups (devant + dos) */
#sectionGauche .mockup {
    width: 250px;
    border-radius: 12px;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    position: relative; /* essentiel pour coller le logo dessus */
}



/* Bouton Copier */
.copy-button {
    margin-top: 25px;
    padding: 12px 20px;
    background: #ff7b00;
    border: 2px solid #ff7b00;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.copy-button:hover {
    padding: 10px 16px;
    background: #ff7b00;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.mockup-wrapper {
    position: relative;
    width: 250px;
}

.mockup-wrapper img.mockup {
    width: 100%;
    display: block;
}

/* Conteneur du logo (déplacement + redimensionnement) */
#design-container {
    position: absolute;
    top: 120px;
    left: 110px;
    width: 120px;
    cursor: grab;
    z-index: 9999;
}

/* L’image du logo */
#design-container img {
    width: 100%;
    display: block;
    pointer-events: none; /* important pour le drag */
}

/* Poignée de redimensionnement */
.resize-handle {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: absolute;
    bottom: -7px;
    right: -7px;
    cursor: se-resize;
    border-radius: 3px;
}




/* Poignée de redimensionnement */
.resize-handle {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: absolute;
    bottom: -7px;
    right: -7px;
    cursor: se-resize;
    border-radius: 3px;
}


/* ------------------------------ */
/*     SECTION DROITE (PANEL)     */
/* ------------------------------ */

.control-panel {
    width: 45%;
    background: #141414;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 25px #ff3c00;
}

/* Idée de base + Générer */
.idea-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.idea-box input {
    flex: 1;
    padding: 10px;
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
}

.generate-button {
    padding: 10px 16px;
    background: #ff7b00;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.generate-button:hover {
    background: #ff3c00;
}

/* ------------------------------ */
/*     SUGGESTIONS AUTOMATIQUES   */
/* ------------------------------ */

.suggestions h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.suggestion-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.suggestion-card {
    width: 32%;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 0 10px #ff3c00;
    transition: 0.2s;
}

.suggestion-card img {
    width: 100%;
    border-radius: 6px;
}

/* Placeholder si aucune image */
.suggestion-card img[src=""] {
    opacity: 0.2;
    background: #111;
    border: 1px dashed #444;
}

/* Suggestion sélectionnée */
.suggestion-card.selected {
    border: 2px solid #ff7b00;
    box-shadow: 0 0 15px #ff7b00;
}

.apply-btn {
    margin-top: 8px;
    padding: 6px 10px;
    background: #ff7b00;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.apply-btn:hover,
.apply-btn.active {
    background: #ff3c00;
}

/* ------------------------------ */
/*            MODÈLE              */
/* ------------------------------ */

.model-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.model-buttons button {
    padding: 8px 12px;
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.model-buttons button.active,
.model-buttons button:hover {
    background: #ff7b00;
    color: #000;
}

/* ------------------------------ */
/*            COULEURS            */
/* ------------------------------ */

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.color.black { background: #000; }
.color.navy { background: #001f3f; }
.color.gray { background: #555; }

.color.active {
    border-color: #ff7b00;
}

/* ------------------------------ */
/*           POSITIONS            */
/* ------------------------------ */

.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.positions-grid label {
    font-size: 14px;
}
#zoomModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#zoomModal img {
    width: 60%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 0 30px #ff7b00;
    background: #111;
}
