/* ==========================================================================
   Coach Flow — le site de l'entreprise (coach-flow.fr)
   Sobre et institutionnel : fond blanc, encre bleu nuit, filets fins,
   Impact (ou Anton, sa version libre) pour les titres, Instrument Sans pour
   le texte. Plusieurs pages qui partagent l'en-tête et le pied de page.
   ========================================================================== */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/anton-latin-400-normal.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F5F6F8;
  --ink: #0E1A3A;
  --ink-2: #3E4A66;
  --ink-3: #6B7590;
  --line: #E2E5EB;
  --accent: #2C4FA3;
  --navy: #0B1430;
  --navy-2: #13204A;
  --on-navy: #E8ECF5;
  --on-navy-2: rgba(232, 236, 245, 0.66);
  --serif: Impact, 'Anton', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; padding: 8px 12px; background: var(--ink); color: #fff; z-index: 20; }

/* ---------- en-tête ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__logo { width: 42px; height: auto; }
.brand__name { font-family: var(--serif); font-size: 25px; letter-spacing: 0; line-height: 1; }
.brand__tag { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.nav .nav__cta { margin-left: 8px; color: #fff; background: var(--ink); font-weight: 600; }
.nav .nav__cta:hover { color: #fff; background: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(14, 26, 58, 0.35);
  }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .top.is-open .nav { display: flex; }
}

/* ---------- titres et texte ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; max-width: 20ch; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 26px; max-width: 60ch; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--solid { color: #fff; background: var(--ink); }
.btn--solid:hover { color: #fff; background: var(--accent); }
.btn--line { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn--line:hover { color: var(--ink); border-color: var(--ink); }
.btn--light { color: var(--navy); background: #fff; }
.btn--light:hover { color: var(--navy); background: var(--on-navy); }
.btn--ghost-light { color: var(--on-navy); border: 1px solid rgba(232, 236, 245, 0.28); }
.btn--ghost-light:hover { color: #fff; border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--grey { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.section__head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- ouverture ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.hero::after {
  content: '';
  position: absolute;
  right: -180px;
  top: -140px;
  width: 620px;
  height: 620px;
  background: url(logo-cf.svg) no-repeat center / contain;
  opacity: 0.035;
  pointer-events: none;
}
.hero--page { padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.hero--page h1 { font-size: clamp(42px, 6vw, 76px); max-width: 18ch; }

/* Chiffres et repères en bande */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.keys > div { padding: 24px 24px 0 0; }
.keys > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.keys b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.keys span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .keys { grid-template-columns: 1fr 1fr; }
  .keys > div:nth-child(3) { padding-left: 0; border-left: none; }
  .keys > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.section--grey .card { border-color: transparent; }
.card p { color: var(--ink-2); font-size: 16px; }
.card__n { font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em; color: var(--accent); }
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(44, 79, 163, 0.08);
}
.card__icon svg { width: 22px; height: 22px; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

/* ---------- bande bleu nuit ---------- */
.band { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(90% 120% at 85% 10%, #1D326B 0%, var(--navy-2) 38%, var(--navy) 80%); color: var(--on-navy); }
.band h2 { color: #fff; }
.band h2 em { color: #8EA4EA; }
.band p { color: var(--on-navy-2); }
.band .eyebrow { color: #8EA4EA; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } }

.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.product-id img { width: 60px; height: 60px; border-radius: 15px; }
.product-id b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: #fff; }
.product-id span { font-size: 14px; color: var(--on-navy-2); }

.facts { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(232, 236, 245, 0.14); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(232, 236, 245, 0.14); font-size: 15.5px; }
.facts li b { font-weight: 600; color: var(--on-navy-2); }
.facts li span { color: #fff; text-align: right; }
.facts--light { border-top-color: var(--line); }
.facts--light li { border-bottom-color: var(--line); }
.facts--light li b { color: var(--ink-3); }
.facts--light li span { color: var(--ink); }

/* ---------- téléphones ---------- */
.phones { position: relative; display: flex; justify-content: center; gap: 18px; padding: 10px 0; }
.phone {
  width: min(250px, 42%);
  aspect-ratio: 390 / 844;
  padding: 8px;
  border-radius: 38px;
  background: #050812;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone--low { margin-top: 64px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.gallery figure { margin: 0; }
.gallery .phone { width: 100%; }
.gallery figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); text-align: center; }
.gallery figcaption b { display: block; color: var(--ink); font-size: 15.5px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- étapes ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { padding: 30px 28px 0 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: '0' counter(s); display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- frise ---------- */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { margin-top: 6px; }
.timeline p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }

/* ---------- deux colonnes de texte ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split .prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card p { color: var(--ink-2); font-size: 16px; }
.contact-card a.mail { margin-top: auto; padding-top: 10px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-all; }
.contact-card a.mail:hover { color: var(--accent); }

/* ---------- mentions légales ---------- */
.legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.legal dl { margin: 0; }
.legal div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.legal dd { margin: 0; font-size: 16px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal div { grid-template-columns: 1fr; gap: 2px; } }
.doc { max-width: 760px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 56px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 20px; }

/* ---------- appel final ---------- */
.cta { padding: clamp(56px, 7vw, 88px) 0; }
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 24px;
  background: var(--bg-2);
}
.cta__box h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta__box .actions { margin-top: 0; }

/* ---------- pied de page ---------- */
.foot { padding: 64px 0 36px; background: var(--navy); color: var(--on-navy-2); font-size: 15px; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(232, 236, 245, 0.14); }
.foot__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.foot__brand img { width: 40px; filter: brightness(0) invert(1); }
.foot__brand span { font-family: var(--serif); font-size: 24px; }
.foot__about { margin-top: 16px; max-width: 34ch; }
.foot h4 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 236, 245, 0.5); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; color: rgba(232, 236, 245, 0.5); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- apparition douce ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- téléphone : correctifs ---------- */
@media (max-width: 620px) {
  .hero::after { width: 380px; height: 380px; right: -170px; top: -60px; opacity: 0.03; }
  .eyebrow { font-size: 12px; letter-spacing: 0.12em; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { justify-content: center; }
  .keys b { font-size: 28px; }
  .keys > div { padding-right: 14px; }
  .keys > div + div { padding-left: 14px; }
  .keys > div:nth-child(3) { padding-left: 0; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span { text-align: left; }
  .band__grid { gap: 40px; }
  .phones { gap: 12px; }
  .phone { width: 46%; border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 24px; }
  .phone--low { margin-top: 40px; }
  .gallery { gap: 16px; }
  .cta__box { flex-direction: column; align-items: stretch; }
  .cta__box .actions { width: 100%; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot__grid > :last-child { grid-column: 1 / -1; }
  .foot__legal { flex-direction: column; }
  .legal div { padding: 12px 0; }
  .contact-card a.mail { word-break: normal; overflow-wrap: anywhere; font-size: 17px; }
}
