/* =========================================================
   Nicolas Musicki — Cours particuliers de maths
   DA : « Bleu nuit & or » — épurée, éditoriale, minimale
   ========================================================= */

:root {
  --navy-950: #0A1422;   /* fond le plus profond  */
  --navy-900: #0E1B2E;   /* fond principal        */
  --navy-800: #14243B;   /* surfaces (cartes)     */
  --navy-700: #1B3150;
  --blue-300: #8FB0CE;

  --gold:     #E7B96A;
  --gold-300: #F2D199;
  --gold-600: #C99A4B;

  --ivory:     #F4EEE2;
  --ivory-dim: rgba(244, 238, 226, 0.66);
  --ivory-fade:rgba(244, 238, 226, 0.42);

  --line:      rgba(231, 185, 106, 0.22);   /* hairline doré   */
  --line-soft: rgba(244, 238, 226, 0.09);   /* hairline ivoire */

  --radius:   16px;
  --radius-l: 22px;
  --maxw:     1080px;
  --gut:      clamp(1.25rem, 5vw, 3rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ivory);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ivory);
}
em { font-style: italic; color: var(--gold); }

a { color: inherit; text-decoration: none; }

p { margin: 0; }

/* Icônes (SVG en ligne, fines) */
.ico {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Petit label suréclairé réutilisable */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--light { color: rgba(14, 27, 46, 0.65); }

/* ===================== EN-TÊTE ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--gut);
  background: rgba(10, 20, 34, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 600; font-size: 1rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.9rem); font-size: 0.9rem; }
.nav a { color: var(--ivory-dim); transition: color 0.2s ease; }
.nav a:hover { color: var(--ivory); }
.nav-cta {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-900) !important;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--gold-300); }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gut) clamp(3rem, 7vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ivory-dim);
  max-width: 36ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn--primary { background: var(--gold); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn--ghost { color: var(--ivory); border-color: rgba(244, 238, 226, 0.28); }
.btn--ghost:hover { background: var(--ivory); color: var(--navy-900); border-color: var(--ivory); transform: translateY(-2px); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.82rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--ivory-dim);
}
.tag--accent { border-color: var(--line); color: var(--gold-300); }

/* Portrait — sobre, un seul liseré doré */
.hero-portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative;
  width: clamp(220px, 32vw, 310px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  background-image: url("portrait.jpg");
  background-size: cover;
  background-position: center 18%;
}
.portrait-placeholder { display: none; }
.portrait-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(10, 20, 34, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.portrait-badge strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-300); }
.portrait-badge span { font-size: 0.72rem; color: var(--ivory-dim); }

/* ===================== SECTIONS ===================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.8rem, 8vw, 6.5rem) var(--gut);
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }

/* ===================== À PROPOS ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-intro {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-family: var(--serif);
  color: var(--ivory);
  line-height: 1.5;
}
.about-intro strong { color: var(--gold-300); font-weight: 400; }

.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.about-points li { display: flex; gap: 1.1rem; align-items: flex-start; }
.point-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--gold);
}
.about-points strong { display: block; font-size: 1.02rem; color: var(--ivory); margin-bottom: 0.2rem; font-weight: 600; }
.about-points span { color: var(--ivory-dim); font-size: 0.95rem; }

/* ===================== LEAD DE SECTION ===================== */
.section-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-family: var(--serif);
  color: var(--ivory);
  line-height: 1.5;
  max-width: 46ch;
  margin: -1rem 0 clamp(2rem, 4vw, 3rem);
}

