/* Surcharges spécifiques CtechAfrica (n'altère pas les fichiers du template Eduma) */

/* ===== Logo hybride (image ou texte, au choix dans l'admin) ===== */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo--image img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-logo--image img {
    height: 52px;
    max-height: 52px;
  }
}

.site-logo--text {
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: capitalize;
}
.site-logo--text.font-sans {
  font-family: 'Poppins', 'Inter', sans-serif;
}
.site-logo--text.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
/* Nav (fond clair, verre dépoli) et footer (fond gris très clair) partagent
   le même texte foncé — un logo blanc y serait quasiment invisible. */
.site-logo--text.site-logo--nav,
.site-logo--text.site-logo--footer {
  color: var(--regal-black, #212427);
}
.site-logo--text:hover {
  color: var(--regal-black, #212427);
}

/* ===== Navbar haut de gamme =====
   Le template positionne .mkp-navbar en absolute sous le bandeau .mkp-head
   (logo + recherche) qu'on n'utilise pas sur ce site. On la remet dans le
   flux normal en sticky, avec un effet verre dépoli, et on pilote sa mise
   en page nous-même avec un flex row dédié. */
.mkp-navbar {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.mkp-navbar.nav-scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(20, 24, 33, 0.08);
}

.ctech-nav-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: nowrap;
}

.ctech-nav-row__logo {
  flex: 0 0 auto;
}

.ctech-nav-row__links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.ctech-nav-row__actions {
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .ctech-nav-row__links {
    justify-content: center;
  }
}

/* Mobile : .navbar-custom est en position fixed hors-flux tant qu'il n'est
   pas ouvert, donc le seul enfant visible de .ctech-nav-row__links est le
   bouton hamburger — sans ceci il reste collé au logo au lieu d'aller au
   bord droit du conteneur (flex + justify-content gère l'espacement). */
@media (max-width: 1023.98px) {
  .ctech-nav-row__links {
    justify-content: flex-end;
  }
}

/* Liens : effet de survol avec petite barre animée (desktop uniquement —
   les liens y ont une largeur naturelle liée au texte) */
.nav-link-modern {
  position: relative;
  color: var(--regal-black, #212427);
}
.nav-link-modern::after {
  content: '';
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 14px;
  height: 2px;
  background-color: var(--regal-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link-modern:hover {
  color: var(--regal-blue);
}
.nav-link-modern:hover::after {
  transform: scaleX(1);
}
.nav-link-modern.is-active {
  color: var(--regal-blue);
  font-weight: 600;
}
.nav-link-modern.is-active::after {
  transform: scaleX(1);
}

/* Menu mobile : les liens y sont des blocs pleine largeur (tiroir à largeur
   fixe) — un soulignement façon "barre étirée" y est disproportionné. On le
   désactive et on indique l'élément actif avec une bordure gauche + un fond
   teinté, plus adapté à une liste verticale. */
@media (max-width: 1023.98px) {
  .nav-link-modern::after {
    content: none;
  }
  .nav-link-modern {
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .nav-link-modern:hover {
    background-color: color-mix(in srgb, var(--regal-blue) 8%, transparent);
  }
  .nav-link-modern.is-active {
    border-left-color: var(--regal-blue);
    background-color: color-mix(in srgb, var(--regal-blue) 10%, transparent);
  }
}

/* CTA principal : dégradé, icône, effet au survol */
.mkp-layout .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--regal-blue), color-mix(in srgb, var(--regal-blue) 65%, #000));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--regal-blue) 35%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mkp-layout .nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--regal-blue) 45%, transparent);
}

/* Hamburger 3 traits animé en croix */
.bars-btn {
  width: 26px;
  height: 18px;
  position: relative;
  cursor: pointer;
}
.bars-btn__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--regal-black, #212427);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.bars-btn__line:nth-child(1) { top: 0; }
.bars-btn__line:nth-child(2) { top: 8px; }
.bars-btn__line:nth-child(3) { top: 16px; }
body.set-bars-overlay .bars-btn__line:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
body.set-bars-overlay .bars-btn__line:nth-child(2) {
  opacity: 0;
}
body.set-bars-overlay .bars-btn__line:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Flou renforcé derrière le menu mobile déployé (le fond/le scroll-lock viennent du template) */
body.set-bars-overlay::before {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* CTA WhatsApp bien visible dans le menu mobile déployé */
.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 20px;
  padding: 13px 18px;
  border-radius: 10px;
  background-color: #25d366;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .ctech-nav-row__actions {
    display: none;
  }
}

@media (max-width: 420px) {
  .text-logo {
    font-size: 19px;
  }
}

.wa-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease;
}

.wa-float-btn:hover {
  transform: scale(1.08);
  color: #fff;
}

.price-tag {
  font-size: 22px;
  font-weight: 700;
}

.badge-draft {
  background-color: #f2994a;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.badge-published {
  background-color: #27ae60;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.content-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===== Anti-déformation des images dynamiques =====
   Le fondateur importe des photos de tailles/formats variés (portrait, paysage,
   carré...). Chaque vignette a un ratio fixe et object-fit: cover, pour ne
   jamais étirer ni déformer une image, quel que soit son format d'origine. */

/* Cartes Formations / Services : le CSS du template fixe object-fit mais laisse
   height: auto, ce qui le rend inopérant — on lui donne une vraie hauteur fixe. */
.courses-layout-2__items__top {
  aspect-ratio: 4 / 3;
}
.courses-layout-2__items__top img {
  height: 100% !important;
  object-fit: cover;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 576px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f7fb;
}
.gallery-item__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item__media:hover img {
  transform: scale(1.06);
}
.gallery-item__media--video {
  background: linear-gradient(135deg, #2b2f36, #12151a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.gallery-item__caption {
  padding: 10px 12px;
}

/* Témoignages */
.testimonial-card {
  height: 100%;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #eee;
  background-color: #fff;
}
.testimonial-card__rating {
  margin-bottom: 10px;
}
.testimonial-card__quote {
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Partenaires */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 30px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 170px;
  padding: 12px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 10px rgba(20, 24, 33, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 24, 33, 0.08);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== Robustesse mobile ===== */
html, body {
  overflow-x: hidden;
}
@media (max-width: 575.98px) {
  .mkp-banner__left h1,
  .page-hero h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  h2.fs-30 {
    font-size: 22px !important;
  }
}
/* Zones tactiles confortables pour les CTA (WhatsApp / inscription / paiement) */
.button.button-type-01 {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Places / dates de session */
.seats-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.seats-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.seats-badge--date {
  background-color: #f0f2f7;
  color: #444;
}
.seats-badge--ok {
  background-color: #e6f7ec;
  color: #1e8a4c;
}
.seats-badge--urgent {
  background-color: #fdece9;
  color: #d94f3d;
  animation: pulse-urgent 1.8s ease-in-out infinite;
}
.seats-badge--full {
  background-color: #eee;
  color: #777;
}
@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Témoignages audio / vidéo */
.testimonial-card__media {
  margin-bottom: 18px;
}
.testimonial-card__video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.testimonial-card__video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.testimonial-card__media audio {
  border-radius: 30px;
}

/* ===== Page Contact ===== */
.contact-info-card {
  background-color: #f7f9fb;
  border-radius: 14px;
  padding: 30px;
  height: 100%;
}
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e6f7ec;
  color: #1e8a4c;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}
.contact-info-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-info-item i {
  color: var(--regal-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #eef0f3;
}

/* Accordéon FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--regal-black, #212427);
  cursor: pointer;
}
.faq-question__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-question__icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fafbfc;
}
.faq-item.is-open .faq-answer {
  max-height: 600px;
}
.faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .contact-map-wrap {
    min-height: 260px;
  }
}
