/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

label .color {
    width: 5rem;
    height: 5rem;
    display: inline-block;
    margin: 0.3125rem;
    box-shadow: 2px 2px 4px 0 rgba(0,0,0,.2);
    cursor: pointer;
    background-size: contain;
}


/* Modification Graphique page messages */
.title_block_discuss {
    background-color: #123C63!important;
}

/* Modification Graphique page messages */
.link_more_message {
    background-color: #123C63!important;
}

/* Modification Graphique page messages (bouton)*/
a.open_discuss {
    background-color: #64828E!important;
    font-size: 16px!important;
    text-transform: uppercase!important;
    border-radius: 10px!important;
    font-weight: 600!important;
    color: #ffffff!important;
}

ul.list-link-messages li.current {
    background-color: #64828E!important;
    font-size: 16px!important;
    font-weight: 600!important;
}

ul.list-link-messages li {
    background-color: #dddddd!important;
    font-weight: 600!important;
    font-size: 16px!important;
    color:#000000!important;
}

.title_message_unread {
    border-radius: 0px 10px 0px 10px!important;
    background-color: #123C63!important;
    color: #ffffff!important;
}


/* Modification Custom Product Bouton Commander */
#submit_idxrcustomproduct {
    justify-content: center;
}

#idxrcustomproduct_send {
    border-radius: 0px 5px 5px 0px;
}

#idxrcustomprouct_quantity_wanted {
    height: 100%;
    border-radius: 5px 0px 0px 5px;
    border-color: #000;
    border-width: 1px;
}

.product-quantity .input-group-btn-vertical .btn {
    border-color: #000;
}

.card-block .option_div span {
    line-height: 1.5;
}


/* Modification Inscription */
.page-customer-account #content {
    color: #123C63!important;
}

.page-content.page-cms ul, p {
    color: #000;
}

.mm_menu_content_title {
    padding: 0 10px!important;
}

/* Correction de l'écriture blanche de merde en description courte */
.ce-product-description-short>p {
    color: #000!important;
}


.layout_layout5.ets_mm_megamenu {
    border-radius: 0px 0px 12px 12px!important;
}

/* Ajout bold sur le module réassurance pour une meilleure lisibilité */
.blockreassurance_product {
    margin-top: 25px;
    font-weight: 700;
}


/* Border radius sur les images menu */

.mm_block_type_image .ets_mm_block_content img {
        border-radius: 10px;
    }


/* Titre centré sur le menu */
.layout_layout5 .ets_mm_block > .h4 {
        text-align: center;
    }
    
/* border radius menu */
.ets_mm_megamenu .mm_columns_ul {     
    border-radius: 0px 0px 10px 10px; 
    }

/* === PAGE MON COMPTE === */


body {
  background: #f6f7fb;
  font-family: "Inter", system-ui, sans-serif;
  color: #333;
}

/* === STRUCTURE === */
.myaccount-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 220px);
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.myaccount-sidebar {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.myaccount-content {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(240, 131, 50, 0.1);
}

/* === SIDEBAR === */
.sidebar-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.sidebar-title-section {
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.sidebar-menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 0.75rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.4rem 0;
  border-radius: 6px;
  padding-left: 0.5rem;
}

.sidebar-menu a i {
  font-size: 1.3rem;
  margin-right: 0.5rem;
  color: #64828E;
}

.sidebar-menu a:hover {
  color: #64828E;
  background: rgba(51, 102, 255, 0.05);
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #d9534f!important;
  font-weight: 600;
  margin-top: auto;
}

/* === CONTENU PRINCIPAL === */
.welcome-title {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.welcome-text {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

.account-section-title {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  margin-top: 2rem;
  text-align: center;
}

.account-section-text {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

/* === DASHBOARD CARDS === */
.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-card {
  background: #F6F7FB;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 calc(50% - 1rem);
  min-width: 250px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover {
  background: #eef2ff;
  transform: translateY(-3px);
}

.dashboard-card i {
  font-size: 2rem;
  color: #64828E;
}

.dashboard-card h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dashboard-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
  .dashboard-cards {
    flex-direction: column;
  }
}

/* === HOOK displayCustomerAccount (modules additionnels) === */
.hook-customer-account {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.hook-customer-account a {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  padding-left: 0.5rem;
}

.hook-customer-account a i,
.hook-customer-account a .material-icons {
  font-size: 1.3rem;
  margin-right: 0.5rem;
  color: #64828E;
  flex-shrink: 0;
  align-content: center;
}

.hook-customer-account a:hover {
  color: #64828E;
  background: rgba(51, 102, 255, 0.05);
}

/* === PROFIL CLIENT DANS SIDEBAR === */
.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.account-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: #f8f9fb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.account-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.account-email {
  font-size: 0.85rem;
  color: #888;
}

/* === ÉTAT ACTIF DU LIEN DANS LA SIDEBAR === */
.sidebar-menu li.active a,
.hook-customer-account a.active {
  background: #64828E;
  color: #fff;
  font-weight: 600;
  padding-left: 0.5rem;
}

.sidebar-menu li.active a i,
.hook-customer-account a.active i {
  color: #fff;
}

/* === BANNIÈRE DU COMPTE === */
.account-banner {
  position: relative;
  background-color: #0D72B9; /* Fond derrière l'image */
  background-size: contain; /* L’image entière reste visible */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden; /* Empêche l’image de dépasser les coins arrondis */
  height: 100px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Texte aligné à gauche */
}

.account-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem; /* Espace entre le texte et le bord gauche */
}

.account-banner-title {
  position: relative;
  color: #fff !important;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: left;
  z-index: 1;
}


@media (max-width: 768px) {
  .account-banner {
    height: 80px;
  }

  .account-banner-title {
    font-size: 1.4rem;
  }
}

.account-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 140px;
  margin-bottom: 2rem;
  background-color: #0D72B9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
}

.account-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,114,185,0.95) 0%, rgba(13,114,185,0.85) 55%, rgba(13,114,185,0.2) 100%);
  display: flex;
  align-items: center;
}

.account-banner-content {
  width: 100%;
  padding: 1.25rem 1.5rem;
}

.account-banner-title {
  color: #fff !important;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.account-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: #fff;
}

.banner-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 260px;
}

.banner-ico {
  font-size: 1.4rem;
  line-height: 1.4rem;
  color: #fff;
  opacity: 0.95;
  margin-top: 0.1rem;
}

.banner-label {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 600;
}

.banner-value {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.banner-options {
  width: 100%;
  margin-top: 0.25rem;
}

.banner-options-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.banner-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.option-pill i {
  font-size: 1.1rem;
}

.option-pill.is-on {
  background: rgba(46, 204, 113, 0.22);
  border-color: rgba(46, 204, 113, 0.35);
}

.option-pill.is-off {
  background: rgba(231, 76, 60, 0.20);
  border-color: rgba(231, 76, 60, 0.30);
}

@media (max-width: 768px) {
  .account-banner { height: auto; }
  .account-banner-content { padding: 1rem; }
  .banner-item { min-width: unset; width: 100%; }
}

