/* Foxis, styles partagés des pages intérieures */
:root {
  --paper: #F7F6F2; --white: #FFFFFF; --ink: #1A1A1A; --ink-soft: #4A4A46;
  --night: #121212; --orange: #F24F00; --orange-ink: #C13E00; --logo: #E8590C; --tint: #FDE3D6; --line: #DCDAD2;
  --font: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --cond: "Fira Sans Condensed", "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, table { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--cond); font-weight: 700; line-height: 1.06; letter-spacing: -0.012em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.btn { display: inline-block; text-decoration: none; font: 600 16px/1 var(--font); padding: 15px 22px; background: var(--orange); color: var(--ink); border: 2px solid var(--orange); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagehead .btn:hover, .pagehead .btn.ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* En-tête de page : bandeau nuit, grille orange en fond */
.pagehead { position: relative; color: var(--white); background: var(--night); overflow: hidden; border-bottom: 2px solid var(--orange); isolation: isolate; }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(242,79,0,.20) 1px, transparent 1px), linear-gradient(90deg, rgba(242,79,0,.20) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); }
.pagehead::after { content: ""; position: absolute; right: -8%; bottom: -55%; width: 56vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(242,79,0,.34), rgba(242,79,0,.07) 60%, transparent 70%); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 40px; height: auto; display: block; }
.brand .wm { font: 700 26px/1 var(--font); letter-spacing: .05em; }
.brand .wm b { color: var(--orange); font-weight: 700; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); font: 500 15px/1 var(--font); flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; color: var(--white); }
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav a.btn { padding: 12px 16px; font-size: 15px; color: var(--ink); border: 2px solid var(--orange); }
.nav a.btn:hover { background: var(--white); border-color: var(--white); }
@media (max-width: 1060px) {
  .top .wrap { flex-wrap: wrap; row-gap: 8px; }
  .nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; gap: 18px; white-space: nowrap; }
  .nav a.btn { flex: none; }
}
.hero-inner { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-inner > * { max-width: 860px; }
.hero-inner > .facts { max-width: none; }
.crumb { font: 500 14px/1 var(--font); color: #c9c6bd; margin-bottom: 18px; }
.crumb a { color: #c9c6bd; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.hero-inner h1 { font-size: clamp(38px, 5.6vw, 72px); }
.hero-inner h1 em { font-style: normal; color: var(--orange); }
.hero-inner .lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: #d6d3ca; max-width: 36em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; list-style: none; padding: 0; font: 600 16px/1.3 var(--font); }
.facts li { padding-left: 14px; border-left: 3px solid var(--orange); }
.facts small { display: block; font: 400 14px/1.3 var(--font); color: #c9c6bd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Onglets de page */
.pagetabs { background: var(--white); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.pagetabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 0; }
.pagetabs [role="tab"] { font: 600 17px/1 var(--font); padding: 18px 22px; background: transparent; border: 0; border-bottom: 5px solid transparent; margin-bottom: -2px; cursor: pointer; color: var(--ink-soft); }
.pagetabs [role="tab"]:hover { color: var(--ink); }
.pagetabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tabpanel[hidden] { display: none; }

section.s { padding-block: clamp(48px, 6.5vw, 92px); border-bottom: 1px solid var(--line); }
.head { max-width: 780px; margin-bottom: clamp(26px, 4vw, 44px); }
.head h2 { font-size: clamp(30px, 4vw, 48px); }
.head p { margin-top: 14px; color: var(--ink-soft); font-size: 19px; }
.note { margin-top: 20px; color: var(--ink-soft); font-size: 15px; max-width: 60em; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
@media (max-width: 900px) { .cols2, .cols3 { grid-template-columns: 1fr; } }

/* Chiffres du risque */
.risks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); }
.risk { border-top: 4px solid var(--orange); padding-top: 12px; }
.risk b { display: block; font: 700 clamp(44px, 6vw, 72px)/.95 var(--cond); }
.risk p { margin-top: 8px; font-size: 16px; }
.risk cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 900px) { .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .risks { grid-template-columns: 1fr; } }

/* Packs : quatre niveaux d'altitude */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.pack { border-top: 4px solid var(--ink); padding: 14px 18px 8px 0; display: grid; gap: 8px; align-content: start; }
.pack:nth-child(1) { min-height: 0; }
.pack + .pack { padding-left: 18px; border-left: 1px solid var(--line); }
.pack.top { border-top-color: var(--orange); }
.pack.rec { background: linear-gradient(var(--tint), var(--tint)) top/100% 4px no-repeat; border-top-color: var(--orange); }
.pack .lvl { font: 600 13px/1 var(--font); color: var(--ink-soft); }
.pack h3 { font-size: 32px; }
.pack .price { font: 700 clamp(34px, 4vw, 50px)/1 var(--cond); }
.pack .price small { display: block; margin-top: 4px; font: 400 14px/1.3 var(--font); color: var(--ink-soft); }
.pack .tagline { font-weight: 600; font-size: 16px; }
.pack ul { list-style: none; padding: 0; display: grid; gap: 9px; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.pack li { padding-left: 16px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--orange); }
.pack .plus { font: 600 13px/1 var(--font); color: var(--orange-ink); }
.badge { display: inline-block; font: 600 12px/1 var(--font); background: var(--orange); color: var(--ink); padding: 4px 7px; margin-left: 8px; vertical-align: 4px; }
@media (max-width: 1000px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .pack:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } .pack, .pack + .pack { padding-left: 0; border-left: 0; } }

/* Tableaux */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font: 700 18px/1.1 var(--cond); background: var(--white); position: sticky; top: 0; }
.cmp td.c, .cmp th.c { text-align: center; white-space: nowrap; }
.cmp td small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-soft); font-weight: 400; max-width: 46em; white-space: normal; }
.cmp tr.grp td { background: var(--ink); color: var(--white); font: 600 13px/1.2 var(--font); padding: 8px 12px; }
.cmp tr.tot td { font-weight: 600; background: var(--white); }
.cmp tr.price td { font-weight: 700; background: var(--tint); }
.cmp td.n { color: #9a978d; }
.cmp td.y { font-weight: 600; color: var(--orange-ink); }

/* Valorisation */
.vrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(190px, 260px); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vrow h3 { font-size: 24px; }
.bar { position: relative; height: 26px; background: #ECEAE3; }
.bar .seg { position: absolute; top: 0; bottom: 0; }
.bar .lic { left: 0; background: var(--orange); }
.bar .srv { background: #CFCCC1; }
.bar .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.bar .mark span { position: absolute; left: 6px; top: -22px; font: 600 12px/1 var(--font); white-space: nowrap; }
.vnum { display: grid; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.vnum b { font: 700 24px/1.1 var(--cond); color: var(--ink); }
.vnum b small { font: 400 13px/1 var(--font); margin-left: 4px; color: var(--ink-soft); }
.vnum .save { color: var(--orange-ink); font-weight: 600; }
.vnum .lbl { font: 600 12px/1 var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
@media (max-width: 760px) { .vrow { grid-template-columns: 1fr; gap: 10px; } }

/* Simulateur */
.sim { background: var(--white); border: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sim .in { padding: 26px; display: grid; gap: 18px; align-content: start; }
.sim .out { background: var(--night); color: var(--white); padding: 26px; display: grid; gap: 14px; align-content: start; }
.sim h3 { font-size: 26px; }
.sim label, .sim .lab { font: 600 15px/1.2 var(--font); display: block; margin-bottom: 8px; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btns button { font: 600 15px/1 var(--font); padding: 11px 14px; background: var(--white); border: 2px solid var(--ink); cursor: pointer; }
.seg-btns button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.sim input[type="number"] { font: 600 20px/1 var(--font); width: 110px; padding: 10px; border: 2px solid var(--ink); background: var(--paper); }
.sim input[type="range"] { width: 100%; accent-color: var(--orange); }
.sim .big { font: 700 clamp(40px, 5vw, 60px)/1 var(--cond); }
.sim .big small { font: 400 16px/1 var(--font); color: #c9c6bd; }
.sim dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 15px; }
.sim dt { color: #c9c6bd; } .sim dd { margin: 0; font-weight: 600; text-align: right; }
.sim .flag { background: rgba(242,79,0,.18); border-left: 3px solid var(--orange); padding: 8px 12px; font-size: 14px; color: #f3d9cc; }
.sim .unit { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }

/* Listes à filet */
.rules { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.rules li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.rules li b { font-weight: 600; }
.rules.no li::before, .rules.yes li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; vertical-align: 0; }
.rules.yes li::before { background: var(--orange); }
.rules.no li::before { border: 2px solid var(--ink); }
.subh { font-size: 26px; margin-bottom: 14px; }

/* Étapes (séquence réelle) */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 16px 18px 8px 0; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-block; font: 700 40px/1 var(--cond); color: var(--orange); margin-bottom: 6px; }
.steps h3 { font-size: 24px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; border-left: 0; } }

/* Contrat : engagements */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.term { padding: 18px 22px 20px 0; border-bottom: 1px solid var(--line); }
.term:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.term h3 { font-size: 24px; margin-bottom: 6px; }
.term p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr; } .term, .term:not(:nth-child(3n+1)) { padding: 16px 0; border-left: 0; } }

/* Appel final */
.cta { background: var(--night); color: var(--white); padding-block: clamp(44px, 6vw, 80px); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); }
.cta p { margin-top: 10px; color: #d6d3ca; font-size: 18px; max-width: 34em; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.legal { font-size: 14px; color: var(--ink-soft); }
footer { background: var(--night); color: #d8d6cf; padding-block: 36px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.12); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { color: var(--white); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
