/* -----------------------------------------
   RESET & BASE
-------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #f7f9fc;
  color: #222;
  line-height: 1.6;
}

/* -----------------------------------------
   VARIABLES
-------------------------------------------*/
:root {
  --primary: #006699;
  --primary-dark: #004d73;
  --primary-light: #e5f4fb;

  --text-dark: #1b1b1b;
  --text-muted: #666;
  --bg-card: #fff;
  --bg-muted: #f1f5f9;

  --radius: 10px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------
   HEADER
-------------------------------------------*/
.header {
  width: 100%;
  background: #ffffff;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  transition: 0.3s;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--primary-dark);
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.lang-btn {
  background: var(--primary-light);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary);
  transition: 0.2s;
}

.lang-btn:hover {
  background: var(--primary);
  color: white;
}
/* ------------------------------
   LANGUAGE TOGGLE SWITCH
------------------------------ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.toggle-labels {
  display: flex;
  justify-content: space-between;
  width: 55px;
  font-size: 13px;
  font-weight: 700;
}

.toggle-labels span {
  color: #003a50;
}

.lang-toggle input {
  display: none;
}

.toggle-container {
  width: 54px;
  height: 28px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: 0.25s ease-in-out;
}

.toggle-circle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  top: 2.8px;
  left: 3px;
  transition: 0.25s ease-in-out;
}

/* ON (English active) */
#langSwitch:checked + .toggle-container {
  background: #000;
}

#langSwitch:checked + .toggle-container .toggle-circle {
  transform: translateX(26px);
  background: #fff;
}

.logo img,
.logo-img {
  height: 90px;        /* ajuste la taille du logo */
  width: auto;
  display: block;
}

@media(max-width: 600px) {
  .logo-img {
    height: 40px;      /* version mobile */
  }
}



/* -----------------------------------------
   HERO SECTION
-------------------------------------------*/
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px 5%;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--primary);
  padding: 10px 25px;
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.tag-pill {
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* HERO IMAGE */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* -----------------------------------------
   BANNER (ABOUT PAGE)
-------------------------------------------*/
/* BANNER STYLE (VERSION PRÉCÉDENTE, STABLE) */
.banner {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* <-- L’ancienne méthode */
  object-position: center;  
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
}

.banner-content {
  position: absolute;
  bottom: 40px;
  left: 5%;
  z-index: 10;
  color: white;
}



  /* LE PARALLAX MAGIQUE 🎯 */
  background-attachment: fixed;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
}

.banner-content {
  position: absolute;
  bottom: 40px;
  left: 5%;
  color: white;
  z-index: 5;
}


/* -----------------------------------------
   SECTIONS
-------------------------------------------*/
.section {
  padding: 60px 5%;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.section-text {
  max-width: 850px;
  margin: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* -----------------------------------------
   GRID FEATURES
-------------------------------------------*/
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* -----------------------------------------
   STATS
-------------------------------------------*/
.section-muted {
  background: var(--bg-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  color: var(--text-muted);
  font-size: 16px;
}

/* -----------------------------------------
   POSTS (UPDATES)
-------------------------------------------*/
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
}

.post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-body {
  padding: 18px;
}

.post-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* -----------------------------------------
   CTA FINAL
-------------------------------------------*/
.section-cta {
  background: var(--primary);
  color: white;
}

.cta-card {
  max-width: 900px;
  margin: auto;
  padding: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.cta-card p {
  font-size: 18px;
}

.cta-card a {
  background: white;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: 0.2s;
}

.cta-card a:hover {
  background: var(--primary-dark);
  color: white;
}

/* -----------------------------------------
   CARD (LOGIN / FORMS)
-------------------------------------------*/
.card {
  background: white;
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 650px;
  margin: auto;
}

.card input,
.card textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.card button {
  background: var(--primary);
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

/* -----------------------------------------
   FOOTER
-------------------------------------------*/
.footer {
  background: #003a50;
  color: white;
  padding: 40px 5%;
  margin-top: 70px;
}

.footer-content {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-logo {
  width: 80px;
}

.footer-copy {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* -----------------------------------------
   ANIMATIONS
-------------------------------------------*/
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.fade-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------
   RESPONSIVE
-------------------------------------------*/
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .features-grid,
  .posts,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .banner-content h1 {
    font-size: 30px;
  }

  .nav {
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 32px;
  }
}

/* -----------------------------------------
   PARTNERS SLIDER WITH ICONS
-------------------------------------------*/

#partners {
  text-align: center;
  margin-top: 60px;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 80px;
  animation: partnersMove 30s linear infinite;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.partner-item .icon {
  font-size: 58px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.partner-item span {
  font-size: 22px;
  font-weight: 800;
  color: #003a50;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.85;
  transition: 0.3s;
}

.partner-item:hover span,
.partner-item:hover .icon {
  opacity: 1;
  color: var(--primary);
}

@keyframes partnersMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-200%); }
}

