/* ===================================
   GENERAL STYLES
   =================================== */
:root {
  --primary-color: #0099cc;
  --secondary-color: #1a1a2e;
  --accent-color: #ff6b6b;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a2e;
  --text-dark: #333;
  --text-light: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
}

p,
ul,
ol,
li {
  font-family: "Noto Sans", sans-serif;
}

p a,
ul a,
ol a,
li a {
  color: #0099cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

p a:hover,
ul a:hover,
ol a:hover,
li a:hover {
  color: #333333;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

/* Global link styling (except navbar) */
a:not(.nav-link):not(.navbar-brand):not(.btn) {
  color: #0099cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:not(.nav-link):not(.navbar-brand):not(.btn):hover {
  color: #333333;
}

/* Override for social links */
.social-links a {
  color: white !important;
}

.social-links a:hover {
  color: #333333 !important;
}

#tarteaucitronIcon {
  display: none !important;
}

.page-content img {
  width: 100%;
  height: auto;
}

.distance-table-wrapper {
  margin-top: 0px !important;
  padding-top: 3rem !important;
}

.table {
  --bs-table-bg: none !important;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  padding: 1rem 0;
  background: transparent !important;
  box-shadow: none;
  transition: all 0.3s ease;
  height: 100px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Navbar scrolled state - white background */
.navbar.navbar-scrolled {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* ===================================
   BURGER MENU
   =================================== */
.burger-menu {
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Burger menu hover - default state (transparent navbar) */
.burger-menu:hover .burger-line {
  background-color: #0099cc;
}

/* Burger menu when navbar is scrolled */
.navbar-scrolled .burger-line {
  background-color: #0099cc;
}

.navbar-scrolled .burger-menu:hover .burger-line {
  background-color: #333333;
}

/* ===================================
   SIDE PANEL
   =================================== */
.side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
}

.side-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90%;
  height: 100%;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1101;
  overflow-y: auto;
  padding: 2rem;
}

.side-panel.active {
  right: 0;
}

.side-panel-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-panel-close:hover {
  color: #0099cc;
}

.side-panel-nav {
  margin-top: 4rem;
}

.side-panel-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-panel-menu > li {
  margin-bottom: 0.5rem;
}

.side-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: #333;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.side-panel-link:hover {
  background: #f8f9fa;
  color: #0099cc;
  padding-left: 1.5rem;
}

.side-panel-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.side-panel-item.active .side-panel-toggle i {
  transform: rotate(180deg);
}

.side-panel-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.side-panel-item.active .side-panel-submenu {
  max-height: 1000px;
}

.side-panel-submenu li {
  margin: 0;
}

.side-panel-submenu a {
  display: block;
  padding: 0.75rem 1rem 0.75rem 2rem;
  color: #666;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.side-panel-submenu a:hover {
  background: #f8f9fa;
  color: #0099cc;
  padding-left: 2.5rem;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .navbar {
    height: auto;
    padding: 0.5rem 0;
  }

  .navbar-brand img {
    height: 60px !important;
  }

  .side-panel {
    width: 320px;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #0099cc 0%, #0099cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

#home h1 {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

#home p {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.hero-section .btn {
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===================================
   REGISTRATION SECTION
   =================================== */
.registration-section {
  background: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.registration-watermark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 5px;
  white-space: nowrap;
  pointer-events: none;
  font-family: "Bebas Neue", sans-serif;
}

#inscription h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.registration-btn,
#inscription .col-lg-4 a {
  background: white !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  /*font-family: "Bebas Neue", sans-serif !important;*/
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  display: inline-block;
  /* Ajouté pour que les boutons <a> s'affichent correctement */
  text-decoration: none;
  /* Éviter l'effet lien classique */
}

.registration-btn:hover,
#inscription .col-lg-4 a:hover {
  background: #f0f0f0 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--primary-color) !important;
}

/* Correction TYPO3: éviter que le bouton soit coupé au survol */
#inscription .col-lg-4 .frame,
#inscription .col-lg-4 .ce-textpic,
#inscription .col-lg-4 p {
  margin: 0;
  padding: 5px;
  /* Laisse de l'espace pour le box-shadow et le translateY */
  overflow: visible !important;
}

