/* ═══════════════════════════════════════════════
 * AME Custom Theme - footer.css
 * CTA banner, footer grid, trust bar, legal bar.
 * ═══════════════════════════════════════════════ */

/* ── CTA Banner ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--ame-bleu-nuit), #2a3065);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(193, 255, 114, 0.10) 0%,
    rgba(193, 255, 114, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(153, 143, 199, 0.12) 0%,
    rgba(153, 143, 199, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--ame-blanc);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-banner__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Override btn-outline-w hover inside CTA banner */
.cta-banner .btn-outline-w:hover {
  background: var(--ame-lavande);
  border-color: var(--ame-lavande);
  color: var(--ame-blanc);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--ame-blanc);
  padding: 48px 40px 0;
  border-top: 1px solid #eee;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── Brand Column ───────────────────────────── */
.footer__brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ame-bleu-nuit);
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Newsletter ─────────────────────────────── */
.footer__newsletter {
  display: flex;
  align-items: stretch;
  background: #f5f5f3;
  border: 1px solid #e8e8e5;
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out);
}

.footer__newsletter:focus-within {
  border-color: var(--ame-lavande);
}

.footer__newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-family: var(--font-stack);
  font-size: 13px;
  color: #1a1a1a;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 0;
}

.footer__newsletter input[type="email"]::placeholder {
  color: #aaa;
}

.footer__newsletter button {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--ame-bleu-nuit);
  color: var(--ame-blanc);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  margin: 3px;
  transition: background 0.25s var(--ease-out);
}

.footer__newsletter button:hover {
  background: #2a3060;
}

/* ── RGPD Mention ───────────────────────────── */
.footer__rgpd {
  font-size: 11px;
  color: #bbb;
  line-height: 1.5;
  margin-top: 6px;
}

.footer__rgpd a {
  color: #999;
  text-decoration: underline;
  text-decoration-color: rgba(153, 153, 153, 0.3);
  transition: color 0.2s ease;
}

.footer__rgpd a:hover {
  color: var(--ame-lavande);
}

/* ── Column Titles ──────────────────────────── */
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ame-bleu-nuit);
  margin-bottom: 16px;
}

.footer__col-title--gap {
  margin-top: 24px;
}

/* ── Footer Links ───────────────────────────── */
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer__links a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--ame-bleu-nuit);
  transform: translateX(3px);
}

/* ── Trust Bar ──────────────────────────────── */
.footer__trust {
  border-top: 1px solid #eee;
  padding: 20px 40px;
}

.footer__trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer__badge-icon--lavande {
  background: #ece6fc;
  color: var(--ame-lavande);
}

.footer__badge-icon--gold {
  background: #fef3cd;
}

.footer__badge-icon--blue {
  background: #dbeafe;
  color: #3b82f6;
}

.footer__badge-icon--green {
  background: #d1fae5;
  color: #10b981;
}

.footer__badge-text {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

/* ── Legal Bar ──────────────────────────────── */
.footer__legal {
  border-top: 1px solid #f0f0ed;
  padding: 16px 40px;
}

.footer__legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__copyright {
  font-size: 11px;
  color: #999;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  font-size: 11px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-links a:hover {
  color: var(--ame-lavande);
}

.footer__legal-sep {
  font-size: 11px;
  color: #ddd;
  user-select: none;
}

.footer__credit {
  font-size: 11px;
  color: #bbb;
}

.footer__credit a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__credit a:hover {
  color: var(--ame-lavande);
}

/* ── Back to Top ───────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #1C2143;
  color: #C1FF72;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(28, 33, 67, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #998FC7;
}

/* ── Cookie Banner RGPD ───────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1C2143;
  color: #fff;
  padding: 16px 40px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__inner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: #C1FF72;
  color: #1C2143;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.cookie-more {
  color: #998FC7;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 0;
}

/* ═══════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════ */

/* ── Tablet (768px - 1023px) ── */
@media (max-width: 1023px) and (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

  .footer__newsletter {
    max-width: 400px;
  }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767px) {

  /* CTA Banner */
  .cta-banner {
    padding: 36px 16px;
  }

  .cta-banner h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .cta-banner p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .cta-banner__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-banner__buttons .btn-lime,
  .cta-banner__buttons .btn-outline-w {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 28px 16px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding-bottom: 24px;
  }

  /* Brand column spans full width */
  .footer__col--brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__brand-title {
    font-size: 18px;
  }

  .footer__brand-desc {
    font-size: 13px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .footer__newsletter {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__rgpd {
    text-align: center;
  }

  /* Link columns: 2 per row, compact */
  .footer__col-title {
    font-size: 10px;
    margin-bottom: 10px;
    letter-spacing: 1.2px;
  }

  .footer__col-title--gap {
    margin-top: 16px;
  }

  .footer__links li {
    margin-bottom: 8px;
  }

  .footer__links a {
    font-size: 13px;
  }

  /* Trust Bar: 2x2 grid centered */
  .footer__trust {
    padding: 16px;
  }

  .footer__trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-items: center;
  }

  .footer__badge {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer__badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .footer__badge-text {
    font-size: 11px;
  }

  /* Legal Bar */
  .footer__legal {
    padding: 14px 16px;
  }

  .footer__legal-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .footer__legal-links {
    justify-content: center;
  }

  /* Back to Top - above bottom bar */
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Cookie Banner */
  .cookie-banner {
    padding: 14px 16px;
    bottom: 64px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-banner__inner p {
    font-size: 12px;
    line-height: 1.5;
  }

  .cookie-accept {
    padding: 10px 24px;
    font-size: 14px;
    width: 100%;
  }

  .cookie-more {
    font-size: 12px;
  }
}

/* ── Small mobile (max 380px) ── */
@media (max-width: 380px) {

  .cta-banner h2 {
    font-size: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer__col--brand {
    grid-column: auto;
  }

  .footer__links a {
    font-size: 14px;
  }

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

  .footer__trust-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer__badge {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
}
