/* ==========================================================================
   STYLE MAISON GOURMANDISE POUR COOKIESCOOL
   Inspiré de l'élégance de la haute pâtisserie tunisienne (gourmandise.com.tn)
   ========================================================================== */

:root {
  --gm-gold: #C5A059;
  --gm-gold-dark: #A9843F;
  --gm-gold-light: #F4EBD9;
  --gm-noir: #1B1918;
  --gm-charcoal: #2B2625;
  --gm-creme: #FAF7F2;
  --gm-creme-alt: #F3ECE1;
  --gm-border: #E8E2D9;
  --gm-text-body: #4A423E;
  --gm-text-muted: #827873;
  --gm-font-serif: "Playfair Display", "Georgia", "Baskerville", serif;
  --gm-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gm-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.gourmandise-theme-wrapper {
  font-family: var(--gm-font-sans);
  color: var(--gm-text-body);
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* ==========================================================================
   1. TOPBAR LIVRAISON & SERVICE
   ========================================================================== */
.gm-topbar {
  background-color: var(--gm-noir);
  color: #E0D9D5;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.gm-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gm-topbar-left, .gm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gm-dot {
  color: var(--gm-gold);
}

.gm-topbar a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.gm-topbar a:hover {
  color: var(--gm-gold);
}

/* ==========================================================================
   2. HEADER & MEGA-NAVIGATION
   ========================================================================== */
.gm-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--gm-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.gm-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.gm-search-form {
  position: relative;
  max-width: 280px;
}

.gm-search-form input {
  width: 100%;
  padding: 10px 38px 10px 16px;
  border: 1px solid var(--gm-border);
  border-radius: 50px;
  font-size: 0.85rem;
  background: var(--gm-creme);
  outline: none;
  transition: var(--gm-transition);
}

.gm-search-form input:focus {
  border-color: var(--gm-gold);
  background: #FFFFFF;
}

.gm-search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Logo central prestige */
.gm-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}

.gm-brand-logo {
  max-width: 80px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 6px;
}

.gm-brand-title {
  font-family: var(--gm-font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gm-charcoal);
  letter-spacing: 3px;
  line-height: 1.1;
}

.gm-brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gm-gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Panier et actions */
.gm-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.gm-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gm-creme);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--gm-border);
  text-decoration: none !important;
  color: var(--gm-charcoal);
  transition: var(--gm-transition);
}

.gm-cart-btn:hover {
  border-color: var(--gm-gold);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.gm-cart-icon {
  font-size: 1.25rem;
}

.gm-cart-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.gm-cart-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gm-text-muted);
}

.gm-cart-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gm-charcoal);
}

.gm-cart-badge {
  background: var(--gm-gold);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Barre de menu horizontale */
.gm-nav {
  background: #FFFFFF;
  border-top: 1px solid var(--gm-border);
  padding: 12px 20px;
}

.gm-nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.gm-nav-menu a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gm-charcoal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.gm-nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gm-gold);
  transition: width 0.3s ease;
}

.gm-nav-menu a:hover,
.gm-nav-menu a.active {
  color: var(--gm-gold-dark);
}

.gm-nav-menu a:hover::after,
.gm-nav-menu a.active::after {
  width: 100%;
}

/* ==========================================================================
   3. HERO SLIDER PRESTIGE
   ========================================================================== */
.gm-hero-slider {
  position: relative;
  min-height: 600px;
  background: var(--gm-noir);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
  opacity: 0.75;
}

.gm-hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(27, 25, 24, 0.4) 0%, rgba(27, 25, 24, 0.85) 100%);
  z-index: 2;
}

.gm-hero-editorial {
  position: relative;
  z-index: 3;
  max-width: 860px;
  text-align: center;
  padding: 70px 24px;
  color: #FFFFFF;
}

.gm-hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gm-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.gm-hero-h1 {
  font-family: var(--gm-font-serif);
  font-size: 3.8rem;
  line-height: 1.15;
  color: #FFFFFF !important;
  margin-bottom: 22px;
  font-weight: 700;
}

.gm-hero-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #F1ECE6;
  max-width: 720px;
  margin: 0 auto 40px auto;
  font-weight: 300;
}

