/* Custom SAI buttons - mobile first */

.boxed-btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .boxed-btn-sm {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* Boutons colorés pour les liens des pages d'événement */
.boxed-btn-blue,
.boxed-btn-green,
.boxed-btn-cyan,
.boxed-btn-orange,
.boxed-btn-violet {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  text-align: center;
  text-transform: capitalize;
  background: #fff;
  border: 0;
  transition: all 0.3s ease;
}

.boxed-btn-blue {
  color: #1e90ff !important;
  border: 2px solid #1e90ff;
}

.boxed-btn-blue:hover,
.boxed-btn-blue:focus {
  background: #1e90ff;
  color: #fff !important;
  border: 2px solid #1e90ff;
}

.boxed-btn-green {
  color: #28a745 !important;
  border: 2px solid #28a745;
}

.boxed-btn-green:hover,
.boxed-btn-green:focus {
  background: #28a745;
  color: #fff !important;
  border: 2px solid #28a745;
}

.boxed-btn-cyan {
  color: #00bcd4 !important;
  border: 2px solid #00bcd4;
}

.boxed-btn-cyan:hover,
.boxed-btn-cyan:focus {
  background: #00bcd4;
  color: #fff !important;
  border: 2px solid #00bcd4;
}

.boxed-btn-orange {
  color: #f7a70b !important;
  border: 2px solid #f7a70b;
}

.boxed-btn-orange:hover,
.boxed-btn-orange:focus {
  background: #f7a70b;
  color: #fff !important;
  border: 2px solid #f7a70b;
}

.boxed-btn-violet {
  color: #8e44ad !important;
  border: 2px solid #8e44ad;
}

.boxed-btn-violet:hover,
.boxed-btn-violet:focus {
  background: #8e44ad;
  color: #fff !important;
  border: 2px solid #8e44ad;
}

/* Partenaires : logos sur une même ligne avec animation */
.partner-list a {
  text-decoration: none;
}

.partner-list img {
  max-height: 140px;
  width: auto;
}

@keyframes partnerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.partner-float {
  display: inline-block;
  animation: partnerFloat 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.partner-float:hover {
  animation-play-state: paused;
}

/* Page À propos */
.about-section {
  padding: 80px 0;
}

.about-section .section-title {
  font-size: 32px;
  font-weight: 600;
  color: #131313;
  margin-bottom: 20px;
}

.about-section .about-text {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF0000 0%, #c62828 100%);
  color: #fff !important;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  text-transform: capitalize;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.35);
  background: linear-gradient(135deg, #c62828 0%, #FF0000 100%);
  color: #fff !important;
}

.bureau-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 40px;
}

.bureau-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  color: #131313;
  margin-bottom: 30px;
}

.bureau-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.bureau-table th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  color: #fff;
  background: #c62828;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.bureau-table th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.bureau-table th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.bureau-table td {
  padding: 16px 20px;
  background: #f8f9fa;
  font-size: 15px;
  color: #333;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.bureau-table tbody tr:hover td {
  background: #fff;
  border-left: 4px solid #FF0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.bureau-table td:first-child {
  font-weight: 600;
  color: #c62828;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.bureau-table td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

@media (max-width: 767px) {
  .bureau-card {
    padding: 25px;
  }

  .bureau-table th,
  .bureau-table td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn-download {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* Active menu underline */
.header-area .main-header-area .main-menu ul li a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Archives content design */
.archives-content {
  background: #f9fafb;
}

.archives-content:nth-child(even) {
  background: #ffffff;
}

.archives-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #c62828;
  margin-bottom: 30px;
}

.archives-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #131313;
  margin-bottom: 35px;
  line-height: 1.4;
}

.archives-arabic .archives-title {
  font-size: 26px;
}

.archives-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 40px;
  border-left: 5px solid #c62828;
  transition: transform 0.3s ease;
}

.archives-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.archives-arabic .archives-card {
  border-left: none;
  border-right: 5px solid #c62828;
}

.archives-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #c62828;
  margin-top: 30px;
  margin-bottom: 15px;
}

.archives-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
}

.archives-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.archives-rtl {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  font-family: 'Noto Naskh Arabic', sans-serif;
}

.archives-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.archives-arabic .archives-list li {
  padding-left: 0;
  padding-right: 28px;
}

