
@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}
/* Ajoute d'autres variantes si tu en as, exemple italique, etc. */


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
   font-family: 'Aeonik Pro', 'Inter', '', Arial, sans-serif;
  background: #f8f9fb;
  color: #222;
}



/* Bannière info sous le header */
.info-banner {
  width: 100%;
  background: #e9f9f6;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 16px 0 12px 0;
  border-bottom: 1.5px solid #13b88822;
}

.info-banner-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02em;
  color: #111;
}
.info-banner-item b {
  color: #13B888;
  font-weight: bold;
}
.info-icon {
  font-size: 1.4em;
  color: #13B888;
}


main h2 {
  margin-bottom: 22px;
  color: #13B888;
  font-size: 1.3em;
}



main {
  padding-top: 72px; /* Ajuste cette valeur selon la hauteur réelle de ton header */
}
main {
  padding-top: 72px;
}
@media (min-width: 900px) {
  main {
    padding-top: 64px;
  }
}
@media (max-width: 600px) {
  main {
    padding-top: 44px;
  }
}

/* -------- HEADER PREMIUM -------- */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: #fff;
  box-shadow: 0 2px 14px #13b8880e;
  border-bottom: 1.5px solid #e2eaf0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4vw 8px 4vw;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 54px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo img {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #e6f8f5;
  box-shadow: 0 1px 4px #13b88815;
}
.header-logo span {
  color: #13B888;
  font-weight: 800;
  font-size: 1.20em;
  letter-spacing: .5px;
}
.header-logo .dotcom {
  color: #292929;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;                /* Espace entre chaque bouton, tu peux mettre 8px si tu veux encore plus compact */
  margin-right: 12px;       /* Ajoute une marge à droite pour aérer le dernier bouton */
}

.header-btn {
  background: #fff;
  border: 2px solid #13B888;
  border-radius: 13px;      /* Légèrement plus petit */
  box-shadow: 0 2px 10px #13b88815;
  padding: 5px 8px;         /* Plus petit en hauteur et largeur */
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border .13s, box-shadow .14s, background .13s;
  position: relative;
  min-width: 38px;          /* Réduit la taille minimum */
  min-height: 38px;         /* Idem */
}

.header-btn svg {
  width: 22px;
  height: 22px;
}


.header-btn:hover, .header-btn:focus-visible {
  border-color: #0b7d5a;
  background: #f2fbf8;
  box-shadow: 0 4px 18px #13b88823;
}
.header-btn svg {
  display: block;
}
.cart-count {
  position: absolute;
 top: -8px; 
  right: -8px;
  background: #13B888;
  color: #fff;
  font-size: .95em;
  border-radius: 13px;
padding: 1.5px 6px;
  min-width: 18px;
  font-weight: bold;
  box-shadow: 0 1px 8px #13b88823;
}



/* -------- POPUP BLUR -------- */
.popup-blur {
  display: none;
  position: fixed;
  z-index: 140;
  left: 0; top: 0; width: 100vw; height: 100vh;
  backdrop-filter: blur(6px);
  background: #0a2d2933;
}
.popup-blur.active { display: block; }

/* POPUP RECHERCHE - GENERAL */
.search-popup {
  position: fixed;
  z-index: 150;
  left: 50%; top: 20vh;
  transform: translate(-50%, 0);
  width: 92vw;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px #13b8882a;
  padding: 36px 18px 20px 18px;   /* Assez de padding top pour laisser la place au X */
  animation: popupShow .20s;
  display: none;
}

/* Quand la popup est active (ouvre/ferme) */
.search-popup.active { display: block; }



/* BARRE DE RECHERCHE AVEC LOUPE DEDANS */
.popup-search-form {
  display: flex;
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid #13b88833;
  overflow: hidden;
  margin-top: 2px;
  background: #f6fcfa;
}
.popup-search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.15em;
  padding: 14px 16px;
  color: #222;
  background: transparent;
}
.popup-search-form button {
  background: #13B888;
  border: none;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0 14px 14px 0;
  height: 48px;
  transition: background .14s;
}
.popup-search-form button svg {
  stroke: #fff;
  display: block;
}
.popup-search-form button:active,
.popup-search-form button:focus {
  background: #0b7d5a;
}

/* -------- POPUP PANIER -------- */
.cart-popup {
  display: none;
  position: fixed;
  z-index: 150;
  top: 64px;
  right: 3vw;
  width: 92vw;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px #13b88824;
  animation: popupShowCart .18s;
}
@keyframes popupShowCart {
  from { opacity: 0; transform: translateY(-40px);}
  to { opacity: 1; transform: translateY(0);}
}
.cart-popup.active { display: block; }
.cart-popup-header {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1.5px solid #f0f6f4;
  padding: 11px 13px 7px 11px;
  position: relative;
  justify-content: space-between;
}
.cart-popup-header span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #13B888;
  font-weight: bold;
  font-size: 1.07em;
}
.cart-popup-body {
  color: #444;
  font-size: 1.08em;
  padding: 17px 14px 16px 17px;
  text-align: left;
}

