body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* ========================================================= */
/* --- MENU DÉGRADÉ FLOTTANT (IDENTIQUE SUR LES 3 PAGES) --- */
/* ========================================================= */
.site-header { position: sticky !important; top: 15px !important; z-index: 9999 !important; background: linear-gradient(90deg, #ff7b00, #00c2ff) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important; width: calc(100% - 30px) !important; max-width: 1200px !important; margin: 15px auto 40px auto !important; border-radius: 16px !important; padding: 0 !important; border: none !important; }
.hero { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 10px 20px !important; background: transparent !important; }
.brand-group { display: flex !important; align-items: center !important; gap: 14px !important; text-decoration: none !important; }
.brand-group img.logo { width: 60px !important; height: 60px !important; border-radius: 10px !important; background: #fff !important; padding: 2px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; margin: 0 !important; }
h1.logo-title { font-size: clamp(16px, 2vw, 20px) !important; font-weight: 700 !important; margin: 0 !important; font-family: 'Poppins', sans-serif !important; color: #fff !important; text-align: left !important; }
.hero-text .sub { font-size: 0.85rem !important; opacity: 0.95 !important; margin: 4px 0 0 !important; font-family: 'Poppins', sans-serif !important; color: #fff !important; }

/* --- NOUVEAUX BOUTONS DU MENU --- */
.nav-links { display: flex !important; gap: 10px !important; align-items: center !important; flex-wrap: wrap !important; justify-content: center !important; }
.nav-links a { background-color: #ffffff !important; color: #007bff !important; padding: 8px 16px !important; border-radius: 8px !important; text-decoration: none !important; font-weight: 700 !important; font-size: 0.90rem !important; font-family: 'Poppins', sans-serif !important; text-transform: uppercase !important; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; transition: all 0.3s ease !important; text-align: center !important; }
.nav-links a:hover { background-color: #05037b !important; color: #ffffff !important; transform: translateY(-2px) !important; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important; }

/* --- ADAPTATION ULTRA-COMPACTE POUR LES TÉLÉPHONES --- */
@media (max-width: 768px) {
  .site-header { width: calc(100% - 14px) !important; margin: 5px auto 15px auto !important; top: 5px !important; }
  .hero { flex-direction: column !important; gap: 8px !important; text-align: center !important; padding: 8px 10px !important; }
  .brand-group img.logo { width: 40px !important; height: 40px !important; }
  .nav-links { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; width: 100% !important; }
  .nav-links a { flex: 1 1 auto !important; font-size: 0.75rem !important; padding: 6px 4px !important; } 
  .hero-text .sub { display: none !important; } 
  h1.logo-title { text-align: center !important; font-size: 1.1rem !important; }
}

/* Grille principale */
.studio-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 280px auto 350px; justify-content: center; gap: 30px; padding: 0 20px; }
@media (max-width: 1100px) { .studio-container { grid-template-columns: 1fr; } }

/* Boites (Panneaux) */
.step-box { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.highlight-box { border: 2px solid #007bff; }
.step-box h3 { margin-top: 0; color: #0056b3; font-size: 1.1rem; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.step-box label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.step-box select, .step-box input[type="file"], .step-box input[type="text"], .step-box input[type="email"], .step-box input[type="tel"], .step-box textarea, .step-box input[type="number"] { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.flex-row { display: flex; gap: 10px; }

/* Boutons */
.btn-action { width: 100%; background-color: #28a745; color: white; border: none; padding: 12px; border-radius: 6px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-action:hover { background-color: #218838; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-ghost { background-color: transparent; border: 1px solid #ccc; padding: 8px; border-radius: 6px; cursor: pointer; }

/* Outils d'édition */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-btn { flex: 1; min-width: 100px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; background: #f8f9fa; cursor: pointer; font-size: 0.85em; }
.tool-btn:hover { background: #e2e6ea; }

/* CANVAS (Espace de travail) */
.panel-center { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
.canvas-wrapper { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; background-color: #ffffff; border: 3px solid #ccc; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.1); transition: background-color 0.3s ease; }
.canvas-container, .canvas-container canvas { width: 100% !important; height: 100% !important; }
.canvas-hint { font-size: 0.95em; color: #666; margin-top: 15px; font-weight: bold; text-align: center; }

/* Panier / Recap */
.cart-items { display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; gap: 10px; padding: 10px; border: 1px solid #eee; border-radius: 8px; background: #f9f9f9; }
.cart-item-info { flex: 1; font-size: 0.85rem; }
.cart-item-info h4 { margin: 0 0 5px 0; font-size: 1em; color: #0056b3; }
.cart-item-info p { margin: 2px 0; }
.btn-remove-item { background: transparent; border: none; color: #dc3545; cursor: pointer; font-weight: bold; padding: 0; margin-top: 5px; }
.status-message { margin-top: 10px; text-align: center; font-weight: bold; font-size: 0.9em; }
.status-success { color: #28a745; }
.status-error { color: #dc3545; }

#btn-delete { background-color: #fff0f0; color: #494242; border: 1px solid #dc3545; font-weight: bold; opacity: 1; }
#btn-delete:hover { background-color: #b6ecc0; color: #494242; }