/* bot-visa — feuille de style unique. Style épuré, couleur du logo (bleu → violet), mode sombre automatique.
   Propriétés logiques (inline/block) → compatible RTL (arabe). Polices auto-hébergées (static/fonts, licence OFL). */

/* ---------- Polices ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.72993dddf88a.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-ext-600-normal.a575b6d9df98.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.25b0e113ca7c.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-latin-ext-700-normal.367d2aa05bf0.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-400-normal.24f329fc6c2b.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-700-normal.e2e732b086bd.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }

/* ---------- Jetons ----------
   Couleur par défaut : le bleu du logo. Le logo n'est jamais recoloré.
   --primary = texte / liens / accents ; --primary-solid = fond des boutons (texte --primary-ink). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --surface-glass: rgba(255, 255, 255, .86);
  --text: #0b1220;
  --heading: #0a1633;
  --muted: #566074;
  --border: #e4e8f0;
  --border-strong: #cdd4e1;

  --primary: #2c56f4; --primary-solid: #2c56f4; --primary-hover: #1d42d6; --primary-ink: #ffffff;
  --primary-soft: #eef2ff; --primary-ring: rgba(44, 86, 244, .28);
  --accent: #c2410c; --accent-hover: #9a3412; --accent-ink: #ffffff;
  --wordmark-gradient: linear-gradient(90deg, #006de3, #2c56f4 45%, #6a34e8);
  --band-bg: #0a1633; --footer-bg: #0a1633;

  --success: #047857; --success-soft: #e3f8ee;
  --warning: #92400e; --warning-soft: #fef3c7;
  --danger: #b91c1c; --danger-soft: #fee2e2;

  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 51, .05);
  --shadow: 0 1px 2px rgba(10, 22, 51, .04), 0 8px 24px -12px rgba(10, 22, 51, .14);
  --shadow-lg: 0 2px 4px rgba(10, 22, 51, .04), 0 24px 48px -16px rgba(10, 22, 51, .22);
  --header-h: 64px;
  --font: "Inter", "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
  --font-brand: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
}
[data-couleur=vert] { --primary: #047857; --primary-solid: #047857; --primary-hover: #065f46; --primary-soft: #e9f9f1; --primary-ring: rgba(4, 120, 87, .28); }
[data-couleur=rouge] { --primary: #b91c1c; --primary-solid: #b91c1c; --primary-hover: #991b1b; --primary-soft: #fef1f1; --primary-ring: rgba(185, 28, 28, .25); }
[data-couleur=violet] { --primary: #6d28d9; --primary-solid: #6d28d9; --primary-hover: #5b21b6; --primary-soft: #f4f1ff; --primary-ring: rgba(109, 40, 217, .25); }
[data-couleur=orange] { --primary: #c2410c; --primary-solid: #c2410c; --primary-hover: #9a3412; --primary-soft: #fff4ea; --primary-ring: rgba(194, 65, 12, .25);
  --accent: #2c56f4; --accent-hover: #1d42d6; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #090d18; --bg-subtle: #0c1120; --surface: #111729; --surface-2: #19213a; --surface-glass: rgba(9, 13, 24, .82);
    --text: #e6eaf4; --heading: #f4f6fc; --muted: #9ba6bd; --border: #212a42; --border-strong: #33405f;
    --primary: #8ea8ff; --primary-solid: #3d63f5; --primary-hover: #5478ff; --primary-soft: #16204a; --primary-ring: rgba(142, 168, 255, .35);
    --accent: #c2410c; --accent-hover: #d9541a;
    --wordmark-gradient: linear-gradient(90deg, #4aa8ff, #7c9bff 45%, #b08cff);
    --band-bg: #111a3a; --footer-bg: #070a13;
    --success: #4ade80; --success-soft: #0e2a1c; --warning: #fbbf24; --warning-soft: #32250a; --danger: #fca5a5; --danger-soft: #3a1414;
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255, 255, 255, .02); --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
  }
  [data-couleur=vert] { --primary: #4ade9f; --primary-solid: #047857; --primary-hover: #059669; --primary-soft: #0d2a20; --primary-ring: rgba(74, 222, 159, .3); }
  [data-couleur=rouge] { --primary: #fb8a8a; --primary-solid: #b91c1c; --primary-hover: #d02525; --primary-soft: #351212; --primary-ring: rgba(251, 138, 138, .3); }
  [data-couleur=violet] { --primary: #b49cff; --primary-solid: #6d28d9; --primary-hover: #7c3aed; --primary-soft: #251a4d; --primary-ring: rgba(180, 156, 255, .3); }
  [data-couleur=orange] { --primary: #fb9a50; --primary-solid: #c2410c; --primary-hover: #d9541a; --primary-soft: #361c0b; --primary-ring: rgba(251, 154, 80, .3);
    --accent: #3d63f5; --accent-hover: #5478ff; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; overflow-wrap: break-word; padding-block-start: var(--header-h); }
body > main { flex: 1 0 auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.35rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
hr { border: 0; border-block-start: 1px solid var(--border); margin: 0; }
::selection { background: var(--primary-soft); }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-block-start: 1rem; }
.row { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.row-center { justify-content: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.mt-0 { margin-block-start: 0 !important; } .mt-1 { margin-block-start: 8px !important; } .mt-2 { margin-block-start: 16px !important; }
.mt-3 { margin-block-start: 24px !important; } .mt-4 { margin-block-start: 40px !important; }
.mb-0 { margin-block-end: 0 !important; } .mb-3 { margin-block-end: 24px !important; }
.measure { max-width: 720px; }
section { padding-block: clamp(48px, 7vw, 88px); }
section.tight { padding-block-start: 0; }
section.compact { padding-block: 12px 20px; }
.section-alt { background: var(--bg-subtle); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--primary); font-size: .8rem; font-weight: 600; margin-block-end: 16px; box-shadow: var(--shadow-sm); }
.eyebrow .icon { width: 14px; height: 14px; }
.hl { color: var(--primary); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-block-start: -80px; inset-inline-start: 12px; z-index: 100; background: var(--primary-solid); color: var(--primary-ink);
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 600; font-size: .9rem; }
.skip-link:focus { inset-block-start: 0; }
[dir=rtl] .fleche { display: inline-block; transform: scaleX(-1); }

/* ---------- En-tête ---------- */
/* En-tête fixe en haut de l'écran (position: fixed, fiable partout, y compris Safari) ; body réserve sa hauteur */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 50; background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled, .site-header.menu-open { border-block-end-color: var(--border); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(10, 22, 51, .35); }
.header-bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; color: var(--heading); display: inline-flex; gap: 8px;
  align-items: center; letter-spacing: -.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 38px; width: auto; display: block; }
