/* =========================================================
   COB-X BTP — refonte v2
   Design system : mobile-first, base neutre, orange en accent
   ========================================================= */

:root {
  /* Couleurs */
  --c-bg:          #fbfaf7;   /* fond clair, légère teinte chaude */
  --c-surface:     #ffffff;
  --c-surface-alt: #f1ede6;   /* bandeau alterné */
  --c-ink:         #1c1d22;   /* texte principal anthracite */
  --c-ink-soft:    #4a4d57;
  --c-muted:       #7a7d87;
  --c-accent:      #e88710;   /* orange identitaire */
  --c-accent-dark: #b96703;
  --c-accent-soft: #fff1de;
  --c-line:        #e3ddd1;

  /* Typo fluide */
  --fs-xs:   clamp(0.78rem, 0.75rem + 0.2vw, 0.85rem);
  --fs-sm:   clamp(0.88rem, 0.85rem + 0.2vw, 0.95rem);
  --fs-base: clamp(1rem,    0.95rem + 0.3vw, 1.1rem);
  --fs-lg:   clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --fs-h3:   clamp(1.35rem, 1.15rem + 1vw,   1.75rem);
  --fs-h2:   clamp(1.75rem, 1.4rem + 1.6vw,  2.5rem);
  --fs-h1:   clamp(2.2rem,  1.7rem + 2.5vw,  3.6rem);

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

  /* Layout */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 8px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(20,20,30,.05), 0 1px 3px rgba(20,20,30,.06);
  --shadow-md: 0 6px 18px rgba(20,20,30,.08);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: 'Rubik', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 var(--s-3);
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--s-3); color: var(--c-ink-soft); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-4); } }

.section { padding-block: var(--s-6); }
.section--alt { background: var(--c-surface-alt); }
.section--dark { background: var(--c-ink); color: #f6f6f6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #c8cad1; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--s-2);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary   { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--outline   { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--ghost     { color: var(--c-accent-dark); padding-inline: 0; border-radius: 0; }
.btn--ghost:hover { color: var(--c-accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-3);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply; /* gomme le fond blanc du JPG */
}
.nav__brand-text em { color: var(--c-accent); font-style: normal; }
.nav__list {
  display: none;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav__list a:hover { color: var(--c-accent-dark); text-decoration: none; }
.nav__cta { display: none; }
.nav__toggle {
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top:  7px; }

@media (min-width: 900px) {
  .nav__list { display: flex; }
  .nav__cta  { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu ouvert */
.nav--open .nav__list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-surface);
  padding: var(--s-4);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--s-6) var(--s-7);
  background:
    radial-gradient(900px 500px at 85% -10%, var(--c-accent-soft), transparent 60%),
    var(--c-bg);
}
.hero__grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); }
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-ink-soft);
  margin-bottom: var(--s-4);
}
.hero__kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 em { color: var(--c-accent-dark); font-style: normal; }
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--c-ink-soft);
  max-width: 38ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.hero__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--c-ink);
  min-height: 420px;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  
}
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,29,34,0) 40%, rgba(28,29,34,0.55) 100%);
  pointer-events: none;
}
.hero__stats {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  display: grid;
  gap: var(--s-2);
  background: rgba(28, 29, 34, 0.95);
  backdrop-filter: blur(8px);
  padding: var(--s-3);
  border-radius: var(--radius-sm);
}
.hero__stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-2);
  color: #fff;
}

.hero__stat strong {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 700;
  color: var(--c-accent-dark);
  line-height: 1;
}

.hero__stat span {
  color: #ffffff;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

/* ---------- Solutions (mise en page typographique) ---------- */
.solutions-header {
  max-width: 760px;
  margin-bottom: var(--s-6);
  text-align: center;
  margin-inline: auto;
}
.solutions-header h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.solutions-header__lead {
  font-size: var(--fs-lg);
  color: var(--c-ink-soft);
  max-width: 56ch;
  margin-inline: auto;
}

.solutions-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 800px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-7);
    row-gap: var(--s-6);
  }
}

.sol {
  position: relative;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-4);
  row-gap: var(--s-2);
  align-items: start;
}
.sol__num {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  grid-row: 1 / 4;
}
.sol h3 {
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.85rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.sol p {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--c-ink-soft);
  max-width: 48ch;
}
.sol__link {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.sol__link span {
  transition: transform .2s ease;
  display: inline-block;
}
.sol__link:hover { text-decoration: none; color: var(--c-accent); }
.sol__link:hover span { transform: translateX(4px); }

/* ---------- Section "deux colonnes" (alternée) ---------- */
.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .split--reverse > :first-child { order: 2; }
}
/* Wrapper soft-photo (zoom + flou léger) */
.photo-soft {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background: var(--c-ink);
}
.photo-soft img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  
}
.photo-soft::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,135,16,0.15) 0%, rgba(28,29,34,0.25) 100%);
}

