/* ============================================================
   LE GROUPE ELMA BIO — Système de navigation inter-sites v2
   Top-bar XL sticky + section "Le Groupe" pour les homes
============================================================ */

/* ===== TOP-BAR DU GROUPE — VERSION XL ===== */
.group-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(to bottom, #1A1B1E 0%, #0F1115 100%);
  color: #E8E5DC;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.group-topbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #C9A227, transparent);
  opacity: 0.4;
}

.group-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: padding 0.3s ease;
}

/* Logo "Le Groupe" à gauche */
.group-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.group-topbar-brand:hover { opacity: 0.85; }
.group-topbar-brand .logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: width 0.3s, height 0.3s;
}
.group-topbar-brand .text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.group-topbar-brand .text .surtitre {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 2px;
}
.group-topbar-brand .text .nom {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  color: #F5EFE2;
}
.group-topbar-brand .text .nom strong {
  font-weight: 600;
  font-style: normal;
}

/* Liste des 4 marques */
.group-topbar-brands {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.group-topbar-brands::-webkit-scrollbar { display: none; }

.group-topbar-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(232, 229, 220, 0.7);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s;
  white-space: nowrap;
  position: relative;
}
.group-topbar-brand-link:hover {
  color: #F5EFE2;
  background: rgba(245, 239, 226, 0.06);
}

/* Mini logo SVG */
.group-topbar-brand-link .mini-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.25s;
  filter: grayscale(0.3) brightness(0.85);
}
.group-topbar-brand-link:hover .mini-logo {
  filter: none;
  transform: scale(1.05);
}

/* État ACTIF — site actuel */
.group-topbar-brand-link.is-current {
  color: #F5EFE2;
  cursor: default;
  pointer-events: none;
  font-weight: 600;
  background: rgba(201, 162, 39, 0.08);
}
.group-topbar-brand-link.is-current .mini-logo {
  filter: none;
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.4);
}
.group-topbar-brand-link.is-current::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #C9A227;
  border-radius: 1px;
}

