/* ================================================================
   FAWZONE — Modern Professional Static Site
   ================================================================ */

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

:root {
  --bg:           #080c12;
  --bg-alt:       #0c1018;
  --bg-card:      #111620;
  --accent:       #0ea5e9;
  --accent-glow:  rgba(14, 165, 233, 0.18);
  --accent-dim:   rgba(14, 165, 233, 0.08);
  --text:         #e2e8f4;
  --muted:        #96a4b6;
  --border:       rgba(14, 165, 233, 0.12);
  --nav-h:        68px;
  --max-w:        1160px;
  --pad:          2rem;
  --r:            14px;
  --ease:         0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(14, 165, 233, 0.3); color: #fff; }

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  transition: background var(--ease), box-shadow var(--ease);
}

#navbar.scrolled {
  background: rgba(8, 12, 18, 0.95);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(14,165,233,.12);
}

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

.nav-logo img {
  height: 34px;
  object-fit: contain;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
  position: relative;
}

.nav-link:hover { color: var(--text); background: var(--accent-dim); }

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-link.nav-cta {
  color: var(--accent);
  border: 1px solid rgba(14,165,233,.35);
  padding: 0.4rem 1.1rem;
}
.nav-link.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: calc(var(--nav-h) + 80px) var(--pad) 100px;
  position: relative;
  overflow: hidden;
}

.section--alt { background: var(--bg-alt); }

.section--alt::before,
.section--alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.section--alt::before { top: 0; background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,.25) 50%, transparent 100%); }
.section--alt::after  { bottom: 0; background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,.12) 50%, transparent 100%); }

/* Ambient glow behind hero */
#accueil::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14,165,233,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Container & grid */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.split.reverse .text-col { order: 2; }
.split.reverse .img-col  { order: 1; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(14,165,233,.22);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

.sub-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.sub-heading em {
  font-style: normal;
  color: var(--accent);
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  max-width: 56ch;
  text-align: justify;
  hyphens: auto;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 9px;
  transition: all var(--ease);
  box-shadow: 0 4px 20px rgba(14,165,233,.35);
}
.btn:hover {
  background: #38bdf8;
  box-shadow: 0 6px 30px rgba(14,165,233,.55);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(14,165,233,.4);
  box-shadow: none;
  word-break: break-all;
}
.btn--ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
  transform: translateY(-2px);
}

/* ================================================================
   IMAGES
   ================================================================ */
.img-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0,0,0,.6),
    0 0 0 1px var(--border);
}

.img-frame img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.img-frame:hover img { transform: scale(1.04); }

.img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ================================================================
   LISTS
   ================================================================ */
.dot-list {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dot-list li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}

.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(14,165,233,.5);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag-list li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(14,165,233,.22);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: background var(--ease), border-color var(--ease);
}

.tag-list li:hover {
  background: var(--accent-glow);
  border-color: rgba(14,165,233,.5);
}

/* ================================================================
   CONTACT CARDS
   ================================================================ */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.contact-card:hover {
  border-color: var(--accent);
  background: rgba(14,165,233,.06);
  transform: translateX(4px);
}

.contact-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem var(--pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(1.1);
}

.footer-inner > p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}

.footer-nav a:hover { color: var(--accent); background: var(--accent-dim); }

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-left  { transform: translateX(-32px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.img-col.reveal { transition-delay: 0.15s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split.reverse .text-col,
  .split.reverse .img-col { order: unset; }

  .img-col { order: -1; }

  .section { padding: calc(var(--nav-h) + 50px) var(--pad) 70px; }

  p { max-width: 100%; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 12, 18, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    align-items: stretch;
  }

  .nav-links.open { display: flex; }
  .nav-link { font-size: 0.88rem; padding: 0.7rem 1rem; }
  .nav-link.nav-cta { text-align: center; }

  .burger { display: flex; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.6rem; }
  .btn { width: 100%; justify-content: center; }
  .btn--ghost { text-align: center; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
