/* Team grid layout for About Us */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.team-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
}

.team-card h3 {
  margin: 0 0 6px;
  font-weight: 700;
}

.team-card .role {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* Informations Page Styles */

.page-header {
  padding: 120px 0 80px 0;
  text-align: center;
  margin-top: 60px;
}

.page-title {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "Russo One", sans-serif; /* Match hero font */
  font-style: italic; /* Match hero italic */
  text-transform: uppercase; /* Consistent with hero title */
  letter-spacing: 1px; /* Slight spacing for readability */
}

.page-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}
.page-header {
  position: relative;
  background: url("../images/road2.jpg") center center / cover no-repeat; /* replaced gradient with gallery image */
  padding: 0; /* remove padding for flex centering */
  padding-top: 60px; /* account for fixed navbar height */
  text-align: center;
  margin-top: 0; /* flush to top so navbar overlays */
  overflow: hidden;
  min-height: 45vh; /* moderate viewport height */
  display: flex;
  align-items: center; /* vertically center content */
  justify-content: center; /* horizontally center content */
}

/* Specific background for results pages */
body.results-page .page-header {
  background: url("../images/pipe.jpg") center center / cover no-repeat;
}

/* Removed dark overlay to keep image undimmed */
/* If readability issues arise, consider a subtle text-shadow (already present) or gradient behind text only. */

.page-header .container {
  position: relative;
  z-index: 2;
}

.info-content {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.info-section {
  background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 107, 53, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.info-section:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 107, 53, 0.6);
  transform: translateY(-3px);
}

