@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bricolage-800.woff2") format("woff2"); }

:root {
  /* Tillizi : indigo pour l'action, safran pour la marque, crème pour le fond.
     Mise en page : une colonne large de 1120px, sections alternées crème / blanc / indigo. */
  color-scheme: light;
  --indigo: #1E1B4B;
  --indigo-2: #322E66;
  --saffron: #F5A524;
  --saffron-soft: #FCEFD2;
  --cream: #FFF8EB;
  --white: #FFFFFF;
  --ink: #17152E;
  --muted: #5B5772;
  --line: #EADFCB;
  --on-indigo: #FFF8EB;
  --on-indigo-muted: #D9D5F0;
  --ok-bg: #E6F4EC;
  --ok-fg: #145A33;
  --warn-bg: #FDF1E3;
  --warn-fg: #7A3A04;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* En-tête */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; padding: 10px 0; }
.nav a:hover { text-decoration: underline; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-2); color: var(--white); }
.btn-saffron { background: var(--saffron); color: var(--indigo); }
.btn-saffron:hover { background: #FFB73D; color: var(--indigo); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--saffron-soft); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-indigo { background: var(--indigo); color: var(--on-indigo); }
.section-indigo h2 { color: var(--on-indigo); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { font-size: 19px; color: var(--muted); }
.section-indigo .section-head p { color: var(--on-indigo-muted); }

/* Accueil */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); color: var(--indigo); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text > p { font-size: 20px; color: var(--ink); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.chips svg { width: 16px; height: 16px; color: var(--ok-fg); flex: none; }

/* Aperçu de l'application */
.device { background: var(--indigo); border-radius: 28px; padding: 14px; box-shadow: 0 24px 60px rgba(30, 27, 75, 0.28); }
.screen { background: var(--cream); border-radius: 16px; overflow: hidden; font-size: 12px; line-height: 1.3; color: var(--ink); }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--indigo); color: var(--on-indigo); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.screen-bar svg { width: 18px; height: 18px; }
.screen-bar .pill { margin-left: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); font-family: var(--font-body); font-weight: 600; font-size: 10.5px; }
.screen-bar .pill i { width: 6px; height: 6px; border-radius: 50%; background: #8FE3B0; display: block; }
.screen-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; align-content: start; }
.tile { background: var(--white); border: 1.5px solid var(--line); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 5px; min-height: 76px; justify-content: space-between; }
.tile.on { border-color: var(--indigo); background: var(--saffron-soft); }
.tile b { font-weight: 600; }
.tile span { font-weight: 700; }
.tile small { align-self: flex-start; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; background: var(--warn-bg); color: var(--warn-fg); }
.cart { background: var(--white); border-left: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.cart h4 { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.cart-line { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.cart-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total strong { font-size: 18px; font-weight: 800; }
.cart-pay { text-align: center; padding: 9px 6px; border-radius: 9px; background: var(--indigo); color: var(--white); font-weight: 700; font-size: 12px; }

/* Cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.section-white .card { background: var(--cream); }
.card h3 { font-size: 22px; color: var(--indigo); }
.card p { color: var(--ink); font-size: 16px; }
.card .icon { width: 48px; height: 48px; border-radius: 13px; background: var(--saffron-soft); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.card .icon svg { width: 26px; height: 26px; }
.tag { align-self: flex-start; padding: 3px 10px; border-radius: 10px; background: var(--indigo); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 12px; background: var(--saffron); color: var(--indigo); font-family: var(--font-display); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 22px; color: var(--on-indigo); }
.steps p { color: var(--on-indigo-muted); font-size: 16px; }

/* Offres */
.plan { gap: 16px; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--indigo); line-height: 1.1; }
.plan .price small { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--ok-fg); flex: none; }
.plan.featured { border: 2px solid var(--indigo); }
.note { font-size: 15px; color: var(--muted); margin-top: 20px; }

/* Questions */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; color: var(--indigo); }
.faq details p { padding: 0 0 18px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.contact h2 { font-size: clamp(28px, 4vw, 40px); }
.contact-list { display: flex; flex-direction: column; gap: 6px; font-size: 18px; margin-top: 12px; color: var(--on-indigo-muted); }
.contact-list strong { color: var(--on-indigo); }

/* Pied de page */
.site-footer { background: var(--indigo); color: var(--on-indigo-muted); border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.site-footer a { color: var(--on-indigo); }
.site-footer .spacer { flex: 1; }

/* Pages légales */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); color: var(--indigo); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.legal h2 { font-size: 24px; color: var(--indigo); margin: 36px 0 10px; }
.legal h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.draft { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid #F0C99B; border-radius: 14px; padding: 16px 18px; font-size: 16px; margin-bottom: 8px; }
.draft strong { display: block; margin-bottom: 4px; }
mark.todo { background: #FFE08A; color: #3D2A00; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; background: var(--white); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--saffron-soft); color: var(--indigo); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .steps { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-left: 0; width: 100%; gap: 0 18px; }
  .btn { width: 100%; }
  .screen { font-size: 10.5px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
