/*
Theme Name: WRPF France
Author: Vincent Vignali
Description: Thème officiel WRPF France — Version PRO Premium (Palette Sobre Officielle)
Version: 4.1
*/

/* ============================================================
   PALETTE WRPF — VERSION OFFICIELLE SOBRE
============================================================ */
:root {
  --wrpf-red: #D32F2F;
  --wrpf-red-dark: #8B0000;

  --wrpf-gold: #E6C46A;
  --wrpf-gold-dark: #C9A85A;

  --wrpf-bg: #0A0A0A;
  --wrpf-bg-alt: #1A1A1A;
  --wrpf-bg-soft: #121212;

  --wrpf-text: #F5F5F5;
  --wrpf-muted: #AAAAAA;

  --wrpf-border: #2A2A2A;

  --radius: 1.1rem;
  --shadow-3d: 0 22px 45px rgba(0, 0, 0, 0.55);
  --transition: .25s ease;
  --max-width: 1250px;
  --transition: .25s ease;
  --max-width: 1250px;
}

/* ============================================================
   ANIMATIONS (Scroll Reveal)
============================================================ */
.wrpf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wrpf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GLOBAL RESET + FULL-PAGE FLEX LAYOUT (footer sticky)
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg,
      #0A0A0A 0%,
      #121212 40%,
      #1A1A1A 100%) !important;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--wrpf-text);
  -webkit-font-smoothing: antialiased;
}

/* Layout: keeps footer at bottom if content is short */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#wrapper-site,
main,
#content {
  flex: 1 0 auto;
}

.wrpf-footer {
  flex-shrink: 0;
}

a {
  color: var(--wrpf-gold);
  text-decoration: none;
  transition: .25s ease;
}

a:hover {
  color: var(--wrpf-red);
}

.wrpf-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.8rem;
}

/* ============================================================
   BUTTONS PRO
============================================================ */
.wrpf-btn {
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary */
.wrpf-btn-primary {
  background: linear-gradient(135deg, var(--wrpf-red), var(--wrpf-red-dark));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(211, 47, 47, .35);
}

.wrpf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, .55);
}

/* Secondary */
.wrpf-btn-secondary {
  border: 1px solid var(--wrpf-gold);
  color: var(--wrpf-gold);
  background: transparent;
}

.wrpf-btn-secondary:hover {
  background: var(--wrpf-gold);
  color: #0A0A0A;
}

/* Contact - Réseaux sociaux (optionnels) */
.wrpf-contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.wrpf-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.wrpf-contact-email {
  margin: 0;
  color: var(--wrpf-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.wrpf-contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  margin-left: 0.25rem;
  border: 1px solid var(--wrpf-border);
  border-radius: 0.6rem;
  background: var(--wrpf-bg-alt);
  color: var(--wrpf-text);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.wrpf-contact-email-link:hover {
  border-color: var(--wrpf-gold);
  color: var(--wrpf-gold);
}

.wrpf-contact-email-link:focus-visible {
  outline: 2px solid var(--wrpf-gold);
  outline-offset: 2px;
}

/* ============================================================
   FORMS
============================================================ */
input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: .7rem;
  border: 1px solid var(--wrpf-border);
  background: var(--wrpf-bg-alt);
  color: var(--wrpf-text);
  font-size: 1rem;
  margin-bottom: 1.3rem;
  transition: .25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--wrpf-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, .25);
}

.wpcf7 input,
.wpcf7 textarea {
  max-width: 100% !important;
}

/* ============================================================
   HEADER
============================================================ */
.wrpf-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wrpf-border);
  isolation: isolate;
}

.wrpf-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/LOGO WRPF FRANCE.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.wrpf-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 0;
  position: relative;
}

@media(min-width:769px) {
  .wrpf-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .wrpf-logo {
    justify-self: center;
  }

  .wrpf-desktop-nav {
    width: 100%;
    align-items: center;
  }

  .wrpf-desktop-nav-left {
    justify-content: center;
  }

  .wrpf-desktop-nav-right {
    justify-content: center;
  }

  .wrpf-desktop-nav-right .wrpf-desktop-ul {
    justify-content: flex-end;
  }
}

