/* ============================================================
   NL Consulting — style.css v3
   Charte graphique officielle (extraite du logo)
   • Teal principal  : #29899F  (lettres NL)
   • Or/Doré         : #F6B237  (accent)
   • Vert foncé      : #16656A  (tagline & dark)
   • Fond             : #F7F9FA
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #29899F; border-radius: 3px; }

/* ---- Gradient texts ---- */
.gradient-text {
  background: linear-gradient(135deg, #F6B237, #e6a020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-teal {
  background: linear-gradient(135deg, #29899F, #16656A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #F6B237, #f5c96a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Accent line ---- */
.accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #F6B237, #e6a020);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ---- Section badge ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #29899F;
  margin-bottom: 12px;
}
.section-badge::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #F6B237;
  border-radius: 1px;
}

/* ---- Hero overlay ---- */
.hero-overlay {
  background: linear-gradient(135deg,
    rgba(22,101,106,0.97) 0%,
    rgba(41,137,159,0.92) 50%,
    rgba(22,101,106,0.85) 100%);
}

/* ---- Navigation ---- */
.nav-scrolled {
  background: rgba(22, 101, 106, 0.97) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

/* ---- Dropdown ---- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  min-width: 260px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(22,101,106,0.18), 0 4px 12px rgba(0,0,0,0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(41,137,159,0.12);
  z-index: 1000;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu[style*="opacity: 1"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1a2e35;
  transition: all 0.15s ease;
  text-decoration: none;
}
.dropdown-item:hover {
  background: rgba(41,137,159,0.07);
  color: #16656A;
  padding-left: 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #F6B237, #e6a020);
  color: #1a2e35;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(246,178,55,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e6a020, #d4900f);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(246,178,55,0.45);
  color: #1a2e35;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 12px 27px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.65);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-teal {
  background: linear-gradient(135deg, #29899F, #16656A);
  color: white;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(41,137,159,0.3);
  white-space: nowrap;
}
.btn-teal:hover {
  background: linear-gradient(135deg, #1f7a8f, #115257);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(41,137,159,0.4);
  color: white;
  text-decoration: none;
}

.btn-outline-teal,
.btn-outline-green {
  background: transparent;
  color: #16656A;
  padding: 12px 27px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #29899F;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-teal:hover,
.btn-outline-green:hover {
  background: #29899F;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(41,137,159,0.3);
  text-decoration: none;
}

/* ---- Cards ---- */
.expertise-card {
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid #E5E7EB;
}
.expertise-card:hover {
  transform: translateY(-8px);
  border-color: #29899F;
  box-shadow: 0 24px 60px rgba(41,137,159,0.15);
}
.expertise-card .card-icon { transition: all 0.3s ease; }
.expertise-card:hover .card-icon { transform: scale(1.1) rotate(-3deg); }

/* ---- Mobile menu ---- */
.mobile-menu {
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
  max-height: 0;
  overflow: hidden;
}
.mobile-menu.open { max-height: 750px; }

/* ---- Language toggle ---- */
.lang-btn { transition: all 0.2s ease; }
.lang-btn.active {
  background: #F6B237 !important;
  color: #1a2e35 !important;
  font-weight: 700;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: si JS est lent, afficher le contenu après 1.5s via animation CSS */
@keyframes fadeInFallback {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInFallback 0.65s ease 1.2s both;
}

/* ---- Slide-up ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.7s ease forwards; }

/* ---- Float animation ---- */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(180deg); }
}
.float-shape {
  animation: float var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ---- Fade directions ---- */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Stats counter ---- */
.stat-number { font-variant-numeric: tabular-nums; }

/* ---- Progress bar ---- */
.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, #29899F, #F6B237);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

/* ---- Timeline ---- */
.timeline-step { position: relative; }
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(180deg, #29899F, #E5E7EB);
}

/* ---- Blog cards ---- */
.blog-card {
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(41,137,159,0.12);
  border-color: #29899F;
}

/* ---- Tab buttons ---- */
.tab-btn {
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}
.tab-btn.active {
  color: #16656A;
  border-bottom-color: #F6B237;
}

/* ---- Form inputs ---- */
.form-input {
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
  background: white;
  font-family: inherit;
  color: #1a2e35;
}
.form-input:focus {
  border-color: #29899F;
  box-shadow: 0 0 0 3px rgba(41,137,159,0.12);
}
.form-input::placeholder { color: #9CA3AF; }

/* ---- Quiz options ---- */
.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
}
.quiz-option:hover {
  border-color: #29899F;
  background: rgba(41,137,159,0.05);
}
.quiz-option.selected {
  border-color: #16656A !important;
  background: rgba(22,101,106,0.06) !important;
  color: #16656A;
}

/* ---- Score gauge ---- */
.score-gauge {
  background: conic-gradient(#29899F 0%, #29899F var(--score-pct), #E5E7EB var(--score-pct), #E5E7EB 100%);
  border-radius: 50%;
}

/* ---- Testimonial cards ---- */
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(41,137,159,0.12);
}

/* ---- Bg dots pattern ---- */
.bg-dots {
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Wave divider ---- */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

/* ---- Process line ---- */
.process-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #29899F, #F6B237);
  transform: translateY(-50%);
}

/* ---- Booking Steps ---- */
.booking-step { transition: all 0.35s ease; }

/* ---- Meeting type cards ---- */
.meeting-type-card {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.meeting-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41,137,159,0.12);
}

/* ---- Calendar ---- */
#calendar-days button {
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

/* ---- Time slots ---- */
#time-slots-grid button {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

/* ---- Chat widget ---- */
.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 370px;
  max-height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(22,101,106,0.22), 0 4px 16px rgba(0,0,0,0.06);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(41,137,159,0.12);
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
}
.chat-widget.open {
  display: flex;
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: chatOpen .25s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes chatOpen {
  from { opacity:0; transform:scale(0.93) translateY(14px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(41,137,159,0.3); border-radius: 2px; }

.chat-message-bot {
  background: #F0F9FA;
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  font-size: 13.5px;
  max-width: 88%;
  line-height: 1.65;
  color: #1a2e35;
  border: 1px solid rgba(41,137,159,0.1);
}
.chat-message-user {
  background: linear-gradient(135deg, #29899F, #16656A);
  color: white;
  border-radius: 14px 14px 4px 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  max-width: 80%;
  margin-left: auto;
  line-height: 1.6;
}

/* ---- Chat quick-reply buttons ---- */
.chat-quick-btn {
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(41,137,159,0.25);
  background: rgba(41,137,159,0.06);
  color: #16656A;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-weight: 500;
}
.chat-quick-btn:hover {
  background: rgba(41,137,159,0.15);
  border-color: #29899F;
}

/* ---- WhatsApp floating ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 10000;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(37,211,102,0.55);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(22,101,106,0.97);
  color: white;
  padding: 16px 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
  border-top: 2px solid rgba(246,178,55,0.4);
}

/* ---- Eco-responsible section ---- */
.eco-card {
  transition: all 0.3s ease;
  border: 1.5px solid rgba(41,137,159,0.15);
}
.eco-card:hover {
  border-color: #29899F;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(41,137,159,0.1);
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #16656A;
  background: rgba(22,101,106,0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(22,101,106,0.18);
}

/* ---- NL Logo SVG ---- */
.nl-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .chat-widget { width: 340px; }
}

@media (max-width: 768px) {
  .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
  .btn-primary, .btn-secondary, .btn-teal, .btn-outline-teal, .btn-outline-green {
    padding: 11px 20px;
    font-size: 13px;
  }
  .whatsapp-btn { width: 50px; height: 50px; font-size: 22px; bottom: 18px; right: 18px; }
}

/* ---- Print ---- */
@media print {
  header, footer, .whatsapp-btn, #chat-toggle, .chat-widget, .cookie-banner,
  #mobile-menu-btn { display: none !important; }
}

/* ---- Focus accessibility ---- */
:focus-visible {
  outline: 2px solid #29899F;
  outline-offset: 2px;
}

/* ---- Scroll margin for anchors ---- */
[id] { scroll-margin-top: 90px; }
