/* ============================================================
   NAVBAR & FOOTER — Glassmorphism + Footer Premium
   Prefix: gn3- (navbar) | gf3- (footer)
   Toutes les couleurs via var(--...) — aucune couleur codée en dur
   ============================================================ */

/* ============================================================
   IMPORTS TYPOGRAPHIE
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@500;600&display=swap");

/* ============================================================
   NAVBAR GLASSMORPHISM — .gn3-nav
   ============================================================ */

.gn3-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  font-family: "DM Sans", sans-serif;

  /* Glassmorphism de base */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* État scrollé — verre plus opaque */
.gn3-nav.gn3-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Bandeau accent en bas de la navbar */
.gn3-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color, #06b6d4) 30%,
    var(--primary-color, #2563eb) 70%,
    transparent
  );
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.gn3-nav.gn3-scrolled::after {
  opacity: 1;
}

/* ── Wrapper interne ── */
.gn3-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ── Brand ── */
.gn3-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.gn3-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.gn3-brand-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
  border-radius: inherit;
}

.gn3-brand-icon i {
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.gn3-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.gn3-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gn3-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  letter-spacing: -0.02em;
}

.gn3-brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-color, #06b6d4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Navigation desktop ── */
.gn3-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gn3-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark, #1e293b);
  transition: all 0.25s ease;
  position: relative;
}

.gn3-link i {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gn3-link:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--primary-color, #2563eb);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gn3-link:hover i {
  opacity: 1;
}

.gn3-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.gn3-link.active i {
  opacity: 1;
}

/* ── Spacer ── */
.gn3-spacer {
  flex: 1;
}

/* ── Horaires ── */
.gn3-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.gn3-hours i {
  font-size: 0.85rem;
  color: var(--accent-color, #06b6d4);
  flex-shrink: 0;
}

.gn3-hours-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gn3-hours-main {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  white-space: nowrap;
}

.gn3-hours-sub {
  font-size: 0.65rem;
  color: var(--text-light, #64748b);
  white-space: nowrap;
}

/* ── Boutons ── */
.gn3-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gn3-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.gn3-btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.gn3-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
  color: #fff;
}

.gn3-btn-ghost {
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-dark, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.gn3-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--text-dark, #1e293b);
}

/* ── Toggle mobile ── */
.gn3-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}

.gn3-toggle:hover {
  background: rgba(255, 255, 255, 0.55);
}

.gn3-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark, #1e293b);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.gn3-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.gn3-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.gn3-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile ── */
.gn3-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.gn3-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.gn3-mobile-inner {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gn3-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark, #1e293b);
  transition: all 0.2s;
}

.gn3-mobile-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--primary-color, #2563eb);
}

.gn3-mobile-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-color, #2563eb);
}

.gn3-mobile-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  color: #fff;
}

.gn3-mobile-link.active i {
  color: #fff;
}

.gn3-mobile-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0.25rem 0;
}

.gn3-mobile-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.15);
  font-size: 0.8rem;
  color: var(--text-light, #64748b);
}

.gn3-mobile-hours i {
  color: var(--accent-color, #06b6d4);
}

.gn3-mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.gn3-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.gn3-mobile-btn.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.gn3-mobile-btn.ghost {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark, #1e293b);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gn3-hours {
    display: none;
  }
}

@media (max-width: 768px) {
  .gn3-nav-desktop,
  .gn3-actions {
    display: none;
  }
  .gn3-toggle {
    display: flex;
  }
  .gn3-spacer {
    flex: 1;
  }
}

/* ============================================================
   THÈME INVERSÉ (dark) pour la navbar
   ============================================================ */