/* -------- FOOTER -------- */
.site-footer {
  background: #f7fdfb;
  border-top: 1.5px solid #e2eaf0;
  padding: 19px 0 12px 0;
  margin-top: 56px;
  text-align: center;
  font-size: 1em;
  color: #555;
}
.footer-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 17px;
  font-size: 1em;
  margin: 6px 0;
}
.footer-links a {
  color: #13B888;
  text-decoration: none;
  font-weight: 500;
  transition: color .13s;
}
.footer-links a:hover { color: #0b7d5a; }

@media (max-width: 500px) {
  .search-popup {
    max-width: 98vw;
    padding: 28px 5px 10px 5px;
  }
  .popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
  .popup-search-form button {
    height: 44px;
    padding: 0 12px;
  }
  .popup-search-form input {
    padding: 10px 7px;
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .header-actions {
    gap: 7px;
    margin-right: 5px;
  }
  .header-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 3px 6px;
    border-radius: 10px;
  }
  .header-btn svg {
    width: 19px;
    height: 19px;
  }
}



/* Désactive le scroll body si popup ouverte */
body.popup-open { overflow: hidden; }

.search-results {
  margin-top: 20px;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  background: #f8f9fb;
  border-radius: 13px;
  box-shadow: 0 1px 7px #13b88818;
  padding: 13px 13px 12px 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1.3px solid #e2eaf0;
}

.search-result-img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 4px #13b88814;
}

.search-result-infos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-weight: 700;
  color: #13B888;
  font-size: 1.08em;
  margin-bottom: 2px;
}

.search-result-desc {
  color: #345;
  font-size: 0.97em;
  opacity: .96;
}

.search-result-btn {
  display: block;
  width: 100%;
  background: #13B888;
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 13px 0;
  font-weight: 700;
  margin: 17px 0 0 0;
  font-size: 1.09em;
  cursor: pointer;
  box-shadow: 0 1px 8px #13b88821;
  transition: background .16s;
  text-align: center;
  text-decoration: none !important;
  letter-spacing: .2px;
}
.search-result-btn:hover {
  background: #0b7d5a;
}

.search-result-suggestion {
  background: #fff6ee;
  border: 1px solid #ffd5b6;
  border-radius: 12px;
  padding: 12px 13px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px #ff850015;
  color: #cb6700;
  font-size: 1em;
  text-align: left;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 9px;
  margin-top: 4px;
  border-radius: 13px;
  box-shadow: 0 1px 7px #13b88816;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 500px) {
  .footer-logo { width: 36px; height: 36px; }
}


/* === CONTAINER GENERAL === */
.auth-container {
  max-width: 410px;
  margin: 32px auto 30px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 36px #13b88818;
  padding: 30px 24px 18px 24px;
  transition: box-shadow .23s;
  font-family: '', Arial, sans-serif;
}
@media (max-width: 600px) {
  .auth-container {
    max-width: 99vw;
    margin: 16px auto;
    padding: 20px 5vw 12px 5vw;
    border-radius: 15px;
  }
}

/* === TOGGLE (boutons connexion/inscription) === */
.auth-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 0;
  border-radius: 32px;
  border: 2px solid #13B888;
  overflow: hidden;
  background: #f8f9fb;
}
.toggle-btn {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: transparent;
  color: #13B888;
  font-weight: 600;
  font-size: 1.15em;
  cursor: pointer;
  transition: background .15s, color .14s;
  outline: none;
  border-radius: 0;
}
.toggle-btn.active {
  background: #13B888;
  color: #fff;
}

