/**
 * GILMARFER — pied de page moderne
 */

.gf-footer {
  --gf-footer-bg: #06080c;
  --gf-footer-surface: rgba(255, 255, 255, 0.04);
  --gf-footer-border: rgba(255, 255, 255, 0.08);
  --gf-footer-text: rgba(255, 255, 255, 0.72);
  --gf-footer-muted: rgba(255, 255, 255, 0.45);
  --gf-footer-accent: #1b8ee9;
  --gf-footer-accent-soft: rgba(27, 142, 233, 0.15);
  position: relative;
  background: linear-gradient(180deg, #0a1018 0%, var(--gf-footer-bg) 40%, #040608 100%);
  color: var(--gf-footer-text);
  overflow: hidden;
  margin-top: 0;
  padding-top: 28px;
}

/* Formes décoratives */
.gf-footer-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gf-footer-shape {
  position: absolute;
  display: block;
}

.gf-footer-shape--circle {
  width: clamp(200px, 32vw, 480px);
  height: clamp(200px, 32vw, 480px);
  top: -12%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(27, 142, 233, 0.12), transparent 68%);
}

.gf-footer-shape--blob {
  width: clamp(180px, 28vw, 400px);
  height: clamp(180px, 28vw, 400px);
  bottom: 18%;
  left: -10%;
  border-radius: 58% 42% 37% 63% / 52% 38% 62% 48%;
  background: linear-gradient(135deg, rgba(27, 142, 233, 0.08), transparent 75%);
}

.gf-footer-shape--ring {
  width: clamp(100px, 14vw, 180px);
  height: clamp(100px, 14vw, 180px);
  bottom: 8%;
  right: 12%;
  border: 2px solid rgba(27, 142, 233, 0.12);
  border-radius: 50%;
  background: transparent;
}

/* Bandeau CTA */
.gf-footer-cta {
  position: relative;
  z-index: 1;
  padding: 0 0 44px;
  margin-top: 0;
}

.gf-footer-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(27, 142, 233, 0.18) 0%, rgba(27, 142, 233, 0.06) 50%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(27, 142, 233, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gf-footer-cta-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ecfff;
  margin-bottom: 10px;
}

.gf-footer-cta-text h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 10px;
}

.gf-footer-cta-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gf-footer-text);
  max-width: 520px;
}

.gf-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.gf-footer-btn {
  white-space: nowrap;
}

.gf-footer-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 50px;
  border: 1px solid var(--gf-footer-border);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.gf-footer-btn-ghost:hover {
  border-color: rgba(27, 142, 233, 0.45);
  background: var(--gf-footer-accent-soft);
  color: #fff;
}

/* Corps du footer */
.gf-footer-main {
  position: relative;
  z-index: 1;
  padding: 56px 0 64px;
}

.gf-footer-grid {
  align-items: flex-start;
}

.gf-footer-logo {
  display: inline-block;
  margin-bottom: 22px;
}

.gf-footer-logo img {
  max-width: 150px;
  height: auto;
  filter: brightness(1.05);
}

.gf-footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gf-footer-text);
  margin: 0 0 22px;
  max-width: 340px;
}

.gf-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.gf-footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: var(--gf-footer-surface);
  border: 1px solid var(--gf-footer-border);
}

.gf-footer-badges i {
  color: var(--gf-footer-accent);
  font-size: 11px;
}

.gf-footer-social {
  display: flex;
  gap: 12px;
}

.gf-footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gf-footer-border);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.gf-footer-social a:hover {
  background: var(--gf-footer-accent);
  border-color: var(--gf-footer-accent);
  transform: translateY(-2px);
}

.gf-footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gf-footer-accent);
  display: inline-block;
}

.gf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gf-footer-links li {
  margin-bottom: 12px;
}

.gf-footer-links a {
  color: var(--gf-footer-text);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.gf-footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.gf-footer-dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gf-footer-dept-list li {
  margin-bottom: 10px;
}

.gf-footer-dept-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--gf-footer-surface);
  border: 1px solid var(--gf-footer-border);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.gf-footer-dept-list a i {
  width: 20px;
  text-align: center;
  color: var(--gf-footer-accent);
  font-size: 14px;
}

.gf-footer-dept-list a:hover {
  border-color: rgba(27, 142, 233, 0.35);
  background: var(--gf-footer-accent-soft);
  transform: translateX(4px);
}

.gf-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.gf-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.gf-footer-contact i {
  width: 18px;
  margin-top: 3px;
  color: var(--gf-footer-accent);
  flex-shrink: 0;
}

.gf-footer-contact a {
  color: var(--gf-footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.gf-footer-contact a:hover {
  color: #fff;
}

.gf-footer-newsletter p {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
}

.gf-footer-newsletter-field {
  display: flex;
  align-items: stretch;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--gf-footer-border);
  background: rgba(0, 0, 0, 0.25);
}

.gf-footer-newsletter-field input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.gf-footer-newsletter-field input::placeholder {
  color: var(--gf-footer-muted);
}

.gf-footer-newsletter-field button {
  width: 48px;
  flex-shrink: 0;
  border: none;
  background: var(--gf-footer-accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s;
}

.gf-footer-newsletter-field button:hover {
  background: #1578c7;
}

/* Barre inférieure */
.gf-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gf-footer-border);
  padding: 22px 0;
  background: rgba(0, 0, 0, 0.2);
}

.gf-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.gf-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--gf-footer-muted);
}

.gf-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gf-footer-legal a {
  font-size: 13px;
  color: var(--gf-footer-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.gf-footer-legal a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  .gf-footer-cta {
    margin-top: 0;
    padding-bottom: 40px;
  }

  .gf-footer-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .gf-footer-cta-actions {
    width: 100%;
  }

  .gf-footer-btn,
  .gf-footer-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .gf-footer-main {
    padding-bottom: 48px;
  }

  .gf-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .gf-footer-legal {
    justify-content: center;
  }
}

/* Masqué sur accueil volets */
body.home-volets-only .gf-footer,
body.volet-accueil-only .gf-footer {
  display: none;
}

/* Bouton WhatsApp flottant */
.gf-whatsapp-btn {
  --wa-green: #25d366;
  --wa-green-dark: #1ebe57;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(37, 211, 102, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: gf-wa-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gf-whatsapp-btn:hover,
.gf-whatsapp-btn:focus-visible {
  background: var(--wa-green-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.gf-whatsapp-btn i {
  font-size: 1.65rem;
  line-height: 1;
}

.gf-whatsapp-btn__label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes gf-wa-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 575px) {
  .gf-whatsapp-btn {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
  }

  .gf-whatsapp-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
