/* =====================================================
   PAGE LOADER
===================================================== */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: loaderBounce 0.8s ease-in-out infinite;
}
.loader-dot:nth-child(1) { background: #cb7fd7; animation-delay: 0s; }
.loader-dot:nth-child(2) { background: #f9b435; animation-delay: 0.16s; }
.loader-dot:nth-child(3) { background: #6fc0ba; animation-delay: 0.32s; }
.loader-text {
  font-family: 'Pacifico', cursive;
  color: #cb7fd7;
  font-size: 1.4em;
  margin-top: 16px;
  text-align: center;
}
@keyframes loaderBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* =====================================================
   SCROLL-REVEAL
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible    { opacity: 1; transform: none; }

/* =====================================================
   NAVBAR SHRINK ON SCROLL
===================================================== */
.navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  padding: 2px 0 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.13) !important;
}
.navbar.scrolled .navbar-brand img {
  max-height: 80px;
  transition: max-height 0.3s ease;
}

.navbar-brand {
  padding: 0 15px ;
} 
.navbar  {
    min-height: 67px;
}

.navbar-social a {
  padding: 15px 8px;
  font-size: 16px;
	color: #6fc0ba !important;
}

.navbar-social a:hover {
	color: #cb7fd7 !important;
}

.navbar-collapse {
    max-height: 362px;
}
/* =====================================================
   BANNER — flèche cliquable vers #staff
===================================================== */
.welcome-arrow {
  display: inline-block;
  color: #fff;
  font-size: 52px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s;
  margin-top: 10px;
  opacity: 0;
  animation: wDown 1s ease 0.8s both, arrowBounce 2s ease 2s infinite;
}
.welcome-arrow:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.welcome p {
  animation: wDown 1s ease 0.5s both;
}
@keyframes wDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(12px); }
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: #cb7fd7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s, transform 0.35s, background 0.25s;
  box-shadow: 0 6px 20px rgba(231, 93, 93, 0.4);
  border: none;
  outline: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #d04848;
  transform: translateY(-3px);
}

/* =====================================================
   CAROUSEL PROGRESS BAR
===================================================== */
.carousel-wrap {
  position: relative;
}
.owl-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  width: 0%;
  z-index: 20;
  border-radius: 0 2px 2px 0;
}
.owl-progress.color-red {
  background: #cb7fd7;
}

/* =====================================================
   PRÉSENTATION carousel — images même hauteur
===================================================== */
#staff-carousel .item {
  padding: 0 6px;
}
#staff-carousel .item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}
#staff-carousel .item img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   DERNIÈRES ACTUALITÉS — magazine layout
===================================================== */
#news {
  background: #f7f8fa;
}

/* Grille magazine : 1 grande + 2 petites */
.news-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 20px;
}

/* === ARTICLE PRINCIPAL (gauche) === */
.news-main {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}
.news-main-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-main-img-wrap .carousel,
.news-main-img-wrap .carousel-inner,
.news-main-img-wrap .carousel-inner .item {
  height: 300px;
}
.news-main-img-wrap .carousel-inner .item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.news-main-img-wrap .carousel-control {
  background: none;
  width: 40px;
  opacity: 0;
  transition: opacity 0.3s;
}
.news-main-img-wrap:hover .carousel-control {
  opacity: 1;
}
.news-main-img-wrap .carousel-control .fa {
  font-size: 28px;
  top: 50%;
  position: absolute;
  margin-top: -14px;
}
.news-main-body {
  padding: 28px 32px 32px;
  flex: 1;
}
.news-meta {
  font-size: 0.78em;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-meta i { margin-right: 5px; }
.news-main-title {
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  font-size: 1.45em;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 14px;
  line-height: 1.3;
}
.news-main-text {
  color: #666;
  line-height: 1.8;
  font-size: 0.96em;
  margin: 0;
}

/* === ARTICLES SECONDAIRES (droite) === */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-side-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
}
.news-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}
.news-side-img-wrap {
  width: 255px;
  min-width: 250px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.news-side-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-side-img-wrap--video {
  background: #000;
}
.news-side-img-wrap--video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none; /* désactive l'interaction dans la miniature */
}
.news-side-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-side-title {
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  font-size: 1em;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.35;
}
.news-side-text {
  color: #777;
  font-size: 0.87em;
  line-height: 1.65;
  margin: 0;
}

