/* Yellow-Sub.net — Footer phpBB / Milk_v2 — version 1.0.0.
   Tous les sélecteurs sont limités à #ysnp-footer.
   Mobile : seuil de 767px identique au menu inférieur du forum. */

#ysnp-footer {
  --ysnp-yellow: #fecc59;
  --ysnp-text: #f6f5f1;
  --ysnp-muted: #c7c7c3;
  --ysnp-line: #454545;
  display: block;
  clear: both;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #202020;
  color: var(--ysnp-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

#ysnp-footer *,
#ysnp-footer *::before,
#ysnp-footer *::after { box-sizing: border-box; }

#ysnp-footer .ysnp-zone { position: relative; padding: 0 24px; overflow: hidden; }
#ysnp-footer .ysnp-container { position: relative; z-index: 1; width: 100%; max-width: 1250px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
#ysnp-footer p { padding: 0; margin: 0; font-size: inherit; line-height: inherit; }
#ysnp-footer a,
#ysnp-footer a:visited { color: var(--ysnp-text); text-decoration: none; opacity: 1; border: 0; }
#ysnp-footer a:hover { color: var(--ysnp-yellow); opacity: 1; }
#ysnp-footer a:focus-visible { outline: 3px solid var(--ysnp-yellow); outline-offset: 4px; }

/* Bandeau newsletter. */
#ysnp-footer .ysnp-news { background: #292929; border-top: 4px solid var(--ysnp-yellow); border-bottom: 1px solid var(--ysnp-line); }
#ysnp-footer .ysnp-news-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 30px; padding-top: 30px; padding-bottom: 30px; }
#ysnp-footer .ysnp-news-copy { display: flex; align-items: center; gap: 24px; min-width: 0; }
#ysnp-footer .ysnp-news-copy > div { min-width: 0; }
#ysnp-footer .ysnp-news-title { color: var(--ysnp-text); font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; line-height: 1.25; margin-bottom: 7px; }
#ysnp-footer .ysnp-news-description { color: var(--ysnp-muted); font-size: 16px; line-height: 1.55; }
#ysnp-footer .ysnp-mail { position: relative; flex: 0 0 48px; width: 48px; height: 35px; border: 3px solid var(--ysnp-yellow); border-radius: 2px; overflow: hidden; }
#ysnp-footer .ysnp-mail::before { content: ""; position: absolute; width: 30px; height: 30px; top: -17px; left: 6px; border-right: 3px solid var(--ysnp-yellow); border-bottom: 3px solid var(--ysnp-yellow); transform: rotate(45deg); }
#ysnp-footer .ysnp-cta,
#ysnp-footer .ysnp-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 14px;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  margin: 0;
  border: 1px solid var(--ysnp-yellow);
  border-radius: 6px;
  background: var(--ysnp-yellow);
  color: #191919;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
  transition: background-color .18s ease;
}
#ysnp-footer .ysnp-cta-arrow { flex-shrink: 0; font-size: 24px; line-height: 1; }
#ysnp-footer .ysnp-cta:hover { background: #ffdc85; border-color: #ffdc85; color: #191919; text-decoration: none; }
#ysnp-footer .ysnp-cta:focus-visible { outline-color: var(--ysnp-text); }

/* Présentation et trois colonnes, sans dépendance à Flatsome. */
#ysnp-footer .ysnp-main { background: #202020; }
#ysnp-footer .ysnp-main::before { content: ""; position: absolute; left: -295px; top: 50%; width: 430px; height: 430px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 8px, rgba(255, 255, 255, .045) 9px 10px); transform: translateY(-50%); pointer-events: none; }
#ysnp-footer .ysnp-main-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; align-items: start; padding-top: 44px; padding-bottom: 42px; }
#ysnp-footer .ysnp-brand { min-width: 0; padding-right: 28px; }
#ysnp-footer .ysnp-wordmark,
#ysnp-footer .ysnp-wordmark:visited { display: inline-block; color: var(--ysnp-yellow); font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 17px; }
#ysnp-footer .ysnp-wordmark:hover { color: #ffdc85; }
#ysnp-footer .ysnp-tagline { color: var(--ysnp-text); font-size: 23px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
#ysnp-footer .ysnp-description { color: var(--ysnp-muted); font-size: 16px; line-height: 1.65; }
#ysnp-footer .ysnp-nav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; min-width: 0; }
#ysnp-footer .ysnp-nav { min-width: 0; }
#ysnp-footer .ysnp-title { padding: 0; margin: 5px 0 17px; border: 0; color: var(--ysnp-yellow); font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
#ysnp-footer .ysnp-links { padding: 0; margin: 0; list-style: none; }
#ysnp-footer .ysnp-links > li { padding: 0; margin: 0; border: 0; list-style: none; }
#ysnp-footer .ysnp-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
#ysnp-footer .ysnp-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Mentions légales, contact et retour en haut. */
#ysnp-footer .ysnp-bottom { background: #202020; border-top: 1px solid var(--ysnp-line); }
#ysnp-footer .ysnp-bottom-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 30px; padding-top: 18px; padding-bottom: 18px; }
#ysnp-footer .ysnp-copyright { color: var(--ysnp-muted); font-size: 14px; }
#ysnp-footer .ysnp-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
#ysnp-footer .ysnp-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.4; }
#ysnp-footer .ysnp-dot { color: var(--ysnp-yellow); font-size: 15px; }
#ysnp-footer .ysnp-top { display: inline-flex; align-items: center; justify-self: end; gap: 12px; font-size: 14px; line-height: 1.4; }
#ysnp-footer .ysnp-top-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #858585; border-radius: 5px; }
#ysnp-footer .ysnp-top-icon::before { content: ""; width: 11px; height: 11px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(3px) rotate(45deg); }
#ysnp-footer .ysnp-top:hover .ysnp-top-icon { border-color: var(--ysnp-yellow); }

/* Tablette : identité au-dessus des trois colonnes. */
@media (max-width: 1099px) {
  #ysnp-footer .ysnp-main-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  #ysnp-footer .ysnp-brand { padding-right: 0; }
  #ysnp-footer .ysnp-wordmark { font-size: 36px; margin-bottom: 10px; }
  #ysnp-footer .ysnp-tagline { margin-bottom: 10px; }
  #ysnp-footer .ysnp-description { max-width: 85ch; }
  #ysnp-footer .ysnp-title { font-size: 21px; }
}

@media (max-width: 849px) {
  #ysnp-footer .ysnp-news-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #ysnp-footer .ysnp-news-copy { gap: 18px; }
  #ysnp-footer .ysnp-news-title { font-size: 26px; }
  #ysnp-footer .ysnp-cta { justify-self: start; margin-left: 66px; max-width: calc(100% - 66px); }
  #ysnp-footer .ysnp-links a { font-size: 16px; }
  #ysnp-footer .ysnp-main-row { padding-top: 32px; padding-bottom: 32px; }
  #ysnp-footer .ysnp-bottom-row { padding-top: 14px; padding-bottom: 14px; gap: 16px; }
}

/* Masquer uniquement le nouveau footer, pas les composants phpBB. */
@media (max-width: 767px) {
  #ysnp-footer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #ysnp-footer .ysnp-cta { transition: none; }
}
