:root {
  --brand-green: #74b36e;
  --brand-dark: #0b2c66;
  --brand-red: #e52722;
  --text: #1c1c1c;
  --white: #fff;
  --overlay: rgba(0,0,0,.35);
  --overlay-strong: rgba(0,0,0,.55);
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  color: var(--text);
  background: #f7f8fa;
  overflow-x: hidden; /* Évite le scroll horizontal */
}

/* FALLBACK GLOBAL POUR LA PRODUCTION */
* {
  box-sizing: border-box !important;
}

/* 🔥 FORÇAGE ULTRA SPÉCIFIQUE POUR LA PRODUCTION */
body section#live-youtube,
body .live-youtube-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body section#live-youtube .video-container-fullwidth,
body .live-youtube-section .video-container-fullwidth {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #000 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body section#live-youtube .video-wrapper,
body .live-youtube-section .video-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 56.25% !important;
  overflow: hidden !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body section#live-youtube .video-wrapper iframe,
body .live-youtube-section .video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ✅ PROTECTION MAXIMALE CONTRE LES OPTIMISEURS CSS */

/* Override pour tous les sélecteurs possibles de la section live */
[id="live-youtube"],
[class*="live-youtube"],
section[id*="live"],
.live-youtube-section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override pour le conteneur vidéo - ALL VARIATIONS */
[class*="video-container"],
.video-container-fullwidth,
#live-youtube [class*="video-container"] {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #000 !important;
  display: block !important;
  box-shadow: none !important;
  border: none !important;
}

/* Override pour le wrapper vidéo - ALL VARIATIONS */
[class*="video-wrapper"],
.video-wrapper,
#live-youtube [class*="video-wrapper"] {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 56.25% !important;
  overflow: hidden !important;
  background: #000 !important;
  display: block !important;
}

/* Override pour les iframes YouTube - ULTRA SPÉCIFIQUE */
iframe[src*="youtube"],
iframe[src*="youtu.be"],
[class*="video-wrapper"] iframe,
.video-wrapper iframe,
#live-youtube iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  background: #000 !important;
  transform: scale(1) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Forçage des classes YouTube internes */
.ytp-cued-thumbnail-overlay-image,
.ytp-cued-thumbnail-overlay,
[class*="ytp-cued"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ===================== 🔹 TOPBAR ===================== */
.topbar {
  padding: 10px 12px; /* 👍 espace f les côtés */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0b8b4a, #2fb879);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  text-align: center;
  z-index: 99999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 🔥 VERSION FIXE (sans animation) */
.typewriter {text-align: center;   /* 🔥 centre le texte */
  display: inline-block;
  white-space: nowrap;
  overflow: visible; /* important */
}

.typewriter span {
  font-size: 16px;
  color: #fff;
}

/* 🎨 Couleur du highlight */
.topbar strong {
  color: #fffacd;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  text-decoration: underline;
}
@media (max-width:768px){
  header{
    top: 42px !important; /* topbar mobile */
  }
}
@media (max-width:480px){
  header{
    top: 38px !important; /* très petit écran */
  }
}
/* ===================== 🔹 RESPONSIVE ===================== */

/* 📱 MOBILE */
@media (max-width: 480px) {
  .typewriter {
    border-right-width: 1px;
  }
  .typewriter span {
    font-size: 13px;
    animation: typing 8s steps(40) infinite;
  }
}

/* TABLETTE */
@media (min-width: 481px) and (max-width: 768px) {
  .typewriter span {
    font-size: 14px;
    animation: typing 7s steps(50) infinite;
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .typewriter span {
    font-size: 16px;
  }
}


/* ===================== 🔹 RESPONSIVE ===================== */
@media (max-width: 480px) {
  .typewriter span {
    font-size: 10px;
    width:50%; 
  }

  .topbar {
    padding: 10px 2px; 
     
  }

  


}

@media (min-width: 481px) and (max-width: 768px) {
  .typewriter span {
    font-size: 14px;
    padding: 0 20px;
  }
}

@media (min-width: 769px) {
  .typewriter span {
    font-size: 16px;
  }
}


/* ===================== 🔹 HEADER ===================== */
header {
  position: sticky;
  top: 40px; /* On remplace margin-top par top */
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}


.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img { height: 70px; width: auto; }

nav.menu { margin-left: auto; }

.menu ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 🔹 Lien actif dans le menu */
.menu a.active {
  color: #74b36e;
  position: relative;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #74b36e;
  border-radius: 2px;
  transition: all 0.3s ease;
}



.menu a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: .95rem;
  opacity: .9;
}

.menu a:hover {
  color: var(--brand-dark);
  opacity: 1;
}

.btn-abstracts {
  background: var(--brand-green);
  color: #fff !important;
  border-radius: 8px;
  padding: .65rem 1rem;
  box-shadow: 0 6px 14px rgba(37, 116, 17, 0.18);
}

.btn-abstracts:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(23, 47, 11, 0.25);
}

/* =======================================================
   📱 MENU MOBILE & TABLETTE – STYLE MODERNE
   ======================================================= */

/* 🍔 Bouton hamburger */
.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  color: var(--brand-dark);
  transition: transform .3s ease;
}

