/* ============================================
   Partie publique — Effets modernes
   ============================================ */

/* --- Globaux --- */
html {
  scroll-behavior: smooth;
}
body {
  transition: background-color 0.3s ease;
}
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --- Navbar --- */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.logo-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.logo-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.nav-link {
  position: relative;
  padding: 0.35rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-dropdown:hover > .nav-link::after {
  width: 100%;
}
.nav-dropdown-content {
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-content a {
  padding: 0.5rem 1rem;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.nav-dropdown-content a:hover {
  padding-left: 1.25rem;
  background: rgba(218, 106, 42, 0.08);
}
.menu-toggle {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle:hover {
  opacity: 0.8;
}
.mobile-menu {
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.mobile-menu-links a {
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu-links a:hover {
  background: var(--gray);
  padding-left: 1.25rem;
  color: var(--brand);
}

/* --- Landing --- */
.landing-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
  transition: opacity 0.5s ease;
}
.landing-text {
  animation: fadeInUp 1s ease 0.3s both;
}
.landing-text h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.landing-text p {
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.landing-carousel-btn {
  transition: background 0.25s ease, transform 0.2s ease;
}
.landing-carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
}
.landing-carousel-dot {
  transition: background 0.25s ease, transform 0.25s ease;
}

/* --- News --- */
.news-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-card-media {
  overflow: hidden;
}
.news-card-media img {
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-media img {
  transform: scale(1.06);
}
.news-read-more {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.news-read-more:hover {
  transform: translateX(4px);
}

/* --- News modal --- */
.news-modal.active .news-modal-backdrop {
  animation: fadeIn 0.25s ease;
}
.news-modal.active .news-modal-content {
  animation: modalSlideIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.news-modal-close {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.news-modal-close:hover {
  transform: scale(1.1);
}

/* --- Match section --- */
.match-section-bg {
  transition: transform 0.6s ease;
}
.match-section:hover .match-section-bg {
  transform: scale(1.02);
}

/* --- Header section (pages internes) --- */
.header-section {
  position: relative;
  overflow: hidden;
}
.header-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.header-section-inner {
  z-index: 1;
}
.header-section-inner h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease both;
}

/* --- Content section / À propos --- */
.content-section {
  animation: fadeIn 0.6s ease both;
}
.about-grid {
  gap: 2.5rem;
}
.about-grid > div {
  transition: transform 0.3s ease;
}
.about-img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.values-grid > div,
.goals-grid > div {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.values-grid > div:hover,
.goals-grid > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(218, 106, 42, 0.2);
}
.values-grid h3,
.goals-grid h3 {
  color: var(--brand);
  margin-top: 0;
}

/* --- Brand section --- */
.brand-section {
  position: relative;
  overflow: hidden;
}
.brand-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.brand-section .goals-grid > div {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}
.brand-section .goals-grid > div:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}
.brand-section .goals-grid h3 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Auth (login / register) --- */
.auth-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 85vh;
}
.auth-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.auth-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.auth-card h2 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  color: #1e293b;
}
.form-group input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218, 106, 42, 0.15);
  outline: none;
}
.auth-form .btn-primary {
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 106, 42, 0.35);
}
.auth-link a {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.auth-link a:hover {
  text-decoration: underline;
}
.message {
  transition: opacity 0.3s ease;
}

/* --- Bannière page (page-hero) --- */
.page-hero {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.page-hero-img {
  position: relative;
  overflow: hidden;
}
.page-hero-img img {
  transition: transform 0.5s ease;
}
.page-hero:hover .page-hero-img img {
  transform: scale(1.05);
}

/* Bannières programmes : image en entier, pas de zoom au survol, centrée */
.page-hero--programme .page-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}
.page-hero--programme .page-hero-img img {
  transition: none;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}
.page-hero--programme:hover .page-hero-img img {
  transform: none;
}

/* --- Postuler --- */
.postuler-page {
  padding-bottom: 3rem;
}
.postuler-hero {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.postuler-hero-img {
  position: relative;
  overflow: hidden;
}
.postuler-hero-img img {
  transition: transform 0.5s ease;
}
.postuler-hero:hover .postuler-hero-img img {
  transform: scale(1.05);
}
.postuler-hero-text {
  background: linear-gradient(135deg, #e8f0f2 0%, #dde8eb 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.postuler-hero-text a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.postuler-hero-text a:hover {
  background: #c45d22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 106, 42, 0.35);
}
.postuler-offer {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #eee;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.postuler-offer:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(218, 106, 42, 0.2);
  transform: translateX(4px);
}
.postuler-offer-link {
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.postuler-offer-link:hover {
  transform: translateX(2px);
}

/* --- Politiques --- */
.politiques-section .politique-item {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.politiques-section .politique-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(218, 106, 42, 0.25);
  transform: translateX(4px);
}
.politique-item a {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.politique-item a:hover {
  padding-left: 4px;
}

/* --- Programme --- */
.programme-section .programme-grid {
  gap: 2.5rem;
}
.programme-video {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}
.programme-video:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.programme-desc-block {
  margin-top: 1.5rem;
}
.video-section {
  background: var(--gray);
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 2rem 0;
  max-width: 92%;
}
@media (min-width: 1024px) {
  .video-section { max-width: 80%; }
}

/* --- Staff / Équipe --- */
.staff-section .section-title {
  margin-bottom: 2.5rem;
}
.staff-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.staff-card-img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.staff-card-img img {
  transition: transform 0.5s ease;
}
.staff-card:hover .staff-card-img img {
  transform: scale(1.08);
}
.staff-card-body {
  padding: 1.25rem 1rem;
}
.staff-name {
  color: #1e293b;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 1.15rem;
}
.staff-role {
  color: var(--brand);
  font-weight: 600;
}
.staff-email {
  transition: color 0.2s ease;
}
.staff-email:hover {
  color: var(--brand);
}

/* --- Footer --- */
.footer {
  transition: box-shadow 0.3s ease;
}
