/* ==========================================================================
   C D 34 FEDER.FRANCAISE DE VOLLEY BALL - DESIGN SYSTEM & FEUILLE DE STYLE
   Association Loi 1901 - RNA: W343014694 - SIREN: 418347209
   Maison Départementale des Sports - 34000 Montpellier (Hérault)
   ========================================================================== */

:root {
  --brand-navy: #0E2335;
  --brand-navy-light: #183752;
  --action-teal: #00A3E0;
  --action-teal-dark: #0082b3;
  --alert-coral: #E54838;
  --alert-coral-hover: #cf3a2b;
  --canvas-offwhite: #F4F6F8;
  --pure-white: #FFFFFF;
  --dark-slate: #1A1A1A;
  --slate-muted: #4A5568;
  --border-light: #DCE3E8;
  --shadow-subtle: 0 4px 14px rgba(14, 35, 53, 0.08);
  --shadow-hover: 0 10px 24px rgba(14, 35, 53, 0.14);
  --font-heading: 'Montserrat', 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--canvas-offwhite);
  color: var(--dark-slate);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--dark-slate);
  background-color: var(--canvas-offwhite);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--action-teal);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--action-teal-dark);
}

/* Typographie institutionnelle */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--brand-navy);
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-alt {
  background-color: var(--pure-white);
}

.section-navy {
  background-color: var(--brand-navy);
  color: var(--pure-white);
}

.section-navy h1, .section-navy h2, .section-navy h3 {
  color: var(--pure-white);
}

/* Top Administrative Utility Strip */
.top-utility-strip {
  background-color: var(--brand-navy);
  color: #E2E8F0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0;
  font-family: var(--font-body);
}