.hamburger:active {
  transform: scale(0.85);
}

/* ☰ Icon lines (3 bars) */
.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #0b2c66;
  border-radius: 4px;
}

/* Animation burger → X */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* 📱 MENU MOBILE */
@media (max-width: 980px) {

  nav.menu {
    display: block;
    position: fixed;
    top: calc(40px + 60px); /* topbar (40px) + header (60px) */
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all .35s ease;
    box-shadow: 0 12px 25px rgba(0,0,0,.08);
    z-index: 999;
  }

  nav.menu.open {
    height: auto;
    padding: 12px 0 20px;
    visibility: visible;
    opacity: 1;
  }

  nav.menu ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 12px;
  }

  nav.menu ul li a {
    width: 100%;
    display: block;
    padding: 12px 22px;
    font-size: 1.05rem;
    color: #0b2c66;
    border-left: 4px solid transparent;
    transition: all .3s ease;
  }

  nav.menu ul li a:hover {
    background: #f1f5f2;
    border-left: 4px solid #74b36e;
    color: #0b2c66;
  }

  /* Bouton Abstract → wasti f mobile */
  .btn-abstracts {
    margin-top: 8px;
    width: calc(100% - 40px);
    margin-left: 20px;
    text-align: center;
    padding: 13px 0;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  /* Hamburger visible */
  .hamburger { display: block; }
}

/* TABLETTE – amélioration layout */
@media (min-width: 768px) and (max-width: 980px) {

  nav.menu ul li a {
    font-size: 1.15rem;
    padding: 14px 28px;
  }

  .btn-abstracts {
    font-size: 1.1rem;
    padding: 15px;
  }
}


/* ===================== 🔹 HERO ===================== */
.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  background: #000;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,var(--overlay),var(--overlay-strong));
}

.hero .inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.kicker {
  font-weight: 800;
  font-size: clamp(2.2rem,6vw,6.5rem);
}

.kicker .thin { font-weight: 300; }

.title {
  font-weight: 800;
  font-size: clamp(1.6rem,3vw,3rem);
  margin: .4rem 0 .2rem;
}

.subtitle {
  max-width: 900px;
  font-size: 1.05rem;
  opacity: .95;
}

.cta-row {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 700;
  padding: .8rem 1.1rem;
  border-radius: 10px;
  border: 2px solid #ffffff28;
  color: #fff;
}

.btn:hover { background: #ffffff1a; }

.btn.primary {
  background: var(--brand-red);
  border-color: transparent;
}

.btn.primary:hover { filter: brightness(1.05); }

.hero-text-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: -180px;
  margin-bottom: 20px;
}

