:root{
  --cover:#5a3a63;--cover-dk:#3c2643;
  --paper:#fffefb;--rule:#f3efe6;--line:#ece7dc;--ink:#26252c;--ink2:#4a4852;--muted:#8d8a82;--card:#fff;
  --today:#e0563b;--rdv:#4f7cac;--perso:#5f9c63;--cours:#d68a2e;--sport:#c25b8e;--note:#e0b02a;--violet:#8a72c9;--teal:#3b9a93;
  --font:"Comic Neue","Chalkboard SE","Comic Sans MS",system-ui,sans-serif;
  --shadow:0 1px 2px rgb(0 0 0/.04),0 8px 22px rgb(0 0 0/.06);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;padding:22px 14px 40px;font:17px/1.5 var(--font);color:var(--ink);-webkit-font-smoothing:antialiased;
  background:var(--cover) fixed;
  background-image:radial-gradient(circle at 30% 0%,rgb(255 255 255/.12),transparent 60%),repeating-linear-gradient(45deg,rgb(255 255 255/.025) 0 2px,transparent 2px 6px)}
/* couture de la couverture */
body::before{content:"";position:fixed;inset:7px;border:1.5px dashed rgb(255 255 255/.45);border-radius:14px;pointer-events:none}
img,video{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3{font-weight:700}
svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:3px solid var(--rdv);outline-offset:3px;border-radius:10px}
mark{color:inherit;padding:0 .08em;background:linear-gradient(transparent 56%,color-mix(in srgb,var(--m,var(--note)) 42%,transparent) 56% 90%,transparent 90%)}

/* ---------- agenda : page + onglets ---------- */
.book{position:relative;max-width:1230px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.paper{position:relative;z-index:2;min-width:0;background:var(--paper);border-radius:18px;box-shadow:0 2px 3px rgb(0 0 0/.12),0 18px 50px rgb(0 0 0/.28);
  background-image:repeating-linear-gradient(to bottom,transparent 0 33px,var(--rule) 33px 34px);
  padding:clamp(16px,3.2vw,40px) clamp(16px,4.6vw,64px) 26px}
.tabs{display:none}
@media (min-width:980px){
  .book{grid-template-columns:minmax(0,1fr) 48px}
  .tabs{display:flex;flex-direction:column;position:sticky;top:64px;z-index:3;margin-left:-1px;padding-top:40px}
  .tabs a{position:relative;display:flex;align-items:center;justify-content:center;height:122px;margin:-4px 0;isolation:isolate;
    text-decoration:none;font-weight:700;font-size:15px;color:#3a3942}
  .tabs a::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--t) 42%,#fff);border-radius:4px 16px 16px 4px;
    transform:perspective(44px) rotateY(16deg);transform-origin:0 50%;box-shadow:0 1px 2px rgb(0 0 0/.22),inset 0 1px 0 rgb(255 255 255/.35);transition:filter .15s}
  .tabs a:hover::before{filter:brightness(1.05)}
  .tabs a span{writing-mode:vertical-rl;letter-spacing:.02em}
  .tabs a[aria-current=true]{z-index:2;color:var(--ink)}
  .tabs a[aria-current=true]::before{background:var(--paper);box-shadow:3px 1px 6px rgb(0 0 0/.14)}
  .top-cta{display:none}
}

