/* ==========================================================================
   FICHIER CUSTOM.CSS - THEME HUMMINGBIRD (PRESTASHOP 9)
   Personnalisation globale des couleurs via les variables Bootstrap 5
   ========================================================================== */

:root {
  /* --- 1. COULEURS DE LA MARQUE (Boutons, éléments d'action) --- */
  
  /* Couleur Primaire (Ex: Bouton "Ajouter au panier", icônes principales) */
  --bs-primary: #806FFF; 
  --bs-primary-rgb: 29, 53, 87; /* Indispensable : la même couleur en format RGB */

  /* Couleur Secondaire (Ex: Badges, boutons secondaires) */
  --bs-secondary: #E1DCFE; 
  --bs-secondary-rgb: 230, 57, 70; /* Indispensable : la même couleur en format RGB */

  /* --- 2. TYPOGRAPHIE ET FOND --- */
  
  /* Couleur de fond globale du site */
  --bs-body-bg: #F8F9FA; 
  
  /* Couleur du texte général */
  --bs-body-color: #2b2b2b; 
  --bs-body-color-rgb: 43, 43, 43;

  /* --- 3. LIENS HYPERTEXTES --- */
  
  /* Couleur par défaut des liens */
  --bs-link-color: #1D3557; 
  
  /* Couleur des liens au survol de la souris */
  --bs-link-hover-color: #806FFF; 

  /* --- 4. MESSAGES D'ALERTE ET STATUTS (Optionnel) --- */
  
  --bs-success: #2A9D8F; /* Vert : Succès (Ex: Produit ajouté au panier) */
  --bs-success-rgb: 42, 157, 143;
  
  --bs-warning: #E9C46A; /* Jaune : Avertissement (Ex: Stock faible) */
  --bs-warning-rgb: 233, 196, 106;
  
  --bs-danger: #D62828;  /* Rouge : Erreur (Ex: Paiement refusé) */
  --bs-danger-rgb: 214, 40, 40;
  
  --bs-info: #457B9D;    /* Bleu : Information neutre */
  --bs-info-rgb: 69, 123, 157;

}


/* ==========================================================================
   5. BOUTONS D'ACTION (Ajouter au panier, Valider la commande...)
   ========================================================================== */

/* --- Bouton Principal (ex : Ajouter au panier, Connexion) --- */
.btn-primary {
  --bs-btn-color: #ffffff; /* Couleur du texte */
  --bs-btn-bg: #806FFF; /* Couleur de fond */
  --bs-btn-border-color: #806FFF; /* Couleur de la bordure */
  
  /* Effet au survol (hover) - Mettre une couleur légèrement différente */
  --bs-btn-hover-color: #ffffff; 
  --bs-btn-hover-bg: #806FFF; 
  --bs-btn-hover-border-color: #152740;
}

/* --- Bouton Secondaire (ex : Continuer les achats, Annuler) --- */
.btn-secondary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #E63946; 
  --bs-btn-border-color: #E63946;
  
  /* Effet au survol (hover) */
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #D62828;
  --bs-btn-hover-border-color: #D62828;
}

/* --- Bouton Contour (Outline) - Souvent utilisé pour les filtres ou options --- */
.btn-outline-primary {
  --bs-btn-color: #1D3557; /* Texte de la couleur principale */
  --bs-btn-border-color: #806FFF;
  --bs-btn-bg: transparent; /* Fond transparent */
  
  /* Effet au survol : le fond se remplit */
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #806FFF;
  --bs-btn-hover-border-color: #1D3557;
}

.btn.disabled {
	--bs-btn-disabled-bg: #806FFF; 
	--bs-btn-disabled-border-color: #806FFF;
	--bs-btn-disabled-color: #ffffff;
	--bs-btn-disabled-opacity: 0.65;
}



/* ==========================================================================
   6. LIENS HYPERTEXTES (Texte cliquable dans les descriptions, menus...)
   ========================================================================== */