.hero-text-image img {
  height: auto;
  margin-left: 100px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
  animation: fadeInUp 1.3s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 🧩 Structure */
.separator-amarf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
/* 🌿 Separator spécial Programme */
.separator-amarfprogramme {
  display: flex;
  margin-left:100px;
      
  gap: 6px;
      /* ✅ centre dans la page */
  position: relative;
}

/* Lignes vertes épaisses et brillantes */
.separator-amarfprogramme .line {
  height: 5px;
  width: 120px;
  background: linear-gradient(90deg, #5fae63, #7fcf85, #5fae63);
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px rgba(116,179,110,0.4);
}

/* Logo central légèrement plus grand et animé */
.separator-amarfprogramme .logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulseLogo 3s ease-in-out infinite;
}

.separator-amarfprogramme .logo-amarf {
  height: 40px;
  margin-top:-17px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(59%) sepia(11%) saturate(922%) hue-rotate(74deg) brightness(94%) contrast(87%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* ✨ Hover effects — glowing animation */
.separator-amarfprogramme:hover .logo-amarf {
  transform: rotate(0deg) scale(1.1);
  filter: brightness(1.2) saturate(120%) drop-shadow(0 0 12px rgba(116,179,110,0.8));
}

.separator-amarfprogramme:hover .line {
  width: 130px;
  background: linear-gradient(90deg, #74b36e, #a6e59e, #74b36e);
  animation: shimmerProgramme 1.8s linear infinite;
}


@keyframes shimmerProgramme {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

/* 📱 Responsive */
@media (max-width: 600px) {
  .separator-amarfprogramme .line {
    width: 100px;
    height: 4px;
  }
  .separator-amarfprogramme .logo-amarf {
    height: 24px;
  }
}

/* 🔹 Lignes vertes */
.separator-amarf .line {
  height: 6px;
  width: 130px;
  background: #74b36e;
  border-radius: 3px;
  transition: all 0.3s ease;
}


/* 🔸 Logo AMARF */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.logo-amarf {
  height: 40px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(59%) sepia(11%) saturate(922%) hue-rotate(74deg) brightness(94%) contrast(87%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* 🪄 Effet hover */
.separator-amarf:hover .logo-amarf {
 
  filter: brightness(1.1) saturate(120%) drop-shadow(0 0 8px rgba(116,179,110,0.6));
}

/* 🔆 Effet de “respiration” (animation subtile) */
.separator-amarf:hover .line {
  width: 110px;
  background: linear-gradient(90deg, #74b36e, #a6e59e, #74b36e);
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
/* ===================== 🟩 PROGRAMME COVER SECTION ===================== */
.programme-cover-section {
  background: #f7f6f1 ;
  background-size: 550px;
  position: relative;
  padding: 120px 20px;
  overflow: hidden;
}

.programme-cover-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.programme-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 70px;
  animation: fadeInUp 1.2s ease both;
}

/* 🖼️ Image programme */
.programme-image {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.programme-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  transform-origin: left center;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* 🎞️ Effet flip léger au survol */
.programme-image img:hover {
  transform: rotateY(-10deg) scale(1.03);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
}

/* 📝 Texte */
.programme-content {
  flex: 1 1 460px;
  text-align: left;
  color: #333;
  line-height: 1.8;
}

.programme-content h2 {
  color: #74b36e;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.programme-content h2 i {
  color: #74b36e;
  margin-right: 10px;
}

.programme-content p {
  font-size: 1.05rem;
  margin-bottom: 40px;
  color: #222;
}

.programme-content em {
  color:  #74b36e;
  font-weight: 600;
}

/* 📄 Bouton Télécharger */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #74b36e;
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(116, 179, 110, 0.35);
}

.btn-download i {
  font-size: 1.2rem;
}

.btn-download:hover {
  background: #5e9d58;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(116, 179, 110, 0.4);
}

/* ✨ Animation légère d’apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===================== 🤝 SPONSORS MODERN ===================== */
.sponsors-modern-section {
  background: #f9f9f9;
  text-align: center;
  padding: 20px 20px;
}

.sponsors-modern-section h2 {
  font-size: 2.3rem;
  color: #74b36e;
  font-weight: 800;
  margin-bottom: 10px;
}

.sponsors-modern-section h2 i {
  color: #74b36e;
  margin-right: 10px;
}

.sponsors-modern-section .intro {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* 🧩 Ligne fluide des logos */
.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  row-gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

/* 🖼️ Style logo */
.sponsors-row img {
  width: 200px;
  height: auto;
  filter: grayscale(100%) brightness(85%);
  opacity: 0.9;
  transition: all 0.35s ease;
  transform: scale(1);
}

.sponsors-row img:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.08);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .sponsors-row img {
    width: 110px;
  }
}

@media (max-width: 480px) {
  .sponsors-row {
    gap: 25px;
    row-gap: 35px;
  }
  .sponsors-row img {
    width: 95px;
  }
}

/* ===================== 🔹 FOOTER STYLE AMARF ===================== */
.amarf-footer {
  position: relative;
  overflow: hidden;
  background: #0b2c66;
  color: #fff;
  padding: 70px 20px 30px;
  font-family: "Poppins", sans-serif;
}

/* 🌿 Fond animé */
.amarf-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20,20,20,0.35), rgba(20,20,20,0.55)),
    url("assets/background footer.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 0.9;
  z-index: 0;
  animation: zellijScroll 80s linear infinite;
  filter: brightness(0.85) contrast(1.05);
}

/* ✅ Structure principale */
.footer-container, .footer-bottom {
  position: relative;
  z-index: 2;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}
.footer-col {
  flex: 1 1 20px;
  min-width: 250px;
}

/* 🔰 Logo principal */
.footer-logo {
  width: 110px;
  margin-bottom: 15px;
  transition: transform .4s ease, filter .4s ease;
  filter: drop-shadow(0 0 8px rgba(116,179,110,0.4));
}
.footer-logo:hover {
  transform: rotate(-3deg) scale(1.05);
  filter: drop-shadow(0 0 18px rgba(116,179,110,0.8));
}

/* 🟩 Titres et texte */
.footer-col h4 {
  font-size: 1.2rem;
  color: #74b36e;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(116,179,110,0.5);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e4efe7;
}

/* 🔗 Liens */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e4efe7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li i {
  color: #74b36e;
  font-size: 0.9rem;
}
.footer-col ul li a {
  color: #dff5da;
  text-decoration: none;
  transition: color .3s ease;
}
.footer-col ul li a:hover {
  color: #74b36e;
}

/* 🟢 Nouveau séparateur du footer */
.footer-separator-amarf {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px auto 25px;
  position: relative;
  z-index: 2;
}
.footer-separator-amarf .line {
  height: 3.5px;
  width: 550px;
  background: linear-gradient(90deg, #5fae63, #7fcf85, #5fae63);
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(116,179,110,0.4);
}
.footer-separator-amarf .logo-wrapper {
  animation: pulseLogo 3s ease-in-out infinite;
}
.footer-separator-amarf .logo-amarf {
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(116,179,110,0.5));
}

/* ⚫ Bas du footer */
.footer-bottom {
 
  text-align: center;
  
}
.footer-bottom p {
  font-size: 0.9rem;
  color: #c8d6e0;
  margin: 5px 0;
}


/* ===================== ⚙️ GLOBAL RESPONSIVE FIX ===================== */

/* 🧱 Conteneur global */
section, header, footer {
  width: 100%;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  #mot-president {
    padding: 60px 15px !important;
  }

  #mot-president h2 {
    font-size: 1.9rem !important;
    margin-bottom: 15px !important;
  }

  #mot-president .separator-amarf {
    margin-bottom: 25px !important;
  }

  /* 🧩 Carte principale */
  #mot-president div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 25px !important;
    padding: 35px 25px !important;
    margin: 0 auto;
  }

  
  #mot-president p strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #0b2c66;
  }

  /* 📝 Texte */
  #mot-president div[style*="flex:1"] {
    width: 100%;
    text-align: justify;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  /* 🌿 Espacements */
  #mot-president p {
    margin-bottom: 14px !important;
  }
}.president-text {
  flex: 1;
  min-width: 280px;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
  text-align: left;   /* 🔥 très important : HADA kaykhalik EXACT style mli kayban */
}

