/* ===================================
   HSA - Haute Saintonge Athlétisme
   Styles CSS
   =================================== */

:root {
  /* Couleurs extraites du logo HSA */
  --c-yellow: #fcd800;
  --c-red: #e30613;
  --c-green: #009640;
  --c-blue-l: #009ee3;
  --c-blue-d: #1d3b83;

  --bg-light: #f4f6f9;
  --text-main: #333333;
  --text-light: #666666;
  --white: #ffffff;

  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --container-width: 1100px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

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

/* --- BANDEAU COULEURS (TOP) --- */
.brand-stripes {
  display: flex;
  height: 8px;
  width: 100%;
}
.brand-stripes div { flex: 1; }
.bg-yellow { background-color: var(--c-yellow); }
.bg-red { background-color: var(--c-red); }
.bg-green { background-color: var(--c-green); }
.bg-blue-l { background-color: var(--c-blue-l); }
.bg-blue-d { background-color: var(--c-blue-d); }

/* --- HEADER --- */
header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-blue-d);
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Menu Desktop */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-blue-d);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover { color: var(--c-blue-l); }

/* Soulignement animé */
.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l));
  transition: width 0.3s;
}

.main-nav a:hover::after { width: 100%; }

/* Bouton CTA Menu */
.btn-nav {
  background: var(--c-blue-d);
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
}

.btn-nav:hover {
  background: var(--c-blue-l);
  transform: translateY(-2px);
}

.btn-nav::after { display: none; }

/* --- HERO SECTION --- */
.hero {
  max-width: var(--container-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--c-blue-d);
}

.hero-content .highlight {
  background: linear-gradient(120deg, rgba(252, 216, 0, 0.3) 0%, rgba(252, 216, 0, 0.3) 100%);
  padding: 0 5px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-blue-d) 0%, var(--c-blue-l) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 59, 131, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(29, 59, 131, 0.4);
}

.btn-outline {
  background: white;
  border: 2px solid var(--c-blue-d);
  color: var(--c-blue-d);
}

.btn-outline:hover {
  background: var(--c-blue-d);
  color: white;
}

/* Carte visuelle Hero */
.hero-visual {
  position: relative;
}

.card-info {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.card-info::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background: linear-gradient(135deg, var(--c-yellow) 0%, var(--c-red) 25%, var(--c-green) 50%, var(--c-blue-l) 75%, var(--c-blue-d) 100%);
  z-index: -1;
  border-radius: 28px;
  opacity: 0.9;
  transform: rotate(-2deg);
  box-shadow: 0 15px 40px rgba(29, 59, 131, 0.2);
}

.stat-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--c-blue-d);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
}

/* --- SECTIONS --- */
section { padding: 4rem 1.5rem; }

#activites {
  background: linear-gradient(135deg, #f4f6f9 0%, rgba(0,158,227,0.05) 50%, rgba(252,216,0,0.05) 100%);
  position: relative;
  overflow: hidden;
}

#activites::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,158,227,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

#horaires {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f4f6f9 0%, white 100%);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

#horaires::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(to right, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
  border-radius: 2px;
}

#contact {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: var(--bg-light);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h3 {
  font-size: 2rem;
  color: var(--c-blue-d);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(29, 59, 131, 0.1);
}