body.dark-theme .gn3-nav,
[data-theme="dark"] .gn3-nav {
  background: rgba(15, 23, 42, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .gn3-nav.gn3-scrolled,
[data-theme="dark"] .gn3-nav.gn3-scrolled {
  background: rgba(15, 23, 42, 0.88);
}

body.dark-theme .gn3-brand-name,
[data-theme="dark"] .gn3-brand-name {
  color: #f1f5f9;
}

body.dark-theme .gn3-link,
[data-theme="dark"] .gn3-link {
  color: #cbd5e1;
}

body.dark-theme .gn3-link:hover,
[data-theme="dark"] .gn3-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dark-theme .gn3-hours,
[data-theme="dark"] .gn3-hours {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .gn3-hours-main,
[data-theme="dark"] .gn3-hours-main {
  color: #f1f5f9;
}

body.dark-theme .gn3-btn-ghost,
[data-theme="dark"] .gn3-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

body.dark-theme .gn3-toggle,
[data-theme="dark"] .gn3-toggle {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .gn3-toggle span,
[data-theme="dark"] .gn3-toggle span {
  background: #f1f5f9;
}

body.dark-theme .gn3-mobile-inner,
[data-theme="dark"] .gn3-mobile-inner {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .gn3-mobile-link,
[data-theme="dark"] .gn3-mobile-link {
  color: #cbd5e1;
}

body.dark-theme .gn3-mobile-btn.ghost,
[data-theme="dark"] .gn3-mobile-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* ============================================================
   FOOTER — .gf3-footer
   ============================================================ */

.gf3-footer {
  font-family: "DM Sans", sans-serif;
  background-color: #0a0f1e;
  color: #94a3b8;
  position: relative;
  overflow: hidden;
}

/* Grain texture subtil */
.gf3-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Lueur accent en haut */
.gf3-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(6, 182, 212, 0.06) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Bandeau accent top */
.gf3-accent-top {
  position: relative;
  z-index: 1;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-color, #2563eb) 20%,
    var(--accent-color, #06b6d4) 50%,
    var(--primary-color, #2563eb) 80%,
    transparent 100%
  );
}

/* ── Conteneur principal ── */
.gf3-body {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* ── Colonne Brand ── */
.gf3-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gf3-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.gf3-brand-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: inherit;
}

.gf3-brand-icon i {
  font-size: 1.25rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.gf3-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.gf3-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  display: block;
  letter-spacing: -0.02em;
}

.gf3-brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-color, #06b6d4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.gf3-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Réseaux sociaux */
.gf3-socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gf3-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.gf3-social:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ── Titres de colonne ── */
.gf3-col-title {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.gf3-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color, #2563eb),
    var(--accent-color, #06b6d4)
  );
}

/* ── Contact ── */
.gf3-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gf3-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.gf3-contact-item i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent-color, #06b6d4);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Horaires ── */
.gf3-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gf3-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  transition: background 0.2s;
}

.gf3-hours-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gf3-hours-day {
  color: #cbd5e1;
  font-weight: 500;
}

.gf3-hours-time {
  color: var(--accent-color, #06b6d4);
  font-weight: 600;
  font-size: 0.8rem;
}

.gf3-hours-item.closed .gf3-hours-time {
  color: #475569;
}

.gf3-hours-item.closed .gf3-hours-day {
  color: #475569;
}

/* ── Navigation ── */
.gf3-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gf3-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.gf3-links li a i {
  font-size: 0.65rem;
  color: var(--accent-color, #06b6d4);
  transition: transform 0.2s;
}

.gf3-links li a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  padding-left: 0.9rem;
}

.gf3-links li a:hover i {
  transform: translateX(3px);
}

/* ── Divider ── */
.gf3-divider {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gf3-divider-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent
  );
}

/* ── Bas du footer ── */
.gf3-bottom {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gf3-copy {
  font-size: 0.8rem;
  color: #334155;
  margin: 0;
}

.gf3-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gf3-legal a {
  font-size: 0.8rem;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}

.gf3-legal a:hover {
  color: var(--accent-color, #06b6d4);
}

.gf3-legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #334155;
}

/* ── Responsive footer ── */
@media (max-width: 1024px) {
  .gf3-body {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .gf3-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
  }

  .gf3-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .gf3-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
