/* RESET */
body,
.ast-container,
.ast-plain-container,
.ast-separate-container,
.site-content,
.entry-content,
.dashboard-wrapper,
.product-card,
.product-content, h1, h2, h3, h4 {
  font-family: "Poppins", "Barlow", "Montserrat", sans-serif;
  font-weight: 300; /* Thin */
  
}

.entry-content[data-ast-blocks-layout]{
  margin-top:-60px;
  margin-left:0;
  margin-right:0;
}



.ast-plain-container{
  background:none;
  margin-top:0;
}

/* HEADER */
.app-header {
  position: relative;
  z-index: 100;
  background: #fff;
}

/* TOP BAR */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;          /* IMPORTANT */
  padding: 0;       /* padding horizontal seulement */
}


.header-left, .header-right {
  display: flex;
  align-items: center;
}

.site-name {
  font-weight: 600;
  font-size: 18px;
}

.icon-btn {
  height: 100%;               /* PREND TOUTE LA HAUTEUR DU HEADER */
  padding: 0 16px;            /* pas de padding vertical */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: silver;
}


/* NAV BAR */
/* === OMBRE NIVEAU 2 HEADER (vers le bas uniquement) === */
/* === NAV BAR – OMBRE BAS STYLE COLISSIMO === */
.header-nav {
  background-color: #F9F9F9;
  height: 38px;

  position: relative;
  z-index: 20;

  /* Ombre franche vers le bas */
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.07);
}


/* Centrage du menu lui-même */
.header-nav .nav-menu,
.main-header-bar .main-header-menu {
  justify-content: center;
}


/* === MENU ACTIF – INDICATION PAGE COURANTE === */
.header-nav .nav-menu li.current-menu-item > a,
.header-nav .nav-menu li.current_page_item > a,
.header-nav .nav-menu li.current-menu-ancestor > a {
  color: #333; /* bleu Colissimo */
  font-weight: 600;
  position: relative;
}

/* Barre active sous l’item */
.header-nav .nav-menu li.current-menu-item > a {
  background: rgba(0,112,186,0.08);
  padding: 8px 10px;
  border-radius: 4px;
}


/* === MENU NIVEAU 2 – Séparateurs verticaux (style Colissimo) === */
.main-header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Séparateurs */
.main-header-menu > li:not(:last-child)::after {
  content: "|";
  margin: 0 18px;
  color: #d6d6d6;
  font-weight: 300;
}

/* Nettoyage */
.main-header-menu > li {
  position: relative;
}


.nav-menu {
  display: flex;
  gap: 30px;
  padding: 5px 20px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.ast-separate-container {
	background-color : #fff;
}
/* APPLICATIONS PANEL */
#apps-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: 5px 0 15px rgba(0,0,0,.15);
  transition: left .3s ease;
  z-index: 1000;
}

#apps-panel.active {
  left: 0;
}

.apps-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.apps-grid {
  padding: 10px;
  display: grid;
  gap: 5px;
}

.app-item {
  padding: 15px;
  background: #f8f8f8;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.close-btn {
  width : 70px;
  padding: 15px;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  background:none;
}

.close-btn:hover{
  transform: none;
  box-shadow: none;
  background: none;
  color: indianred;
}


/* === POPOVER CONTAINER === */
.apps-popover {
  position: absolute; /* au lieu de fixed */
  top: 100%;          /* juste sous le header */
  inset: 0;
  display: none;
  z-index: 1400;
}

.apps-popover.active {
  display: block;
}

/* Click outside zone */
.apps-popover::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* === App BOX === */
.apps-box {
  position: absolute;
  top: 64px;
  left: 0px;
  width: auto;
  background: #FFFFFF;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 1;
}

/* Header */
.apps-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10pt;
  background: #F2F2F2;
}

/* Footer */
.apps-box-footer {
  justify-content: space-between;
  text-align: center;
  border-top:1px solid #F2F2F2;
  padding:5px;
}

/* === APPS GRID (statique) === */
.static-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px;
  list-style: none;
  margin: 0;
  text-align: center;
}

/* Item */
.static-apps .app-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #222;

  padding: 12px 8px;
  border-radius: 8px;

  transition: all .2s ease;
}

/* Image */
.static-apps .app-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* Nom */
.static-apps .app-item span {
  font-size: 13px;
  font-weight: 500;
}