.gm-hero-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.gm-btn-gold {
  background: var(--gm-gold);
  color: #FFFFFF !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 4px;
  text-decoration: none !important;
  display: inline-block;
  transition: var(--gm-transition);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.gm-btn-gold:hover {
  background: var(--gm-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.5);
}

.gm-btn-white {
  background: transparent;
  color: #FFFFFF !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 4px;
  border: 1.5px solid #FFFFFF;
  text-decoration: none !important;
  display: inline-block;
  transition: var(--gm-transition);
}

.gm-btn-white:hover {
  background: #FFFFFF;
  color: var(--gm-charcoal) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   4. BANDEAU DES 4 ENGAGEMENTS SIGNATURES
   ========================================================================== */
.gm-commitments-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--gm-border);
  padding: 30px 20px;
}

.gm-commitments-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.gm-commitment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 15px;
  border-right: 1px solid var(--gm-border);
}

.gm-commitment-card:last-child {
  border-right: none;
}

.gm-c-icon {
  font-size: 2.2rem;
}

.gm-c-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gm-charcoal);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.gm-c-text p {
  font-size: 0.82rem;
  color: var(--gm-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   5. SECTIONS GLOBALES & HEADINGS
   ========================================================================== */
.gm-section {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 24px;
}

.gm-bg-creme {
  background: var(--gm-creme);
  max-width: 100% !important;
  padding: 80px 24px !important;
}

.gm-heading {
  text-align: center;
  margin-bottom: 50px;
}

.gm-sub {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gm-gold-dark);
  margin-bottom: 8px;
}

.gm-title {
  font-family: var(--gm-font-serif);
  font-size: 2.6rem;
  color: var(--gm-charcoal) !important;
  margin-bottom: 14px;
  font-weight: 700;
}

.gm-lead {
  font-size: 1.1rem;
  color: var(--gm-text-muted);
  max-width: 650px;
  margin: 0 auto 16px auto;
}

.gm-divider {
  width: 50px;
  height: 2px;
  background: var(--gm-gold);
  margin: 0 auto;
}

/* ==========================================================================
   6. COLLECTIONS D'UNIVERS (STYLE BANNIÈRES GOURMANDISE)
   ========================================================================== */
.gm-collections-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}

.gm-col-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  background: var(--gm-noir);
}

.gm-col-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.9;
}

.gm-card-large {
  min-height: 480px;
}

.gm-collections-grid-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gm-collections-grid-sub .gm-col-card {
  min-height: 230px;
}

.gm-col-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 25, 24, 0.1) 0%, rgba(27, 25, 24, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #FFFFFF;
}

.gm-col-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--gm-gold);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.gm-col-overlay h3 {
  font-family: var(--gm-font-serif);
  font-size: 1.6rem;
  color: #FFFFFF !important;
  margin-bottom: 8px;
}

.gm-col-overlay p {
  font-size: 0.9rem;
  color: #E6E1DC;
  margin-bottom: 16px;
  line-height: 1.4;
}

.gm-col-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gm-gold);
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.gm-col-card:hover img {
  transform: scale(1.08);
}

.gm-col-card:hover .gm-col-cta {
  transform: translateX(6px);
  color: #FFFFFF;
}

/* ==========================================================================
   7. PRODUITS SIGNATURES WOOCOMMERCE
   ========================================================================== */
.gm-products-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.gm-product-card {
  background: #FFFFFF;
  border: 1px solid var(--gm-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--gm-transition);
}

.gm-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--gm-gold);
}

.gm-p-media {
  position: relative;
  width: 100%;
  height: 270px;
  background: #FDFBF8;
  overflow: hidden;
}

.gm-p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gm-product-card:hover .gm-p-media img {
  transform: scale(1.06);
}

.gm-p-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gm-charcoal);
  color: var(--gm-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--gm-gold);
}

.gm-p-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gm-p-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gm-gold-dark);
  margin-bottom: 6px;
}

.gm-p-name {
  font-family: var(--gm-font-serif);
  font-size: 1.3rem;
  color: var(--gm-charcoal) !important;
  margin-bottom: 12px;
  line-height: 1.3;
}

.gm-p-desc {
  font-size: 0.88rem;
  color: var(--gm-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.gm-p-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--gm-border);
}

.gm-p-price {
  font-family: var(--gm-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gm-charcoal);
}