.wordmark { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.wm-bot, .wm-tld { color: var(--heading); }
.wm-tld { font-weight: 600; }
.wm-visa { background: var(--wordmark-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.header-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; margin-inline-start: 20px; }
.nav-main, .header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions { gap: 8px; }
.nav-link { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .94rem; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease; }
.nav-link:hover { color: var(--heading); background: var(--surface-2); text-decoration: none; }
.nav-link[aria-current=page] { color: var(--primary); background: var(--primary-soft); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--heading); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { border-color: var(--border-strong); }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars span { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease, top .2s ease; }
.menu-btn .bars span:nth-child(1) { top: 0; } .menu-btn .bars span:nth-child(2) { top: 5px; } .menu-btn .bars span:nth-child(3) { top: 10px; }
.menu-open .menu-btn .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Sélecteur de langue */
.lang-switch { position: relative; display: flex; align-items: center; margin: 0; }
.lang-switch .icon { position: absolute; inset-inline-start: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.lang-switch select { min-height: 38px; width: auto; box-shadow: none; border: 1px solid transparent; background-color: transparent; color: var(--muted); border-radius: 8px;
  padding: 6px 28px 6px 32px; font-size: .9rem; font-weight: 500; background-position: right 8px center; background-size: 14px; }
[dir=rtl] .lang-switch select { padding: 6px 32px 6px 28px; background-position: left 8px center; }
.lang-switch select:hover { color: var(--heading); background-color: var(--surface-2); border-color: transparent; }

/* Menu compte */
.account-menu { position: relative; }
.account-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px; padding-inline-end: 8px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer; font: inherit; }
.account-toggle:hover { border-color: var(--border-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--wordmark-gradient); color: #fff; flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; }
.account-toggle .chevron { transition: transform .15s ease; }
.account-menu.open .chevron { transform: rotate(180deg); }
.account-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 240px; z-index: 60; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.account-menu.open .account-panel, html:not(.js) .account-menu:focus-within .account-panel { display: block; }
.account-email { padding: 8px 12px 10px; font-size: .82rem; color: var(--muted); border-block-end: 1px solid var(--border); margin-block-end: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; direction: ltr; text-align: start; }
.account-panel form { margin: 0; }
.account-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 9px 12px; border-radius: 8px; color: var(--text);
  font: inherit; font-size: .93rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.account-item:hover { background: var(--surface-2); text-decoration: none; }
.account-item .icon { color: var(--muted); }
.account-item.danger, .account-item.danger .icon { color: var(--danger); }

/* Menu mobile */
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .header-menu { position: absolute; top: 100%; inset-inline: 0; z-index: 2; margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 8px 20px 24px; background: var(--surface); border-block-end: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .menu-open .header-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header.menu-open::after { content: ""; position: absolute; top: 100%; inset-inline: 0; height: 100vh; background: rgba(10, 16, 32, .45); z-index: 1; }
  .nav-main, .header-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 14px 4px; font-size: 1.02rem; border-radius: 0; border-block-end: 1px solid var(--border); color: var(--text); }
  .nav-link:hover, .nav-link[aria-current=page] { background: none; }
  .nav-link[aria-current=page] { color: var(--primary); font-weight: 600; }
  .header-actions .btn { width: 100%; min-height: 48px; margin-block-start: 16px; order: 5; }
  .lang-switch { order: 9; margin-block-start: 16px; }
  .lang-switch select { width: 100%; min-height: 48px; border-color: var(--border); background-color: var(--surface); color: var(--text); font-size: 1rem; padding-inline-start: 38px; }
  .lang-switch .icon { inset-inline-start: 14px; }
  .account-menu { order: 1; }
  .account-toggle { display: none; }
  .account-panel { display: flex; flex-direction: column; position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .account-email { order: 9; border: 0; padding: 12px 4px 0; margin: 0; max-width: none; }
  .account-item { padding: 14px 4px; font-size: 1.02rem; border-radius: 0; border-block-end: 1px solid var(--border); }
  .account-item:hover { background: none; }
  html.menu-locked, html.menu-locked body { overflow: hidden; }
  /* Sans JavaScript : menu déplié sous le logo */
  html:not(.js) .site-header { position: static; }
  html:not(.js) body { padding-block-start: 0; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .header-bar { flex-wrap: wrap; }
  html:not(.js) .header-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; max-height: none; flex-basis: 100%; padding-inline: 0; }
}
@media (min-width: 1024px) and (max-width: 1140px) {
  .header-menu { margin-inline-start: 8px; gap: 6px; }
  .nav-link { padding-inline: 9px; }
  .header-actions { gap: 4px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-solid); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(10, 22, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(10, 22, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--heading); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { filter: brightness(.97); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.card h3 { margin-block-end: .35em; }
.card > :last-child { margin-block-end: 0; }
.card-link { display: block; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link h3 { margin-block: 12px 4px; }
.card-link p { margin: 0; }
.card-link p + p { margin-block-start: 6px; }
.card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); position: relative; }
.card.featured > .badge-primary { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--primary-solid); color: var(--primary-ink); padding: 3px 12px; }
.card-cta { text-align: center; padding: clamp(28px, 5vw, 44px); background: var(--bg-subtle); box-shadow: none; }
.card-cta p { max-width: 520px; margin-inline: auto; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 80px) clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 420px at 15% -10%, var(--primary-soft), transparent 70%), radial-gradient(700px 380px at 95% 0%, var(--primary-soft), transparent 65%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.hero h1 { margin-block-end: 18px; }
.hero p.lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); color: var(--muted); max-width: 600px; margin-block-end: 28px; }
.search-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); text-align: start; }
/* z-index: 1 ci-dessus est nécessaire car .hero-note et .trust sont animés (opacity/transform via .rise),
   ce qui leur crée chacun leur propre contexte d'empilement ; sans cela ils repeignent PAR-DESSUS la liste
   .ac-list ouverte (z-index 40) qui déborde de .search-card, même si son z-index local est plus élevé. */