.wrpf-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.wrpf-logo-image {
  height: 76px;
  width: auto;
}

.wrpf-logo .custom-logo,
.wrpf-logo .custom-logo-link img {
  height: 76px;
  width: auto;
}

@media(max-width:768px) {
  .wrpf-logo-image,
  .wrpf-logo .custom-logo,
  .wrpf-logo .custom-logo-link img {
    height: 58px;
  }
}

.wrpf-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.wrpf-logo-sub {
  font-size: .7rem;
  color: var(--wrpf-muted);
}

/* NAV Desktop */
.wrpf-desktop-nav {
  display: flex;
}

.wrpf-desktop-ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.wrpf-desktop-ul a {
  color: var(--wrpf-text);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .13em;
  padding: .2rem 0;
  position: relative;
}

.wrpf-desktop-ul a::after {
  content: "";
  position: absolute;
  bottom: -.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wrpf-red);
  transition: width .3s ease;
}

.wrpf-desktop-ul a:hover::after {
  width: 100%;
}

/* ============================================================
   MOBILE MENU
============================================================ */
.wrpf-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.wrpf-mobile-toggle span {
  width: 28px;
  height: 3px;
  background: var(--wrpf-text);
  border-radius: 4px;
}

.wrpf-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  height: 100vh;
  background: var(--wrpf-bg-alt);
  border-left: 2px solid var(--wrpf-red);
  padding: 2rem 1.8rem;
  transition: right .35s ease;
  z-index: 99999;
}

.wrpf-mobile-menu.open {
  right: 0;
}

.wrpf-mobile-close {
  position: absolute;
  top: .9rem;
  right: 1rem;
  font-size: 2.4rem;
  color: var(--wrpf-text);
  background: none;
  border: none;
  cursor: pointer;
}

.wrpf-mobile-ul {
  list-style: none;
  margin-top: 3.2rem;
  padding: 0;
}

.wrpf-mobile-ul li {
  margin-bottom: 1.6rem;
}

.wrpf-mobile-ul a {
  font-size: 1.25rem;
  color: var(--wrpf-text);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.wrpf-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9990;
}

.wrpf-mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO
============================================================ */
.wrpf-hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.95)), url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--wrpf-border);
}

.wrpf-inner-hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.95)), url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center 20%;
  border-bottom: 1px solid var(--wrpf-border);
  margin-bottom: 2rem;
  text-align: center;
}

.wrpf-inner-hero .wrpf-hero-title {
  font-size: 2.5rem;
  margin: 0;
}

.wrpf-inner-hero .wrpf-hero-subtitle {
  margin: 0.5rem auto 0;
  max-width: 40rem;
}

.wrpf-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.8rem;
  align-items: center;
}

.wrpf-badge {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(230, 196, 106, 0.15);
  border: 1px solid rgba(230, 196, 106, .4);
  color: var(--wrpf-gold);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .13em;
}

.wrpf-hero-title {
  font-family: "Bebas Neue";
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  letter-spacing: .1em;
  margin: 1rem 0 .6rem;
}

