@media (max-width: 500px) {
    .logo a img {
        max-height: 50px !important;
    }

    .tp-header-main {
        padding-bottom: 0;
        padding-top: 0;
    }
}

:root {
  --gold:#D4AF37;
  --black:#000;
  --gray:#6b7280; /* gris pour Premium */
  --muted:#f5f5f5;
  --border:#e8e8e8;
}

.em-head.gray { background: var(--gray); }




/** For desktop **/
main .tp-slider-title {
    font-size: 45px !important;
}

@media(max-width: 768px) {
    /** For mobile devices **/
    main .tp-slider-title {
        font-size: 35px !important;
    }
}

/* TEMP: repérage du header */
.header, .main-header, .header-area, .header-middle, .site-header {
  background: rgba(255,215,0,.08) !important; /* or supprime après */
}


/* Prix + texte EMPILÉS (centrés) */
.em-price-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin:8px 0;
}

.em-price{
  font-size:clamp(48px,6vw,64px);
  line-height:.9;
  font-weight:800;
  margin-bottom:6px; /* espace avec la phrase */
}

.em-unit{
  color:#666;
  line-height:1.35;
  text-align:center;   /* centré sous le prix */
  margin:0;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}

/* mobile: rien à changer, ça reste propre */
@media (max-width:420px){
  .em-price-col{ align-items:center; }
  .em-unit{ text-align:center; }
}


/* === Force la grille des cartes === */
.em-grid{
  display:grid !important;                               /* certains thèmes remettent display:block */
  grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  gap:24px !important;
  align-items:stretch;
}

/* responsive */
@media (max-width: 1200px){
  .em-grid{ grid-template-columns:repeat(3, minmax(0,1fr)) !important; }
}
@media (max-width: 992px){
  .em-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 576px){
  .em-grid{ grid-template-columns:1fr !important; }
}

/* Assure que chaque carte occupe correctement sa cellule */
.em-card{
  margin:0 !important;
  height:100% !important;
}

/* Parfois des styles globaux ajoutent des marges aux  */
.em-grid > article{ margin:0 !important; }

/* Optionnel: un peu moins d’espace interne si ça paraît trop aéré */
.em-body{ padding:24px; }


--

:root{
  --gold:#D4AF37;
  --black:#000;
  --border:#e8e8e8;
}

/* Grille comme avant */
.em-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  gap:24px !important;
}
@media (max-width:992px){ .em-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; } }
@media (max-width:576px){ .em-grid{ grid-template-columns:1fr !important; } }

/* Carte */
.em-card{
  position:relative;
  display:flex; flex-direction:column;
  min-height:620px;
  background:#fff; border:1px solid var(--border);
  border-radius:18px; box-shadow:0 10px 24px rgba(0,0,0,.06);
  overflow:hidden;
}
.em-head{
  height:54px; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; color:#fff;
}
.em-head.gold{ background:var(--gold); }
.em-head.black{ background:var(--black); }
.em-body{ padding:28px; display:flex; flex-direction:column; height:100%; }

/* Prix + phrase ALIGNÉS À GAUCHE (ancien design) */
.em-price-col{
  display:flex; flex-direction:column; align-items:flex-start;
  margin:8px 0 6px;
}
.em-price{
  font-size:72px; line-height:.9; font-weight:800; margin-bottom:6px;
}
.em-unit{
  color:#666; text-align:left; line-height:1.35; margin:0;
  white-space:normal; overflow-wrap:break-word;
}

/* Sep & sections */
.em-bill{ color:#666; }
.em-div{ height:1px; background:#eee; margin:18px 0; }
.em-sec{ font-weight:800; margin-bottom:6px; }

/* Liste ✓ */
.em-list{ list-style:none; margin:0; padding-left:0; color:#374151; }
.em-list li{ display:flex; gap:10px; align-items:flex-start; margin:10px 0; }
.em-list li::before{ content:"✓"; color:#10b981; font-weight:900; }

/* CTA */
.em-cta{ margin-top:auto; }
.em-btn{
  display:block; width:100%; text-align:center; text-decoration:none;
  background:#fff; color:#000; border:2px solid #000; border-radius:999px;
  padding:14px 18px; font-weight:800;
}
.em-btn:hover{ background:#000; color:#fff; }

/* === Bandeau noir pour les pages de boutique === */

body[class*="store"] .bg-brand,
body[class*="store"] .store-header,
body[class*="store"] .store-banner,
body[class*="store"] .vendor-header,
body[class*="store"] .vendor-cover {
  background-color: #000 !important;   /* couleur noire */
  background-image: none !important;
  min-height: 280px !important;
  border-radius: 8px;
}

/* Texte en blanc pour contraste */
body[class*="store"] .store-info,
body[class*="store"] .store-info * {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}


@media (max-width: 768px) {
  header .logo img,
  .tp-header-logo img,
  .site-header .logo img {
    width: auto !important;
    height: 90px !important; /* ← ajuste ici la taille que tu veux */
    max-height: 45px !important;
  }
}

/* === Forcer la taille du logo E-xcellamall sur TÉLÉPHONE, sticky compris === */
@media (max-width: 768px) {

  /* 1) Tous les logos E-xcellamall (normal + sticky, même clonés) */
  img[alt="E-xcellamall"],
  img[src*="/rouba3i/1-1.png"] {
    height: 48px !important;        /* ⇐ change 48 par 40, 50, 60 selon ce que tu veux */
    max-height: 48px !important;
    width: auto !important;
  }

  /* 2) Tous les conteneurs "sticky" (bande blanche qui reste collée en haut) */
  [class*="sticky"] {
    min-height: 56px !important;    /* ⇐ hauteur de la barre blanche */
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  /* 3) Si le header sticky a sa propre ligne interne, on la compresse aussi */
  [class*="sticky"] .row,
  [class*="sticky"] .container {
    min-height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }
}

/* Section tarifs centrée */
.em-pricing-wrap {
    max-width: 1100px;
    margin: 40px auto 80px auto;
    padding: 0 15px;
    text-align: center;
}

/* Titre + sous-titres centrés */
.em-pricing-title,
.em-pricing-sub {
    text-align: center;
}

/* Les 2 cartes : centrées sous le titre */
.em-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Style commun des cartes */
.em-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    width: 380px;
    max-width: 100%;
    height: auto;
}

/* Pack Standard mis en avant (cadre gold) */
.em-card-main {
    border-color: #cc9435;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Contenu interne des cartes */
.em-card .em-body {
    padding: 30px 30px 28px;
    text-align: left;
}

/* Bouton "Créer ma boutique" bien visible */
.em-card .em-cta {
    margin-top: 24px;
    text-align: center;
}
.em-card .em-cta .em-btn {
    display: inline-block;
}

/* Petit prix +20 DT */
.em-price-small {
    font-size: 22px;
}

/* Séparateur dans Options Marketing */
.em-separator {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 18px 0;
}

/* Mobile : une carte par ligne */
@media (max-width: 991px) {
    .em-grid {
        flex-direction: column;
        align-items: center;
    }
    .em-card {
        width: 100%;
    }
}