/* ==========================================================================
   Koova — composants réutilisables
   ========================================================================== */

/* ---------- icônes ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.9; }
i[data-i] { display: inline-block; width: 1.15em; height: 1.15em; flex: none; }   /* place réservée avant l'affichage de l'icône */
.i-lg { width: 1.6em; height: 1.6em; }

/* ---------- boutons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .72rem 1.35rem;
  border-radius: 999px; font: 600 .98rem/1.1 var(--ff-head); letter-spacing: -.005em; text-decoration: none; text-align: center;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); cursor: pointer; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .i-go { transform: translateX(4px); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.btn-primary { --bg: var(--orange); --fg: var(--ink); }
.btn-primary:hover { --bg: var(--orange-2); }
.btn-dark { --bg: var(--ink); --fg: #fff; } .btn-dark:hover { --bg: var(--ink-3); }
.btn-blue { --bg: var(--blue); --fg: #fff; } .btn-blue:hover { --bg: var(--blue-2); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); } .btn-ghost:hover { --bd: var(--ink); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .3); } .btn-ghost-light:hover { --bd: #fff; box-shadow: none; }
.btn-lg { min-height: 3.5rem; padding: .9rem 1.8rem; font-size: 1.06rem; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; font: 600 .98rem var(--ff-head); color: var(--blue); text-decoration: none; background: none; border: 0; padding: 0; }
.btn-link:hover .i-go { transform: translateX(4px); } .btn-link .i { transition: transform .3s var(--ease); }
.on-dark .btn-link { color: var(--orange-2); }

/* ---------- pastilles & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 500; line-height: 1.2; }
.chip .i { color: var(--blue); }
.on-dark .chip { background: rgba(255, 255, 255, .07); border-color: var(--line-inv); color: #e6e9f2; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font: 700 .7rem/1 var(--ff-head); letter-spacing: .07em; text-transform: uppercase; padding: .38rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.badge-orange { background: var(--orange-soft); color: #b93a08; } .badge-mint { background: var(--mint-soft); color: #08694d; } .badge-dark { background: var(--ink); color: #fff; }
.dot { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: var(--mint); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); opacity: .6; animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; } }

/* ---------- liste à coches ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7d5c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 62% no-repeat; }
.on-dark .ticks li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a6f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.ticks-x li::before { background-color: #f9dad4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8321f' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }

/* ---------- cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.3rem, 2.4vw, 2rem); box-shadow: var(--sh-1); position: relative; }
.card-flat { box-shadow: none; }
.card-dark { background: var(--ink-2); border-color: var(--line-inv); color: #eef0f6; }
.card-lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.icon-tile { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 1.1rem; flex: none; }
.icon-tile .i { width: 1.4rem; height: 1.4rem; }
.icon-tile.o { background: var(--orange-soft); color: #c2410c; } .icon-tile.m { background: var(--mint-soft); color: #0a7d5c; } .icon-tile.d { background: var(--ink); color: #fff; }
.on-dark .icon-tile { background: rgba(255, 255, 255, .08); color: var(--orange-2); }

/* ---------- en-tête ---------- */
.hdr { position: fixed; inset: 12px 0 auto 0; z-index: 90; pointer-events: none; padding-inline: var(--gut); }
.hdr-in {
  pointer-events: auto; max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: .8rem; padding: .45rem .5rem .45rem 1.05rem; border-radius: 999px;
  background: rgba(246, 243, 236, .97);
  border: 1px solid rgba(13, 18, 32, .09); box-shadow: 0 12px 32px -20px rgba(13, 18, 32, .4); transition: box-shadow .3s, background .3s;
}
.hdr.scrolled .hdr-in { box-shadow: 0 16px 40px -18px rgba(13, 18, 32, .5); background: rgba(246, 243, 236, .985); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font: 800 1.42rem/1 var(--ff-head); letter-spacing: -.04em; text-transform: lowercase; }
.brand-name i { font-style: normal; color: var(--orange); }
.nav { display: flex; align-items: center; gap: .1rem; flex: 1; justify-content: center; }
.nav a { padding: .55rem .9rem; border-radius: 999px; font: 500 .94rem/1 var(--ff); color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: rgba(13, 18, 32, .06); }
.nav a[aria-current=page] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-extra { display: none; }
.hdr-cta { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.burger { display: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--ink); position: relative; flex: none; }
.burger span { position: absolute; left: 50%; width: 1.1rem; height: 2px; margin-left: -.55rem; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 1.05rem; } .burger span:nth-child(2) { top: 1.5rem; }
.burger[aria-expanded=true] span:nth-child(1) { top: 1.27rem; transform: rotate(45deg); } .burger[aria-expanded=true] span:nth-child(2) { top: 1.27rem; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .hdr-in { padding-right: .45rem; }
  .burger { display: block; }
  .hdr-cta .btn-ghost { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem; padding: 6.2rem var(--gut) 2rem; background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 700 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--ff-head); letter-spacing: -.03em; padding: .8rem .4rem; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current=page] { background: none; color: var(--blue); }
  .nav-extra { display: grid; gap: .8rem; margin-top: 1.4rem; }
  .nav .nav-extra a { font: 600 1rem var(--ff-head); border: 0; padding: .9rem 1.4rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .hdr-cta .btn-primary { padding-inline: .8rem; font-size: .82rem; } .brand-name { font-size: 1.28rem; } }

