/* ============================================================
   Swiss Radio Rescue — Site de présentation
   Design sobre : fond blanc, texte foncé, accent rouge
   ============================================================ */

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-50: #fef2f2;
  --radius: 10px;
  --nav-h: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; color: var(--gray-900);
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; }
.nav-links {
  list-style: none; display: flex; align-items: center;
  gap: 0; flex: 1; justify-content: center;
}
.nav-link {
  display: block; padding: 0.35rem 0.6rem; border-radius: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--gray-700);
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-link:hover { color: var(--gray-800); background: var(--gray-50); }
.nav-link.active { color: var(--red-600); font-weight: 600; }
.lang-selector {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 0.2rem 0.4rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; color: var(--gray-500);
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--gray-800); background: var(--gray-100); }
.lang-btn.active { color: var(--red-600); background: rgba(220,38,38,0.08); }

.nav-cta {
  padding: 0.4rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: 0.78rem; color: var(--white);
  background: var(--red-600); white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { background: var(--red-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--gray-700); border-radius: 1px; }

/* ============================================================
   PAGES (SPA)
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page { display: none; padding: 1.5rem 0 2rem; }
.page.active { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; border-radius: 14px; overflow: hidden;
  background: url('hero-bg.webp') center 35% / cover no-repeat;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.78), rgba(127,29,29,0.50));
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 2.5rem 2.5rem;
}
.hero-logo {
  width: 76px; height: 76px; border-radius: 14px;
  object-fit: contain; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero h1 { font-size: 2rem; font-weight: 800; color: white; line-height: 1.15; letter-spacing: 0.01em; }
.hero-sub { font-size: 0.85rem; color: rgba(255,255,255,0.92); margin-top: 4px; font-weight: 500; letter-spacing: 0.02em; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--gray-50); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card p { font-size: 0.9rem; color: var(--gray-800); }
.card strong { color: var(--gray-900); }

.intro { border-left: 4px solid var(--red-600); }
.featured {
  background: var(--white);
  border: 1px solid rgba(220,38,38,0.15);
  box-shadow: 0 2px 12px rgba(220,38,38,0.06);
}
.featured .btn-primary {
  display: inline-block; margin-top: 0.75rem;
  padding: 0.55rem 1.5rem; border-radius: 8px;
  font-weight: 700; font-size: 0.88rem; color: var(--white);
  background: var(--red-600);
  box-shadow: 0 3px 12px rgba(220,38,38,0.3);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.featured .btn-primary:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 1.15rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: 0.85rem; margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red-600);
  display: inline-block;
}
.section-subtitle {
  font-size: 0.95rem; font-weight: 600; color: var(--gray-800);
  margin-top: 1.5rem; margin-bottom: 0.25rem;
}
.section-desc { font-size: 0.85rem; color: var(--gray-700); margin-bottom: 0.5rem; }

/* ============================================================
   TILES (accueil — 5 axes)
   ============================================================ */
.tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tile {
  display: flex; flex-direction: column;
  background: var(--red-50); border: 1px solid rgba(220,38,38,0.18);
  border-top: 3px solid var(--gray-300);
  border-radius: var(--radius); padding: 0.9rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.tile:hover {
  border-top-color: var(--red-600);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.tile-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  color: var(--red-600); background: var(--white);
  padding: 0.15rem 0.5rem; border-radius: 4px;
  border: 1px solid rgba(220,38,38,0.15);
  margin-bottom: 0.4rem; align-self: flex-start;
}
.tile h3 { font-size: 0.88rem; font-weight: 700; color: var(--gray-900); margin: 0 0 0.25rem; }
.tile p { font-size: 0.78rem; color: var(--gray-700); flex: 1; margin: 0; }
.tile-link { font-size: 0.75rem; font-weight: 600; color: var(--red-600); margin-top: 0.4rem; }
.tile:hover .tile-link { text-decoration: underline; }

/* ============================================================
   AXE PAGES
   ============================================================ */
.page-header { margin-bottom: 1rem; }
.page-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--red-600); background: var(--red-50);
  padding: 0.25rem 0.7rem; border-radius: 5px; margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.page-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.page-lead { font-size: 0.88rem; color: var(--gray-700); margin-top: 0.15rem; }

.page-intro { border-left: 3px solid var(--red-600); }

.page-cols { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; margin-top: 0.5rem; }

.card h3 { font-size: 0.95rem; font-weight: 650; color: var(--gray-800); margin-bottom: 0.4rem; margin-top: 1rem; }
.card h3:first-child { margin-top: 0; }
.card ul { padding-left: 1.25rem; margin-bottom: 0.25rem; }
.card li { font-size: 0.85rem; color: var(--gray-800); margin-bottom: 0.3rem; }

/* Callout (aside) */
.callout {
  background: var(--red-50); border: 1px solid rgba(220,38,38,0.12);
  border-left: 4px solid var(--red-600); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; align-self: flex-start;
  box-shadow: 0 2px 8px rgba(220,38,38,0.06);
}
.callout p { font-size: 0.88rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.callout strong { color: var(--gray-900); }
.callout-link {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--red-600); margin-top: 0.35rem;
}
.callout-link:hover { text-decoration: underline; }

/* Navigation prev/next */
.page-nav {
  display: flex; justify-content: space-between; margin-top: 1.5rem;
  padding-top: 1rem; border-top: 1px solid var(--gray-200);
}
.page-nav a {
  font-size: 0.85rem; font-weight: 600; color: var(--red-600);
  padding: 0.4rem 0.9rem; border-radius: 6px; border: 1px solid var(--gray-200);
  transition: background 0.15s, border-color 0.15s;
}
.page-nav a:hover { background: var(--red-50); border-color: rgba(220,38,38,0.2); }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.75rem; }
.partner-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.partner-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.partner-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  color: var(--gray-500); background: var(--gray-100);
  padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.partner-logo {
  width: 64px; height: 64px; margin: 0 auto 0.5rem;
  background: var(--gray-100); border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 600; color: var(--gray-400);
}
.partner-card h4 { font-size: 0.88rem; font-weight: 600; color: var(--gray-800); }
.partner-card p { font-size: 0.8rem; color: var(--gray-700); margin-top: 0.25rem; }

