/* ============================================================
   gestoapp — styles du site vitrine
   S'appuie sur tokens.css (variables de la charte).
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img, svg { max-width: 100%; }
a { color: var(--brand-strong); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.34; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.8vw, 48px); font-weight: 600; margin: 0 0 20px; }
h2 { font-size: clamp(23px, 3.4vw, 32px); font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }

.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-strong); margin: 0 0 14px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  border-radius: var(--radius-m); padding: 14px 28px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s;
}
.btn:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
/* Violet foncé (demande utilisateur 2026-07-12) : violet-700, blanc à 8,94.
   Le survol éclaircit d'un cran (violet-600, 6,98). */
.btn-primary { background: var(--gesto-violet-700); color: #fff; }
.btn-primary:hover { background: var(--gesto-violet-600); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand-strong); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-lg { padding: 17px 34px; font-size: 17.5px; }
.btn-sm { padding: 11px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 30px;
  padding: 16px 24px; max-width: 1140px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 3px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: var(--wordmark-tracking); font-size: 20px;
  color: var(--ink); text-transform: lowercase;
}
.brand img { width: 38px; height: 38px; }
.brand .suffix { color: var(--brand-strong); }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: 10px; flex: 1; }
.site-nav > a, .drop-btn {
  color: var(--muted); text-decoration: none;
  font-size: 16px; font-weight: 500; font-family: var(--font-body);
}
.site-nav > a:hover, .site-nav > a.on, .drop-btn:hover, .drop-btn.on { color: var(--brand-strong); }
.site-nav .btn { margin-left: auto; color: #fff; }

/* Liste déroulante Secteurs */
.dropdown { position: relative; }
.drop-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.65;
}
.drop-btn .caret { font-size: 11px; transition: transform .15s; }
.dropdown.open .caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 10px; min-width: 300px; display: none;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--gesto-neutral-950) 14%, transparent);
  z-index: 60;
}
.dropdown.open .drop-menu { display: grid; gap: 2px; }
.drop-menu a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 14px; border-radius: var(--radius-m);
  color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500;
}
.drop-menu a:hover { background: var(--chip); }
.drop-menu a.on { background: var(--chip); color: var(--brand-strong); }
.drop-menu img { width: 30px; height: 30px; flex: none; }
.drop-menu .sec { display: block; font-size: 12.5px; color: var(--muted); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 10px 14px; cursor: pointer;
  font-size: 20px; color: var(--ink); line-height: 1;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; margin: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .drop-btn { padding: 12px 4px; font-size: 17px; }
  .drop-btn { width: 100%; text-align: left; justify-content: space-between; }
  .drop-menu {
    position: static; transform: none; box-shadow: none;
    border: none; background: var(--chip); min-width: 0;
  }
  .site-nav .btn { margin: 12px 0 0; }
}

/* ---------- Hero ---------- */
/* Fond teinté qui se résout sur --paper : pas d'arête avec la section suivante.
   color-mix plutôt qu'un violet en dur, pour suivre le thème sombre. */