.search { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.search > .btn { grid-column: 1 / -1; min-height: 50px; }
.search label, .filters label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-block-end: 6px; }
@media (max-width: 560px) { .search { grid-template-columns: 1fr; } }
.search-info { margin: 10px 2px 0; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 18px; font-size: .92rem; color: var(--muted); }
.trust { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-block-start: 22px; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--success); }

.live { display: grid; gap: 14px; text-align: start; min-width: 0; }
.live .card { padding: 18px 20px; box-shadow: var(--shadow); }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.live-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
.live-title h2 { font-size: 1rem; margin: 0; letter-spacing: -.01em; }
.live-status { margin: 8px 0 0; font-size: .875rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.text-success { color: var(--success); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: pulse 1.8s ease-out infinite; }
.pulse.ok { background: var(--success); } .pulse.ok::after { border-color: var(--success); }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.feed { list-style: none; margin: 8px -8px 0; padding: 0; }
.feed li + li { border-block-start: 1px solid var(--border); }
.feed a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 8px; color: inherit; border-radius: 10px; }
.feed a:hover { background: var(--surface-2); text-decoration: none; }
.feed-flag { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; }
.feed-body { min-width: 0; }
.feed-title { display: block; font-weight: 600; font-size: .94rem; color: var(--heading); line-height: 1.35; }
.feed-sub { display: block; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { text-align: end; font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.feed-more { text-align: center; font-size: .875rem; margin: 10px 0 0; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-block-start: clamp(36px, 5vw, 56px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.stats > div { padding: 20px 24px; border-inline-start: 1px solid var(--border); margin-inline-start: -1px; border-block-start: 1px solid var(--border); margin-block-start: -1px; }
.stats strong { display: block; font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em; color: var(--heading); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats span { font-size: .875rem; color: var(--muted); }
.stats strong.sm { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.75; }

.steps { counter-reset: step; }
.steps .card { box-shadow: none; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; margin-block-end: 16px; }
.steps .card p { margin: 0; }

.browse { display: grid; gap: 40px; }
@media (min-width: 900px) { .browse { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.browse h2 { font-size: 1.3rem; margin-block-end: 16px; }

.band { background: var(--band-bg); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 24px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 0%, rgba(76, 116, 255, .45), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(106, 52, 232, .35), transparent 70%); }
.band > div:first-child { flex: 1 1 360px; }
.band h2 { color: #fff; margin-block-end: 8px; }
.band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 560px; }
.band .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- En-tête de page ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) 8px; }
.page-head h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -.03em; }
.page-head > p.muted { font-size: 1.05rem; max-width: 720px; }
.page-head + section { padding-block-start: 24px; }
.h1-sm { font-size: 1.55rem !important; letter-spacing: -.02em !important; }
.breadcrumb { padding-block-start: 18px; color: var(--muted); }
.breadcrumb + .page-head { padding-block-start: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.back-link { font-size: .9rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin-block-end: 12px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; margin-block-end: 6px; font-size: .9rem; color: var(--heading); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=url],
input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background-color: var(--surface);
  color: var(--text); font: inherit; font-size: 1rem; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a859b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
[dir=rtl] select { background-position: left 12px center; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary-solid); flex: none; margin: 0; }
input[readonly] { background-color: var(--surface-2); }
.field { margin-block-end: 18px; }
.field .help { color: var(--muted); font-size: .84rem; margin-block-start: 6px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0; color: var(--danger); font-size: .88rem; font-weight: 500; }
.choices > div:not(.help) { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.choices div label, .check { font-weight: 500; display: flex; gap: 10px; align-items: center; margin: 0; padding: 11px 14px; min-height: 46px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--text); }
.check { align-items: flex-start; } .check input { margin-block-start: 3px; }
.choices div label:hover, .plan-choice div label:hover { border-color: var(--muted); }
.choices div label:has(input:checked), .plan-choice div label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.choices-inline > div:not(.help) { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.choices-inline div label { justify-content: center; padding: 8px; }
.plan-choice > div:not(.help) { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.plan-choice div label { border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-weight: 600; background: var(--surface); margin: 0; color: var(--text); }
.plan-choice div label input { margin-block-start: 3px; }
.form-narrow { max-width: 480px; margin-inline: auto; }
.form-medium { max-width: 760px; margin-inline: auto; }
.auth { padding-block: clamp(32px, 6vw, 72px); }
.auth .card { padding: clamp(24px, 5vw, 36px); box-shadow: var(--shadow); }
.auth-links { margin-block-start: 20px; display: grid; gap: 6px; font-size: .9rem; }
.auth-links p { margin: 0; }

/* Autocomplete (static/js/autocomplete.js) */
.ac { position: relative; }
.ac-input { padding-inline-end: 72px !important; text-overflow: ellipsis; }
.ac-toggle, .ac-clear { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ac-toggle { inset-inline-end: 6px; }
.ac-clear { inset-inline-end: 36px; font-size: 1.2rem; line-height: 1; }
.ac-toggle:hover, .ac-clear:hover { background: var(--surface-2); color: var(--text); }
.ac-toggle svg { transition: transform .15s; }
.ac.open .ac-toggle svg { transform: rotate(180deg); }
.ac-list { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px); max-height: min(320px, 50vh); overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.ac-list li { padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-wrap: wrap; column-gap: 10px; align-items: center; }
.ac-list li > span:first-child { flex: 1; min-width: 0; }
.ac-list li[aria-selected=true] { background: var(--primary-soft); color: var(--primary); }
.ac-list li.ac-current > span:first-child::after { content: " ✓"; color: var(--primary); font-weight: 700; }
.ac-list li.ac-vide { color: var(--muted); cursor: default; }
.ac-list li.ac-groupe { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: default; padding-block: 8px 4px; font-weight: 600; }
.ac-list mark { background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ac-sub { flex-basis: 100%; color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* Barre de filtres + recherche dans une liste */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto; align-items: end; margin-block-start: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.filters-3 { grid-template-columns: 1fr 1fr 1fr auto; }
.filters .btn { min-height: 46px; }
@media (max-width: 860px) { .filters, .filters-3 { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filters, .filters-3 { grid-template-columns: 1fr; } }
input.search-input { max-width: 440px; margin-block-end: 20px; padding-inline-start: 42px !important; background-repeat: no-repeat; background-position: left 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a859b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
[dir=rtl] input.search-input { background-position: right 14px center; }

/* ---------- Badges, messages, tableaux ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--surface-2); color: var(--muted); line-height: 1.6; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.messages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: 10px; background: var(--primary-soft); color: var(--heading); border: 1px solid var(--border); font-size: .95rem; font-weight: 500; }
.messages li.success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.messages li.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.messages li.warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.notice { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px;
  border-radius: 10px; background: var(--warning-soft); color: var(--warning); margin-block-end: 16px; font-size: .95rem; }
.notice form { margin: 0; }
.notice-col { flex-direction: column; align-items: flex-start; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card .table-wrap { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: start; padding: 12px 16px; border-block-end: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child > * { border-block-end: 0; }
thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-subtle); font-weight: 600; white-space: nowrap; }
[dir=rtl] thead th { letter-spacing: 0; }
td.actions { text-align: end; white-space: nowrap; }
table.kv th { width: 40%; font-weight: 500; color: var(--muted); padding-inline-start: 0; }
table.kv td { font-weight: 500; padding-inline-end: 0; }
table.kv th, table.kv td { padding-block: 11px; vertical-align: top; }
table.compare th, table.compare td { text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: start; color: var(--muted); font-weight: 500; }
table.compare thead th { font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--heading); }
table.compare .ok { color: var(--success); font-weight: 800; }
/* Tableaux → cartes empilées sur mobile (td[data-label]) */
@media (max-width: 640px) {
  table.table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100%; }
  table.table-stack tr { padding: 14px 16px; border-block-end: 1px solid var(--border); }
  table.table-stack tr:last-child { border-block-end: 0; }
  table.table-stack td { border: 0; padding: 3px 0; }
  table.table-stack td[data-label] { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  table.table-stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .82rem; flex: none; }
  table.table-stack td.cell-main { font-weight: 600; color: var(--heading); padding-block-end: 6px; }
  table.table-stack td.actions { text-align: start; padding-block-start: 10px; }
  table.table-stack td.actions .btn { width: 100%; }
  table.kv th, table.kv td { display: block; width: 100%; padding-inline: 0; }
  table.kv th { border: 0; padding-block: 10px 0; font-size: .82rem; }
  table.kv td { padding-block: 2px 10px; }
}

.price { font-size: 2.3rem; font-weight: 800; color: var(--heading); letter-spacing: -.035em; line-height: 1.15; margin-block: 6px 10px; }
.price small { font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan { display: flex; flex-direction: column; }
.plan ul.features { flex: 1; }
ul.features { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; font-size: .95rem; align-content: start; }
ul.features li { display: flex; gap: 10px; align-items: flex-start; }
ul.features li::before { content: ""; width: 18px; height: 18px; flex: none; margin-block-start: 3px; background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); margin-inline-end: 8px; }
.dot.on { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

/* FAQ */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
details.faq { border-block-end: 1px solid var(--border); }
details.faq:last-child { border-block-end: 0; }
details.faq > summary { cursor: pointer; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary:hover { background: var(--bg-subtle); }
details.faq > summary::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--muted); transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
details.faq[open] > summary::after { transform: rotate(180deg); }
details.faq > p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }
details.plain > summary { cursor: pointer; margin-block-start: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; transition: border-color .15s, color .15s, background-color .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.chip .muted { font-weight: 400; }
.chip:hover .muted { color: inherit; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .66); padding-block: clamp(40px, 6vw, 64px) 28px; margin-block-start: clamp(48px, 7vw, 88px); font-size: .92rem; }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 12px 0 0; max-width: 340px; line-height: 1.55; }
.site-footer .brand { color: #fff; font-size: 1.1rem; }
.site-footer .brand-mark { height: 32px; }
.site-footer .wm-bot, .site-footer .wm-tld { color: #fff; }
.site-footer .wm-visa { background-image: linear-gradient(90deg, #4aa8ff, #7c9bff 45%, #b08cff); }
.footer-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin: 0 0 14px; font-weight: 600; }
[dir=rtl] .footer-col h2 { letter-spacing: 0; font-size: .85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { color: rgba(255, 255, 255, .86); display: inline-block; padding-block: 5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: rgba(255, 255, 255, .55); }

/* ---------- Contenus longs ---------- */
.prose { line-height: 1.75; font-size: 1.04rem; }
.prose h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); }
.prose h2 { margin-block-start: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-block-start: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: .35em; }
.prose p.lead { font-size: 1.15rem; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 3px solid var(--primary); background: var(--primary-soft); border-radius: 8px; }
.prose img { border-radius: var(--radius); }
.prose table { display: block; overflow-x: auto; }
main p a:not(.btn), main li a:not(.btn):not(.chip):not(.feed-a) { text-decoration: underline; text-underline-offset: 2px; }
main .card-link, main .back-link { text-decoration: none; }

/* Histogramme des heures d'apparition des créneaux */
.hist { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-block-end: 1px solid var(--border); direction: ltr; }
.hist-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; min-width: 0; }
.hist-bar { display: block; width: 100%; min-height: 2px; background: var(--primary-solid); opacity: .35; border-radius: 3px 3px 0 0; }
.hist-bar.top { opacity: 1; }
.hist-col:hover .hist-bar, .hist-col:focus .hist-bar { opacity: 1; }
.hist-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--heading); color: var(--bg); font-size: .78rem; padding: 4px 8px; border-radius: 6px; z-index: 2; pointer-events: none; }
.hist-col:nth-child(-n+5) .hist-tip { left: 0; transform: none; }
.hist-col:nth-last-child(-n+5) .hist-tip { left: auto; right: 0; transform: none; }
.hist-col:hover .hist-tip, .hist-col:focus .hist-tip { display: block; }
.hist-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-block-start: 6px; direction: ltr; }

.g_id_signin { display: flex; justify-content: center; margin-block: 8px; min-height: 44px; max-width: 100%; overflow: hidden; }
.separateur { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin-block: 18px; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.error-code { font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 0 0 8px;
  background: var(--wordmark-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 560px) {
  .card { padding: 18px; }
  .feed a { grid-template-columns: auto minmax(0, 1fr); }
  .feed-meta { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
  .feed-sub { white-space: normal; }
  .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-actions > * { flex: 1 1 calc(50% - 6px); margin: 0; }
  .page-actions .btn { width: 100%; }
  table.compare { font-size: .85rem; }
  table.compare th, table.compare td { padding: 10px 8px; }
  .band .row { width: 100%; } .band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.link-plain { color: inherit; }

/* =====================================================================
   Mouvement & finitions (SaaS moderne) — static/js/motion.js
   - `html.motion` est posé par le script en ligne de <head> seulement si le navigateur sait animer
     (IntersectionObserver) et si l'utilisateur n'a pas demandé « réduire les animations ».
   - Sans JS ou avec prefers-reduced-motion : tout est visible, rien ne bouge.
   ===================================================================== */

/* Fond du hero : halo + trame de points qui s'estompe, et deux halos qui dérivent lentement */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(10, 22, 51, .09) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 80%); }
.hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; will-change: transform; }
.hero-blob.a { width: 520px; height: 520px; inset-block-start: -220px; inset-inline-start: -160px; background: var(--primary-soft); }
.hero-blob.b { width: 460px; height: 460px; inset-block-start: -180px; inset-inline-end: -140px; background: #ede9fe; }
html.motion .hero-blob.a { animation: drift 18s ease-in-out infinite alternate; }
html.motion .hero-blob.b { animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

/* Entrée du hero : texte en cascade, panneau « surveillance en direct » depuis la droite */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
html.motion .hero-grid > div:first-child > * { animation: rise .65s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
html.motion .hero-grid > div:first-child > :nth-child(1) { --i: 0; } html.motion .hero-grid > div:first-child > :nth-child(2) { --i: 1; }
html.motion .hero-grid > div:first-child > :nth-child(3) { --i: 2; } html.motion .hero-grid > div:first-child > :nth-child(4) { --i: 3; }
html.motion .hero-grid > div:first-child > :nth-child(5) { --i: 4; } html.motion .hero-grid > div:first-child > :nth-child(6) { --i: 5; }
html.motion .live > .card { animation: slide-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .25s; }
html.motion .live > .card + .card { animation-delay: .4s; }
[dir=rtl] html.motion .live > .card { animation-name: rise; }
html.motion .feed li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.5s + var(--i, 0) * 70ms); }
html.motion .feed li:nth-child(2) { --i: 1; } html.motion .feed li:nth-child(3) { --i: 2; } html.motion .feed li:nth-child(4) { --i: 3; } html.motion .feed li:nth-child(5) { --i: 4; }

/* Mot mis en avant : surlignage qui se déploie (fonctionne aussi sur deux lignes) */
.hl { background: linear-gradient(var(--primary-soft), var(--primary-soft)) no-repeat 0 92% / 100% .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em; margin-inline: -.06em; }
html.motion .hl { background-size: 0% .3em; animation: sweep .8s cubic-bezier(.2, .7, .2, 1) .55s forwards; }
[dir=rtl] .hl { background-position: 100% 92%; }
@keyframes sweep { to { background-size: 100% .3em; } }

/* Apparition au défilement : cartes, titres de section, bandeaux (voir la liste dans motion.js) */
html.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0ms); animation: reveal-secours 0s linear 2.5s forwards; }  /* filet : visible après 2,5 s même si le script échoue */
html.motion [data-reveal].is-visible { opacity: 1; transform: none; animation: none; }
@keyframes reveal-secours { to { opacity: 1; transform: none; } }

/* Compteurs de la bande de chiffres (motion.js anime de 0 à la valeur) */
.stats strong[data-count] { min-width: 2ch; }

/* Boutons : légère élévation au survol, pression au clic, reflet sur les boutons pleins */
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease; }
.btn-primary, .btn-accent { background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--primary-ring), 0 1px 2px rgba(10, 22, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(194, 65, 12, .45), 0 1px 2px rgba(10, 22, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.btn:active, .btn:active:hover { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn .fleche { display: inline-block; transition: transform .2s ease; }
.btn:hover .fleche { transform: translateX(3px); }
[dir=rtl] .btn:hover .fleche { transform: translateX(-3px); }

/* Cartes : élévation douce, étapes et formules comprises */
.card { transition: border-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.steps .card:hover, .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.steps .card::before { transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, color .2s ease; }
.steps .card:hover::before { transform: scale(1.08) rotate(-4deg); background: var(--primary-solid); color: var(--primary-ink); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.featured { box-shadow: 0 0 0 1px var(--primary), 0 24px 48px -20px var(--primary-ring); }
.card.featured:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--primary), 0 30px 56px -20px var(--primary-ring); }
.plan .features li { transition: transform .15s ease; }
.plan:hover .features li { transform: translateX(2px); }
[dir=rtl] .plan:hover .features li { transform: translateX(-2px); }

/* Fil des derniers créneaux : glissement au survol, badge du dernier relevé qui respire */
.feed a { transition: background-color .15s ease, transform .2s cubic-bezier(.2, .7, .2, 1); }
.feed a:hover { transform: translateX(3px); }
[dir=rtl] .feed a:hover { transform: translateX(-3px); }
html.motion .feed li:first-child .badge-success { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, .35); } 50% { box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); } }

/* Navigation : soulignement qui se déploie, en-tête un peu plus dense au défilement */
@media (min-width: 1024px) {
  .nav-link { position: relative; }
  .nav-link::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: 4px; height: 2px; border-radius: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: 50% 50%; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
  .nav-link:hover::after, .nav-link[aria-current=page]::after { transform: scaleX(1); }
  .nav-link:hover { background: transparent; }
  .site-header .header-bar { transition: min-height .2s ease; }
  .site-header.is-scrolled .header-bar { min-height: 56px; }
}

/* Puces pays, FAQ, bandeau final */
.chip { transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease; }
.chip:hover { transform: translateY(-1px); }
details.faq > summary { transition: background-color .15s ease, color .15s ease; }
details.faq > summary:hover { color: var(--primary); }
details.faq > summary:hover::after { background: var(--primary); }
html.motion details.faq[open] > p { animation: rise .3s cubic-bezier(.2, .7, .2, 1) both; }
.band .btn-ghost:hover { transform: translateY(-1px); box-shadow: none; }
html.motion .band::before { animation: band-glow 9s ease-in-out infinite alternate; }
@keyframes band-glow { from { transform: translate(0, 0); } to { transform: translate(-40px, 20px); } }

/* Champs de formulaire : anneau de focus animé */
input:not([type=checkbox]):not([type=radio]), select, textarea { transition: border-color .15s ease, box-shadow .15s ease; }

/* Respect de la préférence système : aucune animation, tout visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.motion [data-reveal] { opacity: 1; transform: none; }
  html.motion .hl { background-size: 100% .3em; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::after { background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px); }
  :root:not([data-theme="light"]) .hero-blob { opacity: .22; }
  :root:not([data-theme="light"]) .hero-blob.b { background: #4c1d95; }
}

/* =====================================================================
   Pages : centres groupés, création d'alerte, connexion / inscription, tarifs
   ===================================================================== */
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-danger .errorlist { margin: 0; color: inherit; }
.empty-state { text-align: center; padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row label { margin-block-end: 6px; }

/* ---------- /appointments/ : groupes par prestataire ---------- */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-block-end: 28px; }
.list-toolbar input.search-input { margin: 0; flex: 1 1 280px; }
.provider-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease; }
.provider-tab:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.provider-tab .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.provider-mono { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: .8rem;
  color: #fff; background: var(--primary-solid); flex: none; }
.provider-mono[data-p=tlscontact] { background: #0e7490; }
.provider-mono[data-p=vfsglobal] { background: #1d4ed8; }
.provider-mono[data-p=bls] { background: #b45309; }
.provider-mono[data-p=capago] { background: #7c3aed; }
.provider-mono-lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1.15rem; }
.provider-group { padding: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.provider-group + .provider-group { margin-block-start: 44px; }
.provider-head { display: flex; align-items: center; gap: 14px; margin-block-end: 16px; padding-block-end: 14px; border-block-end: 1px solid var(--border); }
.provider-head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.02em; }
.provider-head p { margin: 2px 0 0; }
.provider-partner { margin-inline-start: auto; }
.centre-card { display: flex; flex-direction: column; }
.centre-card-foot { margin-block-start: auto !important; padding-block-start: 12px; display: flex; align-items: center; gap: 0; }
.centre-card-foot .fleche { margin-inline-start: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.centre-card:hover .centre-card-foot .fleche { color: var(--primary); transform: translateX(3px); }
[dir=rtl] .centre-card:hover .centre-card-foot .fleche { transform: translateX(-3px) scaleX(-1); }

/* ---------- /alerts/new/ : création d'alerte ---------- */
.centre-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .95rem; max-width: 100%; }
.centre-pill-flags { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 1.05rem; }
.centre-pill-flags span { font-size: .8rem; color: var(--muted); }
.checkout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.checkout-main { display: grid; gap: 20px; min-width: 0; }
.step { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(18px, 3vw, 26px); margin: 0; min-width: 0; box-shadow: var(--shadow-sm); }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--heading); padding: 0; margin-block-end: 4px; }
.step legend + * { clear: both; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: .9rem; font-weight: 800; flex: none; }
.step-help { color: var(--muted); font-size: .9rem; margin: 0 0 16px; clear: both; }
.options { display: grid; gap: 10px; }
.options-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.options-group { grid-column: 1 / -1; margin: 6px 0 -2px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.options-group:first-child { margin-block-start: 0; }
.option { position: relative; }
.option-label { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 44px 14px 14px; min-height: 56px; border: 1px solid var(--border-strong);
  border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 500; color: var(--text); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
[dir=rtl] .option-label { padding: 14px 14px 14px 44px; }
.option-label input { margin-block-start: 2px; }
.option-label:hover { border-color: var(--muted); }
.option-label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.option-label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--primary-ring); }
.option-body { display: grid; gap: 2px; min-width: 0; }
.option-title { font-weight: 600; color: var(--heading); line-height: 1.35; }
.option-sub { font-size: .8rem; font-weight: 500; }
/* bulle d'aide « ? » */
.tip-btn { position: absolute; top: 14px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); font-weight: 700; font-size: .8rem; cursor: help; display: grid; place-items: center; padding: 0; line-height: 1;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.tip-btn:hover, .tip-btn:focus-visible, .tip-btn.is-open { color: var(--primary-ink); background: var(--primary-solid); border-color: var(--primary-solid); }
.tip { position: absolute; z-index: 30; inset-inline-end: 0; bottom: calc(100% + 8px); width: min(300px, 86vw); padding: 12px 14px; border-radius: 12px;
  background: var(--heading); color: var(--bg); font-size: .85rem; font-weight: 400; line-height: 1.5; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.tip::after { content: ""; position: absolute; top: 100%; inset-inline-end: 18px; border: 6px solid transparent; border-top-color: var(--heading); }
.tip-btn:hover + .tip, .tip-btn:focus-visible + .tip, .tip-btn.is-open + .tip { opacity: 1; visibility: visible; transform: none; }
/* formules */
.plans-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); padding-block-start: 8px; }
.plan-pick { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 18px 16px 16px; border: 1px solid var(--border-strong);
  border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 400; color: var(--text);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1), background-color .15s ease; }
.plan-pick:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 16px 32px -18px var(--primary-ring); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); }
.plan-pick:has(input:focus-visible) { outline: 3px solid var(--primary-ring); outline-offset: 2px; }
.plan-pick-badge { position: absolute; top: -10px; inset-inline-start: 14px; padding: 2px 10px; border-radius: 999px; background: var(--primary-solid); color: var(--primary-ink);
  font-size: .72rem; font-weight: 700; }
.plan-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-pick-name { font-weight: 700; color: var(--heading); }
.plan-pick-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; transition: border-color .15s ease, border-width .15s ease; }
.plan-pick:has(input:checked) .plan-pick-radio { border-color: var(--primary-solid); border-width: 6px; }
.plan-pick-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--heading); line-height: 1.2; margin-block-start: 6px; }
.plan-pick-price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-pick-duree { font-size: .82rem; color: var(--muted); }
.plan-pick-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .86rem; }
.plan-pick-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-pick-list li::before { content: ""; width: 14px; height: 14px; flex: none; margin-block-start: 3px; background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-pick-list li.is-off { color: var(--muted); }
.plan-pick-list li.is-off::before { background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.sms-phone { max-width: 360px; }
html.motion .sms-phone:not([hidden]) { animation: rise .3s cubic-bezier(.2, .7, .2, 1) both; }
.advanced { margin-block-start: 4px; border-block-start: 1px solid var(--border); padding-block-start: 14px; }
.step .field.choices + .advanced { margin-block-start: 8px; }
.advanced > summary { cursor: pointer; font-weight: 600; color: var(--heading); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.advanced[open] > summary::before { content: "−"; }
.advanced[open] > summary { margin-block-end: 10px; }
/* récapitulatif */
.checkout-aside { min-width: 0; }
@media (min-width: 1024px) { .checkout-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary { box-shadow: var(--shadow); }
.summary h2 { font-size: 1.05rem; margin-block-end: 12px; }
.summary-list { margin: 0; display: grid; gap: 10px; }
.summary-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font-size: .9rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 16px; padding-block-start: 14px; border-block-start: 1px solid var(--border); }
.summary-total strong { font-size: 1.5rem; letter-spacing: -.02em; color: var(--heading); }
.summary-trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .82rem; color: var(--muted); }
.summary-trust li { display: flex; gap: 8px; align-items: flex-start; }
.summary-trust .icon { color: var(--success); width: 15px; height: 15px; margin-block-start: 2px; }
.btn.is-loading { opacity: .75; cursor: progress; }

/* ---------- Connexion / inscription ---------- */
.auth-shell { display: grid; gap: 28px; padding-block: clamp(24px, 5vw, 64px); align-items: stretch; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.auth-panel { display: grid; align-items: center; }
.auth-card { width: 100%; max-width: 440px; margin-inline: auto; }
.auth-card h1 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); letter-spacing: -.03em; margin-block-end: 8px; }
.auth-intro { color: var(--muted); margin-block-end: 24px; }
.auth-intro:empty { display: none; }
.auth-form .field { margin-block-end: 16px; }
.auth-form .btn-lg { margin-block-start: 6px; }
.auth-legal { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.auth-bas { margin-block-start: 24px; padding-block-start: 20px; border-block-start: 1px solid var(--border); font-size: .92rem; text-align: center; }
.auth-bas p { margin: 0; }
.auth-bas:empty { display: none; }
.auth-aside { display: none; }
@media (min-width: 960px) { .auth-aside { display: block; } }
.auth-aside-inner { height: 100%; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); color: #fff; background: var(--band-bg); position: relative;
  overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; }
.auth-aside-inner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 300px at 100% 0%, rgba(76, 116, 255, .5), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(106, 52, 232, .4), transparent 70%); }
html.motion .auth-aside-inner::before { animation: band-glow 9s ease-in-out infinite alternate; }
.auth-aside h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.03em; margin-block-end: 20px; }
.eyebrow-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; align-self: flex-start; }
.auth-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); flex: none; }
.auth-points strong { display: block; color: #fff; }
.auth-points span { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.demo-alert { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: #0b1220; max-width: 360px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5); font-size: .88rem; }
html.motion .demo-alert { animation: notif-in .7s cubic-bezier(.2, .7, .2, 1) .6s both, float 6s ease-in-out 1.4s infinite; }
@keyframes notif-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.demo-alert-head { display: flex; justify-content: space-between; font-size: .75rem; color: #566074; }
.demo-alert-app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.demo-alert-app .icon { width: 14px; height: 14px; color: #2c56f4; }
.demo-alert strong { color: #0a1633; }
.demo-alert-slots { display: flex; gap: 6px; margin-block-start: 4px; }
.demo-alert-slots span { padding: 2px 8px; border-radius: 6px; background: #e3f8ee; color: #047857; font-weight: 600; font-size: .78rem; }
.auth-aside-note { margin: 14px 0 0; font-size: .75rem; color: rgba(255, 255, 255, .55); }
/* mot de passe */
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 48px !important; }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pw-toggle:hover { background: var(--surface-2); color: var(--heading); }
.pw-toggle .eye-off, .pw-wrap.is-visible .pw-toggle .eye { display: none; }
.pw-wrap.is-visible .pw-toggle .eye-off { display: block; }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-block-start: 8px; font-size: .8rem; font-weight: 600; }
.pw-meter-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pw-meter-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s ease, background-color .25s ease; }
.pw-meter[data-score="1"] .pw-meter-bar > span { width: 25%; background: var(--danger); } .pw-meter[data-score="1"] .pw-meter-label { color: var(--danger); }
.pw-meter[data-score="2"] .pw-meter-bar > span { width: 50%; background: #d97706; } .pw-meter[data-score="2"] .pw-meter-label { color: #b45309; }
.pw-meter[data-score="3"] .pw-meter-bar > span { width: 75%; background: #16a34a; } .pw-meter[data-score="3"] .pw-meter-label { color: var(--success); }
.pw-meter[data-score="4"] .pw-meter-bar > span { width: 100%; background: var(--success); } .pw-meter[data-score="4"] .pw-meter-label { color: var(--success); }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; transition: all .15s ease; }
.pw-rules li.is-ok { color: var(--success); }
.pw-rules li.is-ok::before { border-color: var(--success); background: var(--success)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.pw-match { margin-block-start: 6px; color: var(--danger); font-weight: 600; }
.pw-match.is-ok { color: var(--success); }

/* ---------- /pricing/ ---------- */
.pricing-hero { padding-block: clamp(40px, 6vw, 80px) 12px; position: relative; isolation: isolate; overflow: hidden; }
.pricing-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 360px at 50% -10%, var(--primary-soft), transparent 70%); }
.pricing-hero h1 { margin-inline: auto; max-width: 780px; }
.pricing-hero .lead { color: var(--muted); font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); max-width: 620px; margin: 0 auto; }
.trust-center { justify-content: center; }
.plans { align-items: stretch; padding-block-start: 12px; }
.price .price-cur { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.plan-desc { min-height: 3em; }
ul.features li.is-limit { color: var(--muted); }
table.compare { font-size: .92rem; }
table.compare thead th { vertical-align: bottom; padding-block: 16px 12px; font-size: 1rem; }
table.compare .compare-price { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-block-start: 2px; }
table.compare tbody th[scope=row] { text-align: start; color: var(--text); font-weight: 500; }
table.compare .compare-group th { text-align: start; background: var(--bg-subtle); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-block: 8px; font-weight: 700; }
table.compare .is-featured { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
table.compare thead .is-featured { color: var(--primary); box-shadow: inset 0 3px 0 var(--primary-solid); }
table.compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
table.compare .yes .icon { width: 14px; height: 14px; }
table.compare .no { color: var(--border-strong); font-weight: 700; }
table.compare .compare-cta td, table.compare .compare-cta th { border-block-end: 0; padding-block: 16px; }
@media (max-width: 640px) { table.compare { font-size: .84rem; } table.compare th, table.compare td { padding-inline: 8px; } }
ul.features li.is-limit::before { background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* halos animés : plus grands que leur boîte pour ne jamais laisser de bord visible pendant le déplacement */
.auth-aside-inner::before, .band::before { inset: -60px; }
