/* ================================================================
   KIRAÏ — Styles communs (toutes pages)
   ================================================================ */

:root {
  /* ===== Palette officielle KIRAÏ ===== */

  /* Neutres (fonds, textes, bordures) */
  --gris: #F5F6F8;
  --gris-clair: #FBFBFC;
  --gris-fonce: #ECEEF1;
  --gris-bord: #E2E5EA;
  --blanc: #FFFFFF;

  /* Bleu navy — couleur principale */
  --bleu: #0E1D33;
  --bleu-profond: #081428;
  --bleu-medium: #1a2d4a;
  --bleu-soft: rgba(14, 29, 51, 0.74);
  --bleu-faible: rgba(14, 29, 51, 0.5);
  --bleu-mince: rgba(14, 29, 51, 0.12);
  --bleu-tres-mince: rgba(14, 29, 51, 0.05);

  /* Orange — accent signature */
  --orange: #E8925A;
  --orange-fonce: #D47A42;
  --orange-soft: rgba(232, 146, 90, 0.1);

  /* Logo */
  --creme-logo: #FAF8F3;
  --violet-logo: #7B6BE8;
  --rose-logo: #C88BAE;

  /* WhatsApp */
  --vert-wa: #25D366;
  --vert-wa-fonce: #1FAE52;

  /* Typographie */
  --font-titre: 'Fraunces', Georgia, serif;
  --font-corps: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-corps);
  background: var(--gris);
  color: var(--bleu);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--bleu); color: var(--blanc); }

/* ================================================================
   LOGO
   ================================================================ */

.logo { width: 48px; height: 48px; flex-shrink: 0; }
.logo-large { width: 64px; height: 64px; }

/* ================================================================
   NAV
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 14px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 100;
  transition: all 0.3s var(--ease);
}

.nav.scrolled {
  padding: 10px 48px;
  background: rgba(245, 246, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bleu-mince);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-titre);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bleu);
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-self: center;
}

.nav-links > a:not(.btn-whatsapp) {
  font-size: 14px;
  color: var(--bleu);
  opacity: 0.78;
  transition: opacity 0.2s;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links > a:not(.btn-whatsapp):hover { opacity: 1; }

.nav-links > a.active {
  opacity: 1;
}

.nav-links > a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Bouton WhatsApp */
.btn-whatsapp {
  padding: 9px 16px;
  background: var(--vert-wa);
  color: var(--blanc) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
  font-family: var(--font-corps);
  opacity: 1 !important;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: var(--vert-wa-fonce);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}

/* Bouton WhatsApp : textes responsive */
.btn-whatsapp .wa-icon { width: 18px; height: 18px; fill: currentColor; }
.wa-text-short { display: none; }
.wa-text-long { display: inline; }

/* Menu burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bleu);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ================================================================
   BOUTONS COMMUNS
   ================================================================ */

.btn-primary {
  padding: 14px 26px;
  background: var(--bleu);
  color: var(--blanc);
  border-radius: 999px;
  font-family: var(--font-corps);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--bleu-profond);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(14, 29, 51, 0.28);
}

.btn-ghost {
  padding: 14px 22px;
  color: var(--bleu);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  border-bottom: 1.5px solid var(--bleu);
}

.btn-ghost:hover { gap: 12px; }
.btn-ghost .arrow { color: var(--orange); }

.btn-big-whatsapp {
  padding: 16px 28px;
  background: var(--vert-wa);
  color: var(--blanc);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
  font-family: var(--font-corps);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

.btn-big-whatsapp:hover {
  background: var(--vert-wa-fonce);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
}

.btn-big-whatsapp .wa-icon { width: 22px; height: 22px; fill: currentColor; }

/* ================================================================
   COMPOSANTS COMMUNS
   ================================================================ */

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  font-weight: 600;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 72px;
}

.section-head h2,
.section-head .title {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--bleu);
  margin-bottom: 20px;
}

.section-head h2 em,
.section-head .title em {
  font-style: italic;
  color: var(--orange);
}

