/* ============================================================
   Octave.expert — CSS principal
   Palette Nord · Fraunces Variable + Inter Variable
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces Variable';
  src: url('/fonts/fraunces-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-primary:     #2E3440;
  --bg-secondary:   #353B47;
  --bg-tertiary:    #1F2329;

  --text-primary:   #ECEFF4;
  --text-secondary: #D8DEE9;
  --text-muted:     #B5BCC8;

  --accent:         #81A1C1;
  --accent-strong:  #88C0D0;

  --border-soft:    rgba(236, 239, 244, 0.08);
  --border-medium:  rgba(236, 239, 244, 0.12);

  --font-serif: 'Fraunces Variable', Georgia, serif;
  --font-sans:  'Inter Variable', -apple-system, system-ui, sans-serif;

  --max-width: 1200px;
  --gutter:    2rem;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
ul, ol { list-style: none; }

/* ── Typography helpers ────────────────────────────────────── */
.h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
}

.h1-page {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}

.h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

.h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.body-l {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
}

.body-s {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
}

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__wordmark {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav__wordmark .inf {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__wordmark {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer__wordmark .inf { color: var(--accent); }

.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links a:hover { color: var(--text-secondary); }

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Page header (pages internes) ──────────────────────────── */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border-soft);
}

.page-header .label {
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

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

.section__label {
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.section__title {
  margin-bottom: 1.5rem;
}

.section__lead {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ── Hero (home) ───────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
}

.hero__label {
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}

.hero__wordmark {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
}

.hero__wordmark .inf {
  color: var(--accent);
}

.hero__title {
  margin-bottom: 2rem;
  max-width: 800px;
}

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

.hero__sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 3rem;
  font-size: 20px;
  line-height: 1.4;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.5rem;
  transition: background 0.15s, color 0.15s;
}

.hero__cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ── Piliers (home) ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.pillar {
  background: var(--bg-primary);
  padding: 2.5rem 2rem;
}

.pillar__number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}

.pillar__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.pillar__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pillar__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pillar__link:hover { color: var(--accent-strong); }

/* ── Solva featured (home) ─────────────────────────────────── */
.solva-card {
  border: 1px solid var(--border-medium);
  padding: 2.5rem;
  background: var(--bg-secondary);
}

.solva-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.solva-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.solva-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.solva-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.solva-card__link:hover { color: var(--accent-strong); }

/* ── Prestations grid ──────────────────────────────────────── */
.prestations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.prestation {
  border: 1px solid var(--border-soft);
  padding: 1.75rem;
}

.prestation__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.prestation__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item__label {
  color: var(--accent);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-item__value {
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-item__value a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-item__value a:hover { color: var(--text-primary); }

/* ── Mentions / RGPD (prose) ───────────────────────────────── */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.prose p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Cabinet hero ──────────────────────────────────────────── */
.cabinet-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 5rem;
  align-items: start;
}

.cabinet-hero__portrait {
  width: 300px;
  height: 420px;
  overflow: hidden;
  flex-shrink: 0;
}

.cabinet-hero__portrait img {
  display: block;
  width: 400px;
  height: auto;
  margin-top: 0;
}

.cabinet-hero__text {
  padding-top: 0.25rem;
}

/* ── Cabinet bio text ──────────────────────────────────────── */
.cabinet-hero__subtitle {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-top: 0.75rem;
}

.cabinet-hero__p1 {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-top: 1.5rem;
}

.cabinet-hero__p2 {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Domaines grid ─────────────────────────────────────────── */
.domaines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.domaine-card {
  border: 0.5px solid rgba(236,239,244,0.12);
  padding: 1.5rem;
  background: rgba(46,52,64,0.4);
}

.domaine-card__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.domaine-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Formation ─────────────────────────────────────────────── */
.formation-list {
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
  margin-top: 1.5rem;
}

.formation-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem 2rem;
  align-items: baseline;
}

.formation-entry__years {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.formation-entry__degree {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.formation-entry__school {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Cabinet contact bar ───────────────────────────────────── */
.cabinet-contact {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0;
}

.cabinet-contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cabinet-contact__email {
  font-size: 14px;
  color: var(--text-secondary);
}

.cabinet-contact__email:hover { color: var(--text-primary); }

.cabinet-contact__icon {
  color: var(--accent);
  margin-right: 0.25rem;
}

.cabinet-contact__linkedin {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.cabinet-contact__linkedin:hover { color: var(--accent-strong); }

/* ── Nav toggle (hamburger) ────────────────────────────────── */
.nav__toggle {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  /* Hamburger visible */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Nav cachée par défaut, dropdown quand ouverte */
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-soft);
    z-index: 50;
    padding: 0.5rem 0;
  }

  .nav__links.nav__links--open {
    display: flex;
  }

  .nav__links li {
    border-bottom: 1px solid var(--border-soft);
  }

  .nav__links li:last-child {
    border-bottom: none;
  }

  .nav__links a {
    display: block;
    padding: 0.875rem var(--gutter);
  }


  /* Cabinet hero en colonne unique */
  .cabinet-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cabinet-hero__portrait {
    width: 140px;
    height: auto;
    margin: 0 auto;
  }

  .cabinet-hero__portrait img {
    width: 140px;
  }

  /* Domaines en colonne unique */
  .domaines-grid {
    grid-template-columns: 1fr;
  }

  /* Formation : réduire colonne années */
  .formation-entry {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem 1rem;
  }

  /* Prestations déjà auto-fit minmax — passe naturellement en 1 col */

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Pillars */
  .pillars { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { text-align: left; }

  /* Hero */
  .hero { padding: 4rem 0 3rem; }

  /* Cabinet contact bar en colonne sur petit écran */
  .cabinet-contact__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
