/* Font & Reset */
body{
  margin:0;
  font-family:'Poppins',sans-serif;
  color:#222;
  line-height:1.6;
  scroll-behavior:smooth;
    padding-top: 170px;
}

nav .dropdown {
  display: flex;
  align-items: center;
}
nav .dropdown .dropbtn {
  color: white;
  font-weight: 600;
  font-size: inherit;
  padding: 0;
  margin-left: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

nav .dropdown .dropbtn:hover {
  color: #8B5CF6;
  background: transparent;
  transform: none;
}




/* LEFT (logo) */
.tb-left {
  flex: 0 0 auto;
}

.logo {
  width: 70px;
}

/* CENTER (textes) */
.tb-center {
  flex: 1;
  text-align: center;
}

/* TEXT */
.banner-text,
.banner-text-ar {
  font-size: 13px;
  line-height: 1.4;
}

/* ARABIC */
.banner-text-ar {
  direction: rtl;
}

/* RIGHT (lang button) */
.tb-right {
  flex: 0 0 auto;
}

.tb-right button {
  padding: 6px 10px;
  border: none;
  background: #1e293b;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.tb-right button:hover {
  background: #0f172a;
}

/* ===== 📱 MOBILE ===== */
@media (max-width: 768px) {
	
	 #navMenuar .dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #navMenuar .dropdown .dropbtn {
    color: white;
    padding: 12px;
    border-top: 1px solid #334155;
    text-align: right;
    margin-left: 0;
    width: 100%;
    font-size: 14px;
  }

  #navMenuar .dropdown-content {
    position: flex;
    background: #253347;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    text-align: right;
  }

  #navMenuar .dropdown-content a {
    color: #cbd5e1;
    padding: 10px 20px;
    border-top: 1px solid #334155;
    font-size: 13px;
  }
  
  #navMenuar .dropdown-content a:hover {
	color: #1e293b;
    background: #253347;
   
}
	
	
	
	
	
	
	
	
	 /* réduire le top banner */
  #top-banner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .banner-text,
  .banner-text-ar {
    display: none !important;
  }

  .logo {
    width: 40px;
  }

  .lang-switch {
    position: absolute;
    left: 10px;
    top: 15px;
  }

  
  

  /* réduire le header */
  header .container {
    padding: 10px;
  }

  header h1 {
    font-size: 14px;
    margin: 5px 0;
  }

  /* bouton menu */
  .menu-toggle {
    font-size: 20px;
  }

  /* cacher menu par défaut (mobile) */
  nav {
    display: none;
    flex-direction: column;
    background: #1e293b;
    width: 100%;
  }

  nav a {
    padding: 10px;
    font-size: 14px;
  }

  /* quand menu actif */
  nav.active {
    display: flex;
  }
	
	

 
}

#top-banner {
  position: fixed;      /* fixe en haut */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;        /* s'assure qu'il reste au-dessus du contenu */
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #3B82F6;
  color: white;
  padding: 10px 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-left: -20px;
  height: 90px; /**/

  justify-content: space-between;
  flex-wrap: wrap;
}

#top-banner .logo {
  width: 80px;
  height: auto;
}

#top-banner .banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#top-banner .banner-text-ar {
  display: flex;
  flex-direction: column;  /* empile les paragraphes verticalement */
  gap: 4px;
  margin-left: auto;       /* pousse le bloc complètement à droite */
  text-align: right;       /* texte aligné à droite */
  white-space: normal;     /* autorise le retour à la ligne */
  word-wrap: break-word;   /* coupe les mots longs si nécessaire */
  max-width: 50%;          /* limite la largeur pour que le texte ne dépasse pas */
}

#top-banner .banner-text p,
#top-banner .banner-text-ar p {
  margin: 0;
}
#top-banner .banner-text-ar p {
	font-size: 18px;
}
/* Header */
header {
  position: fixed;       /* fixe en dessous du top-banner */
  top: 110px;             /* ajuster selon la hauteur du top-banner */
  left: 0;
  width: 100%;
  z-index: 1001;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 0;
  height: 80px;
}

