/* ========================================================================
   KARISH ADVISORY — Stylesheet
   Direction esthétique : éditorial luxe sobre, corporate confidentiel
   Palette : bleu nuit Israël / or sable Afrique / ivoire
   Typographie : Cormorant Garamond (display) + Manrope (corps)
   ======================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Couleurs */
  --c-ink: #0B2545;          /* Bleu nuit Israël - texte principal */
  --c-ink-2: #13315C;        /* Bleu nuit secondaire */
  --c-gold: #C9A66B;         /* Or sable Afrique - accent */
  --c-gold-dark: #8C6A2B;
  --c-bone: #F7F3EC;         /* Ivoire - fond clair */
  --c-paper: #FBF9F4;        /* Papier crème - fond principal */
  --c-mute: #5B6B7E;         /* Gris bleuté - texte secondaire */
  --c-line: #D9CFBD;         /* Filet doré clair */
  --c-deep: #061A33;         /* Bleu profond - fond sombre */

  /* Typographie */
  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', Consolas, monospace;
  --f-he: 'Frank Ruhl Libre', 'David Libre', serif;

  /* Espacement */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
  --s-7: 9rem;

  /* Layout */
  --max-w: 1280px;
  --max-w-text: 720px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* RTL pour l'hébreu */
[dir="rtl"] { text-align: right; }
[dir="rtl"] body { font-family: var(--f-he), var(--f-body); }
[dir="rtl"] .display { font-family: var(--f-he), var(--f-display); }

/* ----- Typographie ----- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  margin-bottom: var(--s-2);
}

.lead {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: var(--c-ink-2);
  line-height: 1.45;
}

p { max-width: var(--max-w-text); }

.italic { font-style: italic; }

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--s-2) var(--s-4);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.nav-logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  transition: transform 0.4s ease;
}
.nav-logo:hover { transform: rotate(5deg); }
.nav-menu {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-menu a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width 0.3s ease;
}
.nav-menu a:hover { color: var(--c-gold-dark); }
.nav-menu a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.lang-switcher button {
  padding: 6px 10px;
  border: 1px solid transparent;
  color: var(--c-mute);
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.lang-switcher button:hover { color: var(--c-ink); }
.lang-switcher button.active {
  color: var(--c-ink);
  border-color: var(--c-gold);
  background: var(--c-bone);
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--c-ink);
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  padding: var(--s-7) var(--s-4) var(--s-5);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 166, 107, 0.08), transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(11, 37, 69, 0.04), transparent 60%),
    var(--c-paper);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-5);
  align-items: center;
  min-height: 70vh;
}
.hero-text { animation: fadeUp 1s ease both; }
.hero-text h1 {
  margin-top: var(--s-3);
}
.hero-text h1 .accent {
  color: var(--c-gold-dark);
  font-style: italic;
}
.hero-text .lead { margin: var(--s-3) 0 var(--s-4); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 32px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--c-ink);
}
.hero-cta:hover {
  background: transparent;
  color: var(--c-ink);
  letter-spacing: 0.2em;
}
.hero-cta .arrow { transition: transform 0.3s ease; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* Visuel hero - composition géométrique évocatrice */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  animation: fadeUp 1.2s 0.2s ease both;
}
.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero-meta {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s-5);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--c-mute);
  text-transform: uppercase;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
}

/* ----- Sections ----- */
section {
  padding: var(--s-6) var(--s-4);
  position: relative;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.section-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-gold-dark);
  letter-spacing: 0.2em;
}

/* ----- Services ----- */
.services {
  background: var(--c-bone);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.service {
  background: var(--c-paper);
  padding: var(--s-4);
  position: relative;
  transition: background 0.4s ease;
}
.service:hover { background: var(--c-bone); }
.service-num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-gold-dark);
  letter-spacing: 0.2em;
  margin-bottom: var(--s-2);
}
.service h3 {
  margin-bottom: var(--s-2);
}
.service p {
  color: var(--c-mute);
  font-size: 0.95rem;
}

/* ----- Expertise (sectoriel) ----- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.expertise-card {
  padding: var(--s-3);
  border-left: 2px solid var(--c-gold);
  background: rgba(247, 243, 236, 0.5);
}
.expertise-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s-1);
}
.expertise-card p {
  font-size: 0.9rem;
  color: var(--c-mute);
}

/* ----- About / Pourquoi nous ----- */
.about {
  background: var(--c-deep);
  color: var(--c-paper);
}
.about h2, .about h3 { color: var(--c-paper); }
.about .eyebrow { color: var(--c-gold); }
.about .lead { color: rgba(247, 243, 236, 0.85); }
.about .section-head { border-bottom-color: rgba(217, 207, 189, 0.2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.about-text p {
  color: rgba(247, 243, 236, 0.8);
  margin-bottom: var(--s-2);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.stat {
  padding: var(--s-3);
  border: 1px solid rgba(201, 166, 107, 0.3);
}
.stat-num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--c-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.7);
  margin-top: var(--s-1);
  text-transform: uppercase;
}

/* ----- Acronyme KARISH ----- */
.karish-letters {
  background: var(--c-paper);
}
.letters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.letter-card {
  text-align: center;
  padding: var(--s-3) var(--s-2);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  transition: all 0.3s ease;
}
.letter-card:hover {
  background: var(--c-bone);
  transform: translateY(-2px);
  border-color: var(--c-gold);
}
.letter {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
}
.letter-word {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-gold-dark);
  margin: var(--s-1) 0;
}
.letter-meaning {
  font-size: 0.75rem;
  color: var(--c-mute);
  line-height: 1.4;
}

/* ----- Contact ----- */
.contact {
  background: var(--c-bone);
  border-top: 1px solid var(--c-line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.contact-info dl {
  display: grid;
  gap: var(--s-3);
}
.contact-info dt {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info dd {
  font-family: var(--f-display);
  font-size: 1.25rem;
}
.contact-info dd.smaller {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--c-mute);
}

.contact-form { display: grid; gap: var(--s-2); }
.contact-form label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--c-ink);
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-gold);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  padding: 14px 32px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  justify-self: start;
  border: 1px solid var(--c-ink);
}
.contact-form button:hover { background: transparent; color: var(--c-ink); }

/* ----- Footer ----- */
footer {
  background: var(--c-deep);
  color: rgba(247, 243, 236, 0.7);
  padding: var(--s-5) var(--s-4) var(--s-3);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(217, 207, 189, 0.15);
}
.footer-brand .display {
  font-size: 2rem;
  color: var(--c-paper);
  margin-bottom: var(--s-1);
}
.footer-brand p { font-size: 0.85rem; max-width: 360px; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-2);
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 3px 0;
  color: rgba(247, 243, 236, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
  margin-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.5);
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-3); }
  .footer-bottom { flex-direction: column; gap: var(--s-1); }
  .expertise-grid { grid-template-columns: 1fr; }
  .letters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .nav { padding: var(--s-2); }
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--c-paper);
    padding: var(--s-3);
    border-bottom: 1px solid var(--c-line);
  }
  .services-grid { grid-template-columns: 1fr; }
  .letters-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr; }
  section { padding: var(--s-5) var(--s-2); }
  .hero { padding: var(--s-6) var(--s-2) var(--s-4); }
  .hero-meta { position: static; transform: none; margin-top: var(--s-4); flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
}