.gm-p-button {
  background: #FFFFFF !important;
  color: var(--gm-charcoal) !important;
  border: 1.5px solid var(--gm-charcoal) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 10px 18px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  transition: var(--gm-transition) !important;
  cursor: pointer;
}

.gm-p-button:hover {
  background: var(--gm-charcoal) !important;
  color: var(--gm-gold) !important;
  border-color: var(--gm-charcoal) !important;
}

/* ==========================================================================
   8. ATELIER & SAVOIR-FAIRE (STORYTELLING)
   ========================================================================== */
.gm-atelier-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.gm-atelier-col-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.gm-atelier-col-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.gm-atelier-stamp {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: var(--gm-noir);
  color: var(--gm-gold);
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid var(--gm-gold);
  text-align: center;
  line-height: 1.2;
}

.gm-atelier-stamp span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 2px;
}

.gm-atelier-stamp strong {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.gm-atelier-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.gm-atelier-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gm-border);
}

.gm-atelier-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gm-gold);
}

/* ==========================================================================
   9. BOUTIQUES & POINTS DE RETRAIT EN TUNISIE
   ========================================================================== */
.gm-shops-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.gm-shop-box {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 6px;
  border: 1px solid var(--gm-border);
  transition: var(--gm-transition);
}

.gm-shop-box:hover {
  transform: translateY(-4px);
  border-color: var(--gm-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.gm-shop-box h4 {
  font-family: var(--gm-font-serif);
  font-size: 1.35rem;
  color: var(--gm-charcoal);
  margin-bottom: 12px;
}

.gm-shop-addr {
  font-size: 0.92rem;
  color: var(--gm-text-body);
  margin-bottom: 6px;
}

.gm-shop-hours {
  font-size: 0.85rem;
  color: var(--gm-text-muted);
  margin-bottom: 16px;
}

.gm-shop-tag {
  display: inline-block;
  background: var(--gm-creme-alt);
  color: var(--gm-charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ==========================================================================
   10. FOOTER LUXE (MAISON GOURMANDISE STYLE)
   ========================================================================== */
.gm-footer {
  background: var(--gm-noir);
  color: #D6CEC8;
  padding-top: 60px;
}

.gm-footer-newsletter {
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-align: center;
  padding: 0 20px;
}

.gm-footer-newsletter h3 {
  font-family: var(--gm-font-serif);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.gm-footer-newsletter p {
  font-size: 0.95rem;
  color: #AFA6A0;
  margin-bottom: 25px;
}

.gm-footer-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.gm-footer-form input {
  flex-grow: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
}

.gm-footer-form button {
  background: var(--gm-gold);
  color: #FFFFFF;
  border: none;
  padding: 14px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.gm-footer-form button:hover {
  background: var(--gm-gold-dark);
}

.gm-footer-columns {
  max-width: 1320px;
  margin: 0 auto;
  padding: 50px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.gm-f-logo {
  max-width: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.gm-f-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.gm-f-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gm-gold);
}

.gm-f-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-f-col li {
  margin-bottom: 10px;
}

.gm-f-col a {
  color: #AFA6A0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.gm-f-col a:hover {
  color: var(--gm-gold);
}

.gm-f-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.gm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #827873;
}

/* ==========================================================================
   11. RESPONSIVE MOBILE & TABLETTE
   ========================================================================== */
@media (max-width: 1024px) {
  .gm-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gm-search-form {
    margin: 0 auto;
  }
  .gm-header-actions {
    justify-content: center;
  }
  .gm-collections-layout {
    grid-template-columns: 1fr;
  }
  .gm-atelier-container {
    grid-template-columns: 1fr;
  }
  .gm-footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gm-hero-h1 {
    font-size: 2.5rem;
  }
  .gm-hero-desc {
    font-size: 1.05rem;
  }
  .gm-title {
    font-size: 2rem;
  }
  .gm-commitments-grid {
    grid-template-columns: 1fr;
  }
  .gm-commitment-card {
    border-right: none;
    border-bottom: 1px solid var(--gm-border);
    padding-bottom: 15px;
  }
  .gm-collections-grid-sub {
    grid-template-columns: 1fr;
  }
  .gm-footer-columns {
    grid-template-columns: 1fr;
  }
  .gm-footer-form {
    flex-direction: column;
  }
}
