/* =====================================================
   VARIABLES
===================================================== */
:root {
  --color-primary: #003366;
  --color-secondary: #0073aa;
  --color-accent: #b8860b;
  --color-text: #333;
  --color-background: #fff;
  --color-footer-bg: #f8f8f8;
  --color-footer-border: #ccc;

  --font-base: 'Segoe UI', Arial, sans-serif;

  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 20px;
  --space-xxl: 60px;

  --radius-hero: 20px;
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}


ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */
.page-wrapper {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  width: 100%;
  background: var(--color-background);
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-lg);
  max-width: 80%;
  margin: 0 auto;
  padding: var(--space-sm) 0;
}

.languages {
  display: flex;
  gap: 12px;
  align-items: center;
}

.languages a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--color-secondary);
}

.languages img {
  width: 16px;
  height: 11px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a.whatsapp img { height: 27px; }
.social-icons a.facebook img { height: 21px; }
.social-icons a.instagram img { height: 22px; }

.social-icons a:hover img {
  opacity: 0.75;
}

/* Logo + Nav */
.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: var(--space-sm);
  position: relative;
}

.site-header .logo img {
  width: 220px;
}

/* Navigation */
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.nav ul li {
  white-space: nowrap;
}

.nav ul li a {
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Titles */
.site-title {
  text-align: center;
  margin: 16px 0 14px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.site-title:hover {
  color: var(--color-accent);
}

.site-title-sub{
  display:block;
  font-size:0.95rem;
  font-weight:500;
  color: inherit;        /* même couleur que le titre */
  margin-top:4px;
  letter-spacing:0.8px;
  opacity:0.75;          /* légère hiérarchie */
}

.site-slogan {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: var(--space-lg) 0;
}

.site-subtitle .slogan-line {
  border: none;
  border-top: 1px solid var(--color-footer-border);
  margin: 6px auto;
  max-width: 520px;
}

.slogan-small{
  font-size:0.85em;
  opacity:0.75;
  font-weight:400;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  background: linear-gradient(135deg, #003366 0%, #0073aa 100%);
  color: #ffd700; /* texte doré */
  border-radius: var(--radius-hero);
  margin-bottom: var(--space-xxl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.35rem;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* =====================================================
   SECTIONS
===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 15px;
}

.flex-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.flex-col {
  flex: 1;
  min-width: 300px;
}

.content-list {
  list-style: disc;
  padding-left: 20px;
  line-height: 1.7;
}

/* Global list styling */
.content-list li {
  margin-bottom: 6px;
  text-align: justify;       /* étire le texte pour que la ligne occupe toute la largeur */
  text-align-last: right;    /* par défaut pour l'arabe */
}

/* Anglais : override */
html[lang="en"] .content-list li {
  text-align: justify;       /* garde l'effet justify */
  text-align-last: left;     /* dernière ligne alignée à gauche */
}

/* Anglais : tout le texte principal */
html[lang="en"] .content-wrapper,
html[lang="en"] p,
html[lang="en"] .text-body,


.text-center {
  text-align: center;
}

.text-body {
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.8;
  text-align: center; /* ← C’EST ÇA QUI MANQUE */
}


.text-quote {
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  margin: 40px 0;
}

.mt-lg {
  margin-top: 60px;
}

/* Images */
.img {
  width: 100%;
  margin: 0 -15px 15px 0;
  border-radius: 15px;
  object-fit: cover;
}

.img-h-m { height: 280px; }
.img-h-l { height: 400px; }


/* =====================================================
   CTA – LIGHT MODERN VERSION
===================================================== */

.cta {
  background: linear-gradient(
      135deg,
      #f0f7ff 0%,
      #e6f0fa 100%
  );
  text-align: center;
  padding: 80px 30px;
  border-radius: 25px;
  margin: 80px 0;
  border: 1px solid #dde7f2;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.cta p {
  max-width: 750px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #d4a017;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.cta-quote {
  margin-top: 35px;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-secondary);
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1rem;
  }

}

/* =====================================================
   BUTTONS
===================================================== */

.btn-1{
  display:inline-block;
  background:#cfe4ee;
  color:#3b3636 !important;
  padding:7px 16px;
  border-radius:20px;
  font-size:14px;
  font-weight:600;
  border:none;
  text-decoration:none;
  line-height:1.2;
  opacity:1;
  box-shadow:none;
  transition:background 0.2s ease, transform 0.15s ease;
}

.btn-1:hover{
  background:#166a90;
  transform:translateY(-1px);
}


/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--color-footer-bg);
  padding: 60px 20px 40px;
  border-top: 1px solid var(--color-footer-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80%;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  max-width: 110px;
}

.footer-nav ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav ul li a {
  font-weight: 600;
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-bottom .footer-lines-t {
  width: 66%;
  max-width: 600px;
  margin: 5px auto;
  border: none;
  border-top: 1px solid var(--color-footer-border);
}

.footer-bottom .footer-lines-tt {
  width: 20%;
  max-width: 600px;
  margin: 10px auto;
  border: none;
  border-top: 1px solid var(--color-footer-border);
}

.footer-slogan {
  margin: 12px 0;
  font-weight: 600;
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.footer-social a {
  font-weight: 700;
}

.footer-social a.whatsapp { color: #25D366; }
.footer-social a.facebook { color: #1877F2; }
.footer-social a.instagram { color: #E4405F; }

.footer-social a:hover {
  opacity: 0.8;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .nav ul.active {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .flex-row {
    flex-direction: column;
  }

  .btn-1 {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}





.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  margin-bottom: 12px;
}



/* ==============================
   AR CONTENT ONLY (SAFE)
================================ */

/* On ne touche PAS au layout global */
html[lang="ar"] .content-wrapper {
  direction: rtl;
  text-align: right;
}

/* Stabilise texte arabe */
html[lang="ar"] .content-wrapper p,
html[lang="ar"] .content-wrapper li {
  unicode-bidi: isolate;
}

/* Header toujours LTR structure */
html[lang="ar"] .top-bar,
html[lang="ar"] .logo-nav {
  direction: ltr;
}

/* Footer structure stable */
html[lang="ar"] .site-footer .footer-top {
  direction: ltr;
}


.intro-text .intro-image {
  width: 100%;       /* largeur pleine */
  height: auto;      /* conserve proportions */
  display: block;
  margin: 0 auto;
  max-height: 400px; /* hauteur réduite en bande */
  cursor: pointer;   /* indique que c’est cliquable */
}


/* === PRODUCT LIST GRID === */

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

/* SELECT STYLE */

.product-select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 15px;
  font-size: 15px;
  cursor: pointer;
}

/* Responsive */

@media(max-width:768px){
  .product-card img {
    height: 180px;
  }
}

/* Si une seule image dans la galerie */

.product-list:has(.product-card:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.product-card:only-child {
  width: 50%;
}

/* ==============================
   PRODUCTS QUICK NAV
================================ */

.products-quick-nav {
  background: #f5f5f5;
  padding: 20px 0;
  margin: 30px 0 40px 0;
  border-radius: 15px;
}

.btn-quick {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 12px 26px;
  margin: 8px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-quick:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}



/* ===== Spacing ===== */

.spacer-sm { margin: 30px 0; }
.spacer-md { margin: 50px 0; }
.spacer-lg { margin: 80px 0; }
.spacer-xl { margin: 120px 0; }

.mt-sm { margin-top: 15px; }
.mb-lg { margin-bottom: 60px; }


/* ===== Image hero ===== */

.img-w-site{
  max-width:1000px;
  margin:auto;
}

.img-h-xl{
  max-height:500px;
  object-fit:cover;
}


/* ===== Partners grid ===== */

.columns-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  align-items: stretch; /* ← clé magique */
}

.partner-card{
  background:#fff;
  border-radius:18px;
  padding:25px;
  text-align:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  height: 100%;
}

.partner-location{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.partner-logo{
  max-width:200px;
  height: 120px;
  object-fit: contain;
  margin:15px auto;
}



.partner-actions{
  display:flex;
  justify-content:center;
   gap:12px;
  margin-top:15px;
}

.partner-na {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
}

.partner-location {
    font-weight: 600;
}


/* ===== Small icons ===== */

.icon-sm{
  width:20px;
}

.flag-icon{
  height:14px;
  object-fit:cover;
}


/* ===== Colors ===== */

.color-g{ color:#2e8b57; }
.color-b{ color:#0073aa; }
.color-r{ color:#c0392b; }


/* ===== CTA text ===== */

.cta-text{
  max-width:750px;
  margin:0 auto 25px;
  line-height:1.6;
}


/* ===== Mobile partners ===== */

@media(max-width:900px){

  .columns-3{
    grid-template-columns:1fr;
  }

}

/* ==============================
   CONTACT PAGE - FORM CONTAINER
================================ */

.contact-container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 30px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Title */
.contact-container h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* Labels */
.contact-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #003366;
}

/* Inputs & textarea */
.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus uniquement */
.contact-container input:focus,
.contact-container textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 6px rgba(0,115,170,0.25);
  outline: none;
}

/* Button */
.contact-container button {
  display: inline-block;
  background: #ffffff;      /* fond blanc */
  color: #003366;           /* texte bleu foncé */
  border: 2px solid #003366; /* bordure bleue */
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover button */
.contact-container button:hover {
  background: #0073aa;
}

/* Active click */
.contact-container button:active {
  transform: scale(0.98);
}

/* Messages */
.success-message,
.error-message {
  display: none;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-weight: 600;
}

.success-message {
  background: #d4edda;
  color: #155724;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
}


.text-center a {
  color: var(--color-secondary);
  text-decoration: none;
}

.text-center a:hover {
  color: var(--color-accent);
  opacity: 0.85;
}

.btn-cta,
.btn-1 {
  text-decoration: none;
  border-bottom: none;
}


a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
}



.footer-bottom p {
  word-break: break-word;
  overflow-wrap: anywhere;
}


@media (max-width: 768px) {

  html[lang="en"] .page-wrapper,
  html[lang="ar"] .page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-md);
  }

}