/**
 * Babert Addons - Frontend Styles
 * 
 * @package Babert-Addons
 * @since 1.0.0
 */

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.babert-hero-slider-section {
  position: relative;
}
.babert-page-hero { background:linear-gradient(135deg,#004D77 0%,var(--bleu-institutionnel,#0077B6) 50%,#003653 100%); }
.babert-section [hidden] { display:none !important; }

.babert-hero-slider .slider-container {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.babert-hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  transform: scale(0.98);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.babert-hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 2.25rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg, 0 20px 30px -10px rgba(0, 119, 182, 0.15));
}

.hero-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full, 9999px);
  backdrop-filter: blur(5px);
}

.slider-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.dot.active {
  background: #5BC0EB;
  width: 24px;
  border-radius: var(--radius-full, 9999px);
}

/* ==========================================================================
   HIGHLIGHTS CARDS
   ========================================================================== */

.highlights-section {
  margin-top: -3.5rem;
  position: relative;
  z-index: 30;
  margin-bottom: 4.5rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background-color: #FFFFFF;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 20px 30px -10px rgba(0, 119, 182, 0.15));
}

.card-border-red { border-top: 5px solid #E85D5D; }
.card-border-blue { border-top: 5px solid #0077B6; }
.card-border-sky { border-top: 5px solid #5BC0EB; }

.highlight-card .icon-box {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.card-border-red .icon-box { color: #E85D5D; }
.card-border-blue .icon-box { color: #0077B6; }
.card-border-sky .icon-box { color: #5BC0EB; }

.highlight-card h3 {
  font-size: 1.25rem;
  color: #0077B6;
  font-weight: 800;
  line-height: 1.3;
}

.highlight-card p { 
  font-size: 0.9rem; 
  color: #64748B; 
}

/* ==========================================================================
   STATS COUNTER
   ========================================================================== */

.stats-fullwidth-section {
  position: relative;
  width: 100%;
  --babert-stats-overlay-a: rgba(0, 95, 146, 0.92);
  --babert-stats-overlay-b: rgba(0, 54, 83, 0.95);
  background-color: #003653;
  background-image: linear-gradient(var(--babert-stats-overlay-a), var(--babert-stats-overlay-b)), var(--babert-stats-image, linear-gradient(#005f92, #003653));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: var(--babert-stats-attachment, scroll);
  color: #FFFFFF;
  padding: 5rem 1rem;
  text-align: center;
}

.stats-fullwidth-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.stats-fullwidth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stats-fullwidth-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats-fullwidth-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-circle-badge {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 3px solid #5BC0EB;
  box-shadow: 0 0 0 6px rgba(91, 192, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.stat-circle-badge:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-circle-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.stat-circle-description {
  font-size: 0.9rem;
  color: #e2f1f8;
  line-height: 1.5;
  font-weight: 500;
  max-width: 260px;
}

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */

.projects-section {
  background-color: #F1F5F9;
  padding: 5rem 0;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
}

.project-img-holder {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 119, 182, 0.9);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full, 9999px);
  text-transform: uppercase;
}

.project-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-card-body h4 {
  font-size: 1.05rem;
  color: #0077B6;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.project-card-body p { 
  font-size: 0.825rem; 
  color: #64748B; 
  margin-bottom: 1rem; 
}

.project-link {
  color: #E85D5D;
  font-weight: 700;
  font-size: 0.825rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.project-link:hover {
  color: #D9534F;
  gap: 0.6rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section { 
  padding: 5rem 0; 
  background-color: #FFFFFF; 
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr 0.9fr; }
}

.testimonial-card {
  background-color: #F8FAFC;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  border: 1px solid #E2E8F0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
  background-color: #FFFFFF;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #5BC0EB;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
  font-style: italic;
}

.testimonial-quote i.fa-quote-left {
  color: #E85D5D;
  font-size: 0.9rem;
  margin-right: 0.4rem;
}

.testimonial-author {
  font-size: 0.825rem;
  color: #0077B6;
  font-weight: 800;
  margin-top: 0.85rem;
}

.testimonial-role {
  font-size: 0.725rem;
  color: #64748B;
}

.testimonial-banner-card {
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
}

.testimonial-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 119, 182, 0.95), transparent);
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  color: #FFFFFF;
}

.testimonial-banner-overlay p {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.testimonial-video-link,
.testimonial-play--static {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #E85D5D;
  color: #FFFFFF;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.testimonial-video-link { transition: transform .25s ease, background-color .25s ease; }
.testimonial-video-link:hover,
.testimonial-video-link:focus-visible { transform: translate(-50%, -50%) scale(1.08); background: #D9534F; color: #FFFFFF; }
.testimonial-play i { margin-left: 4px; font-size: 1.35rem; }

/* ==========================================================================
   PRESENCE & PARTNERS
   ========================================================================== */

.presence-partners-section { 
  padding: 4rem 0 5rem 0; 
}

.presence-partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .presence-partners-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.presence-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg, 20px);
  padding: 2rem;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
}

.presence-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.presence-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0077B6;
  background-color: #E8F6FC;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
}

.presence-list li i {
  color: #E85D5D;
  font-size: 0.8rem;
}

.partners-card-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg, 20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
}

.partners-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0077B6;
}

.partners-header p {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 0.25rem;
}

.partners-slider-container {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: logoSlide 20s linear infinite;
}

.partners-slider-container:hover .partners-track {
  animation-play-state: paused;
}

@keyframes logoSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
  background: #F8FAFC;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid #E2E8F0;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.partner-logo-badge:hover {
  transform: scale(1.05);
  border-color: #5BC0EB;
}

.partner-logo-badge i { font-size: 1.1rem; }
.partner-logo-badge.onusida i { color: #E85D5D; }
.partner-logo-badge.oms i { color: #0077B6; }
.partner-logo-badge.icap i { color: #005F92; }
.partner-logo-badge.unicef i { color: #5BC0EB; }
.partner-logo-badge.globalfund i { color: #2A9D8F; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.cta-banner-section {
  position: relative;
}

.cta-banner {
  background: linear-gradient(135deg, #0077B6 0%, #005F92 100%);
  color: #FFFFFF;
  padding: 4.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: rgba(91, 192, 235, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 { 
  font-size: clamp(1.5rem, 4vw, 2rem); 
  font-weight: 800; 
  margin-bottom: 0.85rem; 
}

.cta-banner p { 
  color: #e2f1f8; 
  font-size: 1rem; 
  margin-bottom: 2rem; 
  max-width: 650px; 
  margin-left: auto; 
  margin-right: auto; 
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section { 
  padding: 4rem 0; 
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.05fr; }
}

.about-img {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
}

.about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-experience-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0077B6;
  color: #FFFFFF;
  padding: 1.25rem;
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-lg, 0 20px 30px -10px rgba(0, 119, 182, 0.15));
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-experience-badge .exp-num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #5BC0EB;
}

.about-experience-badge .exp-text {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.about-content p {
  color: #64748B;
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .vision-mission-grid { grid-template-columns: 1fr 1fr; }
}

.vm-card {
  background-color: #E8F6FC;
  border: 1px solid rgba(91, 192, 235, 0.3);
  padding: 2rem;
  border-radius: var(--radius-md, 12px);
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.vm-card:hover {
  background-color: #dff2fc;
  transform: translateY(-3px);
}

.vm-card .vm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.vm-card .vm-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0077B6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.vm-card h3 {
  color: #0077B6;
  font-size: 1.25rem;
  font-weight: 800;
}

.vm-card p { 
  color: #334155; 
  font-size: 0.925rem; 
}

/* ==========================================================================
   DOMAINS SECTION
   ========================================================================== */

.domains-section { 
  padding: 5rem 0; 
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid #E2E8F0;
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-card:hover {
  border-color: #5BC0EB;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
}

.info-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm, 8px);
  background-color: #E8F6FC;
  color: #0077B6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.info-card h3 {
  font-size: 1.15rem;
  color: #0077B6;
  font-weight: 800;
}

.info-card p { 
  font-size: 0.875rem; 
  color: #64748B; 
}

/* ==========================================================================
   PRESIDENT MESSAGE
   ========================================================================== */

.president-section {
  background-color: #FFFFFF;
  padding: 5.5rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.president-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .president-layout { grid-template-columns: 1.2fr 0.8fr; }
}

.president-content-border {
  border-left: 4px solid #5BC0EB;
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.president-content-border p {
  color: #334155;
  font-size: 0.975rem;
  line-height: 1.75;
}

.president-signature-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #E2E8F0;
}

.signature-quote {
  font-weight: 700;
  color: #0077B6;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.signature-author {
  font-weight: 800;
  color: #E85D5D;
  font-size: 1rem;
}

.signature-title { 
  font-size: 0.85rem; 
  color: #64748B; 
  font-weight: 500; 
}

.president-media-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.oval-image-wrapper {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.oval-frame {
  width: 100%;
  height: 420px;
  border-radius: 170px;
  overflow: hidden;
  border: 10px solid #E8F6FC;
  box-shadow: var(--shadow-lg, 0 20px 30px -10px rgba(0, 119, 182, 0.15));
}

.oval-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-circle {
  position: absolute;
  bottom: -15px;
  left: -25px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077B6, #005F92);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
  padding: 0.5rem;
  z-index: 5;
}

.badge-circle-name {
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.badge-circle-sub {
  font-size: 0.65rem;
  opacity: 0.9;
  margin-top: 4px;
  font-weight: 600;
  color: #5BC0EB;
}

/* Keep the president badge legible when Elementor global styles are present.
 * Elementor may emit a broad color/background rule after the widget stylesheet;
 * these scoped declarations preserve the widget controls' intended appearance. */
.president-section .badge-circle {
  background: linear-gradient(135deg, #0077B6, var(--babert-badge-end, #005F92));
  color: #FFFFFF;
  opacity: 1;
  isolation: isolate;
}
.president-section .badge-circle-name {
  color: #FFFFFF;
  opacity: 1;
  display: block;
  position: relative;
  z-index: 1;
}
.president-section .badge-circle-sub {
  color: #5BC0EB;
  opacity: 1;
  display: block;
  position: relative;
  z-index: 1;
}
/* 1.0.9 : l'icône du badge suit le réglage Elementor (Font Awesome chargé par le thème). */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 899px) {
  .slider-nav {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
  
  .hero-img-wrapper img {
    height: 280px;
  }
  
  .about-img img {
    height: 320px;
  }
  
  .about-experience-badge {
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
  }
  
  .about-experience-badge .exp-num {
    font-size: 1.75rem;
  }
  
  .oval-image-wrapper {
    width: 260px;
  }
  
  .oval-frame {
    height: 340px;
  }
  
  .badge-circle {
    width: 110px;
    height: 110px;
    bottom: -10px;
    left: -15px;
  }
  
  .badge-circle-name {
    font-size: 0.65rem;
  }
  
  .badge-circle-sub {
    font-size: 0.55rem;
  }
}

@media (max-width: 639px) {
  .stats-fullwidth-section {
    background-attachment: scroll;
  }
  
  .presence-list {
    grid-template-columns: 1fr;
  }
  
  .partners-slider-container {
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  }
}

/* ==========================================================================
   CONTACT FORM & RECAPTCHA
   ========================================================================== */

.contact-form-section {
  padding: 4rem 0;
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md, 0 10px 20px -5px rgba(0, 119, 182, 0.08));
  border: 1px solid #E2E8F0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.contact-form label .required {
  color: #E85D5D;
  margin-left: 0.25rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md, 8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: #0077B6;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.contact-form .form-control::placeholder {
  color: #94A3B8;
}

.contact-form .form-control.error {
  border-color: #E85D5D;
}

.contact-form .form-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form .form-check-input {
  width: 18px;
  height: 18px;
  accent-color: #0077B6;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
}

.contact-form .form-check-label {
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}

.contact-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-error-message {
  font-size: 0.75rem;
  color: #E85D5D;
  min-height: 1rem;
  display: none;
}

.form-error-message.visible {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #0077B6;
  border: none;
  border-radius: var(--radius-full, 50px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-submit:hover:not(:disabled) {
  background: #005F9E;
}

.form-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-submit .btn-loading {
  display: none;
}

.form-submit.loading .btn-text {
  display: none;
}

.form-submit.loading .btn-loading {
  display: flex;
}

.form-messages {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md, 8px);
  display: none;
}

.form-messages.visible {
  display: block;
}

.form-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* reCAPTCHA Styles */
.recaptcha-group {
  margin: 1rem 0;
}

.recaptcha-group .g-recaptcha {
  display: inline-block;
}

.recaptcha-group[data-size="compact"] .g-recaptcha > div {
  transform: scale(0.92);
  transform-origin: 0 0;
}

@media (max-width: 480px) {
  .recaptcha-group .g-recaptcha > div {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

.grecaptcha-badge {
  visibility: visible;
  opacity: 1;
}

.contact-form-wrapper .grecaptcha-badge {
  visibility: visible;
}

.stats-fullwidth-section {background-size:cover;background-position:center;}


/* ==========================================================================
   1.0.4 — Accueil fidèle à la maquette, sans styles inline
   ========================================================================== */
.babert-hero-slider-section {
  background: linear-gradient(135deg, #004D77 0%, var(--bleu-institutionnel, #0077B6) 50%, #003653 100%);
  color: #FFFFFF;
  overflow: hidden;
}
.babert-hero-slider-section .hero-title { color: #FFFFFF; }
.babert-section-header--center { text-align: center; max-width: 650px; margin: 0 auto 3rem auto; }
.babert-section-header--split { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.babert-section-header--split .section-title { margin-bottom: 0; }
.about-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.about-content p strong, .president-content-border p strong { color: inherit; font-weight: 700; }
.presence-title { font-size: 1.35rem; font-weight: 800; color: var(--bleu-institutionnel, #0077B6); margin-top: 0.5rem; }
.presence-desc { font-size: 0.85rem; color: var(--gris-mute, #64748B); margin-top: 0.5rem; }
.partners-note { font-size: 0.8rem; color: var(--gris-mute, #64748B); text-align: center; }
.stat-circle-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-banner-section.cta-layout-full { padding: 0; }
.cta-layout-full .cta-banner { border-radius: 0; }
.cta-layout-full .cta-banner-inner { position: relative; z-index: 1; }
.testimonial-card .testimonial-body { min-width: 0; }
@media (max-width: 639px) {
  .stats-fullwidth-section { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .babert-hero-slider .slide { transition: none; }
}
.testimonial-avatar--empty { display: flex; align-items: center; justify-content: center; background: #E8F6FC; color: var(--bleu-institutionnel, #0077B6); font-size: 1.75rem; }
@media (max-width: 899px) {
  .babert-hero-slider .slide { padding: 2.5rem 0 6rem; }
  .babert-hero-slider .slider-nav { bottom: 3rem; left: 50%; right: auto; transform: translateX(-50%); }
  .highlights-section { margin-top: -1.5rem; margin-bottom: 3rem; }
  .babert-section-header--split { align-items: flex-start; }
}
/* Grilles : empêcher un mot long d'élargir une colonne au-delà de l'écran */
.president-layout > *, .about-grid > *, .hero-grid > *, .presence-partners-grid > *, .highlights-grid > *, .cards-grid-3 > *, .cards-grid-4 > *, .testimonials-grid > *, .stats-fullwidth-grid > * { min-width: 0; }
.babert-section h1, .babert-section h2, .babert-section h3, .babert-section p { overflow-wrap: break-word; }
@media (max-width: 380px) {
  .president-content-border { padding-left: 1rem; }
  .testimonial-card { flex-direction: column; }
  .presence-list { grid-template-columns: 1fr; }
  .hero-buttons .btn, .cta-buttons .btn, .about-buttons .btn { white-space: normal; text-align: center; }
}

/* Elementor can render an inline SVG instead of an icon font. Keep both at the selected icon size. */
.highlight-card .icon-box { line-height: 1; }
.highlight-card .icon-box svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  max-width: 1em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

/* ==========================================================================
   1.0.9 — Vidéo de la carte bannière, logos partenaires
   ========================================================================== */
.testimonial-banner-card { position: relative; overflow: hidden; }
.testimonial-banner-card .testimonial-video-link { cursor: pointer; text-decoration: none; }
.testimonial-video-frame { position: absolute; inset: 0; z-index: 5; background: #000; }
.testimonial-video-frame iframe, .testimonial-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.testimonial-video-close { position: absolute; top: 8px; right: 8px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.testimonial-video-close:hover, .testimonial-video-close:focus-visible { background: #E85D5D; outline: 2px solid #fff; outline-offset: 2px; }
.testimonial-banner-card.is-playing .testimonial-video-link { display: none; }
.testimonial-banner-card.is-playing.hide-text .testimonial-banner-overlay { display: none; }
.testimonial-banner-card { min-height: 260px; }

.partner-logo-badge.has-logo { padding: 0.6rem 1.1rem; background: #FFFFFF; gap: 0.6rem; }
.partner-logo-img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.partner-logo-name { font-weight: 700; white-space: nowrap; }
a.partner-logo-badge { text-decoration: none; color: inherit; }
.babert-partners-gray-yes .partner-logo-img { filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.babert-partners-gray-yes .partner-logo-badge:hover .partner-logo-img, .babert-partners-gray-yes .partner-logo-badge:focus-visible .partner-logo-img { filter: none; opacity: 1; }
@media (min-width: 900px) {
  .president-layout { grid-template-columns: var(--babert-pres-cols, minmax(0, 1.2fr) minmax(0, 0.8fr)); }
  .president-media-col { order: var(--babert-pres-order, 0); }
}
.babert-event-details { list-style: none; margin: 0 0 1.75rem; padding: 1.25rem 1.5rem; background: #E8F6FC; border-left: 4px solid var(--bleu-institutionnel, #0077B6); border-radius: 12px; display: grid; gap: 0.5rem; }
.babert-event-details li { display: flex; gap: 0.5rem; align-items: baseline; }
.babert-event-details i { color: var(--bleu-institutionnel, #0077B6); width: 1.1em; }