/* ===================================
   INTRODUCTION SECTION
   =================================== */
.introduction-section {
  background: white;
  padding: 5rem 0;
}

.introduction-section h2 {
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  letter-spacing: 3px !important;
  margin-bottom: 2rem !important;
}

/*.introduction-section p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}*/

.introduction-section .text-center {
  margin-top: 3rem;
}

/* ===================================
   TEASER SECTION
   =================================== */
.teaser-section {
  background: var(--light-bg);
  padding: 5rem 0;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Video Thumbnail Overlay */
.video-thumbnail-overlay {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background-image: url("https://img.youtube.com/vi/An7RlySPQio/maxresdefault.jpg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumbnail-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.video-thumbnail-overlay:hover {
  transform: scale(1.02);
}

.video-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
}

.video-category {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  color: #0099cc;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

#teaser h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  color: white;
  letter-spacing: 5px;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ff0000;
  border: none;
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
  padding-left: 5px;
  /* Adjust play icon position */
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
  background: #cc0000;
}

.play-button i {
  font-size: 2rem;
}

#teaser p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.video-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0099cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.channel-name {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-title {
    font-size: 3rem;
    letter-spacing: 3px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .video-description {
    font-size: 0.9rem;
  }

  .video-description br {
    display: none;
  }
}

/* ===================================
   SPORT INCLUSIF SECTION
   =================================== */
.sport-section h2 {
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  letter-spacing: 3px !important;
  margin-bottom: 2rem !important;
}

.sport-section h3 {
  margin-bottom: 1.5rem !important;
  font-family: "Noto Sans", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 300 !important;
}

.sport-section {
  padding: 5rem 0;
}

.sport-badges .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.sport-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sport-icon-item {
  text-align: center;
}

.icon-circle {
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 153, 204, 0.3);
}

.icon-circle:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 153, 204, 0.5);
}

.icon-circle i {
  font-size: 3rem;
  color: white;
}

/* ===================================
   WEATHER SECTION
   =================================== */
.weather-section {
  background: #0099cc;
  color: white;
}

/* Left Info Panel */
/*.weather-info-panel {
  padding: 2rem 0;
}*/

#meteo h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: white;
  letter-spacing: 3px;
  margin-bottom: -0.5rem;
  line-height: 1;
  padding: 2rem 0;
}

#meteo .weather-info-panel p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 2rem;
}

.weather-coordinates {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 8px;
}

.coordinates-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.coordinates-value {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Weather Cards */
.weather-card-new {
  background: white;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.weather-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Different border colors for each card */
.weather-card-new:nth-child(1) {
  border-bottom: 4px solid #ffa500;
}

.weather-card-new:nth-child(2) {
  border-bottom: 4px solid #808080;
}

.weather-card-new:nth-child(3) {
  border-bottom: 4px solid #4169e1;
}

.weather-card-new:nth-child(4) {
  border-bottom: 4px solid #ffa500;
}

.weather-day-new {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.weather-icon-new {
  font-size: 3.5rem;
  margin: 1rem 0;
  color: #333;
}

.weather-icon-new .fa-sun {
  color: #ffa500;
}

.weather-icon-new .fa-cloud {
  color: #808080;
}

.weather-icon-new .fa-cloud-rain {
  color: #4169e1;
}

.weather-icon-new .fa-cloud-sun {
  color: #ffa500;
}

.weather-temp-new {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: #333;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.weather-wind-new {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  #meteo h2 {
    font-size: 3rem;
  }

  .weather-info-panel {
    margin-bottom: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #meteo h2 {
    font-size: 2.5rem;
  }

  .weather-card-new {
    margin-bottom: 1rem;
  }
}

/* ===================================
   NEWS SECTION
   =================================== */
.news-section {
  padding: 5rem 0;
  background: white;
}

/* News Header */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

#actualites .news-header p {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.85rem;
  color: #0099cc;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

#actualites .news-header h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: #333;
  letter-spacing: 3px;
  margin-bottom: 0;
  line-height: 1;
}

/* Navigation Buttons */
.news-navigation {
  display: flex;
  gap: 1rem;
}

.news-nav-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1.2rem;
}