.section-header .divider {
  height: 5px;
  width: 100px;
  background: linear-gradient(to right, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
  margin: 0 auto;
  border-radius: 3px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section-header:hover .divider {
  width: 150px;
  transform: rotate(-2deg);
}

.section-header .divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 9px;
  background: linear-gradient(to right, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
  opacity: 0.3;
  border-radius: 5px;
  filter: blur(4px);
  z-index: -1;
}

/* Activités Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.card-activity {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
}

.card-activity::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  opacity: 0.05;
  transform: translate(30%, -30%);
  border-radius: 50%;
  transition: all 0.3s;
}

.card-activity:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-activity:hover::before {
  opacity: 0.15;
  transform: translate(20%, -20%) scale(1.5);
}

.card-activity.jeunes { 
  border-color: var(--c-yellow); 
  box-shadow: 0 5px 20px rgba(252, 216, 0, 0.15);
}
.card-activity.jeunes::before { background: var(--c-yellow); }
.card-activity.jeunes:hover { box-shadow: 0 15px 40px rgba(252, 216, 0, 0.25); }

.card-activity.running { 
  border-color: var(--c-red); 
  box-shadow: 0 5px 20px rgba(227, 6, 19, 0.15);
}
.card-activity.running::before { background: var(--c-red); }
.card-activity.running:hover { box-shadow: 0 15px 40px rgba(227, 6, 19, 0.25); }

.card-activity.sante { 
  border-color: var(--c-green); 
  box-shadow: 0 5px 20px rgba(0, 150, 64, 0.15);
}
.card-activity.sante::before { background: var(--c-green); }
.card-activity.sante:hover { box-shadow: 0 15px 40px rgba(0, 150, 64, 0.25); }

.card-activity h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--c-blue-d); }
.card-activity ul { margin-left: 1rem; margin-top: 1rem; }
.card-activity li { margin-bottom: 0.6rem; position: relative; padding-left: 1.5rem; transition: transform 0.3s; }
.card-activity li:hover { transform: translateX(5px); }

.card-activity.jeunes li::before {
  content: '▸';
  color: var(--c-yellow);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.card-activity.running li::before {
  content: '▸';
  color: var(--c-red);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.card-activity.sante li::before {
  content: '▸';
  color: var(--c-green);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* --- CONTACT SECTION --- */
#contact .grid-3 > div {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

#contact .grid-3 > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l));
  opacity: 0;
  transition: opacity 0.3s;
}

#contact .grid-3 > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

#contact .grid-3 > div:hover::before {
  opacity: 1;
}

/* --- FOOTER --- */
footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 3rem 1.5rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #bbb;
}

.footer-col p strong {
  color: white;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--c-blue-l);
  padding-left: 5px;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  color: #999;
}

.footer-legal {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.3rem;
}

.footer-right {
  color: #999;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* --- HORAIRES DÉTAILLÉS --- */
#horaires {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #f4f6f9 0%, white 100%);
}

.schedule-section {
  background: white;
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.schedule-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
}

