/* SUNUNATT — base (tokens, reset, nav, boutons, footer, utilitaires)
   Design system inspiré de Material : surfaces claires, pills, élévations douces. */

/* ── 1. TOKENS ── */
:root {
  --blue:       #1a73e8;
  --blue-hover: #1b66c9;
  --blue-dark:  #174ea6;
  --blue-50:    #e8f0fe;
  --blue-100:   #d2e3fc;
  --red:        #d93025;
  --red-50:     #fce8e6;
  --yellow:     #f9ab00;
  --yellow-50:  #fef7e0;
  --green:      #1e8e3e;
  --green-50:   #e6f4ea;

  --g-900: #202124;
  --g-700: #3c4043;
  --g-600: #5f6368;
  --g-400: #80868b;
  --g-300: #bdc1c6;
  --g-200: #dadce0;
  --g-100: #e8eaed;
  --g-50:  #f1f3f4;
  --surface:   #ffffff;
  --surface-2: #f8f9fa;

  /* alias conservés pour les vues existantes */
  --primary: var(--blue);
  --gold: var(--yellow);
  --text-dark: var(--g-900);
  --text-slate: var(--g-600);
  --border: var(--g-200);
  --white: var(--surface);

  --e1: 0 1px 2px rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
  --e2: 0 1px 2px rgba(60,64,67,.30), 0 2px 6px 2px rgba(60,64,67,.15);
  --e3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.30);
  --e4: 0 8px 24px rgba(60,64,67,.18), 0 2px 6px rgba(60,64,67,.12);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-full: 999px;

  --font-display: 'Google Sans', 'Product Sans', 'Inter', system-ui, sans-serif;
  --font: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2,0,0,1);
  --t: 200ms var(--ease);
  --t-slow: 450ms var(--ease);
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--g-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--g-900); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-full);
}
.skip-link:focus { top: 12px; }

/* ── 3. NAV ── */
nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
nav.scrolled { border-bottom-color: var(--g-200); box-shadow: 0 1px 0 rgba(60,64,67,.04); }
.logo a { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.logo strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.logo span { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.nav-cta) {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: var(--r-full); font-size: 14.5px; font-weight: 500; color: var(--g-700);
  transition: background var(--t), color var(--t);
}
.nav-links a:not(.nav-cta):hover { background: var(--g-50); color: var(--g-900); }
.nav-links a.active:not(.nav-cta) { color: var(--blue); background: var(--blue-50); }
.nav-links li:last-child { margin-left: 8px; }

/* ── 4. BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--t), box-shadow var(--t), transform var(--t), border-color var(--t);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); box-shadow: var(--e2); }
.btn-gold { background: var(--g-900); color: #fff; }
.btn-gold:hover { background: #000; box-shadow: var(--e2); }
.btn-tonal { background: var(--blue-50); color: var(--blue-dark); }
.btn-tonal:hover { background: var(--blue-100); }
.btn-outline { border-color: var(--g-200); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-100); }
.btn-text { color: var(--blue); padding: 0 12px; height: 40px; }
.btn-text:hover { background: var(--blue-50); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.nav-cta { height: 40px; padding: 0 20px; font-size: 14px; }
.btn .material-icon { font-size: 20px; line-height: 1; }

/* ── 5. HAMBURGER & MENU MOBILE ── */
.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--t);
}
.hamburger:hover { background: var(--g-50); }
.hamburger span { width: 20px; height: 2px; background: var(--g-700); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.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); }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(32,33,36,.4);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(320px, 86vw);
  padding: calc(var(--nav-h) + 16px) 16px 24px;
  background: var(--surface); box-shadow: var(--e4);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform var(--t-slow);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; height: 48px; padding: 0 16px;
  border-radius: var(--r-full); font-weight: 500; color: var(--g-700);
}
.mobile-menu a:not(.btn):hover, .mobile-menu a.active:not(.btn) { background: var(--blue-50); color: var(--blue); }

/* ── 6. SECTIONS ── */
section { padding: 96px 0; }
.section-header, .section-intro, .section-page-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-label, .section-label-xl {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-bottom: 20px;
  border-radius: var(--r-full); background: var(--blue-50); color: var(--blue-dark);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.section-title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--g-600); line-height: 1.6; }
.text-gold { color: var(--blue); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }

/* ── 7. CHIPS, ALERTES ── */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px;
  border-radius: var(--r-full); border: 1px solid var(--g-200); background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--g-700);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip.soon { color: var(--g-600); border-style: dashed; }
.chip.soon .dot { background: var(--yellow); }
.alert { padding: 14px 18px; border-radius: var(--r-lg); margin-bottom: 24px; font-size: 15px; border: 1px solid; }
.alert-success { background: var(--green-50); color: #0d652d; border-color: #a8dab5; }
.alert-error { background: var(--red-50); color: #a50e0e; border-color: #f6aea9; }

/* ── 8. FOOTER ── */
footer { background: var(--surface-2); border-top: 1px solid var(--g-200); padding: 64px 0 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.footer-brand p { color: var(--g-600); font-size: 14.5px; max-width: 340px; }
.footer-meta { margin-top: 12px; font-size: 13px !important; color: var(--g-400) !important; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--g-900); }
.footer-col a { display: block; font-size: 14.5px; color: var(--g-600); padding: 6px 0; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--g-200); padding: 20px 24px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--g-600);
}

/* ── 9. REVEAL & MOTION ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 10. RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .section-header, .section-intro, .section-page-header { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .btn-lg { height: 52px; padding: 0 24px; width: 100%; }
}