.section-head p {
  font-size: 18px;
  color: var(--bleu-soft);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

.section {
  padding: 120px 48px;
  position: relative;
}

/* PAGE HEAD (pour pages autres que home) */

.page-head {
  padding: 180px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-head-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-head .page-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  font-weight: 600;
  display: inline-block;
}

.page-head h1 {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--bleu);
  margin-bottom: 24px;
}

.page-head h1 em {
  font-style: italic;
  color: var(--orange);
}

.page-head > .page-head-inner > p {
  font-size: 19px;
  color: var(--bleu-soft);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* ================================================================
   CTA FINAL (réutilisable)
   ================================================================ */

.cta-final {
  padding: 120px 48px;
  background: var(--bleu);
  color: var(--blanc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.08;
  filter: blur(100px);
  pointer-events: none;
}

.cta-final-inner { max-width: 680px; margin: 0 auto; position: relative; }

.cta-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  display: inline-block;
}

.cta-final h2 {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.cta-final h2 em { font-style: italic; color: var(--orange); }

.cta-final p {
  font-size: 18px;
  opacity: 0.78;
  line-height: 1.5;
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.cta-input {
  flex: 1;
  min-width: 0;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--blanc);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.cta-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.cta-submit {
  padding: 18px 32px;
  background: var(--orange);
  color: var(--blanc);
  border: none;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.cta-submit:hover { background: var(--orange-fonce); }

.cta-final-note {
  margin-top: 22px;
  font-size: 13px;
  opacity: 0.55;
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
  padding: 56px 48px 32px;
  background: var(--bleu-profond);
  color: var(--blanc);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { color: var(--blanc); }

.footer-tagline {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 16px;
}

.footer-baseline {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 15px;
  color: var(--orange);
  line-height: 1.4;
  max-width: 320px;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--blanc);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--orange); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.5;
  gap: 16px;
  flex-wrap: wrap;
}

/* Menu déroulant légal dans footer */
.footer-legal-dropdown {
  position: relative;
}

.footer-legal-trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blanc);
  padding: 8px 14px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-legal-trigger:hover { opacity: 1; }

.footer-legal-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg) translateY(2px);
  transition: transform 0.2s;
}

.footer-legal-dropdown.open .footer-legal-trigger::after {
  transform: rotate(45deg) translateY(-2px);
}

.footer-legal-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bleu);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s var(--ease);
}

.footer-legal-dropdown.open .footer-legal-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-legal-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  opacity: 0.8;
  border-radius: 5px;
  transition: all 0.15s;
}

.footer-legal-menu a:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }

/* ================================================================
   RESPONSIVE COMMUN
   ================================================================ */

@media (max-width: 1000px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .nav { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-logo { flex-shrink: 0; }
  .nav-burger { display: flex; order: 3; margin-left: 10px; flex-shrink: 0; }
  .nav-right { display: flex; align-items: center; gap: 8px; order: 2; margin-left: auto; flex-shrink: 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gris);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    align-items: flex-start;
    box-shadow: -10px 0 40px rgba(14, 29, 51, 0.15);
    transition: right 0.3s var(--ease);
    z-index: 99;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links > a:not(.btn-whatsapp) {
    font-size: 18px;
    font-family: var(--font-titre);
    font-weight: 400;
  }

  .nav-right .btn-whatsapp {
    padding: 8px 14px;
    font-size: 12px;
  }

  .nav-right .btn-whatsapp .wa-text-long { display: none; }
  .nav-right .btn-whatsapp .wa-text-short { display: inline; }

  .page-head { padding: 140px 20px 60px; }
  .section { padding: 70px 20px; }
  .cta-final { padding: 90px 20px; }
  footer { padding: 40px 20px 28px; }
}

@media (min-width: 901px) {
  .nav-burger { display: none !important; }
  .nav-right .btn-whatsapp .wa-text-long { display: inline; }
  .nav-right .btn-whatsapp .wa-text-short { display: none; }
}