header .container{
  width:90%;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

header nav a{
  color:white;
  margin-left:20px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}
header nav a:hover{ color:#8B5CF6; }

/* Hero */
#hero {
  height: 100vh; /* pleine hauteur de l'écran */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;

  /* Image de fond */
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url('../../img/11.jpg'); /* remplace par le chemin de ton image */
  background-size: cover;       /* l'image couvre tout le hero */
  background-position: center;  /* centre l'image */
  background-repeat: no-repeat; /* pas de répétition */
  position: relative;
  overflow: hidden;
 
}
.hero-content{
  max-width:600px;
}
.hero-content h2{ font-size:3em; margin-bottom:20px; }
.hero-content p{ margin-bottom:30px; }
button{
  background:white;
  color:#3B82F6;
  padding:15px 30px;
  font-weight:600;
  border:none;
  border-radius:50px;
  cursor:pointer;
  transition:0.4s;
}
button:hover{
  background:#3B82F6;
  color:white;
  transform:translateY(-3px);
}

/* Sections */
section{ padding:80px 20px; text-align:center; }
h2{ font-size:2.5em; margin-bottom:50px; position:relative; }
h2::after{
  content:"";
  width:60px;
  height:4px;
  background:#3B82F6;
  display:block;
  margin:15px auto 0;
  border-radius:2px;
}

/* Cards Services & Testimonials */
.cards,.testimonial-cards{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:40px;
}
.card,.testimonial{
  background:white;
  border-radius:15px;
  padding:30px 20px;
  width:300px;
  box-shadow:0 15px 40px rgba(0,0,0,0.15);
  transition:transform 0.5s, box-shadow 0.5s;
  opacity:0;
  transform:translateY(50px);
}
.card:hover,.testimonial:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 50px rgba(0,0,0,0.25);
}

#contactForm input,
#contactForm textarea{
  display:block;
  width:80%;
  margin:10px auto;
  padding:12px 15px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:16px;
}
#contactForm input:focus,
#contactForm textarea:focus{
  border-color:#3B82F6;
  outline:none;
}
#contactForm button{
  display:block;
  margin:20px auto;
  padding:15px 35px;
  border:none;
  border-radius:50px;
  background:#3B82F6;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}
#contactForm button:hover{
  background:#8B5CF6;
}
.contact-info{
  margin-top:30px;
  font-size:16px;
  color:#333;
}
.contact-info p{
  margin:5px 0;
}

/* FAQ */
.faq-item{
  margin-bottom:20px;
  text-align:left;
  width:80%;
  max-width:600px;
  margin:auto;
}
.faq-question{
  width:100%;
  padding:15px;
  font-size:16px;
  border:none;
  border-radius:5px;
  background:#f0f0f0;
  cursor:pointer;
  transition:0.3s;
}
.faq-answer{
  display:none;
  padding:15px;
  border-left:3px solid #3B82F6;
  background:#f9f9f9;
  border-radius:0 5px 5px 0;
}

/* Map */
.map-container{ margin-top:20px; }

/* Footer */
footer{
  background:#111;
  color:white;
  padding:30px 0;
  font-weight:500;
  
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.banner-text,
.banner-text-ar {
  max-width: 100%;
}
/* test*/
/* STRUCTURE HEADER */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* NAV DESKTOP */
nav {
  display: flex;
  gap: 15px;
}

/* BOUTON BURGER */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}



/* Mobile */
@media (max-width: 768px) {

  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header .container-ar {
	font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1e293b;
    margin-top: 10px;
  }

  nav a {
   color: white;
    padding: 12px;
    border-top: 1px solid #334155;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: white;
  }
  
  #top-banner {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  #top-banner .logo {
    width: 60px;
    margin-bottom: 10px;
  }

  .banner-text,
  .banner-text-ar {
    font-size: 12px;
    line-height: 1.4;
  }

  .lang-switch {
    margin-top: 10px;
  }
  
   /* Corrige dropdown mobile */
  .dropdown-content {
    position: fixed;
    background: #334155;
  }

  .dropdown-content a {
    padding-left: 20px;
  }

}







/* Animation on scroll */
[data-animate].visible{
  opacity:1;
  transform:translateY(0);
  transition:all 0.7s ease-out;
}

.lang-switch button:hover {
  background-color: #e0e0e0;
}



.dropdown {
  position: relative;
  display: inline-block;
  right: 0; /* pour RTL */
}

.dropbtn {
  background-color: transparent;
  padding: 10px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  right: 0; /* pour RTL */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0; /* pour RTL */
  text-align: center;
  border-radius: 5px;
}

.dropdown a {
  display: block;
  right: 0; /* pour RTL */
}

.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e0e0e0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* mot de directeur*/
page-header {
  background: #3B82F6;
  color: white;
  padding: 100px 20px 50px;
  text-align: center;
}


