/**
 * AWH Core — Styles de base, tokens et bibliothèque de composants
 * BEM convention : .awh-[block]__[element]--[modifier]
 */

/* ================= RESET ET CONTENEURS ================= */
.awh-container {
  width: 100%;
  max-width: var(--awh-container-width, 1300px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--awh-container-padding, 15px);
  padding-right: var(--awh-container-padding, 15px);
  box-sizing: border-box;
}

/* ================= BARRE SUPÉRIEURE (TOP BAR) ================= */
.awh-topbar {
  background-color: var(--awh-color-secondary, #1A3038);
  color: #E2E8F0;
  font-size: 13px;
  line-height: var(--awh-topbar-height, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.awh-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.awh-topbar__left, .awh-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.awh-topbar__link {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s;
}
.awh-topbar__link:hover {
  color: var(--awh-color-accent, #E69A35);
}
.awh-topbar__badge {
  background: var(--awh-color-primary, #C35A27);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--awh-radius-sm, 6px);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

/* ================= EN-TÊTE (HEADER) ================= */
.awh-header {
  background-color: var(--awh-color-bg-surface, #FFFFFF);
  border-bottom: 1px solid var(--awh-color-border, #E5E7EB);
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
}
.awh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--awh-header-height, 90px);
}
.awh-header--sticky {
  position: sticky;
  top: 0;
}
.awh-header--sticky.is-scrolled {
  height: var(--awh-header-sticky-height, 70px);
  box-shadow: var(--awh-shadow-md);
}

.awh-logo-text {
  font-family: var(--awh-font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--awh-color-secondary, #1A3038);
  text-decoration: none;
}
.awh-logo-accent {
  color: var(--awh-color-primary, #C35A27);
  font-weight: 900;
  margin-left: 2px;
}
.awh-logo-img {
  max-width: 190px;
  height: auto;
  display: block;
}

/* ================= NAVIGATION & MÉGA-MENUS ================= */
.awh-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 28px;
}
.awh-menu__link {
  font-family: var(--awh-font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--awh-color-text-main, #23272A);
  text-decoration: none;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.awh-menu__link:hover {
  color: var(--awh-color-primary, #C35A27);
}
.awh-menu__item--has-mega {
  position: static;
}
.awh-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  box-shadow: var(--awh-shadow-lg);
  border-top: 2px solid var(--awh-color-primary, #C35A27);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  padding: 30px 0;
}
.awh-menu__item--has-mega:hover .awh-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.awh-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.awh-mega-menu__title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--awh-color-secondary, #1A3038);
  border-bottom: 2px solid var(--awh-color-primary-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.awh-mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.awh-mega-menu li a {
  display: block;
  padding: 6px 0;
  color: var(--awh-color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
}
.awh-mega-menu li a:hover {
  color: var(--awh-color-primary);
  transform: translateX(4px);
}

.awh-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.awh-header__action-wa {
  font-size: 20px;
  text-decoration: none;
}
.awh-header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= BOUTONS ================= */
.awh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--awh-font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--awh-radius-md, 10px);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.awh-btn--primary {
  background-color: var(--awh-color-primary, #C35A27);
  color: #FFFFFF;
}
.awh-btn--primary:hover {
  background-color: var(--awh-color-primary-hover, #A8471A);
  color: #FFFFFF;
  box-shadow: var(--awh-shadow-hover);
}
.awh-btn--secondary {
  background-color: var(--awh-color-secondary, #1A3038);
  color: #FFFFFF;
}
.awh-btn--secondary:hover {
  background-color: var(--awh-color-secondary-hover);
  color: #FFFFFF;
}
.awh-btn--outline {
  background-color: transparent;
  border-color: var(--awh-color-border);
  color: var(--awh-color-text-main);
}
.awh-btn--outline:hover {
  border-color: var(--awh-color-primary);
  color: var(--awh-color-primary);
}
.awh-btn--whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}
.awh-btn--whatsapp:hover {
  background-color: #1EBE5D;
}
.awh-btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}
.awh-btn--inverse {
  background-color: #FFFFFF;
  color: var(--awh-color-secondary);
}

/* ================= CARTES BEM ================= */
.awh-card {
  background: var(--awh-color-bg-surface, #FFFFFF);
  border-radius: var(--awh-radius-lg, 16px);
  border: 1px solid var(--awh-color-border, #E5E7EB);
  overflow: hidden;
  box-shadow: var(--awh-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.awh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--awh-shadow-md);
}
.awh-card__media {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.awh-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.awh-card:hover .awh-card__img {
  transform: scale(1.05);
}
.awh-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--awh-color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--awh-radius-sm);
  font-size: 12px;
  font-weight: 700;
}
.awh-card__body {
  padding: 20px;
}
.awh-card__subtitle {
  font-size: 12px;
  color: var(--awh-color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.awh-card__title {
  margin: 6px 0 12px 0;
  font-size: 18px;
  font-family: var(--awh-font-heading);
}
.awh-card__title a {
  color: var(--awh-color-text-main);
  text-decoration: none;
}

/* ================= BANDEAU D'APPEL À L'ACTION (CTA BANNER) ================= */
.awh-cta-banner {
  padding: 40px 0;
  border-radius: var(--awh-radius-xl, 24px);
  margin: 30px 0;
}
.awh-cta-banner--primary {
  background: linear-gradient(135deg, var(--awh-color-primary) 0%, #A8471A 100%);
  color: #FFFFFF;
}
.awh-cta-banner--secondary {
  background: var(--awh-color-secondary);
  color: #FFFFFF;
}
.awh-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.awh-cta-banner__title {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: inherit;
}
.awh-cta-banner__text {
  margin: 0;
  opacity: 0.9;
}

/* ================= ACCORDÉONS ================= */
.awh-accordion__item {
  border: 1px solid var(--awh-color-border);
  border-radius: var(--awh-radius-md);
  margin-bottom: 10px;
  background: #FFFFFF;
}
.awh-accordion__trigger {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--awh-color-text-main);
}
.awh-accordion__content {
  padding: 0 20px 16px 20px;
  color: var(--awh-color-text-muted);
  line-height: var(--awh-line-height-body);
}

/* ================= FORMULAIRE & CHAMPS ================= */
.awh-form {
  background: var(--awh-color-bg-surface);
  border: 1px solid var(--awh-color-border);
  border-radius: var(--awh-radius-xl);
  padding: 30px;
  box-shadow: var(--awh-shadow-md);
}
.awh-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.awh-form__field--full {
  grid-column: span 2;
}
.awh-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--awh-color-text-main);
}
.awh-input, .awh-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--awh-color-border);
  border-radius: var(--awh-radius-md);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.awh-input:focus, .awh-textarea:focus {
  outline: none;
  border-color: var(--awh-color-primary);
  box-shadow: 0 0 0 3px var(--awh-color-primary-subtle);
}
.awh-form__footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================= BOUTON WHATSAPP FLOTTANT ================= */
.awh-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.awh-whatsapp-float__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.3s ease;
}
.awh-whatsapp-float__link:hover {
  transform: scale(1.08);
}
.awh-whatsapp-float__pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: awh-wa-pulse 2s infinite ease-out;
}
@keyframes awh-wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.awh-whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--awh-color-secondary, #1A3038);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--awh-radius-md);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.awh-whatsapp-float:hover .awh-whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
}
.awh-whatsapp-float__tooltip strong {
  display: block;
}

/* ================= PIED DE PAGE (FOOTER) ================= */
.awh-footer {
  background-color: var(--awh-color-secondary, #1A3038);
  color: #E2E8F0;
  padding-top: 60px;
  margin-top: 60px;
}
.awh-footer__grid {
  display: grid;
  gap: 32px;
}
.awh-footer__grid--4cols {
  grid-template-columns: repeat(4, 1fr);
}
.awh-footer__title {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 16px;
  font-family: var(--awh-font-heading);
}
.awh-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.awh-footer__links li a {
  color: #94A3B8;
  text-decoration: none;
  padding: 4px 0;
  display: block;
  font-size: 14px;
  transition: color 0.2s;
}
.awh-footer__links li a:hover {
  color: #FFFFFF;
}
.awh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94A3B8;
}
.awh-footer__legal a {
  color: inherit;
  text-decoration: none;
}

/* ================= TIROIR DE NAVIGATION MOBILE (Étape 7) ================= */
.awh-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.awh-mobile-drawer.is-active {
  visibility: visible;
  opacity: 1;
}
.awh-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
.awh-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}
.awh-mobile-drawer.is-active .awh-mobile-drawer__panel {
  transform: translateX(0);
}
.awh-mobile-drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--awh-color-border, #E5E7EB);
  margin-bottom: 20px;
}
.awh-mobile-drawer__logo {
  font-weight: 800;
  font-family: var(--awh-font-heading);
  color: var(--awh-color-secondary, #1A3038);
  font-size: 18px;
}
.awh-mobile-drawer__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--awh-color-text-muted, #6B7280);
  padding: 4px 8px;
}
.awh-mobile-drawer__nav {
  flex-grow: 1;
  overflow-y: auto;
}
.awh-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.awh-mobile-menu-list li a {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 16px;
  color: var(--awh-color-text-main, #23272A);
  text-decoration: none;
  border-radius: var(--awh-radius-sm, 6px);
  transition: background-color 0.15s, color 0.15s;
}
.awh-mobile-menu-list li a:hover,
.awh-mobile-menu-list li.current-menu-item a {
  background-color: var(--awh-color-primary-subtle, #FDF3ED);
  color: var(--awh-color-primary, #C35A27);
}
.awh-mobile-drawer__footer {
  border-top: 1px solid var(--awh-color-border, #E5E7EB);
  padding-top: 16px;
  margin-top: 16px;
}
.awh-btn--block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.awh-btn--wa {
  background-color: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--awh-radius-md, 8px);
  font-weight: 700;
}