.top-utility-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-utility-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-utility-badge {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.top-utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-utility-link {
  color: #CBD5E1;
  text-decoration: underline;
  font-size: 0.82rem;
}

.top-utility-link:hover {
  color: var(--pure-white);
}

.btn-donate-strip {
  background-color: var(--alert-coral);
  color: var(--pure-white) !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-donate-strip:hover {
  background-color: var(--alert-coral-hover);
  transform: translateY(-1px);
}

/* Master Navigation Bar */
.master-header {
  background-color: var(--pure-white);
  box-shadow: 0 2px 10px rgba(14, 35, 53, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-symbol {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  color: var(--pure-white);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1;
  border-top: 3px solid var(--action-teal);
}

.brand-symbol span:first-child {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-symbol span:last-child {
  font-size: 0.65rem;
  color: var(--action-teal);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-navy);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Navigation Links */
.master-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--action-teal);
  background-color: rgba(0, 163, 224, 0.05);
}

.dropdown-caret {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--pure-white);
  box-shadow: 0 12px 28px rgba(14, 35, 53, 0.15);
  border-top: 3px solid var(--action-teal);
  border-radius: 0 0 2px 2px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  list-style: none;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  color: var(--dark-slate);
  font-weight: 600;
  border-left: 2px solid transparent;
}

.dropdown-menu li a:hover {
  color: var(--action-teal-dark);
  background-color: var(--canvas-offwhite);
  border-left-color: var(--action-teal);
  padding-left: 1.45rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--brand-navy);
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.7rem; /* 2x horizontal padding rule */
  border-radius: 2px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1;
}

.btn-teal {
  background-color: var(--action-teal);
  color: var(--pure-white);
}

.btn-teal:hover {
  background-color: var(--action-teal-dark);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-coral {
  background-color: var(--alert-coral);
  color: var(--pure-white);
}

.btn-coral:hover {
  background-color: var(--alert-coral-hover);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-navy {
  background-color: var(--brand-navy);
  color: var(--pure-white);
}

.btn-navy:hover {
  background-color: var(--brand-navy-light);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
}

.btn-outline-white:hover {
  background-color: var(--pure-white);
  color: var(--brand-navy);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
}

.btn-outline-navy:hover {
  background-color: var(--brand-navy);
  color: var(--pure-white);
}

/* Cards & Elevated Containers */
.card {
  background-color: var(--pure-white);
  border-radius: 2px;
  border-top: 4px solid var(--action-teal);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-coral {
  border-top-color: var(--alert-coral);
}

.card-navy {
  border-top-color: var(--brand-navy);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.grid-5-circle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--pure-white);
  border: 3px solid var(--action-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease;
}

.circle-item:hover .circle-avatar {
  transform: scale(1.06);
  border-color: var(--alert-coral);
}

.circle-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--brand-navy);
}

.circle-sub {
  font-size: 0.82rem;
  color: var(--slate-muted);
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background-color: var(--brand-navy);
  color: var(--pure-white);
  overflow: hidden;
  padding: 5rem 0 5.5rem;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.8);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--alert-coral);
  color: var(--pure-white);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-summary-2-sentence {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 2rem;
  font-weight: 400;
  border-left: 3px solid var(--action-teal);
  padding-left: 1.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Statutory Callout Box */
.statutory-callout-box {
  background-color: var(--pure-white);
  border-left: 5px solid var(--action-teal);
  border-radius: 2px;
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.statutory-callout-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.statutory-quote {
  background-color: var(--canvas-offwhite);
  border-left: 4px solid var(--alert-coral);
  padding: 1rem 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 1.25rem 0;
  border-radius: 2px;
}

/* Teal Action Banner */
.teal-action-banner {
  background: linear-gradient(135deg, var(--action-teal) 0%, var(--action-teal-dark) 100%);
  color: var(--pure-white);
  padding: 3.5rem 0;
  border-radius: 2px;
}

.teal-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.teal-banner-text {
  flex: 1;
  min-width: 320px;
}

.teal-banner-text h2 {
  color: var(--pure-white);
  margin-bottom: 0.75rem;
}

.teal-banner-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.teal-banner-form input {
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  min-width: 260px;
  min-height: 44px;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  background: var(--pure-white);
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  border-top: 4px solid var(--action-teal);
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: var(--brand-navy);
  color: var(--pure-white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 1rem 1.25rem;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--dark-slate);
}

.data-table tr:nth-child(even) td {
  background-color: rgba(244, 246, 248, 0.6);
}

.data-table tr:hover td {
  background-color: rgba(0, 163, 224, 0.05);
}

.badge-status {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-active {
  background-color: #DEF7EC;
  color: #03543F;
}

.badge-planned {
  background-color: #FEF08A;
  color: #854D0E;
}

.badge-completed {
  background-color: #E2E8F0;
  color: #334155;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--pure-white);
  color: var(--dark-slate);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--action-teal);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Master Footer */
.master-footer {
  background-color: var(--brand-navy);
  color: #E2E8F0;
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-col h4 {
  color: var(--pure-white);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--action-teal);
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
  color: var(--action-teal);
  transform: translateX(4px);
}

.footer-newsletter-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure-white);
  font-size: 0.9rem;
  min-height: 44px;
}

.footer-newsletter-box input::placeholder {
  color: #94A3B8;
}

/* Mandatory Legal Bottom Strip */
.footer-legal-strip {
  background-color: #07131D;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #94A3B8;
  text-align: center;
}

.footer-legal-strip strong {
  color: #E2E8F0;
}

/* Page Header Banner for Inner Pages */
.page-header {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: var(--pure-white);
  padding: 3.5rem 0 3.8rem;
  border-bottom: 4px solid var(--action-teal);
}

.page-header h1 {
  color: var(--pure-white);
  margin-bottom: 0.75rem;
}

.page-breadcrumb {
  font-size: 0.85rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.page-breadcrumb a {
  color: var(--action-teal);
}

/* Article / Long-Form Reading Layout */
.content-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2D3748;
}

.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-body blockquote {
  border-left: 4px solid var(--action-teal);
  padding: 1rem 1.5rem;
  background-color: var(--pure-white);
  font-style: italic;
  margin: 1.75rem 0;
  border-radius: 2px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5-circle {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .top-utility-left {
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  /* Force all multi-column CSS Grid structures to single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5-circle,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .master-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--pure-white);
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
  }

  .master-nav.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--action-teal);
    background-color: var(--canvas-offwhite);
    margin-left: 1rem;
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .top-utility-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-utility-right {
    width: 100%;
    justify-content: space-between;
  }

  .teal-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .teal-banner-form {
    flex-direction: column;
  }

  .teal-banner-form input {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .statutory-callout-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
  }
}
