/* =====================================================================
 *  Ekhos — styles communs (pied de page, menu mobile, pages de contenu)
 *  Chargé après les styles propres à chaque page.
 * =================================================================== */

/* ---------- Bouton menu mobile ---------- */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #eaeaea;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #111;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@media (max-width: 1100px) { .nav-burger:not(.burger-960) { display: inline-flex; } }
@media (max-width: 960px) { .nav-burger { display: inline-flex; } }

.menu-mobile {
  display: none;
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 900;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  padding: 10px;
  flex-direction: column;
}
.menu-mobile.open { display: flex; }
.menu-mobile a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.menu-mobile a:hover { background: #f5f5f3; }
.menu-mobile a.menu-mobile-cta {
  margin-top: 6px;
  background: #111;
  color: #fff;
  text-align: center;
  border-radius: 999px;
}

.header-relative { position: relative; }

/* ---------- Pied de page ---------- */
.site-footer .footer-inner { max-width: none; }

.site-footer .footer-top-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #8a8a8a;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 22px 0;
  border-top: 1px solid #222;
}
.footer-legal-row a {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.footer-legal-row a:hover { color: #ffffff; }

.site-footer .footer-bottom-row {
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-credit {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 12px;
}
.footer-credit strong { color: #ffffff; font-weight: 700; }
.footer-credit:hover strong { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .site-footer { padding: 48px 24px 32px 24px !important; }
  .site-footer .footer-top-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .footer-top-row > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer .footer-top-row { grid-template-columns: 1fr; }
  .site-footer .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .payment-icons-strip { flex-wrap: wrap; }
}

/* ---------- Tiroir panier sur téléphone ---------- */
@media (max-width: 600px) {
  .cart-drawer {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
}

/* ---------- Miniature (pochette) dans le panier ---------- */
.cart-item-thumb { overflow: hidden; }
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Pages de contenu (contact, informations légales, merci) ---------- */
.page-contenu {
  width: 100%;
  padding: 24px clamp(16px, 3vw, 48px) 90px;
  flex: 1;
}
.page-entete {
  max-width: 760px;
  margin: 24px auto 40px;
  text-align: center;
}
.page-entete h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-entete p { font-size: 16px; color: #666; }

.a-completer {
  background: #fff3c4;
  color: #5c4a00;
  padding: 0 4px;
  border-radius: 4px;
}

/* ==========================================================
   Logo Ekhos (signature) — en-tête et pied de page
   ========================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  font-size: 0;
  margin: -13px 0;
}
.brand-logo img {
  display: block;
  height: 64px;
  width: auto;
}
.footer-brand {
  line-height: 0;
  font-size: 0;
  margin-bottom: 14px;
}
.footer-brand img {
  display: block;
  height: 78px;
  width: auto;
}
@media (max-width: 768px) {
  .brand-logo img { height: 54px; }
  .footer-brand img { height: 66px; }
}

/* ==========================================================
   Newsletter dans le pied de page (-10 %)
   ========================================================== */
.footer-newsletter {
  margin-top: 26px;
  max-width: 400px;
}
.footer-newsletter-titre {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}
.footer-newsletter-texte {
  font-size: 13px;
  color: #9a9a9a;
  margin: 0 0 14px;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
}
.footer-newsletter-form input[type=email] {
  flex: 1 1 auto;
  min-width: 0;
  background: #111111;
  border: 1px solid #333333;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #ffffff;
}
.footer-newsletter-form input[type=email]::placeholder { color: #7a7a7a; }
.footer-newsletter-form input[type=email]:focus {
  outline: none;
  border-color: #ffffff;
}
.footer-newsletter-form button {
  flex: 0 0 auto;
  background: #ffffff;
  color: #111111;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.footer-newsletter-form button:hover { opacity: 0.85; }
.footer-newsletter-form button:disabled { opacity: 0.6; cursor: wait; }
.footer-newsletter-form button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.footer-newsletter-piege,
.footer-newsletter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.footer-newsletter-message {
  font-size: 13px;
  color: #cfcfcf;
  margin: 10px 0 0;
  line-height: 1.5;
}
.footer-newsletter-message:empty { display: none; }
.footer-newsletter-message.erreur { color: #ff8a80; }
.footer-newsletter-code {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px dashed #555555;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}
@media (max-width: 380px) {
  .footer-newsletter-form { flex-direction: column; }
}