.section-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.info-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.info-card i {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-card p {
  font-size: 1.1rem;
  color: #bbb;
  font-weight: 500;
}

/* About page futuristic enhancements */
.about-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.about-page .team-card {
  position: relative;
  background: radial-gradient(
      1200px 600px at 0% 0%,
      rgba(241, 132, 40, 0.08) 0%,
      rgba(26, 26, 26, 0.9) 35%,
      rgba(26, 26, 26, 0.9) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(241, 132, 40, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 32px rgba(241, 132, 40, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.about-page .team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(241, 132, 40, 0.15),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.35;
  pointer-events: none;
}

.about-page .team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 48px rgba(241, 132, 40, 0.14);
  border-color: rgba(241, 132, 40, 0.35);
}

.about-page .team-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-page .team-card .role {
  color: #f18428;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.about-page .team-card .bio {
  color: #cfcfcf;
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-page .info-grid .info-card img {
  filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

@media (max-width: 768px) {
  .about-page .team-grid {
    grid-template-columns: 1fr;
  }
}

/* About page intro overlay section */
.about-page .intro-overlay {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
  border: none;
  box-shadow: none;
}

.about-page .intro-overlay-bg {
  position: absolute;
  inset: 0;
  background: url("../images/ardon2.jpg") center / cover no-repeat;
  filter: contrast(1.05) saturate(1.1) brightness(0.9);
}

.about-page .intro-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 40px;
  min-height: 360px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

.about-page .intro-card {
  max-width: 620px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid rgba(241, 132, 40, 0.25);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 24px rgba(241, 132, 40, 0.08);
}

.about-page .intro-card .section-title {
  margin-bottom: 10px;
}

.about-page .intro-card .section-text {
  margin-bottom: 12px;
}

.about-page .intro-card p {
  color: #e6e6e6;
}

@media (max-width: 768px) {
  .about-page .intro-content-wrap {
    justify-content: center;
    padding: 20px;
  }
  .about-page .intro-card {
    max-width: none;
    width: 100%;
  }
}

.rules-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.rules-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
}

.rules-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.formats-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.format-info-card {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  border-radius: 10px;
  padding: 30px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.format-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.format-info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.format-info-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
}

.cta-container {
  text-align: center;
  margin-top: 30px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #e07520;
}

/* Modal reused styles for Informations page */
.modal-overlay[aria-hidden="true"] {
  display: none !important;
}
.modal-overlay[aria-hidden="false"] {
  display: flex;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-dialog {
  width: min(1100px, 96vw);
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(241, 132, 40, 0.25);
  border: 1px solid rgba(241, 132, 40, 0.25);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2a2a2a, #333);
}
.modal-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.modal-body {
  padding: 0;
}
.modal-body iframe {
  width: 100%;
  height: 85vh;
  display: block;
  background: #000;
}
@media (max-width: 640px) {
  .modal-body iframe {
    height: 75vh;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px 0;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .info-section {
    padding: 25px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .formats-info {
    grid-template-columns: 1fr;
  }
}

/* Programme Section Styles */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.program-card {
  background: #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.program-header {
  background: linear-gradient(135deg, var(--primary-color), #e07020);
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.program-header i {
  font-size: 1.5rem;
}

.program-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.program-content {
  padding: 20px;
  background: #333;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-bottom: 1px solid #444;
  transition: background-color 0.2s ease;
  background-color: #333;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item:hover {
  background-color: #333;
}

.schedule-item .time {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.schedule-item .time i {
  font-size: 0.85rem;
}

.schedule-item .event {
  color: #ddd;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
}

.schedule-item .event i {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .program-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Facilities Grid - Airbnb Style */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.facility-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: #2a2a2a;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.facility-item:hover {
  background: #333;
}

.facility-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  min-width: 24px;
  margin-top: 3px;
}

.facility-text {
  flex: 1;
}

.facility-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.facility-text p {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp-style chat bubbles for FAQ */
.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  word-wrap: break-word;
}

.chat-question {
  background-color: #2a2a2a;
  color: #fff;
  margin-right: auto;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-answer {
  background-color: #f57f3b;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.chat-bubble strong {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.faq-item .faq-question,
.faq-item .faq-answer {
  margin: 0;
}

.faq-item .chat-answer {
  align-self: flex-end;
}

/* Format detail bubbles */
.format-detail-bubble {
  background: rgba(42, 42, 42, 0.6);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.format-detail-bubble:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  transform: translateX(5px);
}

.format-detail-bubble p:last-child,
.format-detail-bubble ul:last-child {
  margin-bottom: 0;
}

/* Full-width format layout */
.format-full {
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 15px;
  position: relative;
}

/* INFINITY format - Orange theme */
.format-full.format-infinity {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.08),
    rgba(224, 112, 32, 0.12)
  );
  border: 2px solid rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
}

/* EXPLORER format - Yellow theme */
.format-full.format-explorer {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.08),
    rgba(255, 179, 0, 0.12)
  );
  border: 2px solid rgba(255, 193, 7, 0.4);
  box-shadow: 0 0 30px rgba(255, 193, 7, 0.15);
}

/* Yellow hover for explorer bubbles */
.format-explorer .format-detail-bubble {
  border-color: rgba(255, 193, 7, 0.2);
}

.format-explorer .format-detail-bubble:hover {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.format-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.format-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.format-header-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(42, 42, 42, 0.6);
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  flex: 1 1 auto;
  min-width: 300px;
}

.format-info-item {
  margin: 0;
  color: #ddd;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.format-info-item i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.format-info-item strong {
  color: #fff;
}

.format-header-img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

.format-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}

.format-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 3-column grid layout for format details */
.format-bubbles-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.bubble-span-2 {
  grid-column: span 2;
}

.bubble-span-3 {
  grid-column: span 3;
}

@media (max-width: 1200px) {
  .format-bubbles-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .bubble-span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .format-bubbles-grid,
  .format-bubbles-grid-3col {
    grid-template-columns: 1fr;
  }

  .bubble-span-2,
  .bubble-span-3 {
    grid-column: span 1;
  }

  .format-header {
    flex-direction: column;
  }

  .format-header-right {
    width: 100%;
  }

  .format-header-img {
    width: 80px;
  }
}

/* Restore bullets for format lists (rewards, tariffs, etc.) */
.format-detail-bubble ul.format-description {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 8px 0 0 0;
  color: #ddd;
}

.format-detail-bubble ul.format-description li + li {
  margin-top: 6px;
}

/* Pricing tables (tarifs d'inscription) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.pricing-table thead th {
  background: linear-gradient(135deg, var(--primary-color), #e07020);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-table tbody td {
  padding: 12px 14px;
  color: #ddd;
  border-top: 1px solid #444;
  font-size: 0.95rem;
}

.pricing-table tbody tr:nth-child(even) td {
  background: #262626;
}

.pricing-table tbody tr:hover td {
  background: #303030;
}

.pricing-table tbody td:last-child {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Orange variant for Infinity format */
.pricing-table-infinity thead th {
  background: linear-gradient(135deg, var(--primary-color), #e07020);
}

.pricing-table-infinity tbody td:last-child {
  color: var(--primary-color);
  font-weight: 700;
}

/* Yellow variant for Explorer format */
.pricing-table-explorer thead th {
  background: linear-gradient(135deg, #ffc107, #ffb300);
}

.pricing-table-explorer tbody td:last-child {
  color: #ffc107;
  font-weight: 700;
}

/* Yellow title for Explorer format */
.format-explorer .format-header h3 {
  color: #ffc107;
}

/* Yellow icons in Explorer format info items */
.format-explorer .format-info-item i {
  color: #ffc107;
}