/* Hover */
.static-apps .app-item a:hover {
  background: #f3f3f3;
}

.apps-grid.static-apps .app-item{
	box-shadow: none;
	background: none;
}


#apps-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* === GRID === */

.apps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  text-align: center;
  padding-top : 5pt;
}

.apps-grid li {
  font-size: 13px;
  padding :0;
}

.apps-grid a {
  text-decoration: none;
  color: #222;
  display: block;
  padding :0;
}

/* Icon */
.apps-grid li::before {
  content: "";
  display: block;
  margin: 0 auto 8px;
  background-size: contain;
  background-repeat: no-repeat;
  width:70pt;
}

/* Icons mapping */
/* .app-ship::before {
  background
} */

/* =====================================
   BOUTONS – STYLE COLISSIMO
===================================== */

/* Base bouton */
.ast-button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  /*box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: 
    background-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;*/
}

/* Hover */
.ast-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
  background-color: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

/* Active */
.ast-button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active,
.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
}

/* Focus (accessibilité) */
.ast-button:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.wp-block-button__link:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(255,138,0,.35),
    0 4px 10px rgba(0,0,0,.15);
}

/* Bouton secondaire (si classe .is-style-outline) */
.is-style-outline .wp-block-button__link,
.ast-outline-button {
  background: transparent !important;
  color: #ff8a00 !important;
  border: 2px solid #ff8a00 !important;
  box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover,
.ast-outline-button:hover {
  background: rgba(255,138,0,.08) !important;
}

/* Boutons icônes */
.icon-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 16px;
  color:#797676;
  width :64px;
  height :64px;
}

.icon-btn:hover {
  background: rgba(242,242,242,0.5) !important;
}

/* === BOUTON APPS : ETAT ACTIF === */
.icon-btn.is-active {
  color: red;
  background: rgba(242,242,242,0.5) !important;
}

.icon-btn.is-active i {
  color: gray;
}


button:disabled,
.ast-button:disabled {
  background: red !important;
  color: #999 !important;
  box-shadow: none;
  cursor: not-allowed;
}

.apps-btn {
  color: #333;	
}

.icon-btn:hover {
	color:#03A9F5;
  background: rgba(0,0,0,.06) !important;
}

.icon-btn i {
  line-height: 1;
}


/* === DASHBOARD === */
.dashboard-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 60px;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 40px;
  color:#fefefe;
}

/* GRID */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* CARD */
.product-card {
	
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  text-decoration: none;
  color: #222;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
}

/* IMAGE */
.product-image img {
  width: 100%;
  height: auto; /* adapte la hauteur à l'image */
  object-fit: contain; /* garde toute l'image visible */
}




/* CONTENT */
.product-card {
  display: flex;
  flex-direction: column; /* on aligne les éléments verticalement */
  height: 100%; /* la carte prend toute la hauteur disponible */
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* permet à ce bloc de prendre tout l'espace restant */
  padding: 16px;
}

.product-content .view-product-btn {
  margin-top: auto; /* pousse le bouton vers le bas */
}

.product-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-content p {
  font-size: 14px;
  color: #666;
}







/* SINGLE PRODUIT – mise en page 2 colonnes forcée */
.single-product .two-columns {
  display: flex !important;
  flex-wrap: wrap;
  gap : 0;
}


/* Colonne image à gauche (1/3) */
.single-product .two-columns .product-image-column {
  flex: 0 0 33% !important; /* fixe 1/3 */
}

/* Colonne contenu à droite (2/3) */
.single-product .two-columns .product-content-column {
  flex: 0 0 66% !important; /* fixe 2/3 */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
  padding: 20px;
}

/* Image */
.single-product .two-columns .product-image-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

/* Titres et description */
.single-product .two-columns .product-content-column h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

.single-product .two-columns .product-description {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
  .single-product .two-columns {
    flex-direction: column !important;
  }

  .single-product .two-columns .product-image-column,
  .single-product .two-columns .product-content-column {
    flex: 0 0 100% !important;
  }
}


/* PAIEMENT */
/* Boutons de paiement */
.payment-btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    margin-right: 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.payment-btn.paypal-btn {
    background-color: #ffc439;
    color: #111;
}

.payment-btn.paypal-btn:hover {
    background-color: #ffb400;
}

.payment-btn.cb-btn {
    background-color: #0070ba;
}

