/* ===== VARIABLES ===== */
:root {
  --accent-pure: #ff5722;
  --section-max-width: 1400px;
  --section-padding: 0 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 7px 0;
  background: linear-gradient(135deg, rgba(1,1,1,0.98), rgba(0,0,0,0.98));
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--accent-pure);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.logo-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-pure) 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 12px;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  position: relative;
  display: inline-block;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-pure), transparent);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }
}

/* ===== NAVIGATION DESKTOP ===== */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.25s ease;
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-pure);
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---- Dropdown desktop ---- */
.dropdown-it {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  text-decoration: none;
}

.dropdown-trigger i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--accent-pure);
}

.dropdown-it:hover .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 300px;
  background: linear-gradient(135deg, rgba(0,56,168,0.96), rgba(0,32,92,0.96));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0,40,150,0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 12px;
}

.dropdown-it:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 87, 34, 0.25);
  color: var(--accent-pure);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.dropdown-header i {
  font-size: 1rem;
  color: var(--accent-pure);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: 2px 0;
}

.dropdown-item i {
  color: var(--accent-pure);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

.dropdown-item:hover {
  background: rgba(255, 87, 34, 0.12);
  color: #fff;
  transform: translateX(5px);
}

.dropdown-item:hover i {
  opacity: 1;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-minimal {
  background: transparent;
  border: 1.5px solid var(--accent-pure);
  color: white;
  padding: 10px 28px;
  border-radius: 42px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-minimal:hover {
  background: var(--accent-pure);
  color: white;
  border-color: var(--accent-pure);
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== OVERLAY MOBILE ===== */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MOBILE MENU (sans scroll) ===== */
/* ===== MOBILE MENU (sans scroll) ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0,56,168,0.98), rgba(0,32,92,0.98));
  backdrop-filter: blur(20px);
  z-index: 1500;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;  /* padding-top supprimé */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Logo dans le menu mobile */
.mobile-menu .mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 15px 0 10px;  /* un peu d'espace en bas pour séparer du header, mais pas en haut */
  margin: 0;              /* aucune marge en haut */
  border-bottom: 1px solid rgba(255,87,34,0.2); /* optionnel, pour séparer */
}

.mobile-menu .mobile-logo .logo-img {
  height: 40px; /* taille adaptée au mobile */
}

.mobile-menu .mobile-logo .logo-text {
  font-size: 1.3rem;
  margin-left: 10px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 87, 34, 0.3);
  flex-shrink: 0;
}


.mobile-menu.active {
  right: 0;
}


.mobile-menu-title {
  color: var(--accent-pure);
  font-size: 1.3rem; /* Légèrement réduit */
  font-weight: 700;
  letter-spacing: 3px;
}

.mobile-menu-close {
  background: rgba(255, 87, 34, 0.2);
  border: 1px solid var(--accent-pure);
  color: var(--accent-pure);
  width: 40px; /* Légèrement réduit */
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: var(--accent-pure);
  color: white;
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px; /* Réduit */
  flex: 1 1 auto; /* Prend l'espace disponible sans déborder */
}

.mobile-nav-links li {
  margin-bottom: 2px; /* Réduit */
}

.mobile-nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem; /* Réduit */
  padding: 10px 0; /* Réduit de 14px à 10px */
  border-bottom: 1px solid rgba(255, 87, 34, 0.2);
  transition: all 0.3s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--accent-pure);
  border-bottom-color: var(--accent-pure);
  padding-left: 8px; /* Réduit */
}

/* ---- Dropdown mobile (compact) ---- */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 87, 34, 0.2);
}

.mobile-dropdown-trigger i {
  transition: transform 0.3s ease;
  color: var(--accent-pure);
  font-size: 0.85rem;
}

.mobile-dropdown.active .mobile-dropdown-trigger i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 40, 100, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 250px; /* Limité pour ne pas dépasser */
  margin: 5px 0 5px 12px;
}

.mobile-dropdown-menu li {
  margin: 0;
}

.mobile-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: background 0.2s, padding-left 0.2s;
  border-bottom: none;
  background: transparent;
}

.mobile-dropdown-menu li a i {
  color: var(--accent-pure);
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.mobile-dropdown-menu li a:hover {
  background: rgba(255,87,34,0.15);
  color: white;
  padding-left: 18px;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-devis {
  width: 100%;
  justify-content: center;
  padding: 10px !important;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE : masquer desktop et activer mobile ===== */
@media (max-width: 768px) {
  .desktop-nav,
  .header-actions .btn-minimal {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .dropdown-menu {
    display: none; /* cache le dropdown desktop en mobile */
  }
}