/* ==========================================================================
   RANDONNEE CATURIGE - DESIGN SYSTEM & MASTER STYLESHEET
   Association Loi 1901 - RNA W052001015 - SIREN 502111941 - Chorges (05230)
   ========================================================================== */

:root {
  --color-navy: #0E2335;
  --color-navy-dark: #081521;
  --color-navy-light: #183750;
  --color-teal: #00A3E0;
  --color-teal-hover: #0089bd;
  --color-coral: #E54838;
  --color-coral-hover: #c93b2c;
  --color-canvas: #F4F6F8;
  --color-white: #FFFFFF;
  --color-slate-text: #1A1A1A;
  --color-muted: #556270;
  --color-border: #DDE3EA;
  --color-border-light: #EBF0F5;
  
  --font-heading: 'Montserrat', 'Oswald', Arial, sans-serif;
  --font-body: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-subtle: 2px;
  --shadow-subtle: 0 4px 12px rgba(14, 35, 53, 0.06);
  --shadow-hover: 0 8px 24px rgba(14, 35, 53, 0.12);
  --transition-smooth: all 0.25s ease-in-out;
}

/* Reset & Box Sizing */
*, *::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: 17px;
  line-height: 1.65;
  color: var(--color-slate-text);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-slate-text);
}

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

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

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

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

li {
  margin-bottom: 0.5rem;
}

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

.site-main {
  flex: 1 0 auto;
}

/* Administrative Utility Strip */
.top-utility-strip {
  background-color: var(--color-navy);
  color: #c4d4e3;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0;
}

.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-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-utility-left strong {
  color: var(--color-white);
  font-weight: 600;
}

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

.top-utility-right a.utility-link {
  color: #c4d4e3;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

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

.btn-don-strip {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-don-strip:hover {
  background-color: var(--color-coral-hover);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

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

.master-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

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

.brand-emblem {
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  border-left: 3px solid var(--color-teal);
  border-right: 3px solid var(--color-coral);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Navigation Menu & Dropdowns */
.nav-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 0.6rem 0.85rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  border-radius: var(--radius-subtle);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.main-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  padding: 0.85rem 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-subtle);
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: var(--color-teal);
  background-color: var(--color-canvas);
}

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

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 250px;
  box-shadow: 0 10px 25px rgba(14, 35, 53, 0.15);
  border-top: 3px solid var(--color-teal);
  border-radius: 0 0 var(--radius-subtle) var(--radius-subtle);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1010;
}

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

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--color-slate-text);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border-light);
  min-height: 44px;
  line-height: 1.3;
}

.nav-dropdown a:hover {
  background-color: var(--color-canvas);
  color: var(--color-teal);
  padding-left: 1.5rem;
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem; /* Exactly 2x vertical padding rule */
  min-height: 44px;
  border-radius: var(--radius-subtle);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-teal-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

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

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

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

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

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

/* Cards & Grid Styling */
.card-standard {
  background-color: var(--color-white);
  border-radius: var(--radius-subtle);
  border-top: 4px solid var(--color-teal);
  box-shadow: var(--shadow-subtle);
  padding: 1.75rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

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

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

.card-image-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  overflow: hidden;
  height: 200px;
}

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

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

/* Page Hero Header */
.page-hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--color-teal);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-hero p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 850px;
  color: #d1dfed;
  margin-bottom: 1.5rem;
}

.breadcrumb-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #9cb5ce;
}

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

.breadcrumb-nav span {
  color: #7997b6;
}

/* Content Sections */
.section-padding {
  padding: 3.5rem 0;
}

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

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.badge-statut {
  display: inline-block;
  background-color: rgba(0, 163, 224, 0.12);
  color: var(--color-teal);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-subtle);
  border-left: 3px solid var(--color-teal);
  margin-bottom: 0.75rem;
}

.badge-coral {
  background-color: rgba(229, 72, 56, 0.12);
  color: var(--color-coral);
  border-left-color: var(--color-coral);
}

/* Institutional Callout Block */
.institutional-callout {
  background-color: var(--color-white);
  border-left: 5px solid var(--color-teal);
  border-radius: var(--radius-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 2rem 2.25rem;
  margin: 2rem 0;
}

.institutional-callout h3 {
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.institutional-quote {
  font-style: italic;
  background-color: rgba(0, 163, 224, 0.08);
  border-left: 4px solid var(--color-teal);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-weight: 600;
  color: var(--color-navy);
}

/* Grid Layouts */
.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 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-slate-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-subtle);
  transition: var(--transition-smooth);
}

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

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

/* Tables for Data & Metrics */
.data-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--color-white);
  border-radius: var(--radius-subtle);
  box-shadow: var(--shadow-subtle);
}

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

.data-table th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
}

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

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

/* Master Footer */
.master-footer {
  background-color: var(--color-navy);
  color: #cfdbe6;
  padding-top: 4rem;
  border-top: 5px solid var(--color-teal);
  margin-top: auto;
}

.master-footer h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.master-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--color-teal);
}

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

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

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

.footer-links a {
  color: #a7bccd;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

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

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter-input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-subtle);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: #7997b6;
}

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

/* Mandatory Bottom Legal Strip */
.footer-legal-strip {
  background-color: var(--color-navy-dark);
  color: #8da4b8;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3.5rem;
}

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

/* Timeline Components */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 4px;
  background-color: var(--color-teal);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 4px solid var(--color-coral);
}

.timeline-content {
  background-color: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-subtle);
  box-shadow: var(--shadow-subtle);
  border-top: 3px solid var(--color-navy);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-coral);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

/* Accordions for FAQs */
.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-subtle);
  border-top: 3px solid var(--color-teal);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  width: 100%;
  border: none;
  text-align: left;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-slate-text);
  line-height: 1.65;
}

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

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .master-header .container {
    flex-wrap: wrap;
  }
  
  .nav-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .main-nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }
  
  .main-nav-list.is-open {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
  }
  
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-teal);
    margin-left: 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: var(--color-canvas);
  }
  
  .nav-item.mobile-open .nav-dropdown {
    display: block;
  }
}

@media (max-width: 768px) {
  /* Mandatory Multi-Column Collapse */
  .grid-2, .grid-3, .grid-4, .grid-5, .master-footer .container {
    grid-template-columns: 1fr !important;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  
  .top-utility-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .top-utility-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .page-hero {
    padding: 2.5rem 0;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .timeline::before {
    left: 16px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-dot {
    left: 8px;
  }
}
