/* =========================================================
   WOLFPACT — COMMON CSS
   Styles partagés entre toutes les pages
   ========================================================= */

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
  --bg: #0c0c0c;
  --fg: #eae9e6;
  --muted: #a9a49a;
  --card: #151515;
  --chip: #222;
  --ring: #444;

  --accent-warm-1: #F2C154;
  --accent-warm-2: #CFAF54;
  --accent-cool:   #38D1D6;
  --accent-stage:  #7C43FF;

  /* calculées à partir de --accent (définie côté PHP) */
  --accent-line: color-mix(in oklab, var(--accent) 35%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 70%, transparent);

  /* Valeurs réutilisables */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --img-filter: contrast(1.05) saturate(1.03);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  color: var(--fg);
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 900px at 10% -10%, #0f0f0f 0%, transparent 60%),
    radial-gradient(1200px 900px at 110% 10%, #0d0d0d 0%, transparent 60%),
    linear-gradient(120deg, #0c0c0c 0%, #0d0d0d 50%, #0c0c0c 100%);
}

/* Grain léger */
@media (prefers-reduced-motion: no-preference) {
  html::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
      repeating-linear-gradient(0deg, #ffffff06 0 2px, transparent 2px 4px),
      repeating-linear-gradient(90deg, #00000005 0 3px, transparent 3px 6px);
    mix-blend-mode: soft-light;
    opacity: .25;
  }
}

p {
  text-align: justify;
}

ul {
  margin-left: 15px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--img-filter);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  padding: 0 1rem;
  height: 4rem;
  max-width: 1100px;
  margin: auto;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, #0c0d0f 88%, transparent);
  border-bottom: 1px solid var(--ring);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}

.nav {
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav a {
  padding: 8px 10px;
  margin-left: 18px;
  border-radius: var(--radius-md);
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}

.nav a:hover {
  border-color: var(--ring);
  background: #0f1115;
  color: var(--fg);
}

/* =========================================================
   LAYOUT GLOBAL
   ========================================================= */
.container,
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.section-title {
  margin: 24px 0 10px;
  font-size: 20px;
}

section {
  text-align: justify;
}

.section h2,
.list {
  margin-top: 0;
}

/* =========================================================
   CARTES GÉNÉRIQUES
   ========================================================= */
.card {
  height: 100%;
  position: relative;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-xl);
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card h2 {
  margin: 6px 0 10px;
  letter-spacing: .2px;
}

.card p {
  margin: 6px 0;
  color: var(--muted);
}

/* =========================================================
   BADGE & BOUTONS
   ========================================================= */
.badge {
  background: var(--chip);
  border: 1px solid var(--ring);
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .2px;
  transition: all var(--transition);
  display: inline-block;
}

.badge--warm { border-color: var(--accent-warm-1); }
.badge--cool { border-color: var(--accent-cool); }
.badge--stage { border-color: var(--accent-stage); }

.btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ring);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  border-color: #666;
  transform: translateY(-1px);
}

/* =========================================================
   ACCENT GLOW
   ========================================================= */
.accent-glow {
  border-color: var(--ring);
  box-shadow:
    0 0 0 1px var(--accent-line),
    0 10px 36px -12px var(--accent-glow);
}

.accent-glow::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(120% 120% at 50% -10%, var(--accent-glow), transparent 60%);
  filter: blur(22px) saturate(115%);
  opacity: .55;
}

.accent-glow--strong::after {
  opacity: .70;
  filter: blur(28px) saturate(120%);
}

.accent-glow--soft::after {
  opacity: .35;
  filter: blur(14px) saturate(110%);
}

@media (prefers-reduced-motion: no-preference) {
  .accent-glow::after {
    animation: glow-breathe 4.5s ease-in-out infinite;
  }

  @keyframes glow-breathe {
    0%, 100% { opacity: .52; filter: blur(20px) saturate(110%); }
    50%      { opacity: .68; filter: blur(26px) saturate(120%); }
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 10px 20px;
  background: #0a0a0b;
  border-top: 1px solid #1c1c1d;
}

.footer-inner {
  margin: auto;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer-col h4 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #bbb;
}

.footer-note a,
.footer-members-row a {
  display: block;
  margin: 4px 0;
  color: #aaa;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-note a:hover {
  color: var(--accent);
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  line-height: 1.4;
  color: #777;
  text-align: right;
}

.footer-note a {
  display: inline;
  margin: 0;
}

.footer-members-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   ANCRES DE NAVIGATION
   ========================================================= */
#appel,
#fiches,
#pacte,
#couleurs,
#video {
  scroll-margin-top: 5rem;
}

/* =========================================================
   LIGHTBOX / ZOOM UNIFIÉ
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ring);
  background: var(--card, #0f1115);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  background: #1a1a1c;
  border-color: #666;
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

.video-wrapper {
  background: #0b0c0e;
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  max-height: 85vh;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.contact-box {
  width: min(88%, 640px);
  margin: 2rem auto;
  padding: 2.5rem 2rem;
}

.contact-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-intro {
  margin-bottom: 1rem;
}

.contact-intro p {
  line-height: 1.6;
  color: var(--muted);
}

.contact-intro strong {
  color: var(--fg);
}

.contact-separator {
  width: 60px;
  height: 2px;
  background: var(--ring);
  margin: 1.5rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--fg);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(234, 233, 230, 0.08);
}

.btn-submit {
  align-self: center;
  padding: 10px 2.5rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  border-color: var(--fg);
  background: #1a1a1a;
  transform: translateY(-1px);
}

.message-success {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--ring);
  border-left: 4px solid var(--fg);
  color: var(--fg);
  background: rgba(234, 233, 230, 0.05);
  border-radius: var(--radius-md);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE COMMUN
   ========================================================= */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 1rem;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .footer-inner {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 .75rem;
    height: auto;
    min-height: 4rem;
  }

  .site-header__inner {
    padding: 8px 12px;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .nav a {
    margin-left: 0;
    padding: 6px 8px;
  }

  .wrap {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .footer-note {
    font-size: 0.9rem;
  }

  .footer-members-row {
    gap: 12px;
    font-size: 0.9rem;
  }
}
