/* ==========================================================================
   1. VARIABLES DE MARQUE (Modifiez ces valeurs selon votre charte)
   ========================================================================== */
:root {
  --primary-color: #0066cc;        /* Couleur d'action principale */
  --primary-hover: #0052a3;        /* Couleur au survol des boutons */
  --bg-form: #ffffff;              /* Couleur du fond du formulaire */
  --text-main: #2d3748;            /* Couleur du texte principal */
  --text-muted: #718096;           /* Couleur des descriptions et conseils */
  --border-color: #cbd5e0;         /* Couleur des bordures des champs */
  --error-color: #e53e3e;          /* Rouge pour les alertes Prestashop */
  --error-bg: #fff5f5;             /* Fond du bloc d'alerte */
  
  --form-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-main: 6px;              /* Arrondi général */
  --shadow-focus: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
.page-header {
  text-align: center;
  margin: 40px auto 10px auto;
}

.page-header h1 {
  font-family: var(--form-font);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.75px;
}

.page-header + h3 {
  font-family: var(--form-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}
/* ==========================================================================
   7. STYLISATION DE LA CASE À COCHER (CGU)
   ========================================================================== */
#customer-form label:has(input[name="cgu"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 0;
  user-select: none;
}

/* Personnalisation de la checkbox native */
#customer-form input[name="cgu"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color); /* Applique la couleur de votre charte à la case */
  border-radius: 4px;
  transition: transform 0.1s ease;
}

#customer-form input[name="cgu"]:active {
  transform: scale(0.9); /* Petit effet d'enfoncement au clic */
}

/* Cache l'icône brute si le thème n'utilise pas Material Icons correctement */
#customer-form label[for="cgu"] .material-icons,
#customer-form label:has(input[name="cgu"]) .material-icons {
  display: none; 
}

/* ==========================================================================
   8. BOUTONS ET DESIGN DE LA FENÊTRE MODAL (CGU PRO)
   ========================================================================== */
/* Arrière-plan de la fenêtre */
.modal-content {
  border-radius: var(--radius-main);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  font-family: var(--form-font);
}

/* En-tête de la Modal */
.modal-header {
  border-bottom: 1px solid #edf2f7;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase; /* Conserve le style pro en majuscules */
  letter-spacing: 0.5px;
}

/* Bouton de fermeture de l'en-tête (X) */
.modal-header .close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.modal-header .close:hover {
  color: var(--error-color);
}

/* Pied de page de la Modal */
.modal-footer {
  border-top: 1px solid #edf2f7;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
}

/* Bouton "Fermer" secondaire */
.modal-footer .btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-main);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.modal-footer .btn-secondary:hover {
  background-color: #cbd5e0;
  color: var(--text-main);
}

/* ==========================================================================
   2. MISE EN PAGE DU FORMULAIRE PRESTASHOP
   ========================================================================== */
#customer-form {
  font-family: var(--form-font);
  color: var(--text-main);
  background-color: var(--bg-form);
  max-width: 920px;
  margin: 20px auto;
  border-radius: var(--radius-main);
}

/* Alignement des lignes (Grille Smarty / Bootstrap) */
#customer-form .form-group.row {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Intitulés des champs (Labels) */
#customer-form .form-control-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  padding-top: 10px;
}

/* Indicateur d'obligation (*) */
#customer-form .form-control-label.required::after {
  content: " *";
  color: var(--error-color);
}

/* ==========================================================================
   3. DESIGN DES INPUTS ET MENUS DÉROULANTS
   ========================================================================== */
#customer-form .form-control,
#customer-form select {
  width: 100%;
  height: auto;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-main);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Comportement au clic (Focus) */
#customer-form .form-control:focus,
#customer-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-focus);
}

/* Champ de type fichier (Téléchargement Logo) */
#customer-form input[type="file"].form-control {
  padding: 8px 12px;
  background-color: #f7fafc;
  cursor: pointer;
}

/* ==========================================================================
   4. TEXTES D'INFORMATION ET ZONE DE COMMENTAIRE (col-md-3)
   ========================================================================== */
/* Bloc d'aide à droite de la ligne */
#customer-form .form-control-comment {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 10px;
  line-height: 1.4;
}

/* Forçage des styles inline gris d'origine (<label style="color: #9E9E9E">) */
#customer-form label[style*="color"] {
  display: block;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  line-height: 1.5;
  margin-top: 6px;
  text-align: left;
}

/* ==========================================================================
   5. BLOC MOT DE PASSE (Boutons Afficher / Générer)
   ========================================================================== */
#customer-form .input-group {
  display: flex;
  width: 100%;
}

#customer-form .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

#customer-form .input-group-btn {
  display: flex;
}

/* Design unifié pour "Afficher" et "Générer" */
#customer-form .input-group-btn .btn {
  border: 1px solid var(--border-color);
  border-left: none;
  background-color: #edf2f7;
  color: var(--text-main);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

#customer-form .input-group-btn .btn:hover {
  background-color: #e2e8f0;
}

/* Arrondi externe du dernier bouton de la rangée */
#customer-form .input-group-btn .btn:last-child {
  border-top-right-radius: var(--radius-main);
  border-bottom-right-radius: var(--radius-main);
}

/* ==========================================================================
   6. STYLISATION DES ERREURS DYNAMIQUES PRESTASHOP
   ========================================================================== */
#customer-form .alert-danger {
  background-color: var(--error-bg);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  padding: 12px 15px;
  font-size: 13px;
  border-radius: var(--radius-main);
  margin-bottom: 0;
  width: 100%;
}
nav.header-nav {
    display: none;
}
.header-top {
    display: none;
}
footer#footer {
    display: none;
}
#preview{
     width: 200px;
     display: inline-block;
   }
   #preview img{
     width: 100%;
   }