.payment-btn.cb-btn:hover {
    background-color: #005fa3;
}

/* Prix du produit */
.product-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}



/* FIL D’ARIANE – UX PREMIUM */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.breadcrumb a {
  text-decoration: none;
  color: #0070ba;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #aaa;
}

.breadcrumb-current {
  color: #333;
  font-weight: 600;
}

/* === HERO BACKGROUND (style Colissimo) === */
.hero-background {
  position: absolute;
  top: calc(var(--ast-header-height, 0));
  left: 0;
  width: 100%;
  height: 160px; /* ajustable */
  background-image: url("../img/Banner-site-Editions-ORELC.png");
  background-size: cover;
  background-position: center;
}


/* === HERO DASHBOARD === */
.dashboard-hero {
  padding: 15px 0 15px;
  color: #fff;
}

.dashboard-hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.dashboard-hero p {
  font-size: 16px;
  opacity: .9;
}

/* ACTIONS */
.dashboard-actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.action-card {
  background: rgba(255,255,255,.9);
  color: #222;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.action-card.primary {
  background: linear-gradient(135deg, #f3efe6, #7aa65d);
  color: none;
}


.action-card small {
  display: block;
  opacity: .8;
}

/* === MAIN LAYOUT === */
.dashboard-main {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
}

.dashboard-search {
  margin-top: 0px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

/* SIDEBAR */
.dashboard-sidebar .stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.stat-grid {
  display: flex;
  gap: 20px;
}

.stat-grid div strong {
  font-size: 22px;
}

.status.active {
  color: green;
  font-weight: 600;
}

/* PRODUITS */
.dashboard-content h2 {
  margin-bottom: 20px;
}

.btn-light {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: #333;
}

/* === CARD GÉNÉRIQUE DASHBOARD === */
.dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.dashboard-box {
  background: #fff;
  border-radius: 5px;
  padding: 24px;
  border : 1px solid #ddd;
}

.dashboard-box.is-active {
  background-color: #F8F8FF;
}

/* Header de card */
.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-card-header h2 {
  font-size: 20px;
  margin: 0;
}

.dashboard-card-header a {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
}

.dashboard-card-header a:hover {
  text-decoration: underline;
}

/* === DASHBOARD : 3 PRODUITS SUR UNE SEULE LIGNE === */
.dashboard-products-card .dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cartes alignées */
  gap: 14px;
}

.dashboard-search-card .dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 cartes alignées */
  gap: 14px;
}

@media (max-width: 1024px) {
  .dashboard-products-card .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-products-card .dashboard-cards {
    grid-template-columns: 1fr;
  }
}



/* === BOUTON "VOIR LE PRODUIT" – STYLE DASHBOARD PREMIUM === */
.view-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 16px;
  margin-top: 14px;

  background: #f3efe6; /* beige clair */
  color: #222;

  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.04);

  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: all .2s ease;
}

/* Flèche */
.view-product-btn .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

/* Hover */
.view-product-btn:hover {
  background: #ede8dd;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.view-product-btn:hover .arrow {
  transform: translateX(4px);
}

.product-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-content .view-product-btn {
  margin-top: auto;
}

/* === STATS CARD – STYLE PJ === */

.stats-card {
  padding: 18px;
  margin-bottom :10pt;
}

.stats-header h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Metrics */
.stats-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f6f4ef;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.metric {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid #e3dfd6;
}

.metric:last-child {
  border-right: none;
}

.metric strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  line-height  : 1;
}

.metric span {
  font-size: 12px;
  color: #777;
}

/* Graph */
.stats-graph canvas {
  display: block;
  width: 100% !important; /* 🔥 clé du fix */
  height: 100%;
  padding-top:10px;
}


.stats-graph svg {
  width: 100%;
  height: 100%;
}

/* Footer */
.stats-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
  padding:0;
}

/* Footer */
.stats-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
}

.stats-footer a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.stats-footer a:hover {
  text-decoration: underline;
}

.stats-header {
  position: relative;
  padding-bottom: 3px; /* espace entre le titre et le contenu */
  margin-bottom: 12px;  /* espace après le séparateur */
}

.stats-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;           /* épaisseur de la ligne */
  background-color: #e0e0e0; /* couleur gris clair */
  position: absolute;
  bottom: 0;
  left: 0;
}