/* ---------- en-tête ---------- */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:clamp(20px,4vw,44px);scroll-margin-top:30px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{border-radius:10px}
.brand b{font-size:27px;letter-spacing:-.01em}
.top-cta{font-weight:700;text-decoration:none;padding:9px 16px;border-radius:12px;background:var(--cover);color:#fff;box-shadow:0 2px 0 var(--cover-dk)}

/* ---------- haut de page ---------- */
.hero{display:grid;gap:clamp(30px,4vw,56px);align-items:center}
@media (min-width:900px){.hero{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)}}
.kicker{display:inline-block;margin:0 0 16px;padding:4px 13px;border-radius:99px;background:color-mix(in srgb,var(--today) 14%,#fff);color:#b8442d;font-weight:700;font-size:15px;transform:rotate(-1.5deg)}
h1{margin:0;font-size:clamp(38px,5.1vw,62px);line-height:1.04;letter-spacing:-.015em}
.lead{margin:18px 0 26px;max-width:32em;font-size:clamp(17px,1.55vw,20px);color:var(--ink2)}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:14px 22px;border:0;border-radius:14px;cursor:pointer;
  background:var(--cover);color:#fff;font:700 17px/1.1 var(--font);text-decoration:none;box-shadow:0 3px 0 var(--cover-dk);transition:transform .12s,box-shadow .12s}
.btn:hover{transform:translateY(-1px);box-shadow:0 4px 0 var(--cover-dk)}
.btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--cover-dk)}
.btn.ghost{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 2px var(--line),0 3px 0 var(--line)}
.btn.ghost svg{color:var(--today)}
.btn small{font:inherit;font-size:14px;color:var(--muted)}
.devs{list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;margin:24px 0 0;padding:0;color:var(--muted);font-size:15px;font-weight:700}
.devs li{display:flex;align-items:center;gap:7px}
.devs svg{width:19px;height:19px}

