/* BiliTech — feuille de style
   Palette : crème / gris ardoise / bleu clair, accents marine (logo) et ambre */
:root {
  --cream: #F7F4EC;
  --cream-2: #EFEADC;
  --sky: #DCE8F2;
  --sky-2: #C5D8E8;
  --slate: #4A5563;
  --slate-2: #6B7886;
  --ink: #1B2A3A;
  --navy: #17324D;
  --blue: #2A6CA8;
  --amber: #E08A2E;
  --amber-d: #B96D1B;
  --green: #3E8E66;
  --white: #FFFFFF;
  --line: #D9D3C2;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(23, 50, 77, .10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 254, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 60px; width: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a.link { color: var(--slate); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a.link:hover { color: var(--navy); border-color: var(--amber); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; color: var(--navy); font: inherit; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(23, 50, 77, .25); }
.btn-primary:hover { background: #0F2438; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-amber { background: var(--amber); color: #2B1A06; }
.btn-amber:hover { background: #EE9A40; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-d); margin-bottom: .9rem; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); background: var(--white); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.trust div { background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; font-weight: 650; font-size: .93rem; color: var(--slate); display: flex; align-items: center; gap: .6rem; }
.trust svg { flex: none; color: var(--amber-d); }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.alt { background: var(--white); }
.sky { background: var(--sky); }

/* Cards */
.grid { display: grid; gap: 1.3rem; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 rgba(23, 50, 77, .03); }
.alt .card { background: var(--cream); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--slate); font-size: .96rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--navy); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 26px; height: 26px; }

/* Split with image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.rev .frame { order: 2; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .6rem; color: var(--slate); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Forfait */
.plan { background: var(--navy); color: #E7EEF5; border-radius: 26px; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.plan::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(224, 138, 46, .18); }
.plan h2 { color: #fff; }
.plan .eyebrow { color: #F0B26A; }
.plan .checks li { color: #D6E2EE; }
.plan .checks li::before { background-color: var(--amber); }
.plan-note { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 1.4rem; position: relative; z-index: 1; }
.plan-note p { margin: 0 0 1rem; color: #D6E2EE; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #2B1A06; font-weight: 800; margin-bottom: 1rem; }
.step p { color: var(--slate); margin: 0; font-size: .96rem; }

/* FAQ */
.faq { max-width: 52rem; }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: .8rem; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--amber-d); }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 650; font-size: .92rem; color: var(--navy); margin-bottom: .3rem; }
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid #C9D1D9; border-radius: 10px; font: inherit; background: #FBFCFE; color: var(--ink); margin-bottom: 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 108, 168, .18); }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--slate); margin-bottom: 1.2rem; }
.consent input { width: auto; margin: .25rem 0 0; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; display: none; }
.notice.ok { display: block; background: #E3F3EA; color: #1F5E3F; border: 1px solid #B5DFC8; }
.notice.err { display: block; background: #FBE9E3; color: #8A3418; border: 1px solid #F0C4B3; }
.contact-info p { color: var(--slate); }
.contact-info .big { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

/* Footer */
footer { background: var(--navy); color: #C5D3E1; padding: 3rem 0 1.5rem; font-size: .95rem; }
footer a { color: #E8EEF5; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.chip { display: inline-block; background: #fff; border-radius: 16px; padding: .5rem .9rem; margin-bottom: 1rem; }
.chip img { height: 54px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .86rem; }

/* Legal page */
.legal { max-width: 46rem; padding: 3rem 0 4rem; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal li { margin-bottom: .4rem; color: var(--slate); }

@media (max-width: 960px) {
  .hero-grid, .split, .plan, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .frame { order: 0; }
  .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #FBFCFE; flex-direction: column; align-items: flex-start; padding: 1rem 4%; gap: 1rem; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g4, .g3, .g2, .steps, .row, .foot { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-header, .menu-btn, form { display: none; } }

/* Logo : conserver les proportions */
.brand img, .chip img { width: auto; }