.archives-highlight {
  background: #fff3f3;
  border-left: 4px solid #c62828;
  padding: 20px;
  border-radius: 8px;
  font-weight: 500;
  color: #131313;
  margin-top: 25px;
}

.archives-arabic .archives-highlight {
  border-left: none;
  border-right: 4px solid #c62828;
}

.archives-card-help {
  border-left-color: #0181f5;
}

.archives-card-comm {
  border-left-color: #28a745;
}

.archives-card-help .archives-subtitle {
  color: #0181f5;
}

.archives-card-comm .archives-subtitle {
  color: #28a745;
}

.archives-help .archives-card kbd {
  background: #e9ecef;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

@media (max-width: 767px) {
  .archives-card {
    padding: 25px;
  }

  .archives-title {
    font-size: 22px;
  }

  .archives-text,
  .archives-list li {
    font-size: 14px;
  }
}

/* Modern 404 page */
.not-found-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
}

.not-found-wrap {
  background: #ffffff;
  border-radius: 28px;
  padding: 60px 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.not-found-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: rgba(190, 21, 34, 0.04);
  transform: rotate(20deg);
  pointer-events: none;
}

.not-found-code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #be1522 0%, #7a0e16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.not-found-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #be1522, #ff3355);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 15px 35px rgba(190, 21, 34, 0.3);
}

.not-found-title {
  font-size: 32px;
  font-weight: 700;
  color: #131313;
  margin-bottom: 16px;
}

.not-found-text {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
}

.not-found-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #be1522 0%, #7a0e16 100%);
  color: #ffffff !important;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(190, 21, 34, 0.3);
  transition: all 0.3s ease;
}

.not-found-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(190, 21, 34, 0.4);
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .not-found-code {
    font-size: 80px;
  }

  .not-found-title {
    font-size: 24px;
  }

  .not-found-wrap {
    padding: 40px 24px;
  }
}

/* Webinaire play button */
.webinaire-play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0055 0%, #7a00ff 50%, #00c6ff 100%);
  background-size: 220% 220%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(122, 0, 255, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
  margin: 0 14px 14px 0;
  overflow: hidden;
  z-index: 1;
}

.webinaire-play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff 0%, #7a00ff 50%, #ff0055 100%);
  background-size: 220% 220%;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.webinaire-play-btn i {
  margin-left: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.webinaire-play-btn:not(:disabled) {
  animation: playPulse 2.2s infinite ease-out;
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 0, 255, 0.55); }
  60% { box-shadow: 0 0 0 20px rgba(122, 0, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 0, 255, 0); }
}

.webinaire-play-btn:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.12);
  background-position: right center;
  box-shadow: 0 16px 40px rgba(122, 0, 255, 0.6);
}

.webinaire-play-btn:hover:not(:disabled)::before {
  opacity: 1;
}

.webinaire-play-btn:disabled {
  background: #d1d5db;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

.webinaire-action {
  display: inline-flex;
  align-items: center;
  margin: 14px 14px 10px 0;
  vertical-align: middle;
}

.webinaire-action .webinaire-play-btn {
  margin: 0 12px 0 0;
}

.webinaire-play-label {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
}

.webinaire-play-label:has(+ .webinaire-play-btn:disabled),
.webinaire-action .webinaire-play-btn:disabled + .webinaire-play-label {
  color: #999;
}

.webinaire-actions {
  margin-top: 12px;
}

/* Video lightbox */
.video-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Webinaire / event poster sizing */
.about_thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.video-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-lightbox-player {
  width: 100%;
  max-height: 80vh;
  display: block;
}

.video-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  padding: 0 8px;
  transition: color 0.2s;
}

.video-lightbox-close:hover {
  color: #ff5a5f;
}

@media (max-width: 767px) {
  .video-lightbox {
    padding: 10px;
  }

  .video-lightbox-close {
    top: -38px;
    right: -5px;
    font-size: 32px;
  }
}

/* Page media players */
.page-video-player {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.pdf-viewer-wrap {
  width: 100%;
}

.pdf-viewer {
  width: 100%;
  height: 85vh;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .pdf-viewer {
    height: 70vh;
  }
}
/* Alerte d'information */
.alert-important {
  background-color: #fff3cd;
  border: 2px solid #ffeeba;
  border-radius: 8px;
  padding: 18px 24px;
  font-size: 16px;
  color: #856404;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.alert-important i {
  font-size: 22px;
  color: #e0a800;
}

.alert-important strong {
  color: #533f03;
}