#mot-president p {
  margin-bottom: 18px;
}
/* MOBILE FIX */
@media (max-width: 768px) {
  .president-text {
    width: 100%;
    display: block;
    padding: 0 10px;
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .president-text {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 8px;
  }

  #mot-president p {
    margin-bottom: 14px;
  }
}

/* 📱 TABLETTE */
@media (max-width: 1024px) {
  /* HEADER */
  .brand img { height: 60px; }

  .hero {
    height: auto;
    min-height: 220px;
  }

  .hero-text-image {
    margin: 70px auto ;
    margin-left: 0;
    justify-content: center;
  }
  .hero-text-image img {
    width: 80%;
    margin: 0 auto;
  }
@media (max-width: 1024px) {
  .hero {
    height: auto !important;
    min-height: 420px !important;
  }

  .hero-text-image {
    margin-left: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-text-image img {
    width: 80% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .hero {
    height: auto !important;
    min-height: 350px !important;
  }

  .hero-text-image {
    margin-left: 0 !important;
    margin-bottom: 10px !important;
    justify-content: center !important;
  }

  .hero-text-image img {
    width: 95% !important;
    margin: 0 auto !important;
  }

  .hero video {
    object-fit: cover !important;
    object-position: center !important;
  }
}
/* ✅ Ajustement mobile */
@media (max-width: 600px) {
  .banniere-verte img {
    max-height: 130px;
    position:absolute;inset:0;background:linear-gradient(135deg,#e6dfc8,#e6dfc8);z-index:1;
    object-fit: contain; 
  }
  .banniere-overlay {
    opacity: 0.5;
  }
}
@media (max-width: 400px) {
  .hero-text-image img {
    width: 100% !important;
  }
}
  /* PROGRAMME */
  .programme-container {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }
  .programme-image img {
    max-width: 85%;
  }
  .programme-content {
    text-align: center;
  }

  /* SPONSORS */
  .sponsors-modern-section {
    padding: 60px 20px;
  }
  .sponsors-row {
    gap: 30px;
  }

  /* FOOTER */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-col {
    max-width: 100%;
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
  .footer-separator-amarf .line {
    width: 200px;
  }
  .footer-separator-amarf .logo-amarf {
    height: 40px;
  }
}

/* 📱 MOBILE */
@media (max-width: 600px) {
  /* HERO */
  .hero {
    height: auto;
    min-height: 380px;
  }
  .hero-text-image img {
    width: 90%;
    margin: 0 auto;
  }

  /* MOT DU PRESIDENT */
  #mot-president div[style*="display:flex"] {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px !important;
    padding: 40px 25px !important;
  }

  /* PROGRAMME */
  .programme-cover-section {
    padding: 80px 20px;
  }
  .programme-content h2 {
    font-size: 1.8rem;
  }
  .btn-download {
    padding: 12px 25px;
    font-size: 1rem;
  }

  /* SPONSORS */
  .sponsors-modern-section h2 {
    font-size: 1.9rem;
  }
  .sponsors-row img {
    width: 90px;
  }

  /* FOOTER */
  .amarf-footer {
    padding: 50px 15px 25px;
  }
  .footer-container {
    gap: 20px;
    margin-bottom: 30px;
  }
  .footer-col h4 {
    font-size: 1.1rem;
  }
  .footer-separator-amarf {
    flex-direction: row;
    gap: 10px;
    margin: 15px 0;
  }
  .footer-separator-amarf .line {
    width: 90px;
    height: 3px;
  }
  .footer-separator-amarf .logo-amarf {
    height: 34px;
  }
  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* 📱 GRAND MOBILE (375px et -) */
@media (max-width: 400px) {
  .hero-text-image img {
    width: 100%;
  }
  .programme-image img {
    max-width: 95%;
  }
  .footer-separator-amarf .line {
    width: 70px;
  }
}
/* Effet écriture */
@keyframes typing {
  0% { width:0; }
  40% { width:100%; }
  60% { width:100%; }
  100% { width:0; }
}

/* 📱 MOBILE */
@media (max-width:480px){
  .typewriter span{
    width: 50%;
    font-size:13px;
    animation: typing 10s steps(40, end) infinite;
  }
}

/* 📱📱 MOBILE LARGE / TABLET MINI */
@media (min-width:481px) and (max-width:768px){
  .typewriter span{width: 50%;
    font-size:14px;
    animation: typing 9s steps(40, end) infinite;
  }
}

/* 💻 TABLETTE / DESKTOP */
@media (min-width:769px){
  .typewriter span{
    font-size:16px;
  }
}/* =======================
   🟩 STRUCTURE GLOBALE
   ======================= */
.programme-cover-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.programme-container {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
}

/* =======================
   🖼️ IMAGE PROGRAMME
   ======================= */
.programme-image img {
  width: 420px;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

/* =======================
   📝 CONTENU
   ======================= */



/* 🌿 séparateur */
.separator-amarfprogramme {
  display: flex;
  align-items: center;
  gap: 20px;
  
}

.separator-amarfprogramme .line {
  height: 5px;
  width: 120px;
  background: linear-gradient(90deg, #5fae63, #7fcf85, #5fae63);
  border-radius: 50px;
}

.separator-amarfprogramme img {
  height: 50px;
}

/* 🟩 BOUTON */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #5fae63;
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 25px;
  transition: .3s;
}
.btn-download:hover {
  background: #4b9350;
}


/* =======================================================
   📱 TABLETTE + MOBILE (max-width: 992px)
   ======================================================= */
@media (max-width: 992px) {

  .programme-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .programme-image img {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .programme-content {
    max-width: 100%;
  }

  .programme-content h2 {
    font-size: 30px;
  }

 

  .separator-amarfprogramme .line {
    width: 70px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }
}

/* =======================================================
   📱 MOBILE PETIT (max-width: 480px)
   ======================================================= */
@media (max-width: 480px) {

  .programme-content h2 {
    font-size: 26px;
  }

  .separator-amarfprogramme .line {
    width: 50px;
    height: 4px;
  }

  .separator-amarfprogramme img {
    height: 40px;
  }

  .programme-cover-section {
    padding: 40px 15px;
  }

  .btn-download {
    padding: 12px 18px;
  }
}

/* ===================== 🔴 SECTION LIVE YOUTUBE ROBUSTE ===================== */

/* 🎯 Section principale - Force l'affichage */
section.live-youtube-section,
#live-youtube {
  width: 100% !important;
  max-width: 100% !important;
  background: #f8f9fa !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
}

/* 📝 Header avec contenu informatif */
section.live-youtube-section .live-header,
#live-youtube .live-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%) !important;
  padding: 60px 0 40px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

section.live-youtube-section .live-header .container,
#live-youtube .live-header .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

section.live-youtube-section .live-header h2,
#live-youtube .live-header h2 {
  color: #74b36e !important;
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

section.live-youtube-section .live-description,
#live-youtube .live-description {
  font-size: 1.1rem !important;
  color: #333 !important;
  margin: 0 auto 30px auto !important;
  line-height: 1.6 !important;
  max-width: 800px !important;
}

section.live-youtube-section .live-status,
#live-youtube .live-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(229, 39, 34, 0.1) !important;
  color: #e52722 !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 2px solid rgba(229, 39, 34, 0.2) !important;
}

section.live-youtube-section .live-dot,
#live-youtube .live-dot {
  color: #e52722 !important;
  animation: livePulse 2s ease-in-out infinite !important;
}

@keyframes livePulse {
  0%, 100% { 
    opacity: 1 !important; 
    transform: scale(1) !important; 
  }
  50% { 
    opacity: 0.7 !important; 
    transform: scale(1.1) !important; 
  }
}

/* 📺 CONTENEUR VIDÉO PLEINE LARGEUR - TECHNIQUE GARANTIE */
section.live-youtube-section .video-container-fullwidth,
#live-youtube .video-container-fullwidth {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #000 !important;
  overflow: hidden !important;
  display: block !important;
  z-index: 1 !important;
}

/* 🎬 Wrapper pour maintenir le ratio 16:9 */
section.live-youtube-section .video-wrapper,
#live-youtube .video-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 56.25% !important;
  overflow: hidden !important;
  background: #000 !important;
  display: block !important;
}

