/* ============================================================
   ADL Footer — Design Moderne
   Agence de Développement Local du Sénégal
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --adl-green-dark: #0a3d1f;
  --adl-green: #1a7a3e;
  --adl-green-light: #2eaa5c;
  --adl-gold: #d4a017;
  --adl-gold-light: #f0c94b;
  --adl-red: #c0392b;
  --adl-white: #ffffff;
  --adl-gray-50: #f8f9fa;
  --adl-gray-100: #f0f2f5;
  --adl-gray-200: #e4e7ec;
  --adl-gray-300: #cdd3dc;
  --adl-gray-400: #9aa5b4;
  --adl-gray-600: #5a6577;
  --adl-gray-700: #3d4654;
  --adl-gray-900: #1a1f2c;
  --adl-radius: 12px;
  --adl-radius-sm: 8px;
  --adl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --adl-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --adl-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --adl-shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

/* --- Footer Principal --- */
.adl-footer {
  position: relative;
  background: var(--adl-gray-900);
  color: var(--adl-gray-300);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

/* Bande tricolore Sénégal en haut du footer */
.adl-footer__tricolor {
  display: block;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--adl-green) 0%, var(--adl-green) 33.33%, var(--adl-gold) 33.33%, var(--adl-gold) 66.66%, var(--adl-red) 66.66%, var(--adl-red) 100%);
  margin: 0;
  padding: 0;
}

/* Effets lumineux subtils */
.adl-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 170, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.adl-footer::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.adl-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BANDEAU NEWSLETTER
   ============================================================ */
.adl-footer__newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  margin: 48px 0 0;
  background: linear-gradient(135deg, var(--adl-green-dark) 0%, var(--adl-green) 100%);
  border-radius: var(--adl-radius);
  position: relative;
  overflow: hidden;
}

.adl-footer__newsletter::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.adl-footer__newsletter::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 30%;
  width: 120px;
  height: 120px;
  background: rgba(212,160,23,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.adl-footer__newsletter-text {
  flex: 1;
  min-width: 0;
}

.adl-footer__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--adl-gold-light);
  margin-bottom: 8px;
}

.adl-footer__newsletter-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--adl-white);
  margin: 0 0 6px;
  line-height: 1.3;
}

.adl-footer__newsletter-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}

.adl-footer__newsletter-form {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
}

.adl-footer__newsletter-field {
  display: flex;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--adl-radius-sm);
  overflow: hidden;
  transition: border-color var(--adl-transition), background var(--adl-transition);
}

.adl-footer__newsletter-field:focus-within {
  border-color: var(--adl-gold);
  background: rgba(255,255,255,0.18);
}

.adl-footer__newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--adl-white);
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.adl-footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.adl-footer__newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border: none;
  background: var(--adl-gold);
  color: var(--adl-gray-900);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--adl-transition), transform 0.15s ease;
  white-space: nowrap;
}

.adl-footer__newsletter-btn:hover {
  background: var(--adl-gold-light);
  transform: scale(1.02);
}

.adl-footer__newsletter-btn:active {
  transform: scale(0.98);
}

.adl-footer__newsletter-btn .material-symbols-outlined {
  font-size: 18px;
}

.adl-footer__newsletter-msg {
  margin: 10px 0 0;
  font-size: 0.82rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.85);
}

.adl-footer__newsletter-msg.is-error {
  color: #ff8a80;
}

/* ============================================================
   GRILLE PRINCIPALE
   ============================================================ */
.adl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* --- Colonne Marque --- */
.adl-footer__brand {
  padding-right: 24px;
}

.adl-footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.adl-footer__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--adl-green) 0%, var(--adl-green-light) 100%);
  border-radius: var(--adl-radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--adl-white);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,122,62,0.3);
}

.adl-footer__wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--adl-white);
  line-height: 1.2;
}

