/* OPTI CONSEIL — feuille de style commune */

:root {
  --navy: #0E2C51;
  --navy-2: #17395F;
  --navy-deep: #07182E;
  --orange: #FB9A18;
  --orange-ink: #B96A00;
  --ground: #FFFFFF;
  --ground-2: #F1F4F9;
  --warm: #FDF7EF;
  --ink: #0E2C51;
  --ink-soft: #46587A;
  --muted: #75849B;
  --line: #DBE2EC;
  --line-2: #BFCADA;
  --wash: #FDF1DF;

  /* signature du métier : le dégradé thermique, du froid au chaud */
  --thermal: linear-gradient(90deg,
      #2E5FA8 0%, #2C8CA6 20%, #4FB08C 40%, #C9BC4E 62%, #FB9A18 82%, #DD5F26 100%);
  --shadow-sm: 0 1px 2px rgba(14, 44, 81, .05), 0 2px 8px rgba(14, 44, 81, .045);
  --shadow-md: 0 2px 5px rgba(14, 44, 81, .07), 0 10px 26px rgba(14, 44, 81, .09);

  --sans: ui-sans-serif, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  --shell: 1120px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0B1728;
    --navy-2: #16273F;
    --navy-deep: #050D18;
    --orange: #FDAF3B;
    --orange-ink: #FDBB58;
    --ground: #0A1220;
    --ground-2: #101C2E;
    --warm: #171F2B;
    --ink: #E9EEF5;
    --ink-soft: #AFBDCF;
    --muted: #7C8BA2;
    --line: #1D2C43;
    --line-2: #2C3F5C;
    --wash: #26200F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .26);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .42);
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }

/* ---------- en-tête ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(14, 44, 81, .03), 0 4px 14px rgba(14, 44, 81, .04);
}
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--thermal);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.15;
}
.brand-sub { font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--orange-ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #10233B; }
.btn-primary:hover { background: var(--orange-ink); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-ink); }
.btn-light { background: var(--orange); color: #10233B; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- typographie ---------- */
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.018em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 750; line-height: 1.16; }
h3 { font-size: 1.06rem; font-weight: 700; }

p { margin: 0; max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule { height: 3px; width: 78px; background: var(--orange); border-radius: 2px; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(46px, 7vw, 86px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--ground-2); border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }

/* ---------- héros ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(52px, 8vw, 104px) 0 clamp(56px, 8vw, 108px);
  background:
    radial-gradient(115% 90% at 88% 0%, rgba(251, 154, 24, .17) 0%, rgba(251, 154, 24, 0) 58%),
    radial-gradient(90% 80% at 5% 100%, rgba(46, 140, 166, .18) 0%, rgba(46, 140, 166, 0) 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* la bande thermique : signature du métier, du froid au chaud */
.hero::after,
.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--thermal);
}
.hero::after { bottom: 0; }
.hero h1 { color: #fff; }
.hero .lede { color: #C9D6E6; }
.hero .eyebrow { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-family: var(--sans);
  font-size: .875rem;
  color: #C9D6E6;
}
.hero-points b { color: #fff; font-weight: 700; }

.page-head {
  background: linear-gradient(174deg, var(--warm) 0%, var(--ground-2) 72%);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 5.5vw, 66px) 0;
}
.page-head .stack-tight { gap: 14px; }

/* ---------- grilles ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }

.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card p { font-size: .96rem; color: var(--ink-soft); }
.card-accent { border-top: 3px solid transparent; background-clip: padding-box; position: relative; }
.card-accent::before {
  content: "";
  position: absolute;
  top: -3px; left: -1px; right: -1px;
  height: 3px;
  background: var(--thermal);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- listes ---------- */
ul.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
ul.checks li { position: relative; padding-left: 26px; color: var(--ink-soft); max-width: 68ch; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}
ul.checks li b, ul.checks li strong { color: var(--ink); }

ol.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 0; }
ol.numbered li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
ol.numbered li:last-child { border-bottom: none; }
ol.numbered li::before {
  content: counter(n);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  color: var(--orange-ink);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
ol.numbered .t { font-family: var(--sans); font-weight: 700; font-size: 1rem; }
ol.numbered .d { font-size: .96rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq summary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 34px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--orange-ink);
  line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 0 18px; color: var(--ink-soft); font-size: .98rem; display: flex; flex-direction: column; gap: 10px; }

/* ---------- encadrés ---------- */
.note {
  background: var(--wash);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .98rem;
  color: var(--ink);
}
.callout {
  background: var(--ground-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  font-size: .98rem;
  color: var(--ink-soft);
}

/* ---------- bandeau de contact ---------- */
.cta-band {
  position: relative;
  color: #fff;
  padding: clamp(44px, 6vw, 70px) 0;
  background:
    radial-gradient(100% 90% at 92% 100%, rgba(251, 154, 24, .15) 0%, rgba(251, 154, 24, 0) 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta-band::before { top: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6E6; }
.cta-band .stack { align-items: flex-start; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list .k { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; }
.contact-list .v a { text-decoration: none; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--navy); color: #B9C7DA; padding: 46px 0 30px; font-family: var(--sans); font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.site-footer h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7E93AE; margin: 0 0 12px; font-weight: 700; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  color: #7E93AE;
  font-size: .8rem;
}

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-family: var(--sans); font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ground-2); font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }

@media (max-width: 700px) {
  .header-inner { justify-content: center; }
  .site-nav { justify-content: center; width: 100%; }
  .brand-sub { display: none; }
}
