/* Variables & Thème Vert Forêt */
:root {
  --primary: #016A2C;
  --primary-hover: #015222;
  --primary-light: #E8F5E9;
  --text: #222222;
  --text-muted: #555555;
  --bg-light: #F4F8F5;
  --white: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Réinitialisation de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

/* Image d'arrière-plan globale FIXE par défaut (sur Ordinateurs / Grand écran) */
body {
  background-color: var(--primary-light);
  background-image: url('assets/back.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Utilitaires */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.alt-bg {
  background-color: transparent;
}

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

.margin-top {
  margin-top: 1.5rem;
}

.margin-top-sm {
  margin-top: 0.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.separator {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* En-tête / Navigation (Translucide) */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Boutons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: var(--primary-hover);
}

.button.secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button.secondary:hover {
  background-color: var(--white);
}

/* Section Hero */
.hero {
  padding: 4rem 0 2rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.hero-content {
  background: rgba(255, 255, 255, 0.92);
  padding: 2.25rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero .eyebrow {
  color: var(--primary);
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-logo {
  max-width: 240px;
  width: 100%;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--white);
}

/* Cartes Translucides (Ordinateur) */
.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* On applique un padding interne homogène pour ces deux cartes */
.player-card,
.section-card {
  padding: 2rem;
}

.player-wrap {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

/* Responsive Player RadioKing */
.player-vertical {
  display: block;
}

.player-horizontal {
  display: none;
}

@media (min-width: 600px) {
  .player-vertical {
    display: none;
  }
  .player-horizontal {
    display: block;
  }
}

.player-fallback {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.player-fallback a {
  color: var(--primary);
  font-weight: 600;
}

/* Bloc Participez */
.participate-box h3 {
  margin-bottom: 0.5rem;
}

.participate-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Réseaux Sociaux */
.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-row.center {
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link.lg {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.social-link.facebook {
  background-color: #1877F2;
}

.social-link.facebook:hover {
  background-color: #1565C0;
}

.social-link.instagram {
  background-color: #E1306C;
}

.social-link.instagram:hover {
  background-color: #C13584;
}

/* Présentation / Green Card */
.content-card.green-card {
  background-color: rgba(232, 245, 233, 0.92);
  border-color: rgba(1, 106, 44, 0.2);
  padding: 2rem;
}

.content-card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.content-card p + p {
  margin-top: 1rem;
}

/* Widget Facebook Centré et Ajusté */
.facebook-widget-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  min-height: 650px;
}

.facebook-widget-wrap iframe {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* Contact Card */
.contact-shell {
  max-width: 700px;
}

.contact-card {
  padding: 2.5rem 1.5rem;
}

.contact-methods {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.email-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Pied de page */
.site-footer {
  background-color: #1E2522;
  color: #D0D7D3;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-name {
  display: block;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #A0AAA4;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--white);
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Accordéon Mentions Légales */
.legal-accordion {
  border-top: 1px solid #333D38;
  padding-top: 1rem;
  margin-top: 1rem;
}

.legal-accordion summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #A0AAA4;
  user-select: none;
}

.legal-accordion summary:hover {
  color: var(--white);
}

.legal-content {
  padding-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.legal-grid ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #707A74;
  margin-top: 2rem;
}

/* ==========================================================================
   MODE MOBILE (Restitution du visuel classique pour téléphones)
   ========================================================================== */
@media (max-width: 600px) {
  body {
    background-image: none;
    background-color: var(--white);
  }

  .hero {
    padding: 3.5rem 0;
    min-height: auto;
    background-image: url('assets/back.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
  }

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

  /* Sur mobile, la carte redevient complètement opaque et classique */
  .card {
    background: var(--white);
    border: 1px solid var(--border);
    backdrop-filter: none;
  }

  .content-card.green-card {
    background-color: var(--primary-light);
  }

  .nav-links {
    display: none;
  }
}