/* CAO Innovation - feuille de style v2 (page d'accueil) */
:root {
  --orange: #e16419;
  --orange-dark: #b94d0c;
  --ink: #1f2a33;
  --muted: #5a6670;
  --line: #dfe4e8;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(135deg, #1f2a33 0%, #2c3b47 100%); color: #fff; padding: 56px 0 64px; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { color: #ff9a5c; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; }
.hero p.lead { font-size: 1.1rem; color: #d5dce1; margin: 0 0 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid var(--orange); }
.btn-primary { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-primary:hover { background: #8f3a08; border-color: #8f3a08; color: #fff; }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-figure { background: #fff; border-radius: 6px; padding: 8px; margin: 0; }
.hero-figure img { border-radius: 3px; }
.hero-figure .pair { display: grid; grid-template-columns: .55fr 1fr; gap: 8px; align-items: center; padding: 6px; }
.hero-figure .pair img { width: 100%; height: auto; }
.hero-figure figcaption { font-size: .8rem; color: var(--muted); padding: 6px 4px 0; }

/* Atouts */
.kpis { padding: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.kpis ul { list-style: none; margin: 0; padding: 28px 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpis li { padding-left: 14px; border-left: 3px solid var(--orange); }
.kpis strong { display: block; font-size: 1.4rem; line-height: 1.2; color: var(--orange-dark); }
.kpis span { display: block; font-size: .93rem; color: var(--muted); margin-top: 2px; }

/* Sections */
section { padding: 56px 0; }
section.kpis { padding: 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; line-height: 1.25; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--orange); margin-top: 10px; }
.intro { color: var(--muted); max-width: 720px; margin: 12px 0 32px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f5f7; padding: 8px; }
.card .body { padding: 14px 16px 18px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card p.kf { color: var(--orange-dark); font-weight: 600; font-size: .85rem; margin-bottom: 6px; }

/* Exemple de note de calcul */
.example-top { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 28px; }
.facts { margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }
.concl { margin: 0 0 14px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.shots li { display: flex; }
.shots figure { margin: 0; width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.shots figcaption { margin-top: auto; }
.shots img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; padding: 8px; background: #fff; }
.shots figcaption { font-size: .85rem; color: var(--muted); padding: 8px 12px 12px; border-top: 1px solid var(--line); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange-dark); font-weight: 700; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-dark); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.more { margin-top: 24px; }
.refs { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; padding: 0; margin: 12px 0 0; }
.refgrid .refs { margin: 8px 0 0; }
.refgrid .card img { aspect-ratio: 3 / 2; }
.refs li.top { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; font-weight: 600; }
.refs li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .92rem; color: var(--muted); }

/* Contact */
.cta { background: var(--orange-dark); color: #fff; }
.cta h2::after { background: #fff; }
.cta a { color: #fff; }
.cta .btn-light { background: #fff; color: var(--orange-dark); border-color: #fff; }
.cta .btn-light:hover { background: #fff3ea; color: var(--orange-dark); }
.cta .btns { align-items: center; }
.phone-note { font-size: .9rem; max-width: 340px; line-height: 1.4; opacity: .95; }
.cta address { font-style: normal; margin-top: 16px; }

/* Pied de page */
.site-footer { background: var(--ink); color: #b8c2ca; font-size: .85rem; padding: 24px 0; }
.site-footer a { color: #e6ebef; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 800px) {
  .hero .wrap, .example-top { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .hero { padding: 36px 0 44px; }
  .brand img { height: 48px; }
}

/* ---- Pages intérieures ---- */
.page-head { background: linear-gradient(135deg, #1f2a33 0%, #2c3b47 100%); color: #fff; padding: 44px 0 48px; }
.page-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; }
.page-head .lead { color: #d5dce1; max-width: 760px; margin: 0; font-size: 1.08rem; }
.subnav { background: var(--bg-alt); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 10px 0; }
.subnav a { text-decoration: none; font-size: .93rem; color: var(--ink); font-weight: 600; }
.subnav a:hover { color: var(--orange-dark); }
.ex-title { margin-top: 28px; }
.examples { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.examples li { display: flex; }
.examples figure { margin: 0; width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.examples img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 6px; }
.examples figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.refblock { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.refblock .examples { margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.refblock .examples img { aspect-ratio: 1 / 1; }
.refblock .examples figcaption { font-size: .8rem; }
.refblock h2::after { margin-top: 8px; }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 0; padding: 0; }
.logos .logo { height: 56px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; }
.soft { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.soft h3 { font-size: 1rem; }
.note { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.phone-note { font-size: .9rem; max-width: 340px; line-height: 1.4; }
.cta .btns { align-items: center; }

/* Exemple trépied dans « Ce que nous calculons » */
.feature { display: grid; gap: 28px; grid-template-columns: 1fr 1.25fr; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.feature .eyebrow { color: var(--orange-dark); }
.feature h3 { font-size: 1.4rem; }
.feature .kf { color: var(--orange-dark); font-weight: 600; font-size: .9rem; margin: 0 0 10px; }
.feature p { margin: 0 0 14px; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.thumbs li { display: flex; }
.thumbs figure { margin: 0; width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; padding: 4px; }
.thumbs figcaption { margin-top: auto; font-size: .75rem; color: var(--muted); padding: 6px 8px 8px; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .refblock, .soft, .feature { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .refblock .examples { grid-template-columns: repeat(2, 1fr); }
  .subnav { position: static; }
}
