/*
Theme Name: ASPTT Besançon Volley
Theme URI: https://aspttbv.fr
Author: ASPTT Besançon Volley
Author URI: https://aspttbv.fr
Description: Thème personnalisé pour le club de volley-ball ASPTT Besançon. Design moderne navy & or.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Propriétaire
Text Domain: aspttbv
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #03234C;
  --navy2:   #062A58;
  --navy3:   #041E42;
  --gold:    #F5A623;
  --gold2:   #E8940F;
  --white:   #FFFFFF;
  --light:   #F4F6F9;
  --muted:   #7A8B9A;
  --border:  #D0D9E4;
  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'Barlow', sans-serif;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(11,31,58,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--light);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
  color: var(--navy);
}

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 4rem 0; }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); }
.section--navy2 { background: var(--navy2); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold2); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: rgba(255,255,255,.8); }

/* =============================================
   HEADER / NAV
============================================= */
#site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 4px;
}

/* Le logo a son propre fond navy — on évite le double fond */
.site-logo { border-radius: 4px; overflow: hidden; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.5rem; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.main-nav a:hover { color: var(--gold); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .main-nav .btn { display: none; }
  .burger { display: flex; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: -60px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,166,35,.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  line-height: .95;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
  letter-spacing: .3px;
}

/* =============================================
   RECRUTEMENT BANNER
============================================= */
.recruit-banner {
  background: var(--gold);
  padding: 1rem 0;
}
.recruit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.recruit-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.recruit-text span { font-weight: 400; font-size: 14px; }
.recruit-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.recruit-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .2s;
}
.recruit-link:hover { opacity: .7; }

/* =============================================
   ÉQUIPES
============================================= */
.equipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
a.equipe-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
a.equipe-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.equipe-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: .75rem;
}
.icon-f  { background: #FEF0E0; }
.icon-m  { background: #E6EEF8; }
.icon-j  { background: #E6F4ED; }
.icon-l  { background: #F3F0FE; }
.icon-pa { background: #EEF6FF; }

.equipe-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.25;
}
.equipe-level { font-size: 12px; color: var(--muted); margin-top: 3px; }
.equipe-badge {
  display: inline-flex;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-recruit { background: #FEF0E0; color: #9A6000; }
.badge-active  { background: #E6F4ED; color: #276749; }

/* =============================================
   INFOS PRATIQUES
============================================= */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.info-card h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card h3 .icon { color: var(--gold); font-size: 20px; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--muted); }
.info-row .val { font-weight: 600; color: var(--navy); }

/* =============================================
   ACTUALITÉS
============================================= */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.actu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.actu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.actu-top { padding: 1.3rem; }
.actu-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: .6rem;
}
.tag-recrut { background: #FEF0E0; color: #9A6000; }
.tag-compet  { background: #E6EEF8; color: #1A4E87; }
.tag-event   { background: #E6F4ED; color: #276749; }

.actu-card h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.3;
}
.actu-card p { font-size: 14px; color: var(--muted); margin-top: .5rem; line-height: 1.65; }
.actu-foot {
  padding: .8rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.actu-foot a { color: var(--gold); font-weight: 600; font-size: 13px; }
.actu-foot a:hover { text-decoration: underline; }

/* =============================================
   CONTACT BAR
============================================= */
.contact-bar {
  background: var(--navy2);
  padding: 3rem 0;
}
.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-bar h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--white);
}
.contact-bar p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 4px; }
.contact-infos { display: flex; gap: 2rem; flex-wrap: wrap; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.contact-item .icon { color: var(--gold); font-size: 20px; }

/* =============================================
   FOOTER
============================================= */
#site-footer {
  background: var(--navy);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-inner p { font-size: 12px; color: rgba(255,255,255,.3); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 18px;
  transition: all .2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .equipes-grid { grid-template-columns: repeat(2, 1fr); }
  .recruit-inner { flex-direction: column; align-items: flex-start; }
  .contact-bar-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