.dashboard-actions {
  display: flex;
  flex-wrap: wrap; /* pour permettre 2 lignes si l'espace est limité */
  gap: 14px; /* espace entre les cartes */
}

.action-card {
  display: flex;
  align-items: center;
  width: calc(33.33% - 10px); /* 3 cartes par ligne */
  min-width: 200px;
  padding: 16px;
  background: #f9f9f9;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.action-card .card-icon {
  font-size: 28px;
  margin-right: 12px;
}

.action-card .card-text {
  display: flex;
  flex-direction: column;
}

.action-card .card-text strong {
  font-size: 16px;
  margin-bottom: 4px;
}

.action-card .card-text small {
  font-size: 13px;
  color: #555;
}

/* === LOGIN POPOVER === */
.login-popover {
  position: absolute; /* au lieu de fixed */
  top: 100%;          /* juste sous le header */
  inset: 0;
  display: none;
  z-index: 1400;
}

.login-popover.active {
  display: block;
}

/* Overlay */
.login-popover::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* Box */
.login-box {
  position: absolute;
  top: 64px;
  right: 0px;

  width: auto;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 1;
}

/* Header */
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10pt;
  background: #F2F2F2;
}

/* Content */
.login-content {
  padding: 18px;
  font-size: 14px;
}

/* Langue */
.login-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-lang select {
  margin-left: 6px;
}

/* Separator */
.login-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 16px 0;
}

/* Form */
.login-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f7faff;
}

/* Password eye */
.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 36px;
  cursor: pointer;
  color: #666;
}

/* Button */
.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #555;
  color: #fff;
  border: none;
  font-weight: 600;
}

/* Links */
.login-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
}

.login-register {
  margin-top: 16px;
  font-size: 13px;
}

.login-register a {
  font-weight: 600;
}


/* === SEARCH POPOVER === */
.search-popover {
  position: absolute;
  top: 100%;
  inset: 0;
  display: none;
  z-index: 1400;
}

.search-popover.active {
  display: block;
}

/* Overlay */
.search-popover::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* Box */
.search-box {
  position: absolute;
  top: 64px;
  right: 64px; /* aligné sous l’icône search */
  min-width: 320px;

  background: #fff;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* Header */
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10pt;
  background: #F2F2F2;
}

/* Content */
.search-content {
  padding: 16px;
}

/* Champ de recherche */
.search-field {
  display: flex;
  align-items: center;
  background: #f7faff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.search-field input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
}

.search-field input:focus {
  outline: none;
}

/* Bouton loupe */
.search-btn {
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  box-shadow: none;
  background : none;
}

.search-btn:hover {
  color: #03A9F5;
  box-shadow: none;
  background : none;
}

/* === ACCOUNT POPOVER === */
.account-popover {
  position: absolute;
  top: 100%;
  inset: 0;
  display: none;
  z-index: 1400;
}

.account-popover.active {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Box */
.account-box {
  position: absolute;
  top: 64px;
  right: 0px;

  width: auto;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 1;
}

/* Header */
.account-header {
	display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10pt;
  background: #F2F2F2;
}

/* Content */
.account-content {
  padding: 18px;
  font-size: 14px;
}

/* User */
.account-user {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.account-avatar.is-active {
  color: #808285;
}

.account-avatar-big {
  width: 48px;
  height: 48px;
  background: #c9c3b3;
  color: #111;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-user-info span {
  display: block;
  font-size: 12px;
  color: #666;
}

/* Actions */
.account-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-actions li {
  border-top: 1px solid #eee;
}

.account-actions a {
  display: block;
  padding: 12px 0;
  color: #111;
  text-decoration: none;
}

.account-actions a:hover {
  color: #c9c3b3;
}

.account-actions .logout a {
  color: #b00020;
}


/* Account spécifique */
.account-user {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.account-avatar-big {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c9c3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.account-user-info span {
  display: block;
  font-size: 12px;
  color: #666;
}

.account-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-actions li {
  border-top: 1px solid #eee;
}

.account-actions a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.account-actions .logout a {
  color: #b00020;
}

.product-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa;
    border-radius: 3px;
    margin-bottom: 5px;
}

.dashboard-pagination {
    margin-top: 20px;
    text-align: center;
}
.dashboard-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    background: #f1f1f1;
    border-radius: 4px;
    text-decoration: none;
}
.dashboard-pagination .current {
    background: #0073aa;
    color: #fff;
}

/* Wrapper du bouton + quantité */
.custom-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre quantité et bouton */
    margin-top: 20px;
}

/* Champ quantité */
.custom-add-to-cart .qty {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Bouton Ajouter au panier */
.custom-add-to-cart .add-to-cart-btn {
    background-color: #0073aa; /* couleur principale thème */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px; /* icône + texte */
    transition: background 0.3s;
}

.custom-add-to-cart .add-to-cart-btn:hover {
    background-color: #005177;
}



/* Wrapper du formulaire */
.custom-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre quantité et bouton */
    margin-top: 20px;
}

/* Champ quantité */
.custom-add-to-cart .quantity-wrapper {
    display: flex;
}

.custom-add-to-cart .quantity-wrapper .qty {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box; /* pour inclure padding dans la largeur */
}

/* Bouton Ajouter au panier */
.custom-add-to-cart .add-to-cart-btn { 
    flex-shrink: 0; /* empêche le bouton de se réduire */
    background-color: #0073aa; /* couleur principale thème */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px; /* icône + texte */
    transition: background 0.3s;
}

.custom-add-to-cart .add-to-cart-btn:hover {
    background-color: #005177;
}

/* Bouton panier */
.header-right .cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #797676; /* couleur icône */
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.3s;
}

