/* =========================================================
   BUSINESS FOCUS — Bureau d'Affaires
   Feuille de style principale - Design Premium 2026
   ========================================================= */

/* ---------- Variables (Light theme) ---------- */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;

  --primary: #0b2447;       /* Bleu foncé corporate */
  --primary-2: #19376d;
  --accent: #06b6d4;        /* Cyan moderne */
  --accent-2: #22d3ee;

  --shadow-sm: 0 2px 8px rgba(11,36,71,.06);
  --shadow: 0 10px 30px rgba(11,36,71,.08);
  --shadow-lg: 0 20px 50px rgba(11,36,71,.14);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --container: 1200px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Dark theme ---------- */
body.dark {
  --bg: #07101f;
  --surface: #0f1c30;
  --surface-2: #122544;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --muted: #64748b;
  --border: rgba(255,255,255,.08);

  --primary: #0b2447;
  --primary-2: #1e3a8a;
  --accent: #22d3ee;
  --accent-2: #67e8f9;

  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  letter-spacing: .5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 800; letter-spacing: .5px; }
.logo-sub { font-size: 10px; color: var(--text-soft); letter-spacing: 2px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.icon-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.icon-btn.whatsapp:hover { background: #25d366; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 600; font-size: 15px;
  transition: all var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03242b;
  box-shadow: 0 10px 24px color-mix(in oklab, var(--accent) 35%, transparent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in oklab, var(--accent) 45%, transparent); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.full { width: 100%; justify-content: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 10%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, color-mix(in oklab, var(--primary) 25%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  color: var(--primary-2);
  font-size: 13px; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  margin-bottom: 22px;
}
body.dark .badge { color: var(--accent-2); }
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 17px; color: var(--text-soft); max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--text-soft); font-size: 14px;
}
.hero-meta i { color: var(--accent); margin-right: 6px; }

.hero-visual { position: relative; min-height: 460px; }
.glass {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  aspect-ratio: 4/5;
  display: grid; place-items: center;
  background-image:
    linear-gradient(135deg, color-mix(in oklab, var(--primary) 80%, transparent), color-mix(in oklab, var(--accent) 60%, transparent));
  color: #fff;
}
.hero-placeholder {
  text-align: center;
  border: 2px dashed rgba(255,255,255,.4);
  border-radius: 20px;
  padding: 60px 30px; width: 100%;
}
.hero-placeholder i { font-size: 4rem; opacity: .8; margin-bottom: 14px; }
.hero-placeholder span { display: block; opacity: .9; font-size: 14px; }

.floating-card {
  position: absolute; padding: 16px 20px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.floating-card i {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center;
}
.floating-card strong { display: block; font-size: 14px; }
.floating-card small { color: var(--text-soft); font-size: 12px; }
.float-1 { top: 30px; left: -20px; }
.float-2 { bottom: 30px; right: -20px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-2); }
.section-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-head p { color: var(--text-soft); font-size: 16px; }
.section-head.light p { color: rgba(255,255,255,.85); }
.section-head.light .eyebrow { color: var(--accent-2); }

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; margin-bottom: 20px;
  transition: transform var(--transition);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.05); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 14.5px; position: relative; }
.card.creative .card-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03242b;
}

/* ---------- Gallery ---------- */
.gallery-title {
  font-size: 22px; font-weight: 700; margin: 70px 0 24px; text-align: center;
}
.gallery {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 2px dashed var(--border);
  display: grid; place-items: center; gap: 10px;
  color: var(--text-soft);
  transition: all var(--transition);
  cursor: pointer;
}
.gallery-item i { font-size: 2.4rem; }
.gallery-item span { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat {
  text-align: center; padding: 30px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform var(--transition);
}
.stat:hover { transform: translateY(-6px); }
.stat i {
  font-size: 2rem; color: var(--accent-2); margin-bottom: 14px;
}
.stat .counter {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  margin-bottom: 6px;
}
.stat span { font-size: 14px; opacity: .85; }

/* ---------- Slider ---------- */
.slider {
  position: relative; max-width: 800px; margin: 0 auto;
  overflow: hidden; border-radius: var(--radius-lg);
}
.slides { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; padding: 30px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center;
  margin: 0 auto 18px; font-size: 1.4rem;
}
.testimonial p {
  font-size: 17px; color: var(--text-soft); font-style: italic;
  max-width: 560px; margin: 0 auto 16px;
}
.stars { color: #fbbf24; margin-bottom: 12px; letter-spacing: 3px; }
.testimonial strong { font-size: 15px; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  transition: all var(--transition);
}
.slider-btn:hover { background: var(--primary); color: #fff; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

.dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: all var(--transition);
}
.dots button.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  transition: all var(--transition);
}
.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 12px; transition: transform var(--transition);
}
.faq-item[open] summary i { transform: rotate(45deg); background: var(--accent); color: #03242b; }
.faq-item p {
  color: var(--text-soft); margin-top: 14px;
  animation: fadeIn .35s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0);} }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.info-item:hover { transform: translateX(4px); border-color: var(--accent); }
.info-item i {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.info-item strong { display: block; margin-bottom: 4px; font-size: 14px; }
.info-item a, .info-item span { color: var(--text-soft); font-size: 14.5px; }
.info-item a:hover { color: var(--accent); }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.map { margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-link {
  display: block; text-align: center; padding: 12px;
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--primary-2);
}
body.dark .map-link { color: var(--accent-2); }
.map-link:hover { background: var(--surface-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 14.5px;
  transition: all var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; }
.field.error input, .field.error select, .field.error textarea { border-color: #ef4444; }
.contact-form > button { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; text-align: center; font-size: 14px; font-weight: 500; min-height: 20px; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #ef4444; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--primary);
  color: #d1d9e6; padding-top: 60px;
  margin-top: 40px;
}
.footer .logo-sub { color: rgba(255,255,255,.6); }
.footer .logo-title { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-about { margin-top: 16px; font-size: 14px; opacity: .8; max-width: 320px; }
.footer h4 {
  color: #fff; margin-bottom: 18px; font-size: 16px; font-weight: 700;
  position: relative; padding-bottom: 10px;
}
.footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 2px; background: var(--accent);
}
.footer ul li { margin-bottom: 10px; font-size: 14px; opacity: .85; }
.footer ul li a:hover { color: var(--accent-2); }
.contact-list li i { color: var(--accent-2); margin-right: 8px; width: 16px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  transition: all var(--transition);
}
.socials a:hover { background: var(--accent); color: #03242b; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0; text-align: center;
  font-size: 13.5px; opacity: .75;
}

/* =========================================================
   FLOATING ELEMENTS
   ========================================================= */
.float-wa {
  position: fixed; bottom: 24px; left: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 999;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.4); }
  50% { box-shadow: 0 10px 40px rgba(37,211,102,.7); }
}
.float-wa:hover { transform: scale(1.1); }

.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow); z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--accent); color: #03242b; transform: translateY(-4px); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 400px; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    transform: translateY(-150%);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .logo-text { display: none; }
  .nav-actions .icon-btn:not(#themeToggle):not(#hamburger) { display: none; }

  .hero { padding: 130px 0 70px; }
  .section { padding: 70px 0; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .float-1, .float-2 { display: none; }
  .hero-meta { gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero h1 { font-size: 2rem; }
  .float-wa { width: 50px; height: 50px; font-size: 22px; bottom: 80px; }
  .back-top { width: 44px; height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