.director-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.director-photo img {
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.director-message {
  max-width: 600px;
  text-align: left;
  line-height: 1.8;
}
.director-message-ar {
  max-width: 600px;
  text-align: right;
  line-height: 1.8;
}
.signature {
  margin-top: 30px;
  font-weight: 600;
}

/*establishment*/

/* Page header (titre + intro) */
.page-header-establishment {
  background: white;
  color: #333;
  padding: 160px 20px 80px;
  text-align: center; /* titre et texte du header centrés */
}

/* Contenu de la page */
.establishment-content {
  padding: 60px 20px;
  text-align: center; /* texte général centré */
}

/* Container pour limiter la largeur */
.establishment-content .container {
  max-width: 900px;
  margin: auto;
}

/* Titres internes */
.establishment-content h3 {
  margin-top: 40px;
  color: #3B82F6;
}

/* Liste centrée avec puces */
.establishment-content ul {
  list-style: disc;         /* type de puce */
  padding-left: 0;           /* supprime le padding par défaut */
  display: inline-block;     /* permet de centrer la liste */
  margin: 20px auto;         /* centre la liste dans le conteneur */
  text-align: left;;          /* le texte des items reste lisible */
}

.establishment-content li {
  margin-bottom: 10px;
}
/* Responsive mobile */
@media(max-width:768px){
  .page-header-establishment {
    padding: 120px 20px 60px;
  }
  .establishment-content {
    padding: 40px 20px;
  }
  
}

img.org-img {
              width: 20cm;
    height: 14cm;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

        }
		
		
/*projets*/

/* Projects Page */
.page-header-projects {
  
  color: black;
  padding: 40px 10px 20px; /* augmente le padding top de 10px à 40px */
  text-align: center;
}

/* Projects Section */
.projects-section {

  padding: 60px 20px;
  text-align: center;
}

.projects-container {
  max-width: 1100px;
  margin: auto;
}

.project-title {
  color: #3B82F6;
  margin-bottom: 15px;
}

.project-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* 2x2 Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
}

 





@media (max-width: 768px) {
	#navMenuar {
    
    flex-direction: column;
  }
/* inverse le menu dans mobile */
  
  #navMenuar a:nth-child(1) { order: 9; }
  #navMenuar a:nth-child(2) { order: 8; }
  #navMenuar a:nth-child(3) { order: 7; }
  #navMenuar a:nth-child(4) { order: 6; }
  #navMenuar .dropdown      { order: 5; }
  #navMenuar a:nth-child(5) { order: 4; }
  #navMenuar a:nth-child(6) { order: 3; }
  #navMenuar a:nth-child(7) { order: 2; }
  #navMenuar a:nth-child(8) { order: 1; }
  .project-gallery {
    grid-template-columns: 1fr; /* 1 column on tablets/small screens */
  }
}

.project-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block; /* IMPORTANT pour que la grille fonctionne correctement */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


/* ===================== */
/* ANNOUNCEMENTS SLIDER */
/* ===================== */

.annonces-slider {
  padding: 80px 20px;
  background: linear-gradient(135deg, #eef2f7, #f8fbff);
  text-align: center;
}

.annonces-slider h2 {
  font-size: 34px;
  margin-bottom: 50px;
  font-weight: 700;
  color: #1e2a38;
}

/* Container */
.slider {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

/* Flex sliding system */
.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Card style (glass effect) */
.slide {
  min-width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Image */
.slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: brightness(0.95);
}

/* Content */
.slide-content {
  padding: 25px;
  text-align: left;
}

.slide-content h3 {
  font-size: 22px;
  color: #007BFF;
  margin-bottom: 10px;
}

.slide-content p {
  color: #555;
  line-height: 1.6;
}

/* Button modern */
.read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #007BFF, #00c6ff);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

/* Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.prev:hover, .next:hover {
  background: #007BFF;
}

.prev { left: 15px; }
.next { right: 15px; }

/* Dots */
.dots {
  margin-top: 20px;
}

.dots span {
  height: 10px;
  width: 10px;
  margin: 6px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  transition: 0.3s;
}

.dots span:hover {
  transform: scale(1.2);
}

.dots .active {
  background: #007BFF;
  width: 22px;
  border-radius: 20px;
}

/* Responsive */
@media(max-width:768px) {
	.org-img {
 width: 100%;
  max-width: 100%;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  
  width: 100%;
  height: 400px;
  border: 0;
}


  .slide img {
    height: 200px;
  }
  
  .map-container {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* يخلي iframe ياخذ كامل المساحة */
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

  .slide-content {
    padding: 18px;
  }

  .annonces-slider h2 {
    font-size: 26px;
  }
}
/* Slide layout horizontal */
.slide {
  min-width: 100%;
  padding: 15px;
}

.slide-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.slide-flex:hover {
  transform: translateY(-4px);
}

/* Small image */
.thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Placeholder */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  color: #666;
  font-size: 12px;
}

/* Content */
.slide-content {
  text-align: left;
}

.slide-content h3 {
  font-size: 18px;
  color: #007BFF;
  margin-bottom: 5px;
}

.slide-content p {
  font-size: 14px;
  color: #555;
}

/* Button */
.read-more {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #007BFF, #00c6ff);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}

/* Mobile responsive */
@media(max-width:768px) {
	header {
    position: fixed;      /* reste fixé même en scroll */
    top: 110px;            /* juste sous le top-banner réduit */
    left: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.85);
    height: auto;         /* s'adapte si le nav s'ouvre */
  }
  
  nav.active {
    position: absolute;
    top: 100%;            /* colle sous le header */
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #1e293b;
  }
  body {
    padding-top: 120px; /* top-banner (60px) + header (~60px) */
  }
	
  .slide-flex {
    flex-direction: column;
    text-align: center;
  }

  .thumb {
    width: 100%;
    height: 180px;
  }
}