.header-right .cart-btn:hover {
    color: #0073aa; /* couleur hover icône */
}

/* Compteur panier en badge orange */
.header-right .cart-btn .cart-count {
    position: absolute;
    top: 10px;
    right: 0px;
    background-color: #ff7f00; /* orange vif */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 60%;
    padding: 6px 6px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-sizing: border-box;
}


/* Responsive : sur petit écran, empile quantité + bouton */
@media (max-width: 480px) {
    .custom-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-add-to-cart .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .custom-add-to-cart .quantity-wrapper {
        justify-content: flex-start;
    }
}


/* Table panier personnalisée */
.custom-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-cart-table th,
.custom-cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.custom-cart-table th {
    font-weight: bold;
    color: #333;
}

.custom-cart-table .cart-product img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.custom-cart-table .cart-quantity input.qty {
    width: 60px;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.custom-cart-table .remove-btn {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.custom-cart-table .remove-btn:hover {
    color: #cc0000;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cart-actions .custom-btn {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
	font-size:14px;
}

.cart-actions .custom-btn:hover {
    background-color: #005177;
}

.cart-totals {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}






.dashboard-grid.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.checkout-fields .form-row {
  margin-bottom: 16px;
}

.woocommerce-checkout-payment {
  background: transparent;
  border: none;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: left !important;
  width: 100% !important;
}

.place-order button {
  width: 100%;
  margin-top: 20px;
}




/* ===============================
   ZONE PAIEMENT CHECKOUT
================================ */

.checkout-payment,
.woocommerce-checkout-payment {
  margin-top: 24px;
}

/* Supprime le look WooCommerce */
.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.wc_payment_method {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.wc_payment_method:hover {
  border-color: #ff8a00;
  background: #fffaf4;
}

/* Cache les radios */
.wc_payment_method input[type="radio"] {
  display: none;
}

/* LABEL = bouton */
.wc_payment_method label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
  gap: 12px;
}

/* Logos Stripe / PayPal */
.wc_payment_method img {
  max-height: 28px;
  width: auto;
}

/* Paiement sélectionné */
.wc_payment_method input:checked + label {
  color: #ff8a00;
}

/* Description paiement */
.payment_box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f8f8;
  font-size: 14px;
}

/* ===============================
   BOUTON COMMANDER (FINAL)
================================ */

.place-order button,
#place_order {
  width: 100%;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  background: #ff8a00;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.place-order button:hover {
  background: #e67900;
  transform: translateY(-1px);
}

/* Désactivation */
.place-order button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===============================
   MES COMMANDES
================================ */

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.order-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Statuts */
.status-completed { background: #e6f6ec; color: #1c7c45; }
.status-processing { background: #fff4e5; color: #ff8a00; }
.status-on-hold { background: #eee; color: #555; }
.status-cancelled { background: #fdecea; color: #c0392b; }
.status-pending { background: #f2f2f2; color: #666; }

.order-meta {
  font-size: 14px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Boutons compacts */
.custom-btn.small {
  padding: 8px 14px;
  font-size: 14px;
}





