:root {
  --primary: #1b91f6;
  --second: #f3f8fb;
  --primarysmall: #e7f1ff;
  --cta: #e64a19;
  --dark: #1e1e1e;
  --light-dark: #3b474d;
  --link: #ffffff;
  --link-hover: #e7f1ffa6;
  --nav-h: 70px;
  --max-w: 1300px;
  --transition: .35s ease-in-out;
  --border-radius: 12px;
  --title-gradient: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  --title-size-large: 2.8rem;
  --title-size-medium: 2rem;
  --title-size-small: 1.5rem;

  --gradient: linear-gradient(135deg, var(--primary) 0%, rgba(27, 145, 246, 0.8) 100%);
}

/* ——— Reset & Base ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: url("/medias/fond.jpg") center/cover no-repeat fixed;
  font-family: 'Poppins', sans-serif; 
  line-height: 1.6; 
  color: var(--dark); 
  overflow-x: hidden; 
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
p { line-height: 1.6; margin: 0; color: var(--light-dark); }
small { color: var(--light-dark); }
strong,
.highlight {
  font-weight: bold;
  color: var(--primary);
}
/* ——— Layout Utilities ——— */
.primary-section { padding: 1rem; margin: 25px 0; }
.container { max-width: 1100px; margin: 20px auto; }
.section-background { background-color: rgba(243,248,251,0.6); }

/* ——— Typography ——— */
.title-section {
  text-align: center;
  margin-bottom: 60px;
}

.subtitle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
}

.subtitle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--title-gradient);
  border-radius: 2px;
}

.main-title {
  font-size: var(--title-size-large);
  font-weight: 700;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
}

.stat-label-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 0.2rem 1rem;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 3px solid transparent;
}

.btn:hover { 
  transform: translateY(-2px); 
  opacity: 0.8; 
}

.btn-light {
  margin-top: 30px;
  background: none;
  border-color: #fff;
  color: white;
}

.btn-red {
  margin-top: 30px;
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

/* ——— Animations ——— */
.fade-in-up, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-100px); }
.fade-in-right { transform: translateX(100px); }

.animate.fade-in-up,
.animate.fade-in-left,
.animate.fade-in-right {
  opacity: 1;
  transform: translate(0, 0);
}

/* ——— Background Layout ——— */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  z-index: -1;
}

/* ============================ 
Navigation
============================*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(27,145,246,0.9); /* bleu semi-transparent */
  transition: all 0.3s ease;
  z-index: 999;
  padding: 5px 0;
}

#navbar.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  padding: 0.5rem 0;
  max-height: 100%;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-transform: uppercase;
  color: var(--link);
}

.nav-links a {
  color: var(--link);
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
  text-decoration: none;   /* important pour uniformiser avec <a> */
  display: inline-block;   /* évite les décalages */
}

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

/*bouton contact*/
.nav-links .cta {
  padding: 0.2rem 1rem;
  border-radius: 4px;
  border: 2px solid var(--link);
  transition: background-color 0.3s ease;
}

.nav-links .cta:hover {
  background-color: var(--link-hover);
  color: var(--dark);
}

/* ——— Dropdown Desktop ——— */
.dropdown,
.dropdownFooter {
  position: relative;
  display: inline-block;
}

/*nav-bar*/
.dropbtn {
  background: none;
  border: none;
  color: var(--link);
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.dropbtn:hover {
  color: var(--link-hover);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 99;
}

.dropdown-content a {
  color: var(--dark);
  padding: 10px 15px;
  display: block;
}

.dropdown-content a:hover { background: #f5f5f5; }
.dropdown:hover .dropdown-content { display: block; }

/* ——— Mobile Navigation ——— */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropbtn, 
.mobile-dropdown-content a {
   display: block;
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-transform: uppercase;
}

/* Effet au survol */
.mobile-dropbtn:hover,
.mobile-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: white;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5px;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: flex;
}

.mobile-dropbtn::after {
  content: "▼";
  float: right;
  transition: transform 0.3s ease;
  font-size: 0.8em;
  margin-left: 10px;
}

.mobile-dropdown.active .mobile-dropbtn::after {
  transform: rotate(180deg);
}

/* ——— Hamburger Menu ——— */
.hamburger, 
#mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all .3s;
  }

  #mobile-menu {
    height: 425px;
    font-size: 18px;
    display: none;
    flex-direction: column;
    background: var(--primary);
    padding: 3rem 0 0 0;
    box-shadow: 1px 10px 1px rgb(236, 231, 231);
    border-radius: var(--border-radius);
  }

  #mobile-menu.active {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .hamburger,
  #mobile-menu {
    display: none !important;
  }
}

/*  ================================
  FOOTER 
===================================*/
/* --- Dropdown Footer --- */
.dropdownFooter {
  position: relative;
  display: inline-block;
}

.dropbtnFooter {
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none !important; /* empêche les majuscules */
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  padding: 5px 10px;
  transition: color 0.2s ease;
  display: inline-block;
}

.dropbtnFooter:hover {
  color: #dddddd;
}

.dropdownFooter-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 99;
}

.dropdownFooter-content a {
  color: var(--dark);
  padding: 10px 15px;
  display: block;
}

.dropdownFooter-content a:hover {
  background: #f5f5f5;
}

.dropdownFooter:hover .dropdownFooter-content {
  display: block;
}


#footer {
  background-color: var(--primary);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  border-radius: 50px 50px 0 0;
}

#footer .footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 3rem 2rem;
  align-items: start;
}

#footer .footer-col {
  display: flex;
  flex-direction: column;
}

#footer .footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#footer .footer-col ul {
  list-style: none;
  padding: 0;
}

#footer .footer-col li {
  margin-bottom: 0.5rem;
}

#footer .dropbtnFooter {
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none !important;
}
#footer .footer-col a,
#footer .dropbtnFooter {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.2s ease;
  display: inline-block;
  text-transform: none;
}

#footer .footer-col a:hover,
#footer .dropbtnFooter:hover {
  color: #dddddd;
}


#footer .footer-col img {
  max-width: 100%;
  height: auto;
}

.footer-bottom {
  padding: 5px 0px;
  color:white;
  text-align: center;
  font-size: 0.8rem;
  background-color: var(--dark);
}

#footer .footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#footer .footer-bottom a:hover {
  color: #dddddd;
}

