
/* =========================
   MODALES (FOOTER LEGAL)
   ========================= */
.modal-overlay{
  display:none;
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.65);
  z-index: 50;
}

.modal-overlay.is-open{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

#legalOverlay.modal-overlay{
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
}

#legalOverlay .modal-box{
  width: min(1000px, 92vw);
  margin: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  color: #111;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}


.modal-close{
  position:absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  border:none;
  background:none;
  cursor:pointer;
}

#legalOverlay [data-text-fr],
#legalOverlay [data-text-en],
#legalOverlay [data-text-ar]{
  white-space: pre-wrap;
  line-height: 1.6;
  display:block;
}

html[dir="rtl"] #legalOverlay .modal-box{ text-align:right; }

/* =========================
   FOOTER
   ========================= */
.site-footer{
  background: rgba(15,23,42,0.95);
  padding: 60px 10% 30px;
  color:#fff;
  font-size: 16px;
  flex-shrink: 0;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap: 40px;
  flex-wrap:wrap;
}

.footer-col{ min-width: 220px; }

.footer-logo{
  height: 200px;
  margin-bottom: 40px;
}

.footer-col h4{
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-col a{
  display:block;
  color:#fff;
  text-decoration:none;
  opacity: 0.8;
  margin-bottom: 6px;
}

.footer-col a:hover{ opacity: 1; }

.footer-socials{ display:flex; gap: 12px; margin-top: 14px; }
.social-buttons{ display:flex; gap: 14px; margin-top: 12px; }

.social-btn{
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
  transition: background .25s ease, border .25s ease, transform .25s ease, box-shadow .25s ease;
}

.social-btn img{ width: 40px; height: 40px; display:block; }

.social-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,255,255,0.15);
}

.footer-bottom{
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}

.footer-legal{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.footer-legal span{ opacity: 0.45; }

.footer-legal .legal-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color:#fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor:pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-legal .legal-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

/* =========================
   ISOLATION MODALE "ABOUT"
   ========================= */
.about-scope .modal-box{
  all: unset; /* neutralise totalement le footer */
}

.about-scope .about-modal{
  display: block;
  width: min(980px, 92vw);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 18px;
  background: rgba(20,22,28,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  position: relative;
  padding: 18px;
}





/* TEXTE PRINCIPAL */
.about-scope .about-body{
  font-size: clamp(15px, 1.05vw, 40px);
  line-height: 1.7;
  font-family: Arial, Helvetica, sans-serif;
}

/* TITRE */
.about-scope .about-title{
  font-size: clamp(26px, 2.6vw, 45px);
  margin-bottom: 12px;
}

/* ARABE */
html[dir="rtl"] .about-scope .about-body{
  font-size: clamp(16px, 1.15vw, 30px);
  line-height: 1.9;
}