/* ===================== MÉTHODE (étapes) ===================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.6rem);
  counter-reset: none;
}
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--ivory-dim); font-size: 0.98rem; }

/* ===================== OFFRE (cartes) ===================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.card {
  background: var(--navy-800);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: 2rem 1.75rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line); }
.card-ico {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.card-ico .ico { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--ivory-dim); font-size: 0.97rem; }

/* ===================== CRÉDIT D'IMPÔT ===================== */
.credit-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--gold);
  color: var(--navy-900);
  border-radius: var(--radius-l);
  padding: clamp(2.2rem, 5vw, 3.8rem);
}
.credit-content .eyebrow { margin-bottom: 0.9rem; }
.credit-content h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; color: var(--navy-900); }
.credit-content p { color: rgba(14, 27, 46, 0.82); margin-bottom: 0.7rem; max-width: 54ch; }
.credit-content strong { color: var(--navy-950); font-weight: 600; }
.credit-highlight {
  font-weight: 600;
  color: var(--navy-950);
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--navy-900);
  background: rgba(14, 27, 46, 0.06);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.9rem;
}
.credit-note { font-size: 0.9rem; color: rgba(14, 27, 46, 0.6); }
.credit-figure { text-align: center; white-space: nowrap; }
.figure-old {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: rgba(14, 27, 46, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 0.2rem;
}
.figure-big { font-family: var(--serif); font-size: clamp(3.8rem, 9vw, 5.4rem); line-height: 1; color: var(--navy-900); }
.figure-cur { font-size: 0.45em; vertical-align: super; }
.figure-cap { display: block; font-size: 0.82rem; color: rgba(14, 27, 46, 0.65); margin-top: 0.5rem; white-space: normal; max-width: 11rem; }

/* ===================== ZONE ===================== */
.zone-intro { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ivory-dim); max-width: 54ch; margin-bottom: 1.8rem; }
.zone-pins { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.pin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--ivory);
  font-weight: 500;
  font-size: 0.95rem;
}
.pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pin--main { border-color: var(--line); color: var(--gold-300); }
.pin--soft { border-style: dashed; color: var(--ivory-fade); }
.pin--soft::before { display: none; }
.zone-note { color: var(--ivory-dim); font-size: 0.95rem; }
.zone-note a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: 0.6rem; max-width: 800px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ivory);
  padding: 1.2rem 2.2rem 1.2rem 0;
  position: relative;
  outline-offset: 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.3rem; color: var(--ivory-dim); font-size: 0.96rem; }
.faq-item a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== CONTACT ===================== */
.contact {
  max-width: none;
  margin-top: 0;
  padding: clamp(4.5rem, 10vw, 7rem) var(--gut);
  background: var(--navy-950);
  border-top: 1px solid var(--line-soft);
}
.contact-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.contact-lead { color: var(--ivory-dim); max-width: 46ch; margin: 0 auto 2.8rem; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 260px;
  padding: 2rem 2.2rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line); }
.contact-ico { color: var(--gold); margin-bottom: 0.4rem; }
.contact-ico .ico { width: 28px; height: 28px; }
.contact-label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-fade); }
.contact-value { font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }

/* ===================== PIED DE PAGE ===================== */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.2rem var(--gut);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--ivory-fade);
  font-size: 0.85rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--ivory); }
.footer-brand .brand-mark { width: 1.65rem; height: 1.65rem; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ivory-dim); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-300); }
.ico-brand { fill: currentColor; stroke: none; }
.footer-linkedin .ico { width: 17px; height: 17px; }
.about-link { margin-top: 1.3rem; }
.about-link a { color: var(--gold-300); font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== PAGES LÉGALES ===================== */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut) clamp(3rem, 7vw, 5rem);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ivory-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--gold-300); }
.legal-main h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.legal-updated { color: var(--ivory-fade); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal-main h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 2.5rem 0 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.legal-main h2:first-of-type { border-top: none; padding-top: 0; }
.legal-main p, .legal-main li { color: var(--ivory-dim); }
.legal-main p { margin-bottom: 1rem; }
.legal-main ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-main li { margin-bottom: 0.5rem; }
.legal-main a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.legal-main strong { color: var(--ivory); font-weight: 600; }
.legal-todo {
  color: var(--gold-300);
  background: rgba(231, 185, 106, 0.08);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
}
.legal-dl { margin: 0 0 1rem; }
.legal-dl div { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
.legal-dl dt { color: var(--ivory-fade); min-width: 9rem; font-size: 0.95rem; }
.legal-dl dd { margin: 0; color: var(--ivory); }

/* ===================== MOTION (discret, CSS only) ===================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-portrait, .section-head, .about-grid,
  .cards > *, .credit-box, .zone-pins, .faq-list, .contact-inner > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-text > *:nth-child(2) { animation-delay: 0.05s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.1s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.15s; }
  .hero-text > *:nth-child(5) { animation-delay: 0.2s; }
  .hero-portrait { animation-delay: 0.15s; }
  .cards > *:nth-child(2) { animation-delay: 0.08s; }
  .cards > *:nth-child(3) { animation-delay: 0.16s; }

  @supports (animation-timeline: view()) {
    .section-head, .about-grid, .cards > *, .credit-box, .zone-pins, .faq-list {
      animation: rise both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; justify-self: start; margin-bottom: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .credit-box { grid-template-columns: 1fr; }
  .credit-figure { text-align: left; }
}
@media (max-width: 480px) {
  .lead { max-width: none; }
  .btn { width: 100%; justify-content: center; }
  .contact-card { min-width: 0; width: 100%; }
}
