/* Header refondu : même menu qu'avant, habillage de la maquette (fond crème, Inter, bouton violet arrondi) */
header { background: #faf8f4; border-bottom: 0; padding: 1.25rem 20px; font-family: 'Inter', system-ui, sans-serif; }
header.visible { box-shadow: 0 2px 14px rgba(23, 20, 43, 0.08); }
header nav a, header .submenu-toggle { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 500; color: #17142b; }
header nav a:hover, header .submenu-toggle:hover { color: #5e3fde; }
header .submenu { background: #fff; border: 1px solid #e3dccd; border-radius: 16px; box-shadow: 0 14px 34px rgba(23, 20, 43, 0.12); }
header .submenu a { font-size: 15px; border-radius: 10px; }
header .submenu a:hover { background: #f3efe6; color: #5e3fde; }
header .btn.btn-outline.espace-client-header,
header .btn.btn-outline.nav-espace-client {
  background: #5e3fde; color: #fff; border: 0; border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 600; padding: 12px 22px;
}
header .btn.btn-outline.espace-client-header:hover,
header .btn.btn-outline.nav-espace-client:hover { background: #4a2fc4; color: #fff; }
header .btn.btn-outline.nav-cart { border-radius: 999px; font-family: 'Inter', system-ui, sans-serif; }
@media (max-width: 900px) { header #main-nav { background: #faf8f4; } }

/* Footer refondu : fond crème, Inter, titres Bricolage */
footer { background: #faf8f4; color: #17142b; padding: 72px 20px 48px; border-top: 1px solid #e3dccd; font-family: 'Inter', system-ui, sans-serif; }
footer h4 { color: #17142b; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
footer a { color: #5b5648; font-size: 0.95rem; }
footer a:hover { color: #5e3fde; text-decoration: none; }
.footer-about p { color: #5b5648; font-size: 0.95rem; max-width: 40ch; }
.footer-bottom { background: #faf8f4; border-top: 0; color: #5b5648; padding: 0 20px 28px; font-family: 'Inter', system-ui, sans-serif; }

/* Habillage commun à tout le site (pages CMS, blog, boutique, panier…) */
body { font-family: 'Inter', system-ui, sans-serif; background: #faf8f4; color: #2a2740; }
h1, h2, h3, h4, h5, h6 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: #17142b; letter-spacing: -.01em; line-height: 1.15; }
.section--gray, .cta-section { background: #f3efe6; }
.page-hero { background: #17142b; }
.page-hero h1 { max-width: 720px; }
.btn { border-radius: 999px; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; padding: 0.75em 1.6em; }
.btn-primary { background: #5e3fde; }
.btn:hover { opacity: 1; }
.btn-primary:hover { background: #4a2fc4; }
.btn-outline { border-color: #5e3fde; }
.cms-card, .pricing-card { border-color: #e3dccd; border-radius: 20px; }

/* Header en dessous de 1180 px : menu hamburger propre (liste verticale, sous-menus en accordéon, textes longs à la ligne) */
@media (max-width: 1180px) {
  header { padding: 0.85rem 16px; }
  .header-inner { gap: 0.75rem; }
  header nav#main-nav { display: none; }
  header nav#main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #faf8f4; padding: 4px 16px 20px;
    border-bottom: 1px solid #e3dccd; box-shadow: 0 14px 24px rgba(23, 20, 43, 0.1);
    max-height: calc(100vh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  header nav#main-nav.open ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  header nav#main-nav.open li { border-bottom: 1px solid #e3dccd; }
  header nav#main-nav.open li > a,
  header nav#main-nav.open .submenu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; font-size: 17px; text-align: left; }
  header .has-submenu { position: static; }
  header .has-submenu::after { display: none !important; }
  header .submenu {
    position: static; transform: none; min-width: 0; width: 100%;
    margin: 0 0 10px; padding: 0 0 0 14px; border: 0; border-left: 2px solid #ffd84d; border-radius: 0;
    box-shadow: none; background: none;
  }
  header .has-submenu:hover .submenu, header .has-submenu:focus-within .submenu { display: none; }
  header .has-submenu .submenu.open { display: flex; }
  header nav#main-nav.open .submenu li { border-bottom: 0; }
  header .submenu a { white-space: normal; padding: 9px 0; font-size: 15px; line-height: 1.35; border-radius: 0; background: none; }
  header .submenu a:hover { background: none; }
  header .submenu-toggle svg { flex-shrink: 0; margin-left: 12px; }
  header .menu-toggle { display: block; }
  header .header-actions { gap: 0.6rem; }
  header .header-actions .cart-btn { display: none; }
  header nav#main-nav.open .nav-cart { display: flex; justify-content: center; margin-top: 14px; border-color: #e3dccd; color: #17142b; background: #fff; }
  header nav#main-nav.open .nav-espace-client { display: none !important; }
}
@media (max-width: 420px) {
  header .espace-client-header { display: none; }
  header nav#main-nav.open .nav-espace-client { display: inline-flex !important; justify-content: center; margin-top: 10px; }
}