.partner-col {
  background: var(--gray-50); border: 1px solid var(--gray-300);
  border-top: 3px solid var(--gray-300);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.partner-col:hover { border-top-color: var(--red-600); }
.partner-col-title { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.45rem; }
.partner-col p { font-size: 0.78rem; color: var(--gray-700); margin-bottom: 0.45rem; line-height: 1.5; }
.partner-offer { flex: 1; }
.partner-col .callout-link { margin-top: auto; padding-top: 0.5rem; font-size: 0.78rem; }

/* Logos partenaires en bas de page */
.sponsors-strip {
  margin-top: 1.5rem; padding: 1.25rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white);
}
.sponsors-strip h4 {
  font-size: 0.78rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.6rem; text-align: center;
}
.sponsors-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.sponsor-slot {
  width: 90px; height: 48px;
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 600; color: var(--gray-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  font-size: 0.75rem; color: var(--gray-700); text-align: center;
  padding: 0.75rem 0; border-top: 1px solid var(--gray-200); margin-top: 1rem;
}
.footer a { color: var(--red-600); }
.footer a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — TABLETTE (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .page-cols { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .navbar { height: 48px; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-toggle { display: flex; order: -1; }
  .nav-links {
    display: none; position: absolute; top: 48px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 0.4rem; flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.5rem 0.75rem; font-size: 0.88rem; }
  .nav-cta { display: none; }
  .container { padding: 0 1rem; }
  .page { padding: 1rem 0 1.5rem; }
  .hero-inner { padding: 1.25rem; gap: 0.75rem; }
  .hero-logo { width: 48px; height: 48px; }
  .hero h1 { font-size: 1.25rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .tile:nth-child(5) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .tile { padding: 0.7rem 0.85rem; }
  .tile h3 { font-size: 0.82rem; }
  .tile p { font-size: 0.72rem; }
  .partners-grid { grid-template-columns: 1fr; }
  .page-cols { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .nav-brand span { font-size: 0.82rem; }
  .hero h1 { font-size: 1.1rem; }
}