.hero-vis{position:relative;padding:0 0 clamp(26px,3.4vw,40px) clamp(30px,4vw,48px)}
.ipad{background:#1d1c21;border-radius:clamp(18px,2.6vw,32px);padding:clamp(7px,1.1vw,13px);transform:rotate(1.2deg);
  box-shadow:inset 0 0 0 1.5px #3a3940,0 24px 50px rgb(0 0 0/.24)}
.ipad img{width:100%;height:auto;aspect-ratio:1180/820;object-fit:cover;border-radius:clamp(9px,1.3vw,17px);background:var(--cover)}
.iphone{position:absolute;left:0;bottom:0;width:26%;background:#1d1c21;border-radius:clamp(16px,2.4vw,30px);padding:clamp(4px,.55vw,7px);transform:rotate(-3deg);
  box-shadow:inset 0 0 0 1.5px #3a3940,0 18px 40px rgb(0 0 0/.3)}
.iphone img{width:100%;height:auto;border-radius:clamp(12px,1.9vw,24px)}

/* ---------- sections ---------- */
.sec{margin-top:clamp(60px,8vw,100px);scroll-margin-top:26px}
h2{margin:0 0 8px;font-size:clamp(30px,3.4vw,42px);line-height:1.1;letter-spacing:-.01em}
.sub{margin:0 0 26px;max-width:40em;font-size:clamp(17px,1.5vw,19px);color:var(--ink2)}
#bref h2{margin-bottom:24px}

.cards{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.card img{width:100%;height:auto;aspect-ratio:1180/820;object-fit:cover;border-bottom:1px solid var(--line)}
.card h3{margin:14px 16px 4px;font-size:19px;line-height:1.2}
.card p{margin:0 16px 16px;font-size:15.5px;line-height:1.45;color:var(--ink2)}

/* ---------- comparaison ---------- */
.cmp-wrap{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.cmp{width:100%;border-collapse:collapse;font-size:16.5px}
.cmp th,.cmp td{padding:12px 18px;text-align:left;vertical-align:middle;border-top:1px solid var(--line)}
.cmp thead th,.cmp thead td{border-top:0;padding-top:16px;padding-bottom:14px;font-size:19px}
.cmp thead th{white-space:nowrap}
.cmp thead img{display:inline-block;vertical-align:-6px;margin-right:9px;border-radius:7px}
.cmp tbody th{width:40%;font-weight:700;color:var(--ink2)}
.cmp .pl{background:color-mix(in srgb,var(--note) 11%,#fff)}
.y,.n{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;border-radius:50%;vertical-align:-6px}
.y{background:color-mix(in srgb,var(--perso) 20%,#fff);color:#3d7a42}
.n{background:#f1efea;color:#a49f95}
.y svg,.n svg{width:15px;height:15px;stroke-width:2.8}
.pill{display:inline-block;padding:3px 11px;border-radius:99px;font-size:14.5px;font-weight:700}
.prem{background:color-mix(in srgb,var(--cours) 18%,#fff);color:#9c5c17}
.soon{background:color-mix(in srgb,var(--rdv) 15%,#fff);color:#3b6390}
.src{margin:12px 4px 0;max-width:62em;font-size:13.5px;color:var(--muted)}
@media (max-width:620px){
  .cmp{font-size:14.5px}
  .cmp th,.cmp td{padding:10px 9px}
  .cmp thead th,.cmp thead td{font-size:16px}
  .cmp thead img{width:20px;height:20px;margin-right:5px;vertical-align:-4px}
  .cmp tbody th{width:36%}
  .y,.n{width:20px;height:20px;margin-right:5px;vertical-align:-5px}
  .y svg,.n svg{width:12px;height:12px}
}

/* ---------- installation ---------- */
.inst-grid{display:grid;gap:22px 18px;padding-top:16px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.inst{position:relative;display:flex;flex-direction:column;padding:22px 22px 20px;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);
  --tc:color-mix(in srgb,var(--t) 42%,#fff);--tdk:color-mix(in srgb,var(--t) 72%,#000)}
/* onglet d'intercalaire au-dessus de la fiche */
.inst::before{content:"";position:absolute;left:22px;top:-15px;width:96px;height:16px;border-radius:10px 10px 0 0;background:var(--tc);
  transform:perspective(30px) rotateX(14deg);transform-origin:50% 100%;box-shadow:0 -1px 2px rgb(0 0 0/.12)}
.inst .ico{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:color-mix(in srgb,var(--t) 20%,#fff);color:var(--tdk)}
.inst .ico svg{width:31px;height:31px}
.inst h3{margin:14px 0 0;font-size:23px;line-height:1.2}
.inst .for{margin:2px 0 12px;font-size:15px;font-weight:700;color:var(--muted)}
.inst ol{flex:1;margin:0 0 20px;padding-left:21px;font-size:15.5px;line-height:1.45;color:var(--ink2)}
.inst li{margin:5px 0}
.inst li::marker{font-weight:700;color:var(--tdk)}
.inst .btn{width:100%}
.inst .mine{display:none;position:absolute;top:18px;right:18px;padding:3px 10px;border-radius:99px;font-size:13.5px;font-weight:700;background:color-mix(in srgb,var(--t) 20%,#fff);color:var(--tdk)}
.inst.is-mine{border-color:color-mix(in srgb,var(--t) 55%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--t) 22%,transparent),var(--shadow)}
.inst.is-mine .mine{display:block}

/* ---------- pied ---------- */
.foot{display:flex;align-items:center;gap:12px;margin-top:clamp(56px,7vw,84px);padding-top:20px;border-top:1.5px dashed var(--line);font-size:15px;color:var(--muted)}
.foot img{border-radius:8px}
.foot p{margin:0}
.foot b{color:var(--ink)}

/* ---------- message ---------- */
.toast{position:fixed;left:50%;bottom:26px;z-index:50;padding:11px 18px;border-radius:12px;background:var(--ink);color:#fff;font-weight:700;
  opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.btn,.toast{transition:none}}

/* ---------- open source ---------- */
.devs .oss-li{color:var(--perso)}
.oss-img{display:block;width:100%;height:auto;aspect-ratio:1180/820;border-bottom:1px solid var(--line)}
.oss-img text{font-family:var(--font)}
.foot{flex-wrap:wrap}
.foot p{flex:1;min-width:16em}
.code-link{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:12px;font-weight:700;text-decoration:none;color:var(--ink);background:var(--card);box-shadow:inset 0 0 0 2px var(--line)}
.code-link svg{width:18px;height:18px;color:var(--perso)}

/* ---------- prix ---------- */
.cmp .prix{font-size:30px;line-height:1;color:var(--perso)}
.cmp .prix.pm{color:#9c5c17}
@media (max-width:620px){.cmp .prix{font-size:24px}}
/* installation simplifiée */
.inst .key{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:color-mix(in srgb,var(--t) 18%,#fff);vertical-align:-6px;margin:0 1px}
.inst .key svg{width:16px;height:16px;fill:none;stroke:#2f7cf6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.inst .qr{display:none;align-items:center;gap:14px;margin:-6px 0 18px;padding:10px;border:1px dashed var(--line);border-radius:14px}
.inst .qr img{width:104px;height:104px;border-radius:8px;flex:none}
.inst .qr span{font-size:14.5px;font-weight:700;color:var(--muted);line-height:1.35}
.on-pc .inst .qr{display:flex}
