/* =========================================================
   GLOBAL
========================================================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

section {
  padding: 100px 0;
}

/* =========================================================
   NAVBAR
========================================================= */
header {
  background-color: #ffffff;
  color: #222222;
  padding: 0.8rem 1.2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Correction ancre décalée à cause du header fixe */
html {
  scroll-padding-top: 80px;
}

/* Structure interne */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand/logo */
.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 50px;
  margin-right: 0.5rem;
}

.brand span {
  font-weight: 700;
  color: var(--brand, #007b8f);
  font-size: 1.2rem;
}

/* Navigation liens */
nav.links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav.links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav.links a:hover {
  color: var(--brand, #007b8f);
}

nav .pill {
  background: var(--brand, #007b8f);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Sélecteur de langue */
.lang-select {
  border: 1px solid #007b8f;
  border-radius: 20px;
  padding: 5px 12px;
  background: white;
  color: #007b8f;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-select:hover {
  background: #007b8f;
  color: #fff;
}

/* Burger menu (mobile) */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================================================
   MOBILE NAV
========================================================= */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav.links {
    position: fixed;
    top: 0;
    right: -250px; /* Hors écran par défaut */
    width: 250px;
    height: 100%;
    flex-direction: column;
    padding: 2rem 1rem;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1050;
  }

  nav.links.show {
    right: 0;
  }

  nav.links a,
  .lang-select {
    margin: 1rem 0;
  }

  /* Overlay sombre derrière le menu */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('https://images.unsplash.com/photo-1528909514045-2fa4ac7a08ba?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: white;
  text-align: center;
  padding: 7rem 1rem;
}

.cta-primary {
  background-color: #007b8f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  transition: 0.3s;
}

.cta-primary:hover {
  background-color: #009fbf;
}

/* =========================================================
   CARDS & ICONS
========================================================= */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  flex: 1 1 300px;
  background: #fff;
  padding: 20px 25px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 2.5rem;
  color: #007b8f;
  margin-bottom: 15px;
}

/* =========================================================
   CONTACT SECTION
========================================================= */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 300px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item .icon {
  font-size: 2rem;
  margin-right: 15px;
  color: #16a085;
  flex-shrink: 0;
}

/* Responsive contact layout */
@media screen and (max-width: 768px) {
  .split {
    flex-direction: column;
  }

  .info-item {
    justify-content: flex-start;
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-about,
.footer-contact,
.footer-social {
  flex: 1 1 250px;
}

.footer-about h3,
.footer-contact h4,
.footer-social h4 {
  margin-bottom: 10px;
  color: #16a085;
}

.footer-contact p,
.footer-about p {
  margin: 5px 0;
  font-size: 0.95em;
}

.footer-contact a,
.footer-social a {
  color: #ecf0f1;
  text-decoration: none;
  margin-right: 10px;
  font-size: 1.2em;
  transition: color 0.3s;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: #16a085;
}

.footer-bottom {
  width: 100%;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #34495e;
  padding-top: 15px;
  font-size: 0.85em;
}

.back-to-top {
  background-color: #16a085;
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  transition: background 0.3s;
}

.back-to-top:hover {
  background-color: #1abc9c;
}

/* Responsive footer */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
