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

/* ── Variables ─────────────────────────────────────────── */
:root {
  --marine:        #1E1E3C;
  --marine-dark:   #13132A;
  --marine-mid:    #2E2E54;
  --yellow:        #F0D200;
  --yellow-dark:   #C9A200;
  --cream:         #F8F7F0;
  --white:         #FFFFFF;
  --gray:          #6B7280;
  --border:        rgba(30,30,60,0.15);
  --border-yellow: rgba(240,210,0,0.4);
  --shadow:        0 2px 12px rgba(30,30,60,0.10);
  --radius:        10px;
  --font-display:  'Oswald', sans-serif;
  --font-body:     'Source Sans 3', sans-serif;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--marine);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-decoration: none; }
a:hover { opacity: 0.75; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }

/* ── En-tête de page intérieure ─────────────────────────── */
.page-hero {
  background: var(--marine);
  border-bottom: 3px solid var(--yellow);
  padding: 1.4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 100%;
  background: var(--yellow);
}
.page-hero h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 0.2rem; }
.page-hero p  { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--marine);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(30,30,60,0.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.header-brand img { width: 52px; height: 52px; object-fit: contain; transition: transform 0.2s; }
.header-brand:hover { opacity: 1; }
.header-brand:hover img { transform: scale(1.05); }
.header-brand-text { display: none; }
@media (min-width: 480px) { .header-brand-text { display: block; } }
.header-brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.header-brand-sub  { font-size: 0.72rem; color: var(--yellow); }

.site-nav { display: none; }
@media (min-width: 1024px) { .site-nav { display: flex; align-items: center; gap: 0.25rem; } }
.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--yellow); background: rgba(240,210,0,0.1); opacity: 1; }
.site-nav a.active { font-weight: 600; }

.burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; background: var(--marine-dark); border-top: 1px solid rgba(240,210,0,0.2); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--yellow); opacity: 1; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--marine-dark);
  border-top: 3px solid var(--yellow);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-name { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
.footer-brand-sub  { font-size: 0.72rem; color: var(--yellow); }
.footer-desc { line-height: 1.5; font-size: 0.82rem; }
.footer-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.footer-nav a, .footer-contact a {
  display: block;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--yellow); opacity: 1; }
address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: scale(1.03); }
.btn-primary  { background: var(--yellow); color: var(--marine); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--marine); color: var(--white); border: 2px solid var(--yellow); }
.btn-secondary:hover { background: var(--marine-mid); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid rgba(240,210,0,0.5);
}
.btn-outline:hover { background: rgba(240,210,0,0.1); opacity: 1; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-cream { background: var(--cream); box-shadow: none; }
.card-accent { border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; }

.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 99px; font-size: 0.72rem; font-weight: 600; }
.badge-marine { background: var(--marine); color: var(--yellow); }
.badge-yellow { background: rgba(240,210,0,0.18); color: var(--marine); }

/* ── Grille ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(4,1fr); }
}

/* ── Tableaux ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead tr { background: var(--marine); }
thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: rgba(30,30,60,0.04); }
tbody tr:hover           { background: rgba(240,210,0,0.07); }
tbody td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }

/* ── Checklist ───────────────────────────────────────────── */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; font-size: 0.95rem; }
.checklist li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--marine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23F0D200' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Horaires ────────────────────────────────────────────── */
.horaire-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 0.6rem;
}
.horaire-row.special { background: rgba(240,210,0,0.07); border-color: var(--border-yellow); }
.horaire-jour  { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--marine); min-width: 80px; }
.horaire-heure { font-weight: 600; font-size: 0.88rem; min-width: 110px; color: var(--marine); }
.horaire-public { font-size: 0.9rem; color: #444; flex: 1; }

/* ── Logo grid partenaires ───────────────────────────────── */
.logo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(4,1fr); } }
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.logo-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); opacity: 1; }
.logo-item img { width: 90px; height: 55px; object-fit: contain; }
.logo-item span { font-size: 0.72rem; color: var(--gray); text-align: center; line-height: 1.3; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Utilitaires ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-3 { gap: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