.group-topbar-brand-link.brand-nettoyage:hover .name { color: #7BC4B8; }
.group-topbar-brand-link.brand-distribution:hover .name { color: #E5C76B; }
.group-topbar-brand-link.brand-guymargua:hover .name { color: #9BC382; }
.group-topbar-brand-link.brand-naturedouce:hover .name { color: #F2A88E; }

.group-topbar-brand-link.is-current.brand-nettoyage .name { color: #7BC4B8; }
.group-topbar-brand-link.is-current.brand-distribution .name { color: #E5C76B; }
.group-topbar-brand-link.is-current.brand-guymargua .name { color: #9BC382; }
.group-topbar-brand-link.is-current.brand-naturedouce .name { color: #F2A88E; }

.group-topbar.is-scrolled .group-topbar-inner { padding: 8px 24px; }
.group-topbar.is-scrolled .group-topbar-brand .logo { width: 28px; height: 28px; }
.group-topbar.is-scrolled .group-topbar-brand .text .surtitre { display: none; }
.group-topbar.is-scrolled .group-topbar-brand-link { padding: 6px 12px; }
.group-topbar.is-scrolled .group-topbar-brand-link .mini-logo { width: 20px; height: 20px; }



/* ============================================================
   SECTION "LE GROUPE ELMA BIO" — pour les pages d'accueil
============================================================ */
.group-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201, 162, 39, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(123, 196, 184, 0.05), transparent 50%),
    #FAF7F0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}
.group-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 61, 43, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}
.group-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.group-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.group-section-header .logo-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: block;
}
.group-section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 16px;
}
.group-section-header .eyebrow::before,
.group-section-header .eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.group-section-header h2 {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  font-style: italic;
  color: #1A1B1E;
  margin: 0 0 20px;
  line-height: 1.1;
}
.group-section-header h2 strong {
  font-style: normal;
  font-weight: 500;
  color: #C9A227;
}
.group-section-header p {
  font-size: 17px;
  color: #4A4A4A;
  line-height: 1.7;
}

.group-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.group-brand-card {
  background: #FFFFFF;
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 8px;
  padding: 36px 28px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.group-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31, 61, 43, 0.10);
  border-color: #C9A227;
}
.group-brand-card .logo-card {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s;
}
.group-brand-card:hover .logo-card {
  transform: scale(1.06) rotate(-3deg);
}
.group-brand-card h3 {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #1A1B1E;
  margin: 0 0 4px;
  line-height: 1.1;
}
.group-brand-card .domain {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(31, 61, 43, 0.5);
  margin-bottom: 16px;
  display: block;
}
.group-brand-card p {
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.group-brand-card .visit-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
  padding: 10px 16px;
  border-radius: 100px;
  align-self: flex-start;
}
.group-brand-card:hover .visit-cta { gap: 12px; }

.group-brand-card.brand-nettoyage .visit-cta { background: rgba(123, 196, 184, 0.12); color: #1B5E7E; }
.group-brand-card.brand-distribution .visit-cta { background: rgba(184, 146, 58, 0.12); color: #8B6914; }
.group-brand-card.brand-guymargua .visit-cta { background: rgba(155, 195, 130, 0.15); color: #4A6B3D; }
.group-brand-card.brand-naturedouce .visit-cta { background: rgba(242, 168, 142, 0.15); color: #C26847; }

.group-brand-card.is-current {
  cursor: default;
  pointer-events: none;
  background: linear-gradient(135deg, #FFF8E7, #FAF0D9);
  border-color: #C9A227;
}
.group-brand-card.is-current::after {
  content: '✓ Vous êtes ici';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #C9A227;
  padding: 5px 11px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}
.group-brand-card.is-current .visit-cta { display: none; }

@media (max-width: 1100px) {
  .group-section-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .group-section { padding: 60px 0; }
  .group-section-grid { grid-template-columns: 1fr; gap: 16px; }
  .group-brand-card { padding: 28px 24px 24px; }
}

/* ============================================================
   FOOTER GROUPE
============================================================ */
.group-footer {
  background: #0F1115;
  color: #E8E5DC;
  padding: 80px 0 32px;
  border-top: 4px solid #C9A227;
}
.group-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.group-footer-header { text-align: center; margin-bottom: 60px; }
.group-footer-header .logo-mark { width: 56px; height: 56px; margin: 0 auto 20px; display: block; }
.group-footer-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 16px;
}
.group-footer-header .eyebrow::before,
.group-footer-header .eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.group-footer-header h3 {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  font-style: italic;
  color: #E8E5DC;
  margin: 0;
  line-height: 1.1;
}
.group-footer-header h3 strong {
  font-style: normal;
  font-weight: 400;
  color: #E5C76B;
}

.group-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.group-footer-card {
  background: rgba(232, 229, 220, 0.03);
  border: 1px solid rgba(232, 229, 220, 0.08);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.group-footer-card:hover {
  background: rgba(232, 229, 220, 0.06);
  border-color: rgba(232, 229, 220, 0.18);
  transform: translateY(-3px);
}
.group-footer-card .logo-mini { width: 44px; height: 44px; margin-bottom: 18px; }
.group-footer-card h4 {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #E8E5DC;
  margin: 0 0 6px;
  line-height: 1.2;
}
.group-footer-card h4 .marque {
  display: block;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: rgba(232, 229, 220, 0.45);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.group-footer-card p {
  font-size: 13px;
  color: rgba(232, 229, 220, 0.65);
  line-height: 1.5;
  margin: 8px 0 18px;
  flex: 1;
}
.group-footer-card .visit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A227;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.group-footer-card:hover .visit { gap: 10px; }

.group-footer-card.is-current {
  cursor: default;
  pointer-events: none;
  background: rgba(201, 162, 39, 0.04);
  border-color: rgba(201, 162, 39, 0.2);
}
.group-footer-card.is-current::before {
  content: 'Vous êtes ici';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C9A227;
  background: rgba(201, 162, 39, 0.1);
  padding: 3px 8px;
  border-radius: 100px;
}
.group-footer-card.is-current .visit { display: none; }

.group-footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(232, 229, 220, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(232, 229, 220, 0.4);
}
.group-footer-bottom a {
  color: rgba(232, 229, 220, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.group-footer-bottom a:hover { color: #E8E5DC; }
.group-footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 968px) {
  .group-footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .group-footer { padding: 60px 0 24px; }
  .group-footer-grid { grid-template-columns: 1fr; }
  .group-footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   MOBILE — Top-bar groupe en carrousel horizontal swipable
============================================================ */
@media (max-width: 768px) {
  .group-topbar {
    padding: 0;
  }
  .group-topbar-inner {
    padding: 12px 0 12px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  
  /* Logo holding à gauche - reste fixe */
  .group-topbar-brand {
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 1px solid rgba(201, 162, 39, 0.25);
    margin-right: 0;
  }
  .group-topbar-brand .text .surtitre { display: none; }
  .group-topbar-brand .text .nom { font-size: 13px; }
  .group-topbar-brand .text .nom strong { font-size: 13px; }
  .group-topbar-brand .logo { width: 28px; height: 28px; }
  
  /* Liste des marques = carrousel scrollable */
  .group-topbar-brands {
    flex: 1;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    padding: 0 16px 0 4px;
    justify-content: flex-start;
    /* Indicateur visuel : dégradé à droite qui suggère qu'il y a plus à voir */
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
  }
  .group-topbar-brands::-webkit-scrollbar { display: none; }
  
  /* Chaque marque = carte autonome */
  .group-topbar-brands li {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  .group-topbar-brand-link {
    padding: 8px 14px 8px 10px;
    font-size: 12px;
    gap: 8px;
    background: rgba(245, 239, 226, 0.04);
    border: 1px solid rgba(245, 239, 226, 0.08);
    border-radius: 100px;
    min-height: 38px;
  }
  .group-topbar-brand-link .mini-logo { width: 22px; height: 22px; }
  
  /* Sur mobile, on AFFICHE le nom (au lieu de le cacher comme avant) */
  .group-topbar-brand-link .name {
    display: inline;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  
  /* Marque active : mise en évidence */
  .group-topbar-brand-link.is-current {
    background: rgba(201, 162, 39, 0.15);
    border-color: rgba(201, 162, 39, 0.4);
    font-weight: 600;
  }
  .group-topbar-brand-link.is-current::after {
    /* Garder l'underline doré aussi sur mobile */
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
  }
  
  /* La version "is-scrolled" est désactivée sur mobile (pas de compactage) */
  .group-topbar.is-scrolled .group-topbar-inner { padding: 12px 0 12px 16px; }
  .group-topbar.is-scrolled .group-topbar-brand .logo { width: 28px; height: 28px; }
  .group-topbar.is-scrolled .group-topbar-brand-link .mini-logo { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .group-topbar-brand .text .nom strong { font-size: 12px; }
  .group-topbar-brand .logo { width: 26px; height: 26px; }
  .group-topbar-brand-link { padding: 7px 12px 7px 8px; font-size: 11.5px; }
  .group-topbar-brand-link .mini-logo { width: 20px; height: 20px; }
}

/* === Accent "Bio" doré italique === */
.gtb-bio, .group-topbar-brand .nom .gtb-bio,
.gfb-bio, .group-section-header h2 .gfb-bio,
.group-footer-header h3 .gfb-bio {
  font-style: italic;
  font-weight: 500;
  color: #C9A227;
  letter-spacing: 0.02em;
}

/* ============================================================
   BANDEAU LEGAL - Copyright + APPZNET + Mentions
============================================================ */
.legal-bar {
  background: #FAF7F0;
  border-top: 1px solid rgba(31, 61, 43, 0.08);
  border-bottom: 1px solid rgba(31, 61, 43, 0.08);
  padding: 18px 0;
  font-family: 'Inter', -apple-system, sans-serif;
}
.legal-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(31, 61, 43, 0.6);
}
.legal-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.legal-bar-copyright { letter-spacing: 0.02em; }
.legal-bar-realized {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(31, 61, 43, 0.15);
  color: rgba(31, 61, 43, 0.55);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.legal-bar-realized a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.legal-bar-realized a:hover { opacity: 0.7; }
.legal-bar-realized .appznet-logo {
  height: 16px;
  width: auto;
  display: block;
}
.legal-bar-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.legal-bar-links a {
  color: rgba(31, 61, 43, 0.6);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.legal-bar-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 768px) {
  .legal-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-bar-left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-bar-realized { padding-left: 0; border-left: none; }
  .legal-bar-links { gap: 16px; flex-wrap: wrap; }
}

.legal-bar-realized a { color: #1F3D2B; }
.legal-bar-links a:hover { color: #142718; text-decoration-color: #B8923A; }

/* === Logo Nature Douce (PNG avec texte intégré) === */
/* Ce logo est différent des autres : il contient déjà le nom "Nature Douce" */
/* On adapte la taille et le positionnement */

/* Dans la section "Le Groupe" (cards) */
.group-brand-card.brand-naturedouce .logo-card {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 18px;
}

/* Dans le footer Groupe */
.group-footer-card.brand-naturedouce .logo-mini {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Dans la top-bar (mini-logo) */
.group-topbar-brand-link.brand-naturedouce .mini-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: white;
  padding: 2px;
  border-radius: 50%;
}

/* Sur mobile */
@media (max-width: 768px) {
  .group-topbar-brand-link.brand-naturedouce .mini-logo {
    width: 24px;
    height: 24px;
  }
}


/* === Logo Elma Bio Nettoyage (PNG officiel avec texte intégré) === */
/* Le logo officiel contient déjà "ELMA BIO NETTOYAGE" en serif */
/* On ajuste les tailles dans la nav inter-sites */

.group-brand-card.brand-nettoyage .logo-card {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 18px;
}

.group-footer-card.brand-nettoyage .logo-mini {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.group-topbar-brand-link.brand-nettoyage .mini-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: white;
  padding: 2px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .group-topbar-brand-link.brand-nettoyage .mini-logo {
    width: 24px;
    height: 24px;
  }
}
