/* ==========================================================================
   Purecost Partner — site vitrine
   Charte Purecost V1.0 · Inter Tight / Instrument Serif italique / JetBrains Mono
   ========================================================================== */

:root {
  /* Couleurs */
  --ink:        #15227E;
  --ink-deep:   #070B22;
  --electric:   #1E3CFF;
  --amber:      #E85D2F;
  --paper:      #FAFAF7;
  --cream:      #F4F1EA;
  --white:      #FFFFFF;
  --dim:        #6B6E7A;
  --rule:       #E5E5E0;

  /* Typographie */
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tight: 'Inter Tight', var(--sans);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Rythme */
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(56px, 9vw, 96px);
  --radius-card: 14px;
  --radius-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--electric); }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 2px;
}
.dark :focus-visible { outline-color: var(--amber); }

/* --------------------------------------------------------------------------
   Structure
   -------------------------------------------------------------------------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section-narrow { max-width: 920px; }

.band {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.dark {
  background: var(--ink-deep);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--tight);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 1020px;
  margin-inline: auto;
}

h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.04;
  max-width: 860px;
  color: var(--ink);
}

.h2-faq { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 40px; }
.h2-light { color: var(--cream); font-size: clamp(32px, 4.6vw, 56px); line-height: 0.98; }

h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h3-lg { font-size: 24px; }

/* Accents éditoriaux — Instrument Serif italique */
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--amber);
}

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--electric);
  margin-bottom: 16px;
}
.eyebrow-light { color: rgba(244, 241, 234, 0.6); letter-spacing: 0.24em; }
.eyebrow-amber { color: var(--amber); }

.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 620px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */

.wordmark {
  font-family: var(--tight);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 25px;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
}
.wordmark:hover { color: var(--cream); }
.wm-cost { color: var(--white); }
.wm-partner {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  margin-left: 5px;
  font-size: 0.96em;
}
.wordmark-sm { font-size: 22px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.btn:hover { opacity: 0.88; }

.btn-light {
  background: var(--cream);
  color: var(--ink-deep);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink-deep);
  padding: 15px 28px;
  font-weight: 700;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  padding: 14px 26px;
  border: 1px solid rgba(244, 241, 234, 0.28);
}
.btn-outline:hover { color: var(--cream); border-color: rgba(244, 241, 234, 0.55); opacity: 1; }

/* --------------------------------------------------------------------------
   Nav + Hero
   -------------------------------------------------------------------------- */

.hero-band {
  background:
    radial-gradient(120% 130% at 82% -20%, rgba(30, 60, 255, 0.55), transparent 52%),
    radial-gradient(110% 120% at -5% 0%, rgba(232, 93, 47, 0.32), transparent 46%),
    var(--ink-deep);
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.nav-links a { color: rgba(244, 241, 234, 0.82); }
.nav-links a:hover { color: var(--cream); }

.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(44px, 6vw, 72px);
  text-align: center;
}
.hero .eyebrow { margin-bottom: 32px; }

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.72);
  max-width: 660px;
  margin: 32px auto 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 234, 0.5);
  margin-top: 24px;
}

.ticker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 56px);
  padding-bottom: clamp(52px, 7vw, 88px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.7);
  text-align: center;
}
.ticker b { color: var(--amber); font-weight: 700; }
.ticker-dot { color: rgba(244, 241, 234, 0.3); }

/* --------------------------------------------------------------------------
   Grilles & cartes
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 32px;
}
.card-white {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(21, 34, 126, 0.04);
}
.card p:not([class]) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 12px;
}

.card-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.card-label + h3 { margin-top: 14px; }

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--electric);
  line-height: 1;
}
.card-num + h3 { margin-top: 20px; }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--dim);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Méthode — 4 étapes
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  /* minmax(0,…) : sans lui, les mots serif longs (« Structuration ») élargissent
     leur colonne et désalignent les séparateurs. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.steps li {
  padding: 0 32px;
  border-right: 1px solid var(--rule);
}
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; border-right: none; }
.steps p:not([class]) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 10px;
}

.step-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.step-word {
  font-family: var(--serif);
  font-style: italic;
  /* Calé pour que « Structuration » tienne sur une ligne dans une colonne sur quatre. */
  font-size: clamp(30px, calc(4.375vw - 12px), 44px);
  line-height: 0.9;
  color: var(--amber);
  margin-top: 16px;
  overflow-wrap: break-word;
}
.steps h3 { margin-top: 20px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--tight);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--electric); }

.faq-sign {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--amber);
  flex: none;
}
.faq-sign::before { content: '+'; }
.faq details[open] .faq-sign::before { content: '−'; }

.faq details p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 740px;
  padding-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Prise de rendez-vous
   -------------------------------------------------------------------------- */

.booking {
  background:
    radial-gradient(120% 130% at 85% -10%, rgba(30, 60, 255, 0.5), transparent 52%),
    var(--ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.booking-intro { position: sticky; top: 32px; }

.booking-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.72);
  margin-top: 20px;
  max-width: 440px;
}

.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--cream);
}
.checks span { color: var(--amber); font-weight: 700; }

.calendly-slot {
  min-width: 0;
  height: 720px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.calendly-fallback {
  padding: 32px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
}
.footer-links a { color: rgba(244, 241, 234, 0.6); }
.footer-links a:hover { color: var(--cream); }

.copyright {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 234, 0.4);
}

/* --------------------------------------------------------------------------
   Page intérieure (mentions légales)
   -------------------------------------------------------------------------- */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 56px); text-align: left; margin-inline: 0; }
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 8px;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
  margin-top: 8px;
}
.legal a { color: var(--electric); }
.legal .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  display: inline-block;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .booking-grid { grid-template-columns: 1fr; gap: 40px; }
  .booking-intro { position: static; }
  .booking-sub { max-width: none; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .steps li { padding: 0 32px; }
  /* Colonnes plus larges : le mot serif retrouve sa taille de charte. */
  .step-word { font-size: clamp(40px, 6vw, 56px); }
  .steps li:nth-child(odd) { padding-left: 0; }
  .steps li:nth-child(even) { padding-right: 0; border-right: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .steps li:last-child { border-bottom: none; }

  .card { padding: 24px; }

  /* Le retour forcé du titre laisse une ligne orpheline en étroit :
     on laisse le texte se répartir tout seul. */
  h1 br { display: none; }
  h1 { text-wrap: balance; }

  .btn-light { padding: 9px 14px; font-size: 13px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .ticker { flex-direction: column; gap: 12px; }
  .ticker-dot { display: none; }

  .calendly-slot { height: 780px; }

  .footer-inner { justify-content: flex-start; }
}