/* legacy fallback : on garde .split__media en tant qu'image directe si jamais */
img.split__media {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transform: scale(1.0);
  filter: blur(3px) saturate(1.05);
}

/* ---------- Citation (avis kiné) ---------- */
.quote {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  font-family: 'Rubik', sans-serif;
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 var(--s-4);
  font-weight: 500;
}
.quote blockquote::before { content: '« '; color: var(--c-accent); }
.quote blockquote::after  { content: ' »'; color: var(--c-accent); }
.quote cite {
  font-style: normal;
  color: #c8cad1;
  font-size: var(--fs-sm);
}

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 800px) {
  .cta-band { grid-template-columns: 1fr auto; padding: var(--s-6); }
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p  { color: rgba(255,255,255,.9); margin: var(--s-2) 0 0; }
.cta-band .btn--primary { background: #fff; color: var(--c-accent-dark); }
.cta-band .btn--primary:hover { background: var(--c-ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #c8cad1;
  padding-block: var(--s-5) var(--s-4);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand {
  font-family: 'Rubik', sans-serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.footer__brand span { color: var(--c-accent); }
.site-footer a { color: #c8cad1; }
.site-footer a:hover { color: var(--c-accent); text-decoration: none; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__legal {
  border-top: 1px solid #2a2c33;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  color: #7a7d87;
  font-size: var(--fs-xs);
}

/* ---------- Page hero (pages intérieures) ---------- */
.page-hero {
  padding-block: var(--s-6) var(--s-5);
  background:
    radial-gradient(700px 360px at 90% 0%, var(--c-accent-soft), transparent 60%),
    var(--c-bg);
}
.page-hero__inner {
  max-width: 820px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 1.7rem + 2.5vw, 3.4rem);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.page-hero__lead {
  font-size: var(--fs-lg);
  color: var(--c-ink-soft);
}
.breadcrumb {
  display: flex;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-accent-dark); text-decoration: none; }
.breadcrumb span { color: var(--c-line); }

/* ---------- Prose : typographie long-form ---------- */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose > * + * { margin-top: var(--s-4); }
.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s-6);
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--s-5);
}
.prose p {
  font-size: var(--fs-base);
  color: var(--c-ink-soft);
  line-height: 1.75;
}
.prose ul, .prose ol {
  padding-left: 1.4em;
  color: var(--c-ink-soft);
}
.prose ul li, .prose ol li {
  margin-bottom: var(--s-2);
  line-height: 1.7;
}
.prose ul li::marker { color: var(--c-accent); }
.prose strong { color: var(--c-ink); }
.prose blockquote {
  border-left: 4px solid var(--c-accent);
  margin: var(--s-5) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  font-family: 'Rubik', sans-serif;
  font-size: var(--fs-lg);
  color: var(--c-ink);
  font-style: normal;
}
.prose .signature {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: var(--c-ink);
}

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.field {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.field label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--row {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 700px) {
  .field--row { grid-template-columns: 1fr 1fr; }
}

.contact-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: start; }
}
.contact-info {
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-5);
}
.contact-info h3 { color: #fff; }
.contact-info p, .contact-info a { color: #d6d8df; }
.contact-info a:hover { color: var(--c-accent); }
.contact-info__item {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid #2a2c33;
}
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__item strong { color: #fff; display: block; font-family: 'Rubik', sans-serif; }
.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232,135,16,0.18);
  color: var(--c-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Fondateur (portrait) ---------- */
.founder {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .founder { grid-template-columns: 280px 1fr; gap: var(--s-6); align-items: start; }
}
.founder__photo {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.founder__name {
  font-family: 'Rubik', sans-serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
}
.founder__role {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s-1);
}

/* ---------- Liste de bénéfices (check) ---------- */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  align-items: start;
  color: var(--c-ink-soft);
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b96703' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 4px;
}

/* Nav active link */
.nav__list a[aria-current="page"] {
  color: var(--c-accent-dark);
}
.nav__list a[aria-current="page"]::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  margin-top: 2px;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.max-prose   { max-width: 65ch; }
.mt-auto     { margin-top: auto; }
/* Menu mobile ouvert */
.nav--open .nav__list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg);
  padding: var(--s-3);
  border-bottom: 1px solid var(--c-line);
  gap: var(--s-3);
}
