/* ==========================================================
   WeddingPart – footer.css
   Footer 4 colonnes · Navigation · Legal · Ornements
   ========================================================== */

.site-footer {
  background: var(--wp-ink);
  color: rgba(255,255,255,.75); /* TODO: tokenize — surface avec opacité sur fond ink */
  font-size: var(--text-sm);
}

/* ==========================================================
   FOOTER MAIN — 4 colonnes
   ========================================================== */
.footer-main {
  padding-block: var(--space-16) var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.08); /* TODO: tokenize — séparateur sur fond ink */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Bandeau « Les outils pour organiser ton mariage » : 4 familles (octobre 2026) */
.footer-outils {
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.08); /* même séparateur que le pied */
}
.footer-outils__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--wp-surface);
  margin: 0 0 var(--space-6);
  letter-spacing: -.01em;
}
.footer-outils__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-10); }
@media (max-width: 1024px) { .footer-outils__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-outils__grid { gap: var(--space-6) var(--space-5); } }

/* --- Col 1 : Marque --- */
.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-5);
}
.footer-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.2rem; /* TODO: tokenize — 19.2px hors scale */
  font-weight: 700;
  color: var(--wp-surface);
  letter-spacing: -.01em;
}
.footer-brand__tagline {
  font-size: .62rem; /* TODO: tokenize — 9.92px hors scale */
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp-brand);
  display: block;
  line-height: 1;
}

.footer-brand__desc {
  line-height: 1.75;
  color: rgba(255,255,255,.60); /* TODO: tokenize — texte secondaire sur fond ink */
  margin-bottom: var(--space-6);
  max-width: 32ch;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-social {
  /* 44x44 minimum (Apple HIG / WCAG 2.5.5) — la pastille reste visuellement
     compacte grâce au SVG 16x16 centré. */
  width: var(--tap-target);
  height: var(--tap-target);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12); /* TODO: tokenize — bordure sur fond ink */
  background: rgba(255,255,255,.06); /* TODO: tokenize — surface sur fond ink */
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.60); /* TODO: tokenize — texte secondaire sur fond ink */
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.footer-social:hover {
  background: var(--wp-brand-soft);
  border-color: var(--wp-brand-border);
  color: var(--wp-brand);
}
.footer-social svg { width: 16px; height: 16px; }

/* --- Cols nav --- */
.footer-col__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62); /* label discret sur fond encre (contraste AA) */
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a {
  color: rgba(255,255,255,.65); /* TODO: tokenize — texte sur fond ink */
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  /* Padding vertical pour assurer ~44px de zone tactile sur mobile sans
     éclater la grille desktop (gap réduit en parallèle). */
  padding-block: var(--space-2);
}
.footer-nav a:hover { color: var(--wp-surface); }
.footer-nav a .badge { font-size: .6rem; padding: .15rem var(--space-2); } /* TODO: tokenize — .6rem 9.6px hors scale */

/* --- Col newsletter --- */
.footer-newsletter__desc {
  color: rgba(255,255,255,.60); /* TODO: tokenize — texte secondaire sur fond ink */
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-newsletter-form input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.08); /* TODO: tokenize — surface sur fond ink */
  border: 1px solid rgba(255,255,255,.14); /* TODO: tokenize — bordure sur fond ink */
  border-radius: var(--radius-md);
  padding: .8rem var(--space-4);
  color: var(--wp-surface);
  /* 16px obligatoire pour éviter le zoom auto iOS sur focus.
     Le selector input général de components.css est moins spécifique, donc on
     fixe explicitement ici (--text-sm = 14px aurait zoomé). */
  font-size: var(--text-base);
  min-height: var(--tap-target);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.55); } /* TODO: tokenize — placeholder sur fond ink */
.footer-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--wp-brand-border);
  background: rgba(255,255,255,.12); /* TODO: tokenize — surface focus sur fond ink */
  box-shadow: 0 0 0 3px rgba(181,99,122,.15); /* TODO: tokenize — ring focus brand */
}
.footer-newsletter-form .btn {
  width: 100%;
  justify-content: center;
  /* Tap target mobile : on force min-height pour compenser la taille --sm
     (qui passe sous 44px de haut sinon). */
  min-height: var(--tap-target);
}

.footer-newsletter__notice {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.58); /* texte discret sur fond encre (contraste AA) */
  line-height: 1.6;
}

/* --- Col lettre d'information (kit des envois d'Atlas, 25/10/2026) : variables du formulaire reliées aux jetons --- */
.footer-lettre {
  --envois-accent: var(--wp-brand, #9E4D64);
  --envois-sur-accent: var(--wp-surface, #FFFFFF);
  --envois-texte: rgba(255,255,255,.75);  /* même texte que le pied (fond encre) */
  --envois-doux: rgba(255,255,255,.62);   /* même gris que les titres de colonne (contraste AA) */
  --envois-fond: rgba(255,255,255,.08);   /* même champ que l'ancien formulaire */
  --envois-bord: rgba(255,255,255,.45);   /* bordure de champ lisible sur l'encre (3:1) */
}
.footer-lettre .envois-titre {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: var(--space-2);
}
.footer-lettre .envois-bouton { border-radius: var(--radius-full, 999px); min-height: var(--tap-target, 44px); }
.footer-lettre .envois-bouton-2 { color: var(--wp-surface, #FFFFFF); border-color: rgba(255,255,255,.55); } /* jamais rose sur encre pour un texte */
.footer-lettre .envois-case { color: rgba(255,255,255,.75); }

/* ==========================================================
   FOOTER BOTTOM — légal
   ========================================================== */
.footer-bottom {
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.58); /* texte discret sur fond encre (contraste AA) */
}
.footer-bottom__copy strong { color: rgba(255,255,255,.55); font-weight: 600; } /* TODO: tokenize — texte soft sur fond ink */
.footer-bottom__credit { display: block; margin-top: 6px; }
.footer-bottom__credit a { color: rgba(255,255,255,.6); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); transition: color .15s ease, border-color .15s ease; }
.footer-bottom__credit a:hover { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.55); }

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-legal-nav a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.62); /* label discret sur fond encre (contraste AA) */
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  /* Padding pour atteindre 44px de hauteur cliquable sur mobile sans
     déformer le layout sur desktop (le gap absorbe). */
  display: inline-block;
  padding-block: var(--space-2);
}
.footer-legal-nav a:hover { color: rgba(255,255,255,.75); } /* TODO: tokenize — texte sur fond ink */

/* Ornement entre les liens légaux */
.footer-legal-nav li + li::before {
  content: '·';
  margin-right: var(--space-5);
  color: rgba(255,255,255,.20); /* TODO: tokenize — séparateur sur fond ink */
}

/* Mobile : pas de séparateurs (ils chevauchent quand wrap) + alignement
   propre sur 2 lignes. */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .footer-legal-nav { gap: var(--space-3) var(--space-4); }
  .footer-legal-nav li + li::before {
    margin-right: var(--space-3);
  }
}

/* ==========================================================
   ADMIN BAR COMPAT
   ========================================================== */
body.admin-bar .site-footer { margin-top: 0; }
