/* ==========================================================================
   TB Conseils – feuille de style
   ========================================================================== */

:root {
  --navy: #16223a;
  --navy-2: #1f2e4b;
  --gold: #c9a45c;
  --gold-dark: #a8853f;
  --ink: #1b2233;
  --muted: #5d6577;
  --line: #e3e1da;
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(22, 34, 58, .35);
  --container: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: .975rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--small { padding: .6em 1.2em; font-size: .9rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Logo ------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.logo__tb { color: var(--navy); }
.logo__name { color: var(--gold); font-weight: 700; }
.logo--light .logo__tb { color: #fff; }

/* Header ----------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--navy); }

.nav-toggle { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 span { color: var(--gold-dark); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo { position: relative; margin: 0; max-width: 440px; justify-self: end; width: 100%; }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.hero__photo img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 793 / 959; object-fit: cover; }
.hero__photo figcaption {
  position: absolute;
  z-index: 2;
  left: -24px;
  bottom: 32px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  line-height: 1.35;
}
.hero__photo figcaption strong { display: block; font-size: 1rem; }
.hero__photo figcaption span { font-size: .85rem; color: var(--gold); }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #d6dbe6; }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Approche --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about__intro p { color: var(--muted); }

.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.values li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values__num { grid-row: span 2; font-weight: 800; color: var(--gold); font-size: 1.05rem; padding-top: 2px; }
.values h3 { margin-bottom: .3em; }
.values p { margin: 0; color: var(--muted); }

/* Services --------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.card__icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 1em; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Déroulement ------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }
.contact__list a { font-weight: 700; text-decoration: none; color: var(--navy); word-break: break-word; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin: 0 0 18px; min-width: 0; }
.field label,
.field legend { font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field label span { color: var(--gold-dark); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .8em .95em;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2316223a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
textarea { resize: vertical; min-height: 130px; }
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.is-invalid { border-color: #c0392b !important; }

.field--choices { border: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--choices legend { width: 100%; float: left; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .55em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice:has(input:checked) { border-color: var(--navy); background: var(--bg-soft); }
.choice input { accent-color: var(--navy); margin: 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); margin: 4px 0 22px; cursor: pointer; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.consent.is-invalid { border: 0 !important; color: #c0392b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 16px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.5em; }
.form__status.is-success { color: #2d7a4b; }
.form__status.is-error { color: #c0392b; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy); color: #aeb6c7; padding: 56px 0 0; font-size: .925rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__legal { margin: 18px 0 0; max-width: 34em; line-height: 1.6; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__contact a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 24px; font-size: .825rem; }
.footer__bottom p { margin: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid,
  .about,
  .contact { grid-template-columns: 1fr; }

  .hero__photo { justify-self: center; max-width: 380px; order: -1; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(22, 34, 58, .25);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }

  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__photo { max-width: 300px; }
  .hero__photo img { aspect-ratio: 1 / 1; object-position: center 15%; }
  .hero__photo figcaption { left: -12px; bottom: 16px; padding: 10px 16px; }
  .hero__photo::before { inset: 12px -12px -12px 12px; }

  .footer__contact { text-align: left; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .values li { grid-template-columns: 44px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