.news-nav-btn:hover {
  border-color: #0099cc;
  color: #0099cc;
  background: #f8f9fa;
}

.news-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.news-nav-btn:disabled:hover {
  border-color: #ddd;
  color: #666;
  background: white;
}

/* Carousel */
.news-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.news-carousel {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

/* News Cards */
.news-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 350px;
  width: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-category {
  background: #0099cc;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Noto Sans", sans-serif;
  display: inline-block;
  width: fit-content;
}

#actualites h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: white;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 992px) {
  #actualites .news-header h2 {
    font-size: 3rem;
  }

  .news-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  #actualites .news-header h2 {
    font-size: 2.5rem;
  }

  .news-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .news-image {
    height: 300px;
  }
}

/* ===================================
   NEWS LIST PAGE (Actualités)
   =================================== */
.news-listpage-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-listpage-card {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

.news-listpage-card:hover {
  background: #0099cc;
  box-shadow: 0 8px 25px rgba(0, 153, 204, 0.35);
}

.news-listpage-card-content {
  padding: 1.75rem 2rem;
}

.news-listpage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-listpage-card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.news-listpage-card:hover .news-listpage-card-title {
  color: white;
}

.news-listpage-card-date {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.news-listpage-card:hover .news-listpage-card-date {
  color: rgba(255, 255, 255, 0.85);
}

.news-listpage-card-excerpt {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

.news-listpage-card:hover .news-listpage-card-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.news-listpage-card-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease;
}

.news-listpage-card:hover .news-listpage-card-footer {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.news-listpage-card-category {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.news-listpage-card:hover .news-listpage-card-category {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .news-listpage-card-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .news-listpage-card-content {
    padding: 1.25rem;
  }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: var(--light-bg);
}

#contact h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: #333;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  line-height: 1;
}

#contact h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #0099cc;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

#contact p {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #666;
}

.contact-card h2 {
  font-family: "Noto Sans", sans-serif !important;
  font-size: 0.75rem !important;
  color: #999 !important;
  letter-spacing: 2px !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* Contact Cards */
.contact-card {
  /*background: white;
    padding: 2rem 1.5rem;
    border-radius: 10px;*/
  text-align: center;
  /*box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);*/
  transition: all 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);*/
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0099cc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  font-size: 1.5rem;
}

.contact-label {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-value {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-main-title {
    font-size: 3rem;
  }

  .contact-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .contact-main-title {
    font-size: 2.5rem;
  }

  .contact-subtitle {
    font-size: 1.1rem;
  }

  .contact-card {
    margin-bottom: 1rem;
  }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: #0099cc;
  color: white;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #333333;
  transform: translateY(-3px);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .sport-icons {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .hero-date {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .icon-circle {
    width: 100px;
    height: 100px;
  }

  .icon-circle i {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .registration-section .section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .registration-form .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.btn,
.btn-primary,
.btn-light,
.btn-link {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.5px;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #007aa3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3);
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #007aa3;
}

/* ===================================
   INTERNAL PAGE TEMPLATE STYLES
   =================================== */

/* Page Banner */
.page-banner {
  position: relative;
  height: 400px;
  /*background-image: url("https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?w=1600");*/
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: white;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.3rem;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Page Content */
.page-content {
  background: white;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: #333;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #0099cc;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: #333;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.content-section h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: #333;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

.content-section h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  margin-top: 1.2rem;
}

.content-section p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1rem;
}

.content-section ul {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

/* Accordions */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
  padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: #0099cc;
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #0099cc;
}

.accordion-button::after {
  filter: brightness(0);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  font-family: "Noto Sans", sans-serif;
  padding: 1.5rem;
  background: white;
}

/* Image Tiles */
.content-tile {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  background: white;
}

.content-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.tile-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-tile:hover .tile-image img {
  transform: scale(1.1);
}

.tile-content {
  padding: 1.5rem;
}

.tile-content h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.tile-content p {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0;
}

/* Document Links */
.document-links,
.external-links {
  list-style: none;
  padding: 0;
}

.document-links li,
.external-links li {
  margin-bottom: 0.8rem;
}

.file-link,
.external-link {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  color: #0099cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.file-link i,
.external-link i {
  font-size: 1.2rem;
  color: #0099cc;
  transition: all 0.3s ease;
}

.file-link:hover,
.external-link:hover {
  color: #333333;
  padding-left: 5px;
}

.file-link:hover i,
.external-link:hover i {
  color: #333333;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-box h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #333;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.sidebar-box p {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
}

.sidebar-cta {
  background: linear-gradient(135deg, #0099cc 0%, #007aa3 100%);
  color: white;
}

.sidebar-cta h4 {
  color: white;
}

.sidebar-cta p {
  color: white;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.info-list li i {
  color: #0099cc;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.btn-outline-primary {
  border: 2px solid #0099cc;
  color: #0099cc;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1.5px;
}

.btn-outline-primary:hover {
  background: #0099cc;
  border-color: #0099cc;
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .banner-title {
    font-size: 3rem;
  }

  .content-section h2 {
    font-size: 2.5rem;
  }

  .sidebar {
    position: relative;
    top: 0;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 300px;
  }

  .banner-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .banner-subtitle {
    font-size: 1.1rem;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .content-section h3 {
    font-size: 1.8rem;
  }
}

/* ===================================
   PAGE BANNER SECTION
   =================================== */
.page-banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-overlay h2 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 4rem !important;
  color: white !important;
  letter-spacing: 4px !important;
  margin-bottom: 1rem !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.banner-overlay h3 {
  font-family: "Noto Sans", sans-serif !important;
  font-size: 1.3rem !important;
  color: white !important;
  letter-spacing: 1px !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5) !important;
}

.page-banner .banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.banner-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  color: white;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.3rem;
  color: white;
  letter-spacing: 1px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* ===================================
   SIDEBAR CONTACT BOX
   =================================== */
.sidebar-contact {
  background-color: #0099cc !important;
  color: white !important;
}

.sidebar-contact h4,
.sidebar-contact h5 {
  color: white !important;
}

.sidebar-contact h5 {
  font-size: 1rem;
}

.sidebar-contact .info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-contact .info-list li {
  color: white !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sidebar-contact .info-list li i {
  color: white;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.sidebar-contact .info-list li a {
  color: white !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.sidebar-contact .info-list li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===================================
   ACTUALITÉS PAGE
   =================================== */
.actualites-content {
  padding-top: 150px;
  background: #f5f5f5;
  min-height: 100vh;
}

.actualites-main-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4.5rem;
  color: #0099cc;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* News Cards */
.news-card {
  background: #f0f0f5;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
  /*background: linear-gradient(135deg, #0099cc 0%, #007aa3 100%);*/
  background: #0099cc;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card-content {
  padding: 2.5rem 3rem;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.news-card-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.3;
  color: #333333;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: white;
}

.news-card-date {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
  color: #666;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-date {
  color: white;
  opacity: 0.95;
}

.news-card-excerpt {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #333;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-excerpt {
  color: white;
  opacity: 0.95;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.news-card-category {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-category {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .actualites-content {
    padding-top: 120px;
  }

  .actualites-main-title {
    font-size: 3rem;
  }

  .news-card-content {
    padding: 1.5rem 1.5rem;
  }

  .news-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-card-title {
    font-size: 1.3rem;
  }

  .news-card-date {
    align-self: flex-start;
  }

  .news-card-excerpt {
    font-size: 0.95rem;
  }
}

/* ===================================
   NEWS DETAIL PAGE
   =================================== */
.news-detail {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-detail-header {
  border-bottom: 2px solid #f0f0f0;
}

.news-detail-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: #333;
  letter-spacing: 2px;
  line-height: 1.2;
}

.news-detail-content {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.news-detail-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.news-detail-content h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: #0099cc;
  letter-spacing: 1.5px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.news-detail-content h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: #333;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-detail-content p {
  margin-bottom: 1.25rem;
}

.news-detail-content ul,
.news-detail-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.news-detail-content li {
  margin-bottom: 0.75rem;
}

.news-detail-content .alert {
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.news-detail-share {
  border-top: 2px solid #f0f0f0;
}

.news-detail-share h5 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: #333;
}

.social-share .btn {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-detail {
    padding: 1.5rem;
  }

  .news-detail-title {
    font-size: 2rem;
  }

  .news-detail-content {
    font-size: 1rem;
  }

  .news-detail-content .lead {
    font-size: 1.1rem;
  }

  .news-detail-content h3 {
    font-size: 1.5rem;
  }

  .social-share .btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }
}

/* ===================================
   TYPO3 – HERO SECTION COMPATIBILITY
   Adaptation du rendu des content elements
   TYPO3 enveloppe chaque élément dans div.frame
   =================================== */

/* Image hero : le div.frame devient la balise couvrant tout le hero */
.hero-section > .frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.hero-section > .frame figure,
.hero-section > .frame picture,
.hero-section > .frame .ce-gallery,
.hero-section > .frame .ce-gallery figure,
.hero-section > .frame .ce-gallery picture {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero-section > .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Frame wrapper : reset styles */
.hero-content .frame {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
}

/* -----------------------------------------------
   TITRE HERO
   Champ "Titre" → <h2>  : Ligne 1 (ex: TRIATHLON)
   Champ "Sous-titre" → <h3> : Ligne 2 (ex: D'YVERDON-LES-BAINS)
   Les deux s'affichent en Bebas Neue, même taille, sans espace entre eux
   ----------------------------------------------- */
.hero-content header h2 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 5rem !important;
  letter-spacing: 5px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
  color: white !important;
  margin-bottom: 0 !important;
  /* Collé avec h3 pour simuler <br> */
}

.hero-content header h3 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 5rem !important;
  letter-spacing: 5px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
  color: white !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

/* -----------------------------------------------
   DATE
   Corps de texte (bodytext) → premier <p> = date
   ----------------------------------------------- */
.hero-content .ce-bodytext > p:first-child {
  font-family: "Noto Sans", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 300 !important;
  letter-spacing: 3px !important;
  margin-bottom: 2rem !important;
  color: white !important;
}

/* Paragraphes du bodytext (reset général) */
.hero-content .ce-bodytext > p {
  color: white !important;
}

/* -----------------------------------------------
   BOUTON HERO
   Lien dans le corps de texte → pill blanc
   ----------------------------------------------- */
.hero-content .ce-bodytext a {
  display: inline-block !important;
  padding: 1rem 2.5rem !important;
  background: white !important;
  color: #333 !important;
  /*font-family: "Bebas Neue", sans-serif !important;*/
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  letter-spacing: 2px !important;
  border-radius: 30px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
}

.hero-content .ce-bodytext a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  color: #333 !important;
  background-color: #d3d4d5 !important;
}

/* -----------------------------------------------
   RESPONSIVE
   ----------------------------------------------- */
@media (max-width: 768px) {
  .hero-content header h2,
  .hero-content header h3 {
    font-size: 3rem !important;
    letter-spacing: 3px !important;
  }

  .hero-content .ce-bodytext > p:first-child {
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
  }
}

/* ===================================
   FOOTER SECTION 
   =================================== */
.footer {
  margin-top: auto;
}

/* ===================================
   ACCORDION 
   =================================== */
.panel-group {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.panel {
  border: 1px solid #0099cc;
  border-radius: 0;
  background: white;
  margin-bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: none;
}

.panel-heading {
  padding: 0;
  cursor: pointer;
  position: relative;
  background: white;
}

.panel-heading h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  color: #333;
  letter-spacing: 1px;
  border: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.panel-heading a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-decoration: none !important;
  color: #333 !important;
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.panel-heading a:hover,
.panel-heading a:not(.collapsed) {
  background-color: rgba(0, 153, 204, 0.05);
}

/* Arrow Icon */
.panel-heading a::after {
  content: "\f078"; /* FontAwesome chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: #0099cc;
  transition: transform 0.3s ease;
}

.panel-heading a:not(.collapsed)::after {
  transform: rotate(180deg);
}

.panel-collapse,
.panel-collapse.collapse {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* .panel-collapse.in is handled by direct style attribute in script.js */

.panel-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  background-color: rgba(0, 153, 204, 0.05);
}

.panel-body p:last-child {
  margin-bottom: 0;
}

.panel-body a {
  color: #0099cc !important;
  text-decoration: none !important;
}

.panel-body a:hover {
  color: #007aa3 !important;
  text-decoration: underline !important;
}

/* ===================================
   SITE POPUP MODAL
   =================================== */
.site-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.site-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.site-popup-modal {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 153, 204, 0.15);
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-popup-overlay.active .site-popup-modal {
  transform: scale(1) translateY(0);
}

/* Close button */
.site-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.site-popup-close:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

/* Content area */
.site-popup-content {
  padding: 2.5rem;
}

/* Image styling inside popup (from TYPO3 textmedia) */
.site-popup-content .ce-gallery,
.site-popup-content .ce-textpic .ce-gallery {
  margin-bottom: 1.5rem;
}

.site-popup-content .ce-gallery img,
.site-popup-content .ce-textpic img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Headings inside popup */
.site-popup-content h1,
.site-popup-content h2,
.site-popup-content h3 {
  font-family: "Bebas Neue", sans-serif;
  color: var(--secondary-color);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.site-popup-content h1 {
  font-size: 2.2rem;
}

.site-popup-content h2 {
  font-size: 1.8rem;
}

.site-popup-content h3 {
  font-size: 1.4rem;
}

/* Text inside popup */
.site-popup-content p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}

/* Links (CTA) inside popup */
.site-popup-content a {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.site-popup-content a:hover {
  color: #007aa3 !important;
}

/* If a button/CTA is present */
.site-popup-content .btn,
.site-popup-content a.btn {
  display: inline-block;
  background: var(--primary-color) !important;
  color: white !important;
  padding: 0.75rem 2rem !important;
  border-radius: 8px;
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border: none;
  margin-top: 0.5rem;
}

.site-popup-content .btn:hover,
.site-popup-content a.btn:hover {
  background: #007aa3 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 153, 204, 0.35);
}

/* Top accent bar */
.site-popup-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    #00ccff,
    var(--primary-color)
  );
  border-radius: 16px 16px 0 0;
}

/* Scrollbar styling for popup */
.site-popup-modal::-webkit-scrollbar {
  width: 6px;
}

.site-popup-modal::-webkit-scrollbar-track {
  background: transparent;
}

.site-popup-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 153, 204, 0.3);
  border-radius: 3px;
}

.site-popup-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 153, 204, 0.5);
}

/* Remove TYPO3 default frame margins inside popup */
.site-popup-content .frame {
  margin: 0;
  padding: 0;
}

.site-popup-content .ce-textpic,
.site-popup-content .ce-bodytext {
  margin: 0;
}

/* Responsive */
@media (max-width: 576px) {
  .site-popup-modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .site-popup-modal::before {
    border-radius: 12px 12px 0 0;
  }

  .site-popup-content {
    padding: 2rem 1.5rem;
  }

  .site-popup-content h1 {
    font-size: 1.8rem;
  }

  .site-popup-content h2 {
    font-size: 1.5rem;
  }

  .site-popup-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
}
