/* ==========================================================================
   BASKETALTITUDE - Feuille de style principale
   Conception UI/UX pour Association Loi 1901 à Pamiers
   ========================================================================== */

:root {
  --color-utility-orange: #E64A19;
  --color-navy-primary: #0A4260;
  --color-navy-hover: #073046;
  --color-teal-action: #0082AD;
  --color-teal-hover: #00688B;
  --color-magenta-accent: #C2185B;
  --color-magenta-hover: #9C1045;
  --color-green-conservation: #2E7D32;
  --color-green-hover: #1B5E20;
  --color-banner-red: #D32F2F;
  --color-banner-red-hover: #B71C1C;
  --color-heading: #0F172A;
  --color-body: #475569;
  --color-bg-white: #FFFFFF;
  --color-bg-softgreen: #F0FDF4;
  --color-bg-lightgray: #F8FAFC;
  --color-border: #E2E8F0;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-leaf: 20px 80px 20px 80px;
  --radius-leaf-alt: 80px 20px 80px 20px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.14);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background-color: var(--color-bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

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

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

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

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-bar {
  background-color: var(--color-utility-orange);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.top-bar-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-links a {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.top-bar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.main-header {
  background-color: var(--color-navy-primary);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #FFFFFF;
  text-decoration: none;
}

.brand-badge {
  background-color: var(--color-utility-orange);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  background-color: var(--color-navy-hover);
  color: #FFFFFF;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  min-width: 250px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

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

.dropdown-link {
  color: var(--color-heading);
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--color-bg-softgreen);
  color: var(--color-green-conservation);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* 3-Button Sticky Action Strip */
.sticky-action-strip {
  background-color: #052435;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.action-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.strip-btn-teal {
  background-color: var(--color-teal-action);
}
.strip-btn-teal:hover {
  background-color: var(--color-teal-hover);
  box-shadow: 0 4px 12px rgba(0, 130, 173, 0.35);
}

.strip-btn-magenta {
  background-color: var(--color-magenta-accent);
}
.strip-btn-magenta:hover {
  background-color: var(--color-magenta-hover);
  box-shadow: 0 4px 12px rgba(194, 24, 91, 0.35);
}

.strip-btn-green {
  background-color: var(--color-green-conservation);
}
.strip-btn-green:hover {
  background-color: var(--color-green-hover);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

/* ==========================================================================
   BUTTONS & UI COMPONENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-banner-red);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--color-banner-red-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.btn-teal {
  background-color: var(--color-teal-action);
  color: #FFFFFF;
}
.btn-teal:hover {
  background-color: var(--color-teal-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 130, 173, 0.35);
}

.btn-green {
  background-color: var(--color-green-conservation);
  color: #FFFFFF;
}
.btn-green:hover {
  background-color: var(--color-green-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}
.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--color-navy-primary);
}

/* Asymmetric leaf border cards */
.leaf-card-img {
  border-radius: var(--radius-leaf);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.leaf-card-img-alt {
  border-radius: var(--radius-leaf-alt);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leaf-card-img img,
.leaf-card-img-alt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.leaf-card-img:hover img,
.leaf-card-img-alt:hover img {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-bg-light {
  background-color: var(--color-bg-lightgray);
}

.section-bg-green {
  background-color: var(--color-bg-softgreen);
}

.section-bg-navy {
  background-color: var(--color-navy-primary);
  color: #FFFFFF;
}

.section-bg-navy h2,
.section-bg-navy h3,
.section-bg-navy p {
  color: #FFFFFF;
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  color: var(--color-teal-action);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Notre Mission Standalone Card */
.notre-mission-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-bg-softgreen) 100%);
  border: 2px solid #C8E6C9;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.notre-mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-green-conservation);
}

.notre-mission-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.notre-mission-badge {
  background-color: var(--color-green-conservation);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notre-mission-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 0;
}

/* Metric Counter Blocks */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-utility-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
  color: var(--color-teal-action);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  display: none;
  font-size: 1rem;
  color: var(--color-body);
}

.faq-item.active .faq-answer {
  display: block;
}

/* News Preview Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card-img {
  height: 220px;
  overflow: hidden;
}

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

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-green-conservation);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--color-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Interactive Map Block */
.map-container {
  background-color: #E2E8F0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 420px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1E293B;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

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

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

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-softgreen);
  color: var(--color-green-conservation);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
}

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

.main-footer {
  background-color: #062638;
  color: #94A3B8;
  padding-top: 4rem;
  border-top: 4px solid var(--color-utility-orange);
  font-size: 0.95rem;
}

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

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-nav h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-nav h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-utility-orange);
}

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

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  min-height: 24px;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background-color: #0F172A;
  color: #FFFFFF;
  font-size: 0.9rem;
  min-height: 44px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-teal-action);
}

.accreditations-strip {
  background-color: #041B28;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accreditations-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.accreditation-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accreditation-icon {
  color: var(--color-green-conservation);
  font-size: 1.25rem;
}

.footer-legal-bar {
  background-color: #02121A;
  padding: 2rem 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #94A3B8;
  text-align: center;
}

.footer-mandatory-text {
  max-width: 960px;
  margin: 0 auto 1.25rem auto;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-weight: 600;
  color: #E2E8F0;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-strip-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .top-bar-links {
    justify-content: center;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-navy-primary);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  
  .nav-item.open .nav-dropdown {
    display: block;
  }
  
  .dropdown-link {
    color: #E2E8F0;
    padding: 0.65rem 1rem;
  }
  
  .dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
  }
  
  .news-grid,
  .footer-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 3rem 0;
  }
}