/* === FORMS & ANIMATIONS === */
.auth-forms {
  position: relative;
  min-height: 380px;
  transition: min-height .15s;
}
.auth-form {
  position: absolute;
  width: 100%;
  left: 0; top: 0;
  background: transparent;
  transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .32s;
  opacity: 1;
  z-index: 2;
}
.auth-form[style*="display: none"] {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.auth-form.active {
  opacity: 1;
  z-index: 2;
  pointer-events: all;
}

/* === CHAMPS === */
.form-group {
  margin-bottom: 19px;
  display: flex;
  flex-direction: column;
  width: 100%;
}
label {
  font-size: 1.09em;
  color: #222;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: .01em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #13B888;
  border-radius: 14px;
  font-size: 1.08em;
  font-family: inherit;
  color: #222;
  background: #fff;
  outline: none;
  transition: border .16s, background .16s;
}
input:focus {
  border-color: #13B888;
  background: #e9f9f6;
}
input[type="date"] {
  color: #222;
}

/* PASSWORD WRAPPER (même largeur que le champ email) */
.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.show-password {
  background: none;
  border: none;
  outline: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%2313B888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/></svg>');
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: center;
  opacity: 0.7;
  transition: opacity .14s;
}
.show-password.active {
  opacity: 1;
  background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%23e91e63" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a21.41 21.41 0 0 1 5.1-6.34"/><path d="M1 1l22 22"/><path d="M9.88 9.88a3 3 0 0 1 4.24 4.24"/><path d="M12 5c7 0 11 7 11 7a21.41 21.41 0 0 1-5.1 6.34"/></svg>');
}

/* === BOUTONS === */
.auth-btn {
  width: 100%;
  background: #13B888;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.13em;
  font-weight: 600;
  padding: 14px 0;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px #e91e6314;
  cursor: pointer;
  transition: background .13s;
  letter-spacing: .03em;
}
.auth-btn:hover,
.auth-btn:focus {
  background: #42ecbc;
  color: #fff;
}

/* === INFOS ET "MOT DE PASSE OUBLIE" === */
.auth-info {
  margin-top: 18px;
  color: #222;
  font-size: 1.01em;
  line-height: 1.47;
}
.auth-info a {
  color: #13B888;
  text-decoration: underline;
  font-weight: 500;
  transition: color .12s;
}
.auth-info a:hover {
  color: #13B888;
}

.auth-info p {
  margin-bottom: 7px;
  margin-top: 0;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .auth-container {
    max-width: 99vw;
    padding: 12vw 3vw 8vw 3vw;
    border-radius: 13px;
  }
  .toggle-btn {
    font-size: 1em;
    padding: 12px 0;
  }
  .auth-btn {
    padding: 13px 0;
    font-size: 1em;
  }
  .form-group label {
    font-size: 1em;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="date"] {
    padding: 12px 10px;
    font-size: 1em;
    border-radius: 9px;
  }
}

/* === ERREURS INPUT === */
.input-error {
  border-color: #e91e63 !important;
  background: #fff4f7 !important;
}
.error-msg {
  color: #e91e63;
  font-size: 0.97em;
  margin-top: 4px;
  margin-bottom: 3px;
  min-height: 16px;
}

/* Hack pour forcer la taille de l'input date comme les autres */
input[type="date"] {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px !important;
  border-radius: 14px;
  font-size: 1.08em;
  border: 2px solid #13B888;
  background: #fff;
  color: #222;
  /* Ce qui suit va VRAIMENT l'aligner avec les autres : */
  height: 48px;   /* adapte à la hauteur de tes inputs (mets la même valeur que les autres) */
  line-height: 1.2;
}

/* Pour iOS/Safari : cache l'icône calendrier natif qui réduit la largeur du champ */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;    /* on le rend invisible */
  display: none;
  width: 0;
}

/* Fix pour Chrome Android (évite le zoom sur input date) */
@media (max-width: 600px) {
  input[type="date"] {
    font-size: 1em;
    height: 44px;
    padding: 11px 12px !important;
    border-radius: 10px;
  }
}

/* ---- POPUP GLOBALE PRO ---- */
.custom-popup {
  display: none;
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 410px;
  background: linear-gradient(135deg,#fff 80%,#e7faf6 100%);
  border-radius: 2rem;
  box-shadow: 0 6px 48px #13b88838, 0 1.5px 8px #17eebc11;
  padding: 44px 24px 34px 24px;
  text-align: center;
  animation: popupShowPro .24s cubic-bezier(.21,.9,.33,1.25);
  border: 1.5px solid #d1f5ed;
  overflow: visible;
}
@keyframes popupShowPro {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.94);}
  to { opacity: 1; transform: translate(-50%, -50%) scale(1);}
}
.custom-popup.active { display: block; }

.custom-popup-content {
  font-size: 1.13em;
  color: #222;
  margin-bottom: 12px;
  font-weight: 500;
  padding: 0 2px;
  line-height: 1.48;
}

.custom-popup .popup-close {
  position: absolute;
  right: 19px;
  top: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: .81;
  transition: opacity .13s, transform .15s;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.custom-popup .popup-close:hover { opacity: 1; background: #e6f8f5; transform: scale(1.13);}
.custom-popup .popup-close svg { display: block; }

@media (max-width: 600px) {
  .custom-popup { max-width: 98vw; padding: 28px 6px 18px 6px; border-radius: 1.2rem;}
  .custom-popup .popup-close { right: 10px; top: 10px; width: 32px; height: 32px; }
}

@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Aeonik Pro';
  src: url('../assets/AeonikPro-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

/* Si tu veux ajouter la variante capitalisée, tu peux la déclarer avec un style ou une weight différente. 
   Mais en général, commence par Regular, Medium, Black */

body {
  font-family: 'Aeonik Pro', sans-serif;
}
