/* ==========================================================================
   JOUONS EN LUDOTHEQUES - DESIGN SYSTEM OFFICIEL
   Association Loi 1901 | RNA W343002160 | SIREN 318977840
   ========================================================================== */

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

:root {
  --brand-navy: #0E2335;
  --action-teal: #00A3E0;
  --alert-coral: #E54838;
  --canvas-offwhite: #F4F6F8;
  --pure-white: #FFFFFF;
  --dark-slate: #1A1A1A;
  --slate-muted: #536471;
  --border-light: #E1E8ED;
  --shadow-subtle: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-hover: 0 10px 24px rgba(14, 35, 53, 0.14);
}

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

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

body {
  font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--dark-slate);
  background-color: var(--canvas-offwhite);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.2rem;
}

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

a:hover {
  color: var(--brand-navy);
}

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

/* ==========================================================================
   LAYOUT CONTAINERS & GRIDS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
}

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

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

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

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

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* ==========================================================================
   HEADER & MASTER NAVIGATION
   ========================================================================== */

/* Top Administrative Utility Strip */
.utility-strip {
  background-color: var(--brand-navy);
  color: #D1D9E0;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.utility-badge {
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: 0.05em;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-link {
  color: #D1D9E0;
  font-size: 0.8125rem;
}

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

.btn-utility-don {
  background-color: var(--alert-coral);
  color: var(--pure-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-utility-don:hover {
  background-color: #cf3727;
  transform: translateY(-1px);
}

/* Main Navigation Bar */
.main-header {
  background-color: var(--pure-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(14, 35, 53, 0.04);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--action-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.2s ease;
  min-height: 44px;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--pure-white);
  min-width: 250px;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(14, 35, 53, 0.15);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--action-teal);
  list-style: none;
  padding: 8px 0;
  display: none;
  z-index: 1001;
}

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

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-slate);
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: var(--canvas-offwhite);
  color: var(--action-teal);
  padding-left: 24px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--brand-navy);
  font-size: 1.5rem;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #008fcd;
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

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

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

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

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

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

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

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--brand-navy);
  color: var(--pure-white);
  padding: 80px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 35, 53, 0.92) 0%, rgba(14, 35, 53, 0.78) 50%, rgba(14, 35, 53, 0.6) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

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

.hero-tag {
  display: inline-block;
  background-color: var(--action-teal);
  color: var(--pure-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--pure-white);
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-summary {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #E6ECF0;
  margin-bottom: 30px;
  border-left: 4px solid var(--action-teal);
  padding-left: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CALLOUTS & SPECIAL SECTIONS
   ========================================================================== */

.engagement-callout {
  background-color: var(--pure-white);
  border-left: 6px solid var(--action-teal);
  border-radius: 2px;
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  margin: 40px 0;
}

.engagement-callout h3 {
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.engagement-callout p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #2D3748;
}

.teal-intake-banner {
  background-color: var(--action-teal);
  color: var(--pure-white);
  padding: 50px 0;
  border-radius: 2px;
  margin: 50px 0;
}

.teal-intake-banner h2 {
  color: var(--pure-white);
  margin-bottom: 12px;
}

.teal-intake-banner p {
  color: #EAF8FD;
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.inline-form {
  display: flex;
  gap: 12px;
  max-width: 680px;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 240px;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  color: var(--dark-slate);
}

/* ==========================================================================
   CARDS & SYSTEM BLOCKS
   ========================================================================== */

.card {
  background: var(--pure-white);
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  padding: 30px;
  border-top: 4px solid var(--action-teal);
  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-alert {
  border-top-color: var(--alert-coral);
}

.card-img-wrap {
  margin: -30px -30px 24px -30px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card-text {
  color: var(--slate-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.badge-status {
  display: inline-block;
  background-color: #E6F6FC;
  color: #0077A8;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #BAE4F7;
}

/* Circular Updates Section */
.circular-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--action-teal);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
}

.circular-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circular-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.circular-item p {
  font-size: 0.875rem;
  color: var(--slate-muted);
}

/* Section Spacing */
.section {
  padding: 70px 0;
}

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

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

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--slate-muted);
}

.section-dark .section-header p {
  color: #B0C0CE;
}

/* Transparency Block */
.transparency-box {
  background: var(--canvas-offwhite);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--brand-navy);
  border-radius: 2px;
  padding: 32px;
  margin: 40px 0;
}

.statutory-quote {
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 16px 0;
  padding-left: 16px;
  border-left: 3px solid var(--alert-coral);
}

/* ==========================================================================
   TABLES & DATA DISPLAYS
   ========================================================================== */

.data-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  background: var(--pure-white);
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
}

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

.data-table th {
  background-color: var(--brand-navy);
  color: var(--pure-white);
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

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

.data-table tr:hover td {
  background-color: #F8FAFC;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  background: var(--pure-white);
  font-size: 1rem;
  color: var(--dark-slate);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* ==========================================================================
   MASTER FOOTER
   ========================================================================== */

.main-footer {
  background-color: var(--brand-navy);
  color: #D1D9E0;
  padding: 70px 0 0 0;
  border-top: 4px solid var(--action-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3, .footer-col h4 {
  color: var(--pure-white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after, .footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--action-teal);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #BAC7D5;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  min-height: 36px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--pure-white);
  padding-left: 6px;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-form input {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure-white);
  min-height: 44px;
  font-size: 0.9375rem;
}

.footer-newsletter-form input::placeholder {
  color: #8E9FAA;
}

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

/* Mandatory Legal Strip */
.footer-legal-strip {
  background-color: #071520;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: #8D9BA7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

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

/* ==========================================================================
   PAGE BANNER (INTERNAL PAGES)
   ========================================================================== */

.page-hero {
  background-color: var(--brand-navy);
  color: var(--pure-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--action-teal);
}

.page-hero h1 {
  color: var(--pure-white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: #BAC7D5;
  font-size: 1.15rem;
  max-width: 800px;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: #8D9BA7;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: #BAC7D5;
}

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

/* ==========================================================================
   RESPONSIVE MOBILE ARCHITECTURE
   ========================================================================== */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

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

  .utility-strip .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .utility-left, .utility-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--pure-white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
    max-height: 80vh;
    overflow-y: auto;
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 24px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--action-teal);
    background-color: var(--canvas-offwhite);
    padding-left: 10px;
    margin: 4px 16px 8px 16px;
  }

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

  .hero-section {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-summary {
    font-size: 1.05rem;
  }

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

  .inline-form input {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
