/* ============================================================
   EVOLUSCO — STYLES GLOBAUX v2.0
   Header, Footer, Navigation, Layout
   ============================================================ */

/* Les polices Google sont préchargées dans le <head> de chaque page (évite un @import redondant et bloquant). */
@import 'design-system.css';

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

/* ── LOGO ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 60px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  color: var(--navy-900);
  letter-spacing: var(--tracking-snug);
}
.logo-text em {
  color: var(--orange-500);
  font-style: normal;
}

/* ── NAV DESKTOP ── */
.nav-main {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 1024px) { .nav-main { display: flex; } }

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--navy-900); background: var(--slate-100); }
.nav-link.active { color: var(--blue-800); background: var(--blue-50); font-weight: var(--weight-semibold); }

/* Dropdown */
.nav-item { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  animation: dropdownIn 0.15s ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.nav-dropdown a:hover { background: var(--blue-50); color: var(--blue-800); }

/* ── HEADER ACTIONS ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Burger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background: transparent;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--slate-100); color: var(--navy-900); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* ── MOBILE NAV ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: #fff;
  z-index: var(--z-sticky);
  overflow-y: auto;
  padding: var(--space-6) var(--space-5) var(--space-8);
  border-top: 1px solid var(--border-default);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(0);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-mobile-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.nav-mobile-link:hover, .nav-mobile-link.active {
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: var(--weight-semibold);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

/* ── HERO ── */
.hero {
  padding-block: var(--space-20) var(--space-24);
  background: linear-gradient(160deg, #FFFFFF 0%, var(--blue-50) 55%, var(--blue-100) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(193,215,248,0.55) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: var(--space-12) var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--blue-800);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--orange-500);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--navy-900);
  margin-bottom: var(--space-5);
  /* Évite le débordement du long mot « L'accompagnement » sur petits écrans */
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero__title em {
  font-style: normal;
  color: var(--orange-500);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.hero__trust-item svg { color: var(--blue-700); width: 18px; height: 18px; flex-shrink: 0; }

.hero__visual {
  position: relative;
}
.hero__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 3px solid rgba(255,255,255,0.8);
}
.hero__video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__img-fallback {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.8);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.5fr 1fr 1fr 1.5fr; } }

/* Footer brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-5);
}
.footer-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  color: #fff;
  letter-spacing: var(--tracking-snug);
}
.footer-logo-text em { color: var(--orange-400); font-style: normal; }

.footer-tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--slate-400);
  max-width: 36ch;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: all var(--transition-base);
}
.footer-social a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* Footer cols */
.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #fff;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0;
}
.footer-links a:hover { color: var(--orange-400); }

/* Footer contact */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate-400);
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; width: 16px; height: 16px; opacity: 0.6; }
.footer-contact-item a { color: var(--slate-400); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: var(--orange-400); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom__copy { font-size: var(--text-xs); color: var(--slate-500); }
.footer-bottom__links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom__links a {
  font-size: var(--text-xs);
  color: var(--slate-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-bottom__links a:hover { color: var(--orange-400); }

/* ── UTILITIES ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mx-auto { margin-inline: auto; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── BG VARIANTS ── */
.bg-white  { background: var(--bg-page); }
.bg-subtle { background: var(--bg-subtle); }
.bg-navy   { background: var(--navy-900); }
.bg-orange-light { background: var(--orange-50); }

/* ── HERO BADGE LIVE ── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--green-600);
}
.badge-live__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--green-500);
  animation: pulse 2s infinite;
}

/* ── SECTION DIVIDER ── */
.divider {
  width: 60px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--orange-500);
  margin-block: var(--space-4);
}
.divider--center { margin-inline: auto; }

/* ── PROCESS STEPS ── */
.process-steps { display: flex; flex-direction: column; gap: var(--space-8); }
.process-step  { display: flex; gap: var(--space-5); align-items: flex-start; }
.process-step__number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}
.process-step__title { font-weight: var(--weight-semibold); color: var(--navy-900); margin-bottom: var(--space-1); }
.process-step__text  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }

/* ── CARD HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* ── FORMULAIRE ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--navy-900);
}
.form-label--required::after {
  content: ' *';
  color: var(--orange-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--navy-900);
  background: #fff;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  line-height: var(--leading-normal);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--slate-400); }
.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--slate-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(14,54,103,0.14);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.form-error {
  font-size: var(--text-xs);
  color: #EF4444;
  font-weight: var(--weight-medium);
}

/* Card contact */
.card--subtle {
  background: var(--slate-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* ── MOBILE NAV OVERLAY ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0,0,0,0.3);
  z-index: calc(var(--z-sticky) - 1);
}
.nav-overlay.is-open { display: block; }