/* 📹 Iframe YouTube avec styles forcés */
section.live-youtube-section .video-wrapper iframe,
#live-youtube .video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  background: #000 !important;
  z-index: 2 !important;
}



/* ===================== 📱 RESPONSIVE LIVE OPTIMISÉ ===================== */

/* TABLETTE */
@media (max-width: 768px) {
  .live-header {
    padding: 50px 0 30px !important;
  }
  
  .live-header .container {
    padding: 0 20px !important;
  }
  
  .live-header h2 {
    font-size: 2rem !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .live-description {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  .live-status {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
  }

  .video-container-fullwidth {
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    left: 50% !important;
    right: 50% !important;
  }

  .video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .live-header {
    padding: 40px 0 25px !important;
  }
  
  .live-header .container {
    padding: 0 15px !important;
  }

  .live-header h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .live-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

  .live-status {
    font-size: 0.85rem !important;
    padding: 8px 14px !important;
  }

  .video-container-fullwidth {
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    left: 50% !important;
    right: 50% !important;
  }

  .video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }

  .video-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
  }
}

/* GRAND ÉCRAN */
@media (min-width: 1400px) {
  .video-wrapper {
    padding-bottom: 50vh !important;
    min-height: 600px !important;
  }

  .live-header h2 {
    font-size: 2.5rem !important;
  }

  .live-description {
    font-size: 1.2rem !important;
  }
}
