body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: #004d40;
  color: #fff;
  padding: 20px 10px;
}


header h1 {
  margin: 0;
  font-size: 2em;
}

nav {
  background: #00796b;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
}

nav a:hover {
  background: #004d40;
}

section {
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  color: #00796b;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #e0f2f1;
}

.site-header {
  background: #004d40;
  color: #fff;
  padding: 20px 40px;
  position: relative;
}

/* GRID COMME WORD */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* TEXTE AU CENTRE */
.header-text {
  text-align: center;
}

.header-text h1 {
  margin: 0;
  font-size: 1.5em;
}

.header-text p {
  margin-top: 8px;
  font-size: 1em;
  opacity: 0.95;
}

/* LOGOS */
.logo {
  width: 110px;
  height: auto;
}

@media (max-width: 768px) {

  /* Grid mobile en 2 lignes */
  .header-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo-left logo-right"
      "text text";
    text-align: center;
    row-gap: 15px;
  }

  /* Assigner les zones */
  .header-grid img:first-child {
    grid-area: logo-left;
    justify-self: center;
  }

  .header-grid img:last-child {
    grid-area: logo-right;
    justify-self: center;
  }

  .header-text {
    grid-area: text;
  }

  /* Logos un peu plus petits sur mobile */
  .logo {
    width: 85px;
  }
}
/* ===== HERO VIDEO ===== */

.hero-video-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}



/* Mobile */
@media (max-width: 768px) {
  .hero-video-section {
    height: 50vh;
  }


}



/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 20px;
  background: #004d40;
  color: #fff;
  margin-top: 30px;
}


html[dir="rtl"] nav {
  flex-direction: row-reverse;
}
html[dir="rtl"] .lang-toggle {
  left: 20px;
  right: auto;
}

.lang-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 14px;
  font-weight: 600;
}

.lang-toggle .lang-link {
  color: #ffffff;
  text-decoration: none;
  padding: 2px 4px;
  opacity: 0.8;
}

.lang-toggle .lang-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.lang-toggle .lang-sep {
  color: #ffffff;
  margin: 0 4px;
  opacity: 0.6;
}

.lang-toggle .active {
  opacity: 1;
  text-decoration: underline;
  cursor: default;
}


.quote-slider {
  background: #f1f8f6;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.quote-slide {
  display: none;
  max-width: 700px;
  margin: auto;
}

.quote-slide.active {
  display: block;
}

.quote-slide img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #004d40;
}

.quote-slide blockquote {
  font-size: 1.2em;
  font-style: italic;
  color: #004d40;
  margin: 20px 0;
}

.quote-slide .author {
  font-weight: bold;
  color: #00796b;
}

/* dots */
.quote-dots {
  margin-top: 20px;
}

.quote-dots .dot {
  height: 10px;
  width: 10px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

.quote-dots .dot.active {
  background: #004d40;
}
html[dir="rtl"] .quote-slide blockquote {
  direction: rtl;
}



/* ===== Mobile Drawer Menu (FIXED for real phones) ===== */

.menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  left: 20px;      /* ✅ À GAUCHE */
  right: auto;     /* ✅ important */
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1200;
}


/* Desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none !important;
    height: auto;
    flex-direction: row;
    background: #00796b;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #004d40;
    padding-top: 80px;
    display: flex;
    flex-direction: column;

    /* IMPORTANT: use transform ONLY */
    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 1100;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}

/* ================= RTL (Arabic) ================= */

/* ================= RTL ================= */

html[dir="rtl"] .menu-toggle {
  left: auto;
  right: 20px;   /* ☰ à droite en arabe */
}

html[dir="rtl"] .lang-toggle {
  right: auto;
  left: 20px;    /* langue à gauche en arabe */
}


@media (max-width: 768px) {
  html[dir="rtl"] .main-nav {
    left: auto;
    right: 0;
    transform: translateX(100%);
    text-align: right;
  }

  html[dir="rtl"] .main-nav.open {
    transform: translateX(0);
  }

  html[dir="rtl"] .main-nav a {
    text-align: right;
    padding-right: 20px;
  }
}

.download-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  background: #00796b;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.download-btn:hover {
  background: #004d40;
}

/* ===== PARTNERS LOGOS ===== */
.partners-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: center;
}

.partner-item {
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.partner-logo {
  width: 100%;
  max-width: 140px;
  height: 70px;
  object-fit: contain;
  transition: transform .25s ease;
}

.partner-name {
  font-weight: 700;
  margin: 0 0 10px;
  color: #004d40;
  font-size: 0.95em;
  opacity: 0.9;
  transition: opacity .25s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: rgba(0, 77, 64, 0.25);
}

.partner-item:hover .partner-logo {
  transform: scale(1.06);
}

.partner-item:hover .partner-name {
  opacity: 1;
}


/* Tablet */
@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-logo {
    max-width: 120px;
    height: 60px;
  }
}

/* Très petit mobile */
@media (max-width: 420px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}