.wrpf-hero-subtitle {
  color: var(--wrpf-muted);
  font-size: 1rem;
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.wrpf-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
============================================================ */
.wrpf-section {
  padding: 3rem 0;
}

.wrpf-section-title {
  font-family: "Bebas Neue";
  font-size: 2.2rem;
  letter-spacing: .08em;
}

.wrpf-section-subtitle {
  color: var(--wrpf-muted);
  font-size: .95rem;
  margin-bottom: 1.8rem;
}

.wrpf-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* ============================================================
   GRID
============================================================ */
.wrpf-grid {
  display: grid;
  gap: 2rem;
}

.wrpf-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wrpf-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media(max-width:900px) {

  .wrpf-grid-3,
  .wrpf-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TAG
============================================================ */
.wrpf-card-tag {
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.18);
  border: 1px solid rgba(211, 47, 47, .4);
  color: var(--wrpf-red);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* ============================================================
   HERO CARD (Next Event)
============================================================ */
.wrpf-hero-card {
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('assets/images/texture-bg.png');
  background-size: cover;
  border: 1px solid var(--wrpf-red);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.wrpf-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--wrpf-red);
}

/* ============================================================
   CARDS
============================================================ */
.wrpf-card {
  background: var(--wrpf-bg-alt);
  border: 1px solid var(--wrpf-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.wrpf-card:hover {
  transform: translateY(-4px);
  border-color: var(--wrpf-red);
  box-shadow: 0 22px 45px rgba(211, 47, 47, 0.25);
}

.wrpf-card-title {
  font-family: "Bebas Neue";
  font-size: 1.7rem;
  margin: .4rem 0 .5rem;
}

.wrpf-card-meta {
  font-size: .9rem;
  color: var(--wrpf-muted);
  margin-bottom: 1rem;
}

.wrpf-card-excerpt {
  font-size: .9rem;
  color: var(--wrpf-text);
  opacity: .85;
  margin-bottom: 1.2rem;
}

.wrpf-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* Image */
.wrpf-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: .8rem;
  margin-bottom: 1rem;
  transition: .35s ease;
}

.wrpf-sponsor-card-logo {
  display: flex;
  justify-content: center;
  margin: .2rem 0 1rem;
}

.wrpf-sponsor-card-logo img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.wrpf-card:hover .wrpf-card-image {
  transform: scale(1.05);
  filter: brightness(.9);
}

/* ============================================================
   ALBUM CARDS
============================================================ */
.wrpf-album-card {
  background: var(--wrpf-bg-alt);
  border: 1px solid var(--wrpf-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
}

.wrpf-album-card:hover {
  transform: translateY(-6px);
  border-color: var(--wrpf-red);
  box-shadow: 0 25px 55px rgba(211, 47, 47, 0.25);
}

.wrpf-album-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: .4s ease;
}

.wrpf-album-card:hover .wrpf-album-cover {
  transform: scale(1.06);
  filter: brightness(.88);
}

/* ============================================================
   ALBUM BANNER
============================================================ */
.wrpf-banner {
  background: linear-gradient(180deg, #141414, transparent 80%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--wrpf-border);
}

.wrpf-banner-badge {
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(230, 196, 106, 0.18);
  border: 1px solid rgba(230, 196, 106, .6);
  color: var(--wrpf-gold);
  font-size: .75rem;
  letter-spacing: .13em;
}

.wrpf-banner-title {
  font-family: "Bebas Neue";
  font-size: 2.8rem;
  margin: .8rem 0 .5rem;
}

.wrpf-banner-meta {
  color: var(--wrpf-muted);
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.4rem;
  font-size: .95rem;
}

/* ============================================================
   GALLERY (Masonry)
============================================================ */
.wrpf-masonry {
  columns: 3;
  column-gap: 1.3rem;
  padding-top: 1.4rem;
}

.wrpf-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.3rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--wrpf-border);
  background: #0A0A0A;
  cursor: zoom-in;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  transition: .3s ease;
}

.wrpf-masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(211, 47, 47, 0.25);
}

.wrpf-masonry-item img {
  width: 100%;
  transition: .35s ease;
}

.wrpf-masonry-item:hover img {
  transform: scale(1.07);
  filter: brightness(.88);
}

@media(max-width:1024px) {
  .wrpf-masonry {
    columns: 2;
  }
}

@media(max-width:600px) {
  .wrpf-masonry {
    columns: 1;
  }
}

/* ============================================================
   RESPONSIVE GLOBAL
============================================================ */
@media(max-width:768px) {
  .wrpf-desktop-nav {
    display: none;
  }

  .wrpf-mobile-toggle {
    display: flex;
  }

  .wrpf-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER (sticky compatible)
============================================================ */
.wrpf-footer {
  padding: 2rem 0;
  background: #0A0A0A;
  text-align: center;
  border-top: 1px solid var(--wrpf-border);
  margin-top: 2rem;
  color: var(--wrpf-muted);
}

.wrpf-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.wrpf-footer-social {
  display: flex;
  gap: 1rem;
}

.wrpf-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--wrpf-border);
  color: var(--wrpf-text);
  transition: .3s ease;
}

.wrpf-social-link:hover {
  background: var(--wrpf-red);
  border-color: var(--wrpf-red);
  color: #fff;
  transform: translateY(-3px);
}

.wrpf-footer-bottom {
  border-top: 1px solid var(--wrpf-border);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}