/* ================================================
   FOOTER — STYLES COMMUNS À TOUTES LES PAGES
   ================================================ */

.footer {
  background: #dbdddd6e;        /* Couleur principale du site en foncé */
  margin-top: 60px;
  padding: 40px 30px 0;
}

/* Conteneur principal : newsletter à gauche, liens à droite */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

/* ── NEWSLETTER ── */
.footer-newsletter p {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.footer-newsletter form {
  display: flex;
  gap: 6px;
}

.footer-newsletter input {
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  width: 200px;
  outline: none;
  color: var(--text-main);
}

.footer-newsletter button {
  padding: 9px 16px;
  background: #3fbac2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-newsletter button:hover { background: #2fa1a8; }

/* ── LIENS ── */
.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* Chaque colonne empile ses liens verticalement */
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links a:hover { color: #0e0e0e; }

/* ── RÉSEAUX SOCIAUX ── */
.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  background: #3fbac2;      /* rond turquoise */
  border-radius: 50%;        /* forme ronde */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;              /* icône blanche */
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.socials a:hover {
  background: #2fa1a8;       /* turquoise foncé au survol */
  transform: translateY(-3px);
}

/* ── BANDE DU BAS ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 0;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-main);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .footer-container { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
  .footer-links { gap: 24px; justify-content: center; }
  .footer-links > div { align-items: center; }
  .socials { justify-content: center; }

  /* Newsletter : titre + champ + bouton sur UNE seule ligne */
  .footer-newsletter {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .footer-newsletter p {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
  }

  .footer-newsletter form {
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 6px;
  }

  .footer-newsletter input {
    width: 100px;
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
  }

  .footer-newsletter button {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
  }
}


/* ================================================
   MODALES DU FOOTER — STYLES COMMUNS
   ================================================ */

/* Fond sombre derrière la popup */
.footer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;             /* Caché par défaut */
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  overflow: hidden;          /* Pas de scroll sur le fond */
}

/* Boîte blanche de la popup */
.footer-modal-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;          /* Largeur standard */
  position: relative;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  animation: footerPopIn 0.22s ease;
  max-height: 85vh;          /* Hauteur max pour ne pas déborder */
  overflow-y: auto;          /* Scroll interne si besoin */
  scrollbar-width: none;     /* Firefox : cache la scrollbar */
  -ms-overflow-style: none;  /* IE/Edge : cache la scrollbar */
}

/* Chrome / Safari : cache la scrollbar */
.footer-modal-box::-webkit-scrollbar {
  display: none;
}

/* Popup centrée (donation) */
.footer-modal-box--center {
  text-align: center;
}

/* Popup large (mentions légales, confidentialité) */
.footer-modal-box--large {
  max-width: 620px;
}

/* Animation d'ouverture */
@keyframes footerPopIn {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Bouton × de fermeture */
.footer-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.footer-modal-close:hover { color: #333; }

/* Titre de la popup */
.footer-modal-box h2 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 6px;
  text-align: center;
}

/* Sous-titre / description */
.footer-modal-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 22px;
  line-height: 1.5;
  text-align: center;

}

/* ── CHAMPS DU FORMULAIRE CONTACT ── */
.footer-field {
  margin-bottom: 14px;
}

.footer-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.footer-field input,
.footer-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Karla', Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s;
  resize: vertical;
}

.footer-field input:focus,
.footer-field textarea:focus {
  outline: none;
  border-color: #3fbac2;
  box-shadow: 0 0 0 3px rgba(63,186,194,0.12);
}

/* ── BOUTON PRINCIPAL ── */
.footer-btn-primary {
  width: 100%;
  padding: 11px;
  background: #3fbac2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}

.footer-btn-primary:hover { background: #2fa1a8; }

/* ── POPUP DONATION ── */
.donation-heart {
  font-size: 48px;
  margin-bottom: 10px;
  animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.12); }
}

/* Liste des avantages du don */
.donation-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: inline-block;
}

.donation-perks li {
  font-size: 14px;
  color: #555;
  padding: 5px 0;
  line-height: 1.4;
}

/* Bouton Ko-fi */
.footer-btn-kofi {
  display: inline-block;
  background: #FFDD00; /* jaune Buy Me a Coffee */
  color: #333;         /* texte foncé pour contraster sur jaune */  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 14px;
}

.footer-btn-kofi:hover {
  background: #f0cf00;
  color: #333;
  transform: translateY(-2px);
}

/* Note sous le bouton Buy Me a Coffee */
.donation-note {
  font-size: 11px;
  color: #bbb;
  margin-top: 6px;
}

/* ── CONTENU LÉGAL (mentions + confidentialité + CGU) ── */
.footer-legal-content {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.footer-legal-content h3 {
  font-size: 15px;
  color: var(--text-main);
  margin: 20px 0 6px;
  font-weight: 700;
}

.footer-legal-content h3:first-child { margin-top: 6px; }

.footer-legal-content p {
  margin: 0 0 8px;
}

.footer-legal-content ul {
  margin: 5px 0 10px;
  padding-left: 20px; /* ← alinéa des puces */
}

.footer-legal-content li {
  margin-bottom: 6px;
}