.schedule-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Jonzac - Bleu foncé avec dégradé */
.schedule-section.jonzac .schedule-header {
  background: linear-gradient(135deg, var(--c-blue-d) 0%, #2a50a8 100%);
}

.schedule-section.jonzac .schedule-header::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(252, 216, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.schedule-section.jonzac .time-slot {
  border-left: 4px solid var(--c-blue-d);
}

.schedule-section.jonzac .badge {
  background: linear-gradient(135deg, rgba(29, 59, 131, 0.15) 0%, rgba(29, 59, 131, 0.08) 100%);
  color: var(--c-blue-d);
  border: 1px solid rgba(29, 59, 131, 0.3);
}

.schedule-section.jonzac .badge:hover {
  background: linear-gradient(135deg, var(--c-blue-d) 0%, #2a50a8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 59, 131, 0.4);
}

.schedule-section.jonzac .schedule-day h5 {
  color: var(--c-blue-d);
  border-bottom-color: rgba(29, 59, 131, 0.3);
}

/* Montguyon - Rouge avec dégradé */
.schedule-section.montguyon .schedule-header {
  background: linear-gradient(135deg, var(--c-red) 0%, #f03a45 100%);
}

.schedule-section.montguyon .schedule-header::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(252, 216, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.schedule-section.montguyon .time-slot {
  border-left: 4px solid var(--c-red);
}

.schedule-section.montguyon .badge {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.15) 0%, rgba(227, 6, 19, 0.08) 100%);
  color: var(--c-red);
  border: 1px solid rgba(227, 6, 19, 0.3);
}

.schedule-section.montguyon .badge:hover {
  background: linear-gradient(135deg, var(--c-red) 0%, #f03a45 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.schedule-section.montguyon .schedule-day h5 {
  color: var(--c-red);
  border-bottom-color: rgba(227, 6, 19, 0.3);
}

/* Marche Nordique - Vert avec dégradé */
.schedule-section.marche .schedule-header {
  background: linear-gradient(135deg, var(--c-green) 0%, #00b34a 100%);
}

.schedule-section.marche .schedule-header::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(252, 216, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.schedule-section.marche .time-slot {
  border-left: 4px solid var(--c-green);
}

.schedule-section.marche .badge {
  background: linear-gradient(135deg, rgba(0, 150, 64, 0.15) 0%, rgba(0, 150, 64, 0.08) 100%);
  color: var(--c-green);
  border: 1px solid rgba(0, 150, 64, 0.3);
}

.schedule-section.marche .badge:hover {
  background: linear-gradient(135deg, var(--c-green) 0%, #00b34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 150, 64, 0.4);
}

.schedule-section.marche .schedule-day h5 {
  color: var(--c-green);
  border-bottom-color: rgba(0, 150, 64, 0.3);
}

.schedule-section.marche .location {
  border-left-color: var(--c-green);
  background: linear-gradient(135deg, rgba(0, 150, 64, 0.08) 0%, rgba(0, 150, 64, 0.03) 100%);
}

.schedule-header {
  padding: 1.5rem 2rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.schedule-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-header .contact {
  font-size: 0.9rem;
  opacity: 0.95;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  font-weight: 500;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
}

.schedule-day {
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.schedule-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l));
  opacity: 0.6;
  transition: opacity 0.3s;
}

.schedule-day:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}

.schedule-day:hover::before {
  opacity: 1;
}

.schedule-day h5 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid #e5e7eb;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.time-slot {
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 4px solid var(--c-blue-l);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.time-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(29, 59, 131, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.time-slot:hover {
  background: linear-gradient(135deg, #f0f2f5 0%, #fafbfc 100%);
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.time-slot:hover::before {
  opacity: 1;
}

.time-slot small {
  color: #6b7280;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  font-style: italic;
}

.location {
  font-style: italic;
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.08) 0%, rgba(0, 158, 227, 0.03) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--c-blue-l);
  font-weight: 500;
}

.badge {
  background: linear-gradient(135deg, rgba(29, 59, 131, 0.12) 0%, rgba(29, 59, 131, 0.06) 100%);
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-weight: 600;
  display: inline-block;
  font-size: 0.82rem;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.badge:hover {
  transform: scale(1.08) translateY(-2px);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-buttons { justify-content: center; }
  .main-nav { display: none; }
  .schedule-day { border-right: none; border-bottom: 1px solid #eee; }
  .schedule-day:last-child { border-bottom: none; }
}

/* --- MOBILE MENU AMÉLIORÉ --- */
.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-blue-d) 0%, var(--c-blue-l) 100%);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(29, 59, 131, 0.25);
  padding: 12px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mobile-menu-btn span:nth-child(1) {
  top: 13px;
  background: white;
}

.mobile-menu-btn span:nth-child(2) {
  top: 22px;
  background: white;
}

.mobile-menu-btn span:nth-child(3) {
  top: 31px;
  background: white;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(29, 59, 131, 0.35);
}

.mobile-menu-btn.active {
  background: var(--c-red);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.35);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 22px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  background: white;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 22px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  background: white;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 1.5rem;
    margin: 0 1rem;
    animation: slideDown 0.3s ease-out;
    z-index: 998;
  }

  .main-nav.active {
    display: block;
    border-top: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, var(--c-yellow), var(--c-red), var(--c-green), var(--c-blue-l), var(--c-blue-d));
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    opacity: 0;
    animation: fadeIn 0.2s forwards;
  }

  .main-nav li:nth-child(1) { animation-delay: 0.05s; }
  .main-nav li:nth-child(2) { animation-delay: 0.08s; }
  .main-nav li:nth-child(3) { animation-delay: 0.11s; }

  .main-nav a {
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: block;
    font-weight: 600;
    color: var(--c-blue-d);
  }

  .main-nav a:hover {
    background: rgba(29, 59, 131, 0.05);
    color: var(--c-blue-l);
  }

  .main-nav a::after {
    display: none;
  }

  .btn-nav {
    background: linear-gradient(135deg, var(--c-blue-d) 0%, var(--c-blue-l) 100%) !important;
    color: white !important;
    padding: 0.9rem 1.2rem !important;
    box-shadow: 0 3px 10px rgba(29, 59, 131, 0.2);
  }

  .btn-nav:hover {
    background: linear-gradient(135deg, var(--c-red) 0%, var(--c-green) 100%) !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    transform: translateY(-2px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- HERO SECTION MOBILE --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
  }

  /* Carte info identique au PC mais redimensionnée */
  .card-info {
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
  }

  .card-info::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(135deg, var(--c-yellow) 0%, var(--c-red) 25%, var(--c-green) 50%, var(--c-blue-l) 75%, var(--c-blue-d) 100%);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.85;
    transform: rotate(-1deg);
    box-shadow: 0 10px 25px rgba(29, 59, 131, 0.15);
  }

  .card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--c-blue-d);
  }

  .card-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Statistiques en grille propre mais compacte */
  .stat-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }

  .stat {
    flex: 1;
    padding: 0.6rem 0.3rem;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--c-blue-d);
    font-weight: 800;
    margin-bottom: 0.3rem;
  }

  .stat span {
    font-size: 0.8rem;
    color: #444;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
  }
}