/* Liens normaux */
a {
  color: #1D3557; /* Couleur du lien */
  text-decoration: none; /* Supprime le soulignement par défaut (mettre "underline" si souhaité) */
  transition: color 0.2s ease-in-out; /* Petite animation fluide de transition */
}

/* Liens au survol de la souris */
a:hover {
  color: #806FFF; /* Changement de couleur au survol */
  text-decoration: underline; /* Souligne le lien au survol */
}

/* ==========================================================================
   MASQUER LE MACARON "NEUF" SUR LES IMAGES (Hummingbird)
   ========================================================================== */

.badge.new  {
  display: none !important;
}

/* ==========================================================================
   FORCER L'AGRANDISSEMENT DES IMAGES DANS LE CARROUSEL PRODUIT
   ========================================================================== */

.product-cover img,
.product-images img,
.images-container img,
.carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ==========================================================================
   OVERRIDES SPECIFIQUES
   Utilisez cette section si certains blocs ne prennent pas les variables :root
   ========================================================================== */

/* Personnalisation de l'en-tête (Header) */
#header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #EAEAEA;
}

/* Personnalisation du pied de page (Footer) */
#footer {
  background-color: var(--bs-primary); /* Utilise votre couleur primaire */
  color: #FFFFFF;
}

/* Liens dans le pied de page */
#footer a {
  color: #FFFFFF;
  text-decoration: none;
}
#footer a:hover {
  color: var(--bs-secondary); /* Utilise votre couleur secondaire au survol */
}

/* ==========================================================================
   DESIGN DU FORMULAIRE D'INSCRIPTION ET DE CONNEXION (Strictement ciblés)
   ========================================================================== */

/* 1. Le conteneur principal ciblé exactement sur les bons formulaires */
#login-form,
#customer-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  margin-bottom: 2rem;
}

/* 2. Les champs de saisie (uniquement dans ces formulaires) */
#login-form .form-control,
#customer-form .form-control {
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  padding: 12px 15px;
  background-color: #fcfcfc;
  transition: all 0.3s ease-in-out;
}

/* 3. L'effet "Focus" */
#login-form .form-control:focus,
#customer-form .form-control:focus {
  background-color: #ffffff;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.15);
  outline: none;
}

/* 4. Les libellés ("Société", "SIRET"...) isolés */
#login-form .form-control-label,
#customer-form .form-control-label {
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* 5. L'astérisque rouge pour les champs obligatoires isolés */
#login-form .form-control-label.required::after,
#customer-form .form-control-label.required::after {
  content: " *";
  color: var(--bs-secondary);
  font-weight: bold;
}

/* Optionnel : Masquer le texte "Optionnel" généré par PrestaShop */
#login-form .form-control-comment,
#customer-form .form-control-comment {
  display: none !important;
}


/* ==========================================================================
   BANNIÈRE D'ACCUEIL B2B (Design Premium)
   ========================================================================== */

.b2b-welcome-banner {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e0eaf5;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Le liseré vertical aux couleurs de votre marque */
.b2b-welcome-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--bs-primary);
}

/* Le cercle contenant l'icône principale */
.b2b-welcome-icon {
    flex-shrink: 0;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.8rem;
}

.b2b-welcome-icon i {
    font-size: 34px;
}

/* La typographie */
.b2b-welcome-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.b2b-welcome-text {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* L'encart de mise en avant (Appel à l'action) */
.b2b-welcome-highlight {
    display: flex;
    align-items: center;
    background-color: rgba(var(--bs-secondary-rgb), 0.05); /* Fond très léger de votre couleur secondaire */
    padding: 12px 18px;
    border-radius: 8px;
    color: #333333;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid var(--bs-secondary);
}

.b2b-welcome-highlight i {
    margin-right: 12px;
    color: var(--bs-secondary);
    font-size: 22px;
}

/* Responsive : On adapte pour les mobiles */
@media (max-width: 768px) {
    .b2b-welcome-banner {
        flex-direction: column;
        padding: 1.5rem;
    }
    .b2b-welcome-icon {
        margin-bottom: 1.2rem;
    }
}