/* === BADGE catégorie === */
.news-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 5px 14px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.news-badge--orange { background: #f9b435; }
.news-badge--red    { background: #cb7fd7; }
.news-badge--green  { background: #6fc0ba; }

/* Responsive */
@media (max-width: 900px) {
  .news-magazine { grid-template-columns: 1fr; }
  .news-side { flex-direction: row; flex-wrap: wrap; }
  .news-side-card { flex: 1 1 calc(50% - 12px); flex-direction: column; }
  .news-side-img-wrap { width: 100%; min-width: unset; height: 160px; }
  .news-side-img-wrap--video iframe { height: 160px; }
}
@media (max-width: 600px) {
  .news-side { flex-direction: column; }
  .news-side-card { flex-direction: column; }
  .news-side-img-wrap { width: 100%; height: 160px; }
  .news-main-img-wrap,
  .news-main-img-wrap .carousel,
  .news-main-img-wrap .carousel-inner,
  .news-main-img-wrap .carousel-inner .item,
  .news-main-img-wrap .carousel-inner .item img { height: 200px; }
}

/* =====================================================
   CONTACT + MAP — redesign
===================================================== */
#contact-map-block {
  background: #ffffff;
  padding: 0 0 80px;
}
.contact-map-grid {
  display: flex;
  flex-wrap: wrap;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  margin-top: 50px;
}
.contact-form-panel {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 48px 44px 44px;
}
.contact-form-panel h2 {
  font-size: 1.9em;
  margin-bottom: 4px;
}
.contact-form-panel h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: #cb7fd7;
  margin: 10px 0 20px;
  border-radius: 2px;
}
.contact-form-panel .subtitle {
  color: #888;
  font-size: 0.88em;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-form-panel .form-control {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.94em;
  height: auto;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: none;
}
.contact-form-panel .form-control:focus {
  border-color: #cb7fd7;
  box-shadow: 0 0 0 4px rgba(231, 93, 93, 0.1);
  outline: none;
}
.contact-form-panel textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.contact-form-panel .form-group {
  margin-bottom: 14px;
}
.contact-form-panel .btn-primary {
  background: #cb7fd7;
  border-color: #cb7fd7;
  border-radius: 30px;
  padding: 14px 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.88em;
  margin-top: 6px;
  transition: all 0.3s;
}
.contact-form-panel .btn-primary:hover {
  background: #d04848;
  border-color: #d04848;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 93, 93, 0.4);
}
.contact-info-items {
  margin-top: 28px;
  border-top: 1px solid #f0f0f0;
  padding-top: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(231, 93, 93, 0.1);
  color: #cb7fd7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.contact-info-text {
  font-size: 0.9em;
  color: #555;
  line-height: 1.6;
}
.contact-info-text strong {
  color: #222;
  display: block;
  margin-bottom: 1px;
}
.contact-map-panel {
  flex: 1;
  min-width: 670px;
  min-height: 550px;
  position: relative;
}
#map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(15%) contrast(1.05);
  border: 0;
}
.map-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.85em;
  color: #333;
  max-width: 220px;
}
.map-badge strong {
  display: block;
  color: #cb7fd7;
  margin-bottom: 4px;
  font-size: 1.05em;
}

/* =====================================================
   CONTACT FORM — success message
===================================================== */
#form-success {
  display: none;
  background: linear-gradient(135deg, #6fc0ba, #3d9970);
  color: #fff;
  border-radius: 14px;
  padding: 28px 36px;
  margin-top: 20px;
  box-shadow: 0 8px 30px rgba(94, 178, 143, 0.35);
  text-align: center;
}
#form-success i {
  font-size: 2em;
  display: block;
  margin-bottom: 10px;
}

/* =====================================================
   CAPTCHA MATHÉMATIQUE — sans dépendance externe
===================================================== */
.captcha-wrapper {
  margin: 16px 0 12px;
}
.math-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.math-captcha-label {
  font-size: 0.88em;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}
.math-captcha-question {
  font-size: 1.05em;
  font-weight: 800;
  color: #cb7fd7;
  background: rgba(231,93,93,0.1);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
}
.math-captcha-input {
  width: 90px !important;
  min-width: 90px;
  height: auto !important;
  padding: 8px 12px !important;
  font-size: 1em !important;
  text-align: center;
  border: 2px solid #eee !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.math-captcha-input:focus {
  border-color: #cb7fd7 !important;
  box-shadow: 0 0 0 3px rgba(231,93,93,0.12) !important;
}
.math-captcha-icon {
  font-size: 1.3em;
  min-width: 20px;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.math-captcha.shake {
  animation: shake 0.5s ease;
  border-color: #cb7fd7;
}

/* =====================================================
   OWL CAROUSEL — navigation buttons
===================================================== */
.owl-theme .owl-controls .owl-buttons div {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  padding: 0 !important;
  transition: background 0.25s !important;
}
.owl-theme .owl-controls .owl-buttons div:hover {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* =====================================================
   MISSION — strong text color override
===================================================== */
#mission p strong {
  color: rgba(255, 255, 255, 1);
}

/* =====================================================
   RESPONSIVE — mobile
===================================================== */
@media (max-width: 767px) {
  .contact-form-panel { padding: 32px 24px; }
  .contact-map-panel  { min-height: 300px; }
  .contact-map-grid   { border-radius: 14px; }
  .nav--flex {
        flex-direction: column;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

/* =====================================================
   NAV — lien actif selon la section visible (scrollspy)
===================================================== */
.navbar-nav > li > a.active-section {
  color: #cb7fd7 !important;
}