/* ---------- pied de page ---------- */
.ftr { background: var(--ink); color: #d5d9e5; position: relative; overflow: hidden; }
.ftr .wrap { position: relative; z-index: 1; }
.ftr-cta { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-inv); }
.ftr-cta h2 { color: #fff; margin: 0; max-width: 14em; }
.ftr-cta .row { justify-content: flex-end; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.4rem; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.ftr h4 { font: 700 .74rem var(--ff-head); letter-spacing: .15em; text-transform: uppercase; color: #8790a8; margin-bottom: 1.1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .55rem; }
.ftr a { text-decoration: none; color: #d5d9e5; } .ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .brand { color: #fff; } .ftr-about { max-width: 24rem; color: #a5adc2; font-size: .96rem; margin-top: 1.1rem; }
.ftr-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.ftr-social a { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ftr-social a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; text-decoration: none; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; padding: 1.4rem 0 2.2rem; border-top: 1px solid var(--line-inv); font-size: .86rem; color: #8790a8; }
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.ftr-bottom a { color: #a5adc2; }
.ftr-word { text-transform: lowercase; position: absolute; left: 50%; bottom: -.22em; transform: translateX(-50%); font: 800 clamp(6rem, 24vw, 21rem)/1 var(--ff-head); letter-spacing: -.06em; color: rgba(255, 255, 255, .035); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 900px) { .ftr-cta { grid-template-columns: 1fr; } .ftr-cta .row { justify-content: flex-start; } .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ---------- formulaires ---------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; align-content: start; }
.field > label, .lbl { font: 600 .9rem/1.3 var(--ff-head); color: var(--ink-2); }
.field .hint { font-size: .84rem; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 3.1rem; padding: .72rem 1rem; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 8.5rem; resize: vertical; }
.select { padding-right: 2.6rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1220' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.05rem; }
.input::placeholder, .textarea::placeholder { color: #9aa1b2; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 57, 245, .15); }
[aria-invalid=true] { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(200, 50, 31, .12) !important; }
.err { color: var(--danger); font-size: .86rem; margin: 0; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .94rem; line-height: 1.45; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 7px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; margin-top: .05rem; transition: background .15s, border-color .15s; }
.check .box::after { content: ""; width: .85rem; height: .85rem; background: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: scale(.5); transition: .15s; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); } .check input:checked + .box::after { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 2px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* contrôle segmenté */
.seg { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .55rem 1.05rem; border-radius: 999px; font: 600 .9rem/1 var(--ff-head); color: var(--ink-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* curseur */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 2rem; background: transparent; cursor: pointer; --p: 0%; }
.range::-webkit-slider-runnable-track { height: .55rem; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--p), var(--paper-3) var(--p)); }
.range::-moz-range-track { height: .55rem; border-radius: 99px; background: var(--paper-3); }
.range::-moz-range-progress { height: .55rem; border-radius: 99px; background: var(--blue); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.7rem; height: 1.7rem; margin-top: -.575rem; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 12px rgba(43, 57, 245, .35); transition: transform .15s; }
.range::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 12px rgba(43, 57, 245, .35); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: 0; } .range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--orange); outline-offset: 2px; }

/* compteur +/- */
.qty { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 2.6rem; height: 2.6rem; border: 0; background: transparent; font: 600 1.25rem/1 var(--ff-head); display: grid; place-items: center; }
.qty button:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue); } .qty button:disabled { opacity: .3; cursor: default; }
.qty output, .qty input { min-width: 2.6rem; text-align: center; font: 700 1.05rem var(--ff-head); border: 0; background: transparent; width: 3.4rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* interrupteur */
.switch { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .trk { width: 3rem; height: 1.7rem; border-radius: 99px; background: var(--paper-3); position: relative; transition: background .2s; flex: none; }
.switch .trk::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + .trk { background: var(--blue); } .switch input:checked + .trk::after { transform: translateX(1.3rem); }
.switch input:focus-visible + .trk { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- accordéon ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 0; font: 600 clamp(1.08rem, 1.7vw, 1.25rem)/1.3 var(--ff-head); letter-spacing: -.012em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: transform .35s var(--ease), background .2s, border-color .2s, color .2s; }
.acc summary:hover .pm { border-color: var(--ink); }
.acc[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.acc .acc-body { padding: 0 0 1.4rem; max-width: 46rem; color: #38415a; animation: accIn .4s var(--ease); }
.acc .acc-body p:last-child { margin-bottom: 0; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
.on-dark .acc { border-color: var(--line-inv); } .on-dark .acc .acc-body { color: #b9c0d3; } .on-dark .acc summary .pm { border-color: var(--line-inv); }

/* ---------- tableaux ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.tbl { width: 100%; font-size: .96rem; }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 700 .74rem var(--ff-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover td { background: rgba(43, 57, 245, .035); }
.tbl .yes { color: var(--mint); font-weight: 700; } .tbl .no { color: #b3b9c8; }

/* ---------- fenêtres, panneaux ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: clamp(.6rem, 3vw, 1.6rem); background: rgba(8, 11, 22, .78); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(100%, 1180px); max-height: 100%; overflow: auto; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh-3); transform: translateY(24px) scale(.98); transition: transform .4s var(--ease); position: relative; }
.modal.open .modal-box { transform: none; }
.modal-x { position: absolute; right: .9rem; top: .9rem; z-index: 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.modal-x:hover { background: var(--orange); color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ---------- notifications ---------- */
#toast-root { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 30rem); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: .95rem; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .35s var(--ease); pointer-events: auto; }
.toast.in { opacity: 1; transform: none; } .toast .i { color: #5eead4; flex: none; } .toast-err .i { color: #ff9a8a; }

/* ---------- onglets ---------- */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .6rem 1.15rem; border-radius: 999px; border: 0; background: transparent; font: 600 .92rem/1 var(--ff-head); color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { background: rgba(13, 18, 32, .06); } .tab[aria-selected=true], .tab.on { background: var(--ink); color: #fff; }

/* ---------- maquettes d'appareils ---------- */
.browser { background: #fff; border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; border: 1px solid rgba(13, 18, 32, .12); position: relative; }
.browser-bar { display: flex; align-items: center; gap: .7rem; height: 2.4rem; padding: 0 .9rem; background: #efebe1; border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: flex; gap: .35rem; } .browser-bar .dots i { width: .62rem; height: .62rem; border-radius: 50%; background: #d3ccb9; }
.browser-bar .dots i:nth-child(1) { background: #ff6b5e; } .browser-bar .dots i:nth-child(2) { background: #ffc244; } .browser-bar .dots i:nth-child(3) { background: #33c85a; }
.browser-url { flex: 1; max-width: 26rem; margin-inline: auto; height: 1.5rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; font-size: .72rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-url .i { width: .75rem; height: .75rem; color: var(--mint); }
.browser-screen { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.browser-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { position: relative; width: 100%; aspect-ratio: 9 / 19; border-radius: 2.1rem; background: #0b0e18; padding: .42rem; box-shadow: var(--sh-3), inset 0 0 0 2px #2a3145; }
.phone::before { content: ""; position: absolute; top: .78rem; left: 50%; transform: translateX(-50%); width: 28%; height: .95rem; border-radius: 99px; background: #0b0e18; z-index: 2; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 1.7rem; overflow: hidden; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- défilement horizontal infini ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- chiffres, barres, anneaux ---------- */
.stat b { display: block; font: 800 clamp(2.4rem, 5vw, 3.9rem)/1 var(--ff-head); letter-spacing: -.045em; }
.stat span { display: block; margin-top: .4rem; font-size: .95rem; color: var(--muted); }
.on-dark .stat span { color: #aab2c6; }
.bar { height: .5rem; background: var(--paper-3); border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--blue), #6a75ff); border-radius: 99px; transition: width .8s var(--ease); }

/* ---------- code ---------- */
code, kbd { font-family: var(--ff-mono); font-size: .88em; background: var(--paper-2); padding: .12em .42em; border-radius: 6px; }
pre { background: var(--ink); color: #e9ecf5; padding: 1.1rem 1.3rem; border-radius: var(--r-m); overflow: auto; font: .86rem/1.6 var(--ff-mono); margin: 0 0 1.2rem; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- bandeau « à compléter » (visible seulement en local) ---------- */
.todo { background: #fff2a8; padding: 0 .3em; border-radius: 4px; }

/* ---------- flottant : retour en haut / contact rapide ---------- */
/* boutons flottants : placés au-dessus du badge de l'hébergeur (coin inférieur droit) */
.fab { position: fixed; right: 1.1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: .7rem; justify-items: end; pointer-events: none; }
.fab button { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--sh-2); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.fab .show { opacity: 1; transform: none; pointer-events: auto; } .fab button:hover { background: var(--orange); color: var(--ink); }
.fab-wa { pointer-events: auto; display: inline-flex; align-items: center; gap: .6rem; height: 3.6rem; padding: 0 .95rem 0 .85rem; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(18, 140, 74, .75), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.fab-wa svg { width: 1.9rem; height: 1.9rem; flex: none; }
.fab-wa-lbl { font: 600 .9rem/1 var(--ff); white-space: nowrap; } .fab-wa-lbl b { font-weight: 800; }
.fab-wa:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(18, 140, 74, .85), 0 2px 6px rgba(0, 0, 0, .12); }
.fab-wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 700px) { .fab { right: .8rem; } .fab-wa { width: 3.6rem; padding: 0; justify-content: center; } .fab-wa-lbl { display: none; } }
.fab-row { display: flex; align-items: center; gap: .6rem; pointer-events: none; }
.fab .fab-ask { pointer-events: auto; opacity: 1; transform: none; width: auto; height: 3.6rem; padding: 0 1.15rem 0 1rem; gap: .55rem; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .9rem/1 var(--ff); white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 14px 30px -12px rgba(13, 18, 32, .6), 0 2px 6px rgba(0, 0, 0, .12); }
.fab .fab-ask .i { width: 1.35rem; height: 1.35rem; color: var(--orange-2, #ff8a5c); }
.fab .fab-ask:hover { background: var(--ink-2); color: #fff; transform: translateY(-2px); }
.fab .fab-ask:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.fab .fab-ask[aria-expanded=true] { background: var(--ink-2); }
@media (max-width: 700px) { .fab .fab-ask { width: 3.6rem; padding: 0; justify-content: center; } .fab .fab-ask .fab-lbl { display: none; } .fab .fab-ask .i { width: 1.55rem; height: 1.55rem; } }
html.has-tabbar .fab .fab-ask { width: 3.2rem; height: 3.2rem; }
html.ask-open .fab-row { opacity: 0; pointer-events: none; }
html.ask-open .install-bar { display: none; }
html.ask-open .fab .fab-ask, html.ask-open .fab-wa { pointer-events: none; }

/* ---------- bulle « Une question ? » ---------- */
.ask { position: fixed; z-index: 130; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom)); width: min(24rem, calc(100vw - 2.2rem)); height: min(36rem, calc(100vh - 7rem)); height: min(36rem, calc(100dvh - 7rem)); display: flex; flex-direction: column; background: #fffdf8; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(13, 18, 32, .45), 0 4px 14px rgba(13, 18, 32, .08); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .18s, transform .22s var(--ease); }
.ask.in { opacity: 1; transform: none; }
.ask[hidden] { display: none; }
.ask-h { display: flex; align-items: center; gap: .7rem; padding: .85rem .8rem .85rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.ask-av svg { display: block; width: 2.3rem; height: 2.3rem; }
.ask-h > div { flex: 1; min-width: 0; }
.ask-h strong { display: block; font: 700 1rem/1.2 var(--ff-head); }
.ask-h small { display: block; color: var(--muted); font-size: .76rem; margin-top: .1rem; }
.ask-ib { flex: none; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.ask-ib:hover { background: var(--paper-2); color: var(--ink); }
.ask-ib .i { width: 1.15rem; height: 1.15rem; }
.ask-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ask-m { max-width: 88%; padding: .65rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.ask-m p { margin: 0; } .ask-m p + p, .ask-m ul + p, .ask-m p + ul { margin-top: .5rem; }
.ask-m ul { margin: 0; padding-left: 1.1rem; } .ask-m li + li { margin-top: .2rem; }
.ask-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ask-bot a { color: var(--blue); font-weight: 600; }
.ask-me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.ask-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.ask-bot .ask-link { display: inline-block; padding: .38rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font: 700 .78rem/1.2 var(--ff); text-decoration: none; }
.ask-bot .ask-link:hover { background: var(--blue); color: #fff; }
.ask-typing { display: flex; gap: .3rem; padding: .85rem 1rem; }
.ask-typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); animation: ask-dot 1s infinite ease-in-out; }
.ask-typing span:nth-child(2) { animation-delay: .15s; } .ask-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ask-sugg { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.ask-sugg[hidden] { display: none; }
.ask-sugg button { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: .45rem .75rem; font: 600 .8rem/1.2 var(--ff); cursor: pointer; text-align: left; }
.ask-sugg button:hover { border-color: var(--ink); color: var(--ink); }
.ask-f { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: #fff; }
.ask-f textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line-2); border-radius: 14px; padding: .6rem .8rem; font: 1rem/1.4 var(--ff); color: var(--ink); background: #fff; max-height: 7.5rem; }
.ask-f textarea:focus { outline: none; border-color: var(--ink); }
.ask-f button { flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ask-f button:hover { background: var(--ink); }
.ask-f button .i { width: 1.2rem; height: 1.2rem; }
.ask-foot { margin: 0; padding: 0 1rem .75rem; background: #fff; font-size: .72rem; color: var(--muted); }
.ask-foot a { color: var(--ink-2); font-weight: 600; }
@media (max-width: 700px) {
  .ask { left: 0; right: 0; bottom: 0; width: auto; height: 86vh; height: 86dvh; border-radius: 22px 22px 0 0; border-width: 1px 0 0; transform: translateY(40px); }
  .ask-f { padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
  .ask-foot { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  html.ask-open body { overflow: hidden; }
}

/* ---------- newsletter (pied de page) ---------- */
.ftr-news { max-width: 24rem; margin-top: 1.8rem; }
.ftr-news[hidden] { display: none; }
.ftr-news h4 { margin-bottom: .5rem; }
.ftr-news p { margin: 0 0 .8rem; color: #a5adc2; font-size: .9rem; }
.ftr-news-f { display: flex; gap: .5rem; }
.ftr-news-f .input { flex: 1; min-width: 0; min-height: 2.9rem; background: rgba(255, 255, 255, .06); border-color: var(--line-inv); color: #fff; }
.ftr-news-f .input::placeholder { color: #8790a8; }
.ftr-news-f .input:focus { border-color: #fff; background: rgba(255, 255, 255, .1); }
.ftr-news-f .btn { flex: none; min-height: 2.9rem; }
.ftr-news-ok { display: flex; align-items: center; gap: .5rem; color: #d5f5e8 !important; font-weight: 600; }
.ftr-news-ok .i { color: #3ddc97; flex: none; }
@media (max-width: 380px) { .ftr-news-f { flex-direction: column; } }
.btn-wa { background: #25d366; color: #fff; margin-top: 1rem; } .btn-wa:hover { background: #1ebe5b; color: #fff; }
.is-wa::after { content: "WhatsApp"; display: inline-block; margin-left: .45em; padding: .18em .5em; border-radius: 99px; background: #25d366; color: #fff; font: 700 .68em/1 var(--ff); vertical-align: .15em; }

/* ==========================================================================
   Application installable (PWA) : bandeau d'installation, annonce, mode application, hors connexion
   ========================================================================== */
.install-bar { position: fixed; z-index: 400; top: calc(8px + env(safe-area-inset-top)); left: 50%; width: min(560px, calc(100% - 16px)); display: flex; align-items: center; gap: .75rem; padding: .7rem .65rem .75rem .75rem; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -18px rgba(13, 18, 32, .6), 0 0 0 1px rgba(255, 255, 255, .06); transform: translate(-50%, calc(-100% - 40px)); transition: transform .55s var(--ease); overflow: hidden; }
.install-bar.in { transform: translate(-50%, 0); }
.install-bar img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.ib-txt { flex: 1; min-width: 0; line-height: 1.3; }
.ib-txt strong { display: block; font: 700 .98rem/1.2 var(--ff-head); }
.ib-txt span { display: block; margin-top: .1rem; font-size: .8rem; color: #b9c0d3; }
.ib-share { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 6px; background: rgba(255, 255, 255, .14); vertical-align: -4px; }
.ib-share .i { width: .9rem; height: .9rem; color: #fff; }
.ib-go { flex: none; border: 0; border-radius: 999px; padding: .62rem 1rem; background: var(--orange); color: var(--ink); font: 700 .9rem/1 var(--ff-head); cursor: pointer; }
.ib-x { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ib-time { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--orange); transform-origin: left; }
.install-bar.in .ib-time { transform: scaleX(0); transition: transform 8.6s linear .4s; }
.install-bar.hold .ib-time { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .install-bar { transition: none; } }

.announce { position: fixed; z-index: 95; top: 0; left: 0; right: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: calc(.45rem + env(safe-area-inset-top)) 2.9rem .45rem 1rem; background: var(--ink); color: #fff; font: 600 .88rem/1.3 var(--ff); text-align: center; text-decoration: none; }
.announce .i { width: 1rem; height: 1rem; color: var(--orange-2); flex: none; }
.announce button { position: absolute; right: .45rem; bottom: .3rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
html.has-announce body { padding-top: 40px; }
html.has-announce .hdr { top: calc(50px + env(safe-area-inset-top)); }

/* mode application (site installé) */
html.is-app { -webkit-tap-highlight-color: transparent; }
html.is-app .hdr { top: calc(8px + env(safe-area-inset-top)); }
.tabbar { display: none; }
html.has-tabbar .tabbar { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem; padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -24px rgba(13, 18, 32, .45); view-transition-name: tabbar; }
.tabbar a { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .38rem .15rem .3rem; border-radius: 14px; color: var(--muted); text-decoration: none; font: 600 .7rem/1.1 var(--ff); text-align: center; }
.tabbar a .i { width: 1.45rem; height: 1.45rem; }
.tabbar a[aria-current=page] { color: var(--blue); }
.tabbar a[aria-current=page]::before { content: ''; position: absolute; z-index: -1; top: .15rem; left: 50%; width: 3.2rem; height: 2rem; margin-left: -1.6rem; border-radius: 999px; background: var(--blue-soft); }
.tb-badge { position: absolute; top: 0; left: calc(50% + .5rem); min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--orange); color: #fff; font: 700 .66rem/1.15rem var(--ff); box-shadow: 0 0 0 2px #fffdf8; }
html.has-tabbar body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
html.has-tabbar .ftr, html.has-tabbar .burger, html.has-tabbar .hdr-cta .btn-ghost, html.has-tabbar #to-top { display: none; }
html.has-tabbar .fab { bottom: calc(5.3rem + env(safe-area-inset-bottom)); }
html.has-tabbar .sim-bar { bottom: calc(4.3rem + env(safe-area-inset-bottom)); padding-bottom: .7rem; }
html.has-tabbar #toast-root { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
html.is-app .hdr { view-transition-name: hdr; }
html.is-app.has-announce .hdr { top: calc(50px + env(safe-area-inset-top)); }
html.has-tabbar .fab-wa { width: 3.2rem; height: 3.2rem; }
html.has-tabbar .fab-wa svg { width: 1.7rem; height: 1.7rem; }
.page-sim .fab { bottom: calc(6.4rem + env(safe-area-inset-bottom)); }
html.has-tabbar .page-sim .fab { bottom: calc(10.2rem + env(safe-area-inset-bottom)); }
.app-back { flex: none; width: 2.5rem; height: 2.5rem; margin: 0 -.35rem 0 -.6rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.app-back .i { width: 1.55rem; height: 1.55rem; }
@media (display-mode: standalone) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}

/* réseau */
.net-bar { position: fixed; z-index: 410; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 20px); display: flex; align-items: center; gap: .55rem; padding: .65rem .95rem; border-radius: 14px; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.3; box-shadow: var(--sh-2); }
html.has-tabbar .net-bar { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
.net-bar .i { width: 1.1rem; height: 1.1rem; flex: none; }
.net-bar.off .i { color: var(--orange-2); } .net-bar.ok .i { color: #4ade80; }
.net-bar a { color: #fff; font-weight: 700; white-space: nowrap; }

/* téléphone : le bouton « haut de page » ne recouvre plus le contenu */
@media (max-width: 760px) { #to-top { display: none; } }
