/* ==========================================================================
   AXESS MUSIK - STYLESHEET OFFICIEL (ASSOCIATION LOI 1901)
   Architecture CSS Moderne & Fluide sans framework externe
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Oswald:wght@500;700&display=swap');

:root {
  --navy: #0E2335;
  --navy-dark: #081622;
  --teal: #00A3E0;
  --teal-dark: #0084b6;
  --coral: #E54838;
  --coral-dark: #c93729;
  --offwhite: #F4F6F8;
  --white: #FFFFFF;
  --darkslate: #1A1A1A;
  --gray-light: #E2E8F0;
  --gray-mid: #64748B;
  --font-heading: 'Montserrat', 'Oswald', Arial, sans-serif;
  --font-body: 'Open Sans', 'Roboto', system-ui, sans-serif;
  --shadow-sm: 0 2px 4px rgba(14, 35, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-lg: 0 10px 24px rgba(14, 35, 53, 0.12);
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ==========================================================================
   TYPOGRAPHIE & TITRES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 75ch;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

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

/* ==========================================================================
   STRUCTURE & CONTENEURS
   ========================================================================== */

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

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.bg-white { background-color: var(--white); }
.bg-offwhite { background-color: var(--offwhite); }
.bg-navy { background-color: var(--navy); color: var(--white); }
.bg-teal { background-color: var(--teal); color: var(--white); }

/* ==========================================================================
   TOP ADMINISTRATIVE UTILITY STRIP (#0E2335)
   ========================================================================== */

.utility-strip {
  background-color: var(--navy);
  color: #CBD5E1;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

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

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

.utility-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

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

.utility-right a.legal-link {
  color: #CBD5E1;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.utility-right a.legal-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.btn-utility-don {
  display: inline-block;
  background-color: var(--coral);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-utility-don:hover {
  background-color: var(--coral-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN NAVIGATION BAR (#FFFFFF)
   ========================================================================== */

.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gray-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-top: 0.2rem;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--teal);
  background-color: var(--offwhite);
  text-decoration: none;
}

.dropdown-arrow {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 2px 2px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1001;
}

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

.dropdown-item a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 44px;
  line-height: 28px;
}

.dropdown-item a:hover {
  background-color: var(--offwhite);
  color: var(--teal);
  text-decoration: none;
  padding-left: 1.5rem;
}

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

/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem; /* 2x horizontal padding vs vertical */
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none !important;
  line-height: 1.2;
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white) !important;
}

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

.btn-coral {
  background-color: var(--coral);
  color: var(--white) !important;
}

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

.btn-navy {
  background-color: var(--navy);
  color: var(--white) !important;
}

.btn-navy:hover {
  background-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ==========================================================================
   CARD SYSTEM & GRID
   ========================================================================== */

.card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card-body {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #334155;
}

.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.5rem;
}

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

/* ==========================================================================
   HERO BANNER & SECTIONS
   ========================================================================== */

.hero-banner {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(2px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.hero-summary {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #E2E8F0;
  margin-bottom: 2rem;
  font-weight: 500;
}

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

/* Callout Box: Notre Engagement & Mission Institutionnelle */
.callout-box {
  background-color: var(--white);
  border-left: 6px solid var(--teal);
  padding: 2.25rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
  border-radius: 0 4px 4px 0;
}

.callout-box.callout-coral {
  border-left-color: var(--coral);
}

.callout-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Banner Teal d'Action Rapide */
.action-banner {
  background-color: var(--teal);
  color: var(--white);
  padding: 3rem 0;
}

.action-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.action-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
}

.action-form input {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  outline: none;
}

/* Circular Section */
.circle-item {
  text-align: center;
}

.circle-img-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
}

.circle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-title {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.circle-text {
  font-size: 0.875rem;
  color: var(--gray-mid);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.badge-teal {
  background-color: #E0F2FE;
  color: #0369A1;
}

.badge-coral {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.badge-active {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

/* Data Table */
.data-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

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

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-light);
}

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

.data-table tr:hover td {
  background-color: var(--offwhite);
}

/* ==========================================================================
   FORMS & INTAKE MODULE
   ========================================================================== */

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

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

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  background-color: var(--white);
  color: var(--darkslate);
  transition: var(--transition);
}

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

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

/* ==========================================================================
   MASTER FOOTER (#0E2335)
   ========================================================================== */

.main-footer {
  background-color: var(--navy);
  color: #CBD5E1;
  padding-top: 4.5rem;
  border-top: 4px solid var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-col p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.925rem;
  transition: var(--transition);
  display: inline-block;
  min-height: 24px;
}

.footer-links a:hover {
  color: var(--teal);
  text-decoration: none;
  padding-left: 0.35rem;
}

.footer-newsletter input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--teal);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mandatory Legal Strip */
.legal-strip {
  background-color: var(--navy-dark);
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */

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

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

  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--teal);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1.5rem;
    justify-content: space-between;
  }

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

  .dropdown-menu.active {
    display: block;
  }

  .action-form {
    flex-direction: column;
  }

  .action-form input, .action-form button {
    width: 100%;
  }
}