.hero {
  padding: 96px 0 84px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 13%, var(--paper)) 0%, var(--paper) 88%);
}
.hero::before {
  content: ""; position: absolute; right: -160px; top: -140px;
  width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 62%);
}
.hero .container { position: relative; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
@media (max-width: 920px) {
  .hero { padding: 60px 0 52px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
}
.hero p.sub { font-size: 19.5px; color: var(--muted); max-width: 54ch; margin: 0 0 34px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .visual { display: flex; justify-content: center; }
.hero .visual svg, .hero .visual img { width: min(340px, 72vw); height: auto; }

/* Hero d'une page application : teinté par la couleur du secteur */
.hero-app {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sector, var(--brand)) 14%, var(--paper)) 0%, var(--paper) 88%);
}
.hero-app .container { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
@media (max-width: 760px) { .hero-app .container { grid-template-columns: 1fr; } }
.hero-app .logo-app { width: 140px; height: 140px; }
.hero-app h1 { font-size: clamp(25px, 3.8vw, 37px); }
/* L'appel à l'action du hero prend l'aplat assombri du secteur, libellé blanc.
   Jamais la teinte vive : le blanc y tomberait à 2,2 – 4,2 de contraste. */
.hero-app .btn-primary {
  background: var(--sector-fill, var(--brand-strong));
  color: var(--cta-on, #FFFFFF);
}
.hero-app .btn-primary:hover { background: color-mix(in srgb, var(--sector-fill, var(--brand-strong)) 92%, #000); }
.hero-app .btn-secondary:hover { border-color: var(--sector, var(--brand)); color: var(--sector, var(--brand-strong)); }

/* Hero de page simple (À propos, Contacts) */
.hero-page {
  padding: 76px 0 44px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 13%, var(--paper)) 0%, var(--paper) 88%);
}
.hero-page p.sub { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 46px; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 17.5px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  border-radius: var(--radius-pill); padding: 6px 17px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Cartes application ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.app-card {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card);
  padding: 30px; display: flex; flex-direction: column; gap: 15px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.app-card:hover {
  border-color: var(--sector, var(--brand)); transform: translateY(-4px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gesto-neutral-950) 10%, transparent);
}
.app-card .go { transition: transform .15s; display: inline-block; }
.app-card:hover .go { transform: translateX(6px); }
.app-card .top { display: flex; align-items: center; gap: 4px; }
.app-card .top img { width: 52px; height: 52px; }
.app-card .name {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: var(--wordmark-tracking);
}
.app-card .name .sfx { color: var(--sector, var(--brand-strong)); }
.app-card .badge { align-self: flex-start; background: var(--sector-soft, var(--brand-soft)); color: var(--sector, var(--brand-strong)); }
.app-card p { margin: 0; font-size: 15.5px; color: var(--muted); flex: 1; }
.app-card .go { font-size: 15.5px; font-weight: 600; color: var(--sector, var(--brand-strong)); }

/* ---------- Cartes génériques ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step-card { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card); padding: 30px; }
.section.alt .step-card { background: var(--paper); }
.step-card p { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Notre histoire + fondateur (à propos) ---------- */
.origin { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; gap: 40px; } }

.founder-aside {
  position: sticky; top: 110px;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--card); padding: 34px 32px; text-align: center;
}
.section.alt .founder-aside { background: var(--paper); }
@media (max-width: 860px) { .founder-aside { position: static; } }
.founder-aside .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--brand-soft); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 30px;
}
.founder-aside h3 { margin: 0 0 4px; font-size: 23px; }
.founder-aside .role { margin: 0 0 18px; font-size: 15.5px; font-weight: 600; color: var(--brand-strong); }
.founder-aside .bio { margin: 0 0 24px; font-size: 15.5px; color: var(--muted); line-height: 1.65; }

.origin-story .lead { color: var(--muted); font-size: 17.5px; margin: 0 0 28px; }
.founder-quote {
  margin: 0 0 28px; padding: 22px 26px;
  border-left: 3px solid var(--brand-strong);
  background: var(--brand-soft); border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.founder-quote p {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.5; color: var(--ink);
}
.founder-quote cite { font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--brand-strong); }