.adl-footer__wordmark em {
  font-style: normal;
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--adl-gray-400);
  letter-spacing: 0.02em;
}

.adl-footer__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--adl-gray-400);
  margin: 0 0 24px;
}

.adl-footer__social {
  display: flex;
  gap: 10px;
}

.adl-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--adl-gray-400);
  text-decoration: none;
  transition: all var(--adl-transition);
}

.adl-footer__social-link:hover {
  background: var(--adl-green);
  border-color: var(--adl-green);
  color: var(--adl-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,122,62,0.3);
}

.adl-footer__social-link .material-symbols-outlined {
  font-size: 20px;
}

/* --- Colonnes de Navigation --- */
.adl-footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adl-gray-300);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--adl-green);
  display: inline-block;
}

.adl-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.adl-footer__links li {
  margin-bottom: 10px;
}

.adl-footer__links li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--adl-gray-400);
  text-decoration: none;
  transition: color var(--adl-transition), transform 0.15s ease;
  line-height: 1.4;
}

.adl-footer__links li a:hover {
  color: var(--adl-green-light);
  transform: translateX(4px);
}

.adl-footer__links li a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--adl-green);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--adl-transition);
  flex-shrink: 0;
}

.adl-footer__links li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Colonne Contact — avec icônes */
.adl-footer__contact .adl-footer__links li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.adl-footer__contact .adl-footer__links li .material-symbols-outlined {
  font-size: 18px;
  color: var(--adl-green-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.adl-footer__contact .adl-footer__links li a,
.adl-footer__contact .adl-footer__links li span {
  font-size: 0.85rem;
}

.adl-footer__contact .adl-footer__links li a:hover {
  color: var(--adl-gold-light);
}

/* ============================================================
   BARRE INFÉRIEURE
   ============================================================ */
.adl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  gap: 16px;
}

.adl-footer__bottom-motto {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--adl-gray-400);
  margin: 0;
  opacity: 0.7;
}

.adl-footer__bottom-copy {
  font-size: 0.78rem;
  color: var(--adl-gray-400);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .adl-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .adl-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .adl-footer__newsletter {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 28px;
    margin: 32px 0 0;
  }

  .adl-footer__newsletter-form {
    max-width: 100%;
    width: 100%;
  }

  .adl-footer__newsletter-field {
    flex-direction: column;
  }

  .adl-footer__newsletter-btn {
    justify-content: center;
    padding: 14px;
  }

  .adl-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 36px;
  }

  .adl-footer__brand {
    padding-right: 0;
  }

  .adl-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 20px 0 28px;
  }
}

@media (max-width: 480px) {
  .adl-footer__inner {
    padding: 0 16px;
  }

  .adl-footer__newsletter {
    padding: 24px 20px;
    margin: 20px 0 0;
    border-radius: var(--adl-radius-sm);
  }

  .adl-footer__newsletter-title {
    font-size: 1.15rem;
  }

  .adl-footer__grid {
    gap: 28px;
    padding: 32px 0 28px;
  }
}

/* ============================================================
   ANIMATIONS (entrées)
   ============================================================ */
@keyframes adl-fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adl-footer.is-visible .adl-footer__newsletter {
  animation: adl-fadeUp 0.6s ease both 0.1s;
}

.adl-footer.is-visible .adl-footer__brand {
  animation: adl-fadeUp 0.6s ease both 0.2s;
}

.adl-footer.is-visible .adl-footer__col:nth-child(2) {
  animation: adl-fadeUp 0.6s ease both 0.3s;
}

.adl-footer.is-visible .adl-footer__col:nth-child(3) {
  animation: adl-fadeUp 0.6s ease both 0.4s;
}

.adl-footer.is-visible .adl-footer__col:nth-child(4) {
  animation: adl-fadeUp 0.6s ease both 0.5s;
}

.adl-footer.is-visible .adl-footer__bottom {
  animation: adl-fadeUp 0.6s ease both 0.6s;
}