/* --- SCHEDULE SECTION MOBILE - ACCORDION STYLE --- */
@media (max-width: 768px) {
  #horaires {
    padding: 2rem 1rem;
    border-radius: 0;
  }
  #horaires::before {
    width: 150px;
  }
  .schedule-section {
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }
  .schedule-header {
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .schedule-header h4 {
    font-size: 1.1rem;
  }
  .schedule-header .contact {
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.2rem;
  }
  .schedule-day {
    padding: 1.2rem 1rem;
    border-radius: 12px;
  }
  .schedule-day h5 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .time-slot {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  .time-slot:active {
    transform: scale(0.98);
  }
  .location {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
  }
  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  #contact {
    padding: 2rem 1rem;
    background: transparent;
    border-radius: 0;
  }
  #contact::before {
    display: none;
  }
  #contact .grid-3 {
    gap: 1.5rem;
  }
  #contact .grid-3 > div {
    padding: 1.5rem;
    border-radius: 16px;
  }
  #contact .grid-3 > div:hover {
    transform: translateY(-5px);
  }
  #contact h4 {
    font-size: 1.1rem;
  }
  #contact .grid-3 p {
    font-size: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
  }
  .footer-right {
    text-align: center;
  }
}

/* --- ACTIVITIES GRID MOBILE --- */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-activity {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .card-activity:active {
    transform: scale(0.98);
  }
  .card-activity h4 {
    font-size: 1.2rem;
  }
  .card-activity li {
    font-size: 0.9rem;
  }
}

/* --- SECTION HEADER MOBILE --- */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  .section-header h3 {
    font-size: 1.6rem;
  }
  .section-header p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

/* --- FOOTER MOBILE --- */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col h4 {
    font-size: 1rem;
  }
  .footer-col p {
    font-size: 0.85rem;
  }
  .footer-col a {
    font-size: 0.9rem;
  }
}

/* --- HEADER MOBILE --- */
@media (max-width: 768px) {
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-container {
    padding: 0.6rem 1rem;
  }

  .logo-area {
    gap: 0.6rem;
  }

  .logo-img {
    height: 45px;
  }

  .logo-text h1 {
    font-size: 0.9rem;
  }
}

/* --- BRAND STRIPES MOBILE --- */
@media (max-width: 768px) {
  .brand-stripes {
    height: 5px;
  }
}

/* --- SCROLL BEHAVIOR MOBILE --- */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  body {
    -webkit-tap-highlight-color: transparent;
  }
  a, button {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  }
}