.why-item { display: flex; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .pin {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
}
.why-item .pin svg { width: 22px; height: 22px; }
.why-item h3 { margin: 2px 0 6px; }
.why-item p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Sécurité ---------- */
.trust-band {
  color: var(--ink);
}
.trust-band .eyebrow { color: var(--brand-strong); }
.trust-band h2 { color: var(--ink); margin-bottom: 10px; }
.trust-band > p { color: var(--muted); max-width: 60ch; margin: 0 0 40px; font-size: 17px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.trust-item .t-ico {
  width: 50px; height: 50px; border-radius: var(--radius-m);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.trust-item .t-ico svg { width: 24px; height: 24px; }
.trust-item h3 { color: var(--ink); font-size: 18.5px; margin: 0 0 6px; }
.trust-item p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* ---------- Fonctionnalités ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--card); padding: 28px;
}
.section.alt .feature { background: var(--paper); }
.feature .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--sector, var(--brand)); display: block; margin-bottom: 16px;
}
.feature h3 { font-size: 19.5px; }
.feature p { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Frise d'étapes (pages application) ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stepper li { position: relative; text-align: left; padding: 0; }
.stepper .bubble {
  width: 52px; height: 52px; border-radius: 50%;
  /* Aplat de secteur : encre, jamais de blanc sur couleur pleine (charte). */
  background: var(--sector-fill, var(--brand-strong)); color: var(--cta-on, #fff);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 20px; position: relative; z-index: 1;
}
.stepper h3 { margin: 0 0 6px; }
.stepper p { margin: 0; font-size: 15.5px; color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) {
  .stepper { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card);
  padding: 30px; display: flex; flex-direction: column; gap: 9px; position: relative;
}
.section.alt .price { background: var(--paper); }
.price.star { border-color: var(--sector, var(--brand)); box-shadow: 0 0 0 1.5px var(--sector, var(--brand)); }
.price .tag {
  position: absolute; top: -13px; left: 24px;
  background: var(--sector-fill, var(--brand-strong)); color: var(--cta-on, #fff);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 4px 14px;
}
.price h3 { font-size: 18px; margin: 0; }
.price .amount {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.price ul { margin: 8px 0 18px; padding: 0 0 0 20px; font-size: 15.5px; color: var(--muted); display: grid; gap: 7px; }
.price ul li::marker { color: var(--sector, var(--brand)); }
.price .btn { width: 100%; }
/* Aplat de secteur : encre sombre obligatoire (le blanc tombe à 2,16 sur Ecole).
   --sector-fill, pas --sector : Transport et Boutik y sont éclaircis pour passer le seuil. */
.price .btn-plan { background: var(--sector-fill, var(--brand-strong)); color: var(--cta-on, #fff); }
.price .btn-plan:hover { filter: brightness(1.08); }

/* ---------- Formulaires ---------- */
.form-panel {
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--card); padding: 36px; max-width: 660px;
  display: grid; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 13px 16px; width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field .hint { font-size: 14px; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
/* Section porteuse : fond propre, distinct du --paper des sections voisines. */
.cta-section { background: var(--card); padding: 88px 0 96px; }
main:has(> .cta-section:last-child) + .site-footer { margin-top: 0; }

.cta-band {
  /* --sector-fill n'existe que sur les pages application ; sinon, violet foncé
     (violet-800, demande utilisateur 2026-07-12). Texte blanc partout. */
  background: var(--sector-fill, var(--gesto-violet-800));
  color: var(--cta-on, #FFFFFF);
  border-radius: var(--radius-l); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band > div { flex: 1; min-width: 0; }
.cta-band h2 { font-size: clamp(19px, 2.3vw, 26px); white-space: nowrap; }
@media (max-width: 920px) { .cta-band h2 { white-space: normal; } }
.cta-band .btn { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .cta-band { padding: 40px 26px; flex-wrap: wrap; } }
.cta-band h2 { margin: 0 0 8px; color: inherit; }
/* Sur violet, le paragraphe peut être adouci (7,34). Sur un aplat de secteur, non :
   l'encre adoucie retombe à 4,0–4,1 sur hopital, transport et boutik. */
.cta-band p { margin: 0; max-width: 48ch; font-size: 16.5px; color: var(--cta-p, #E5E0F1); }
/* Le bouton plein se noierait dans la bannière : on l'inverse.
   Fond = l'encre du texte, libellé = la couleur de la bannière. */
.cta-band .btn-primary {
  background: var(--cta-on, #FFFFFF);
  color: var(--sector-fill, var(--gesto-violet-800));
}
.cta-band .btn-primary:hover {
  background: color-mix(in srgb, var(--cta-on, #FFFFFF) 90%, var(--sector-fill, var(--gesto-violet-800)));
}
.cta-band .btn:focus-visible { outline-color: var(--cta-on, #FFFFFF); }

/* ---------- Boutique : catalogue ---------- */
.cat-block { margin-bottom: 72px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block h2 { margin-bottom: 6px; }
.cat-intro { color: var(--muted); font-size: 16.5px; margin: 0 0 28px; max-width: 60ch; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.product {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .2s;
}
.product:hover { border-color: var(--brand); box-shadow: 0 10px 28px -18px var(--gesto-violet-900); }

/* Photos du produit : cadre clair constant, quel que soit le thème —
   les prises de vue sont sur fond blanc. */
.p-media { background: #F4F2F7; border-bottom: 1px solid var(--line); }
/* `height: auto` est indispensable : sans lui, l'attribut height de la balise
   <img> fige la hauteur et le ratio 3/2 ne s'applique pas. */
.p-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: #F4F2F7;
}
.p-thumbs {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto;
  border-top: 1px solid color-mix(in srgb, var(--gesto-neutral-300) 60%, transparent);
}
.p-thumb {
  flex: none; width: 54px; height: 40px; padding: 0; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  background: none; overflow: hidden; opacity: .65; transition: opacity .15s, border-color .15s;
}
.p-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-thumb:hover { opacity: 1; }
.p-thumb.on { opacity: 1; border-color: var(--brand); }
.p-thumb:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.p-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product h3 { font-size: 18px; margin: 0; }
.product p { margin: 0; font-size: 15.5px; color: var(--muted); flex: 1; }
.p-specs {
  list-style: none; margin: 2px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.p-specs li {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: var(--chip); border-radius: var(--radius-pill); padding: 3px 10px;
}
.product .p-amount {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0 4px;
}
.product .p-amount small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.p-actions { display: flex; gap: 10px; align-items: stretch; }
.p-actions .btn { flex: 1; padding: 12px 18px; }
.p-add.ok { border-color: var(--ok); color: var(--ok); }

/* Sélecteur de quantité */
.qty {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card);
}
.qty-btn {
  width: 34px; height: 100%; min-height: 42px; flex: none;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-size: 17px; line-height: 1; border-radius: var(--radius-m);
}
.qty-btn:hover { background: var(--chip); color: var(--brand-strong); }
.qty-btn:focus-visible { outline: 2.5px solid var(--brand); outline-offset: -2px; }
.qty-val {
  width: 34px; text-align: center; border: 0; background: none; color: var(--ink);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  -moz-appearance: textfield;
}
.qty-val::-webkit-outer-spin-button, .qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-val:focus-visible { outline: 2.5px solid var(--brand); outline-offset: -2px; border-radius: var(--radius-s); }
.qty-sm { border-radius: var(--radius-s); }
.qty-sm .qty-btn { min-height: 30px; width: 28px; font-size: 15px; }
.qty-sm .qty-val { width: 28px; font-size: 14px; }

/* ---------- Boutique : panier ---------- */
body.no-scroll { overflow: hidden; }

.cart-fab-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.cart-fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--gesto-violet-700); color: #fff;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  box-shadow: 0 12px 30px -10px var(--gesto-violet-900);
  transition: background .15s, transform .15s;
}
.cart-fab:hover { background: var(--gesto-violet-600); transform: translateY(-2px); }
.cart-fab:focus-visible { outline: 2.5px solid var(--gesto-violet-300); outline-offset: 3px; }
.cart-fab svg { width: 21px; height: 21px; flex: none; }
.cart-count {
  min-width: 24px; padding: 0 6px; border-radius: var(--radius-pill);
  background: #fff; color: var(--gesto-violet-800);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; line-height: 24px; text-align: center;
}
/* Panier vide : bouton discret, sans pastille. */
.cart-fab-wrap:not(.has-items) .cart-count { display: none; }
.cart-fab-wrap:not(.has-items) .cart-fab { background: var(--gesto-violet-800); opacity: .92; }

.cart-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, var(--gesto-neutral-950) 55%, transparent);
  backdrop-filter: blur(2px);
}
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px var(--gesto-neutral-950);
}
.js-anim .cart-panel { transform: translateX(100%); transition: transform .25s ease; }
.js-anim .cart-panel.open { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 20px; }
.cart-close {
  width: 38px; height: 38px; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: none; color: var(--ink); font-size: 15px;
}
.cart-close:hover { border-color: var(--brand); color: var(--brand-strong); }
.cart-close:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.cart-lines { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 14px; align-content: start; }
.cart-empty { color: var(--muted); font-size: 15.5px; margin: 8px 0; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; }
.cart-line img {
  width: 66px; height: 50px; flex: none; object-fit: cover;
  border-radius: var(--radius-s); background: #F4F2F7; border: 1px solid var(--line);
}
.cart-line-body { flex: 1; display: grid; gap: 5px; justify-items: start; }
.cart-line-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.cart-line-sub { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.cart-line-del {
  width: 28px; height: 28px; flex: none; cursor: pointer;
  border: 0; border-radius: var(--radius-s); background: none; color: var(--muted); font-size: 13px;
}
.cart-line-del:hover { background: var(--err-soft); color: var(--err); }
.cart-line-del:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 1px; }

.cart-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-devis { margin: 0; font-size: 14px; color: var(--muted); background: var(--chip); border-radius: var(--radius-m); padding: 10px 12px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { color: var(--muted); font-size: 15px; }
.cart-total strong {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.cart-total strong small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.cart-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cart-foot .btn { width: 100%; }
.cart-clear { padding: 8px; font-size: 15px; }

@media (max-width: 620px) {
  .cart-fab-wrap { right: 16px; bottom: 16px; }
  .cart-fab-txt { display: none; }
  .cart-fab { padding: 15px; }
  .p-actions { flex-wrap: wrap; }
  .p-actions .btn { flex: 1 1 140px; }
}

/* ---------- Connexion ---------- */
.login-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.login-card {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--card); padding: 24px 26px;
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.login-card:hover { border-color: var(--sector, var(--brand)); }
.login-card img { width: 52px; height: 52px; flex: none; }
.login-card .name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: var(--wordmark-tracking);
}
.login-card .name .sfx { color: var(--sector, var(--brand-strong)); }
.login-card .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }

/* ---------- Cartes contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card);
  padding: 30px; display: flex; flex-direction: column; gap: 10px;
}
.contact-card .c-ico {
  width: 50px; height: 50px; border-radius: var(--radius-m);
  background: var(--brand-soft); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .c-ico svg { width: 24px; height: 24px; }
.contact-card p { margin: 0; font-size: 15.5px; color: var(--muted); flex: 1; }
.contact-card .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 56px 0 44px; background: var(--card); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1.1fr .8fr 1fr; gap: 40px; }
@media (max-width: 1020px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.site-footer a:hover { color: var(--brand-strong); }
.site-footer .about { font-size: 15.5px; color: var(--muted); max-width: 40ch; }
.site-footer .contact-list .adr { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.site-footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.site-footer .socials a:hover { color: var(--brand-strong); border-color: var(--brand-strong); background: var(--brand-soft); }
.site-footer .socials svg { width: 19px; height: 19px; }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Animations & illustrations
   Toutes désactivées si prefers-reduced-motion (règle en tête).
   ============================================================ */

@keyframes orbit { to { transform: rotate(1turn); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes growbar { from { transform: scaleY(0); } }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ----- Scène orbitale du hero ----- */
.orbit-scene svg { width: min(430px, 82vw); height: auto; display: block; }
.orbit-scene .sats {
  transform-box: view-box; transform-origin: 50% 50%;
  animation: orbit 48s linear infinite;
}
.orbit-scene .sats-inner {
  transform-box: view-box; transform-origin: 50% 50%;
  animation: orbit 30s linear infinite reverse;
}
.orbit-scene .heart {
  transform-box: fill-box; transform-origin: center;
  animation: pulse-soft 5s ease-in-out infinite;
}

/* ----- Bandeau de chiffres ----- */
.stats-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px; padding: 40px 0; border-block: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 600; letter-spacing: -0.02em; color: var(--brand-strong);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .num small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; }
.stat p { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }

/* ----- Illustration tableau de bord (pages application) ----- */
.hero-app .container { grid-template-columns: 1.02fr .98fr; }
@media (max-width: 860px) { .hero-app .container { grid-template-columns: 1fr; } }
.app-visual { position: relative; padding: 26px 26px 0 0; }
.app-visual .mockup { width: 100%; height: auto; display: block; color: var(--sector, var(--brand)); filter: drop-shadow(0 18px 34px color-mix(in srgb, var(--gesto-neutral-950) 12%, transparent)); }
.app-visual .float-badge {
  position: absolute; top: 0; right: 0;
  width: 88px; height: 88px; border-radius: 24%;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--gesto-neutral-950) 14%, transparent);
  animation: floaty 5.5s ease-in-out infinite;
}
.app-visual .float-badge img { width: 58px; height: 58px; }
.mockup .bar {
  transform-box: fill-box; transform-origin: bottom;
  animation: growbar 1s cubic-bezier(.2,.7,.3,1) both;
}
.mockup .bar:nth-of-type(2) { animation-delay: .1s; }
.mockup .bar:nth-of-type(3) { animation-delay: .2s; }
.mockup .bar:nth-of-type(4) { animation-delay: .3s; }
.mockup .bar:nth-of-type(5) { animation-delay: .4s; }
.mockup .bar:nth-of-type(6) { animation-delay: .5s; }
.mockup .bar:nth-of-type(7) { animation-delay: .6s; }

/* ----- Apparition au défilement ----- */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ----- Menu déroulant animé ----- */
.dropdown.open .drop-menu { animation: drop-in .18s ease both; }
@media (max-width: 920px) { .dropdown.open .drop-menu { animation: none; } }

/* ----- Décor de fond des pages simples ----- */
.hero-page { position: relative; overflow: hidden; }
.hero-page::before {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px; pointer-events: none;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 62%);
}
.hero-page .container { position: relative; }

/* ---------- Application mobile du décideur ---------- */
.mobile-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .mobile-split { grid-template-columns: 1fr; gap: 40px; } }
.phone-scene { display: flex; justify-content: center; }
.phone-scene svg {
  width: min(280px, 62vw); height: auto; color: var(--brand-strong);
  filter: drop-shadow(0 22px 40px color-mix(in srgb, var(--gesto-neutral-950) 16%, transparent));
  animation: floaty 6s ease-in-out infinite;
}
.check-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; }
.check-list li::before {
  content: "✓"; flex: none; font-weight: 700; color: var(--brand-strong);
  background: var(--brand-soft); border-radius: 50%;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; position: relative; top: 3px;
}
.check-list li b { font-weight: 600; }

.mobile-band {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--paper); padding: 26px 30px;
  display: flex; gap: 20px; align-items: center;
}
.section:not(.alt) .mobile-band { background: var(--card); }
.mobile-band .m-ico {
  flex: none; width: 54px; height: 54px; border-radius: var(--radius-m);
  background: var(--sector-soft, var(--brand-soft)); color: var(--sector, var(--brand-strong));
  display: flex; align-items: center; justify-content: center;
}
.mobile-band .m-ico svg { width: 26px; height: 26px; }
.mobile-band h3 { margin: 0 0 4px; font-size: 17px; }
.mobile-band p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Captures d'écran des applications ---------- */
.shot-hero {
  width: 100%; display: block; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px color-mix(in srgb, var(--gesto-neutral-950) 14%, transparent);
}
.app-visual .shot-hero { max-width: 640px; }
.gallery { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery .g-web img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--gesto-neutral-950) 10%, transparent);
}
.gallery .g-mob { display: flex; flex-direction: column; align-items: center; }
.phone-shot {
  width: min(304px, 72vw); display: block; border-radius: 30px;
  border: 5px solid var(--gesto-neutral-900);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--gesto-neutral-950) 16%, transparent);
}
.gallery figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.mobile-split .phone-shot { animation: floaty 6s ease-in-out infinite; }

/* ---------- Sections vitrines (une capture par section) ---------- */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.showcase .sc-media { margin: 0; }
.showcase .sc-media img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--gesto-neutral-950) 11%, transparent);
}
.showcase.rev .sc-media { order: -1; }
.showcase .sc-phone { display: flex; justify-content: center; }
.showcase p.sc-txt { color: var(--muted); font-size: 17px; max-width: 54ch; margin: 0 0 26px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 30px; }
  .showcase .sc-media, .showcase.rev .sc-media { order: 2; }
}

/* Vitrine mobile des pages détail : même traitement que l'accueil.
   (.showcase .sc-media img force width:100% pour les écrans web —
    le téléphone doit garder sa largeur fixe, d'où le sélecteur plus précis.) */
.showcase .sc-phone .phone-shot {
  width: min(304px, 72vw);
  animation: floaty 6s ease-in-out infinite;
}
.shot-wide { margin: 0; }
.shot-wide img {
  width: 100%; display: block; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px color-mix(in srgb, var(--gesto-neutral-950) 12%, transparent);
}
