/* ════════════════════════════════════════════════════════════
   RENOV-PILOT — site vitrine (shared styles for sub-pages)
   Tokens identiques à l'index (light theme, gold accent)
   ════════════════════════════════════════════════════════════ */
:root {
  --bg-0: #FAFAF7;
  --bg-1: #FFFFFF;
  --bg-2: #F3F1EC;
  --bg-3: #EAE7DF;
  --line: rgba(20,17,10,.08);
  --line-2: rgba(20,17,10,.12);
  --line-strong: rgba(20,17,10,.18);
  --gold: #B38B3F;
  --gold-hi: #D4AB5F;
  --gold-lo: #8A6A2E;
  --ink-0: #14110A;
  --ink-1: #3A3528;
  --ink-2: #6B6455;
  --ink-3: #96907F;
  --ok: #2E7D4F;
  --danger: #C0392B;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow-card: 0 1px 2px rgba(20,17,10,.04), 0 8px 24px -12px rgba(20,17,10,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink-0); margin: 0; }
h1 { font-size: 48px; font-weight: 800; line-height: 1.05; }
h2 { font-size: 36px; font-weight: 800; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p  { margin: 0; color: var(--ink-1); }
a  { color: var(--gold-lo); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold); }
ul { margin: 0; padding: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold-text { color: var(--gold); }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .12em; font-weight: 600; text-transform: uppercase; color: var(--gold); padding: 6px 12px; background: rgba(179,139,63,.09); border: 1px solid rgba(179,139,63,.22); border-radius: 999px; margin-bottom: 14px; }
.section-head { text-align: center; margin: 0 auto 50px; max-width: 720px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: var(--radius-btn); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .18s var(--ease); white-space: nowrap; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%); color: #fff; border-color: var(--gold-lo); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 4px 12px -4px rgba(138,106,46,.5); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 18px -4px rgba(138,106,46,.6); color:#fff; }
.btn-ghost { background: transparent; color: var(--ink-0); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink-0); }
.btn-primary { background: var(--ink-0); color: #fff; border-color: var(--ink-0); }
.btn-primary:hover { background: #000; color:#fff; }

/* Promo bar */
.promo { background: linear-gradient(90deg, var(--gold-lo) 0%, var(--gold) 50%, var(--gold-hi) 100%); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.promo b { font-weight: 700; margin-right: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background .25s var(--ease); }
.nav.stuck { border-color: var(--line); background: rgba(250,250,247,.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Manrope"; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-0); }
.logo:hover { color: var(--ink-0); }
.nav-center { display: flex; gap: 6px; }
.nav-link { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; color: var(--ink-1); }
.nav-link:hover { background: var(--bg-2); color: var(--ink-0); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.mob-burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--ink-0); }

.mob-menu { display: none; position: fixed; top: 66px; left: 0; right: 0; background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 20px 24px; flex-direction: column; gap: 8px; z-index: 40; }
.mob-menu.on { display: flex; }
.mob-menu a { padding: 12px 14px; border-radius: 8px; color: var(--ink-0); font-weight: 500; }
.mob-menu a:hover { background: var(--bg-2); }

/* Page header (sub-pages) */
.page-hero { padding: 72px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 44px; line-height: 1.1; }
.page-hero p { color: var(--ink-2); font-size: 17px; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Content article */
.page-section { padding: 56px 0; }
.article { max-width: 820px; margin: 0 auto; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 44px 48px; box-shadow: var(--shadow-card); }
.article h2 { font-size: 22px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.article h2:not(:first-child) { margin-top: 38px; }
.article h3 { font-size: 16px; margin: 20px 0 8px; color: var(--ink-0); }
.article p { color: var(--ink-1); margin: 10px 0; font-size: 15px; }
.article ul { list-style: none; padding: 0; margin: 10px 0; }
.article ul li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--ink-1); font-size: 14.5px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.article a { color: var(--gold-lo); }
.article .lead { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.article strong { font-weight: 700; color: var(--ink-0); }

/* Cards grid (team, values) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .num { font-family: "Manrope"; font-size: 28px; font-weight: 800; margin-bottom: 8px; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 40px auto 0; padding: 30px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-align: center; }
.stats-band > div { border-right: 1px solid var(--line); }
.stats-band > div:last-child { border-right: 0; }
.stats-band b { display: block; font-family: "Manrope"; font-size: 30px; font-weight: 800; color: var(--ink-0); letter-spacing: -.02em; }
.stats-band span { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

/* Team portraits */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 22px; justify-content: center; }
.team-item { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-card); }
.team-item .avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #fff; display: grid; place-items: center; font-family: "Manrope"; font-size: 22px; font-weight: 700; margin: 0 auto 14px; }
.team-item h4 { margin: 0 0 4px; font-size: 16px; }
.team-item .role { color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.team-item p { color: var(--ink-2); font-size: 13.5px; margin-top: 10px; }

/* Timeline */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--bg-3)); border-radius: 2px; }
.t-item { position: relative; padding: 14px 0 22px; }
.t-item::before { content: ""; position: absolute; left: -32px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(179,139,63,.18); }
.t-year { font-family: "Manrope"; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.t-title { font-family: "Manrope"; font-size: 18px; font-weight: 700; color: var(--ink-0); margin: 4px 0 6px; }
.t-item p { color: var(--ink-2); font-size: 14.5px; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.contact-info, .contact-form { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow-card); }
.contact-info h2 { font-size: 24px; margin-bottom: 16px; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-row:first-of-type { border-top: 0; }
.contact-row .ico { width: 36px; height: 36px; border-radius: 8px; background: rgba(179,139,63,.08); color: var(--gold-lo); display: grid; place-items: center; flex-shrink: 0; }
.contact-row b { display: block; font-size: 13px; color: var(--ink-0); }
.contact-row span { color: var(--ink-2); font-size: 13.5px; }
.contact-row a { color: var(--gold-lo); }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-1); letter-spacing: .02em; }
.form-field input, .form-field textarea, .form-field select { font-family: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-0); outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,139,63,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-alert { padding: 10px 14px; background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.2); color: var(--danger); border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.form-success { padding: 14px 16px; background: rgba(46,125,79,.08); border: 1px solid rgba(46,125,79,.22); color: var(--ok); border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }

/* Footer */
footer { padding: 60px 0 32px; background: var(--bg-1); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 13px; font-weight: 700; color: var(--ink-0); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a, .footer-grid li { color: var(--ink-2); font-size: 13.5px; line-height: 2; }
.footer-grid a { cursor: pointer; }
.footer-grid a:hover { color: var(--ink-0); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-tag { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 320px; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* Table of contents (for legal docs) */
.cgv-toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 22px 0 36px; }
.cgv-toc > b { display: block; font-family: "Manrope"; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 10px; }
.cgv-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 18px; }
.cgv-toc ol li { color: var(--ink-1); font-size: 14px; padding: 3px 0; break-inside: avoid; }
.cgv-toc ol li a { color: var(--ink-1); text-decoration: none; transition: color .15s var(--ease); }
.cgv-toc ol li a:hover { color: var(--gold-lo); text-decoration: underline; }
@media (max-width: 580px) { .cgv-toc ol { columns: 1; } }

/* Smooth scroll offset for sticky nav */
.article h2[id] { scroll-margin-top: 90px; }

/* Breadcrumb */
.crumb { padding: 18px 0 0; color: var(--ink-3); font-size: 13px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink-0); }
.crumb .sep { margin: 0 8px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 920px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .nav-center { display: none; }
  .mob-burger { display: inline-flex; }
  .nav-right .btn-ghost.btn-sm { display: none; }
  .cards-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band > div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .stats-band > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article { padding: 30px 24px; }
}
@media (max-width: 580px) {
  .cards-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band > div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══ Mobile polish — sub-pages (a-propos, mentions, cgv, confid, contact) ═══ */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .page-hero { padding: 72px 0 32px; }
  .page-hero h1 { font-size: clamp(28px, 8.2vw, 40px); line-height: 1.08; }
  .page-hero p { font-size: 15.5px; margin-top: 12px; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(24px, 6.8vw, 32px); line-height: 1.15; }
  .section-head p { font-size: 15px; }
  .page-section { padding: 56px 0; }

  /* Article cards (CGV, mentions-légales, confid) */
  .article { padding: 28px 22px; border-radius: 18px; }
  .article h2 { font-size: 22px; margin-top: 28px; }
  .article h3 { font-size: 17px; }
  .article p, .article li { font-size: 15px; }
  .article ul { padding-left: 20px; }
  .article h2[id] { scroll-margin-top: 80px; }

  /* CGV table of contents */
  .cgv-toc { padding: 16px 18px; margin: 18px 0 30px; }
  .cgv-toc ol { columns: 1; padding-left: 20px; }

  /* Team */
  .team-grid { gap: 16px; }
  .team-item { padding: 22px 18px; }
  .team-item .avatar { width: 64px; height: 64px; font-size: 20px; margin-bottom: 12px; }
  .team-item h4 { font-size: 15.5px; }
  .team-item p { font-size: 13.5px; }

  /* Contact */
  .contact-grid { gap: 22px; }
  .contact-card { padding: 26px 22px; }
  .contact-row { gap: 14px; }

  /* Stats band */
  .stats-band { padding: 22px 18px; }
  .stats-band b { font-size: 24px; }

  /* Timeline */
  .timeline { padding-left: 30px; }

  /* Nav */
  .nav-inner, .nav-wrap { padding: 10px 16px; }
  .nav-link { font-size: 13px; }
  .btn.btn-sm { padding: 7px 13px; font-size: 12.5px; }

  /* Footer */
  footer { padding: 44px 0 32px; }
  .footer-grid { padding: 0 18px; gap: 26px; }
  .footer-tag { font-size: 13.5px; }
  .footer-bottom { padding: 22px 18px 0; font-size: 12px; gap: 8px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .page-hero h1 { font-size: 26px; }
  .section-head h2 { font-size: 22px; }
  .article { padding: 22px 16px; }
  .article h2 { font-size: 20px; }
  .article p, .article li { font-size: 14.5px; }
  .team-item { padding: 20px 16px; }
  .stats-band b { font-size: 22px; }
}
