/* =====================================================================
   Générateur de documents — catalogue, éditeur, commande, bloc d'accueil
   ===================================================================== */
.hx__title--md { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Catalogue ---------- */
.hx--docs .hx__stage { padding-bottom: clamp(64px, 8vw, 96px); }
.dsearch { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; margin-top: 30px; padding: 0 18px; height: 58px; border-radius: 18px;
  background: #FFFDF8; color: #10201B; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 26px 60px -20px rgba(0,0,0,.55), 0 0 0 7px rgba(255,255,255,.05); }
.dsearch .i { color: #0B5D4B; flex: none; }
.dsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; color: inherit; outline: none; }
.dlangs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.dlangs span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-size: .86rem; color: #D6E4DD;
  animation: dglow 4s ease-in-out infinite; }
.dlangs span:nth-child(2) { animation-delay: 1.3s; } .dlangs span:nth-child(3) { animation-delay: 2.6s; }
@keyframes dglow { 0%, 100% { box-shadow: none; border-color: rgba(255,255,255,.16); } 50% { box-shadow: 0 0 18px rgba(143,221,191,.35); border-color: rgba(143,221,191,.6); color: #fff; } }
[lang="zgh"] { font-family: "Noto Sans Tifinagh", "Ebrima", var(--f-body); }

.dtabs { display: flex; gap: 8px; overflow-x: auto; padding-top: 22px; padding-bottom: 6px; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: all .2s var(--ease); }
.dtabs a small { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: .74rem; color: var(--ink-3); }
.dtabs a:hover { border-color: var(--brand); color: var(--brand); }
.dtabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.dtabs a[aria-current] small { background: rgba(255,255,255,.2); color: inherit; }
.dtabs a.is-empty:not([aria-current]) { opacity: .5; }

/* Filtres : une ligne de sélecteurs segmentés, sobres */
.dfl { padding-top: 18px; }
.dfl__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.dfl__item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dfl__label { flex: none; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.dseg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dseg::-webkit-scrollbar { display: none; }
.dseg button { flex: none; padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.dseg button:hover { color: var(--ink); }
.dseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,32,27,.08), 0 2px 8px -2px rgba(16,32,27,.12); }
.dseg button.is-empty:not([aria-pressed="true"]) { opacity: .4; }
.dseg button:focus-visible, .dfl__reset:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dfl__result { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; font-size: .88rem; color: var(--ink-3); }
.dfl__result strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dfl__reset { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.dfl__reset:hover { text-decoration: underline; }
.dfl__toggle { display: none; }

.dcat-wrap { padding-top: 34px; }
.dcat + .dcat { margin-top: 56px; }
.dcat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dcat__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); flex: none; }
.dcat__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; }
.dcat__head p { color: var(--ink-3); font-size: .92rem; margin-top: 2px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dgrid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; isolation: isolate; }
.dcard::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 200px at var(--mx, 50%) 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.dcard:hover { transform: translateY(-4px) perspective(800px) rotateX(2deg); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.dcard:hover::before { opacity: 1; }
.dcard__paper { position: relative; width: 42px; height: 52px; border-radius: 6px 14px 6px 6px; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); border: 1px solid var(--line-2);
  display: grid; align-content: center; gap: 5px; padding: 0 8px; transition: transform .45s var(--ease); }
.dcard__paper i { display: block; height: 3px; border-radius: 2px; background: var(--line-2); }
.dcard__paper i:nth-child(2) { width: 70%; } .dcard__paper i:nth-child(4) { width: 50%; background: var(--accent); opacity: .7; }
.dcard:hover .dcard__paper { transform: rotate(-6deg) translateY(-2px); }
.dcard__body { display: grid; gap: 6px; flex: 1; }
.dcard__body strong { font-size: 1.02rem; line-height: 1.3; }
.dcard__body small { font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; }
.dcard__foot b { color: var(--brand); font-size: 1.05rem; }
.dcard__foot span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; transition: color .2s, gap .2s; }
.dcard:hover .dcard__foot span { color: var(--brand); gap: 10px; }
.dempty { padding: 30px 0; text-align: center; color: var(--ink-3); }

.dtrust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dtrust__item { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dtrust__item span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.dtrust__item strong { display: block; margin-bottom: 6px; }
.dtrust__item p { font-size: .9rem; color: var(--ink-2); }
.ddisclaimer { margin-top: 26px; font-size: .84rem; color: var(--ink-3); max-width: 80ch; }

/* ---------- Éditeur ---------- */
.ded__hero { position: relative; overflow: hidden; isolation: isolate; margin: 8px clamp(8px, 1.5vw, 20px) 0; border-radius: clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 120% at 20% -20%, #12715B 0%, #0B4A3D 45%, #051C17 100%); color: #F2F5EF; padding: clamp(28px, 4vw, 48px) 0 clamp(70px, 8vw, 96px); }
.ded__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: #A9C2B8; }
.ded__crumbs a { color: #D6E4DD; } .ded__crumbs a:hover { color: #fff; text-decoration: underline; }
.ded__title { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; color: #F7F3EA; letter-spacing: -.02em; line-height: 1.1; }
[dir="rtl"] .ded__title { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.ded__desc { margin-top: 10px; max-width: 62ch; color: #B9CEC5; }
.ded__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ded__price { padding: 6px 14px; border-radius: 999px; background: #E58358; color: #fff; font-weight: 700; box-shadow: 0 0 0 4px rgba(229,131,88,.2), 0 0 24px rgba(229,131,88,.45); }
.ded__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: #D6E4DD; }

.ded__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 22px; margin-top: -56px; position: relative; align-items: start; }
.ded__form { min-width: 0; }
.dform { padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.dform__head { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.dform__pct { color: var(--brand); }
.dform__bar { height: 6px; margin-top: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.dform__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #43B694, var(--gold)); background-size: 200% 100%;
  transition: width .5s var(--ease); animation: dbar 3s linear infinite; }
@keyframes dbar { to { background-position: -200% 0; } }
.dform__dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.dform__dots button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-weight: 700; font-size: .8rem; cursor: pointer; transition: all .2s; }
.dform__dots button:hover { border-color: var(--brand); color: var(--brand); }
.dform__dots button[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dform__title { margin-top: 18px; font-size: 1.45rem; font-weight: 500; }
.dform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.dfield { display: grid; gap: 6px; align-content: start; }
.dfield--wide, .dfield:has(textarea) { grid-column: 1 / -1; }
.dfield label, .dfield > span { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.dfield label small { font-weight: 500; color: var(--ink-3); }
.dfield input, .dfield select, .dfield textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s; }
.dfield textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.dfield input:focus, .dfield select:focus, .dfield textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dfield.is-err input, .dfield.is-err select, .dfield.is-err textarea { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dfield select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237a8580' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
[dir=rtl] .dfield select { background-position: left 14px center; }
.dfield select:disabled { cursor: not-allowed; color: var(--ink-3); opacity: .8; }
.dfield__other { margin-top: 2px; }
.dassist { display: grid; gap: 8px; }
.dassist__open { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--brand); background: var(--brand-soft); color: var(--brand); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.dassist__open:hover { background: transparent; }
.dassist__box:not([hidden]) { display: flex; gap: 8px; align-items: center; }
.dassist__box input { flex: 1; min-width: 0; min-height: 40px; }
.dassist__box .btn { flex: none; }
.dassist__x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dassist__msg { margin: 0; font-size: .82rem; color: var(--brand); }
.dassist__msg.is-bad { color: var(--accent); }
.dfield__money { position: relative; display: block; }
.dfield__money em { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.dfield__money input { padding-inline-end: 52px; }
.dform__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.dform__nav .btn[disabled] { opacity: .4; pointer-events: none; }

.dorder { margin-top: 22px; padding: 20px; border-radius: 18px; background: linear-gradient(160deg, var(--brand-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); display: grid; gap: 12px; }
.dorder__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dorder__price { font-family: var(--f-display); font-size: 1.6rem; color: var(--brand); }
.dorder p { font-size: .9rem; color: var(--ink-2); }
.dorder__err { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .88rem; }
.dorder__btn { position: relative; overflow: hidden; }
.dorder__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: dshine 3.2s ease-in-out infinite; }
@keyframes dshine { 60%, 100% { transform: translateX(100%); } }
.dorder__secure { text-align: center; font-size: .8rem !important; color: var(--ink-3) !important; }

.ded__pv { position: sticky; top: 84px; min-width: 0; }
.dpv__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px 16px 0 0; background: var(--deep); color: #D6E4DD; }
.dpv__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.dpv__langs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.dpv__langs button { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: #B9CEC5; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.dpv__langs button[aria-selected="true"] { background: #F7F3EA; color: #0B2F28; box-shadow: 0 0 16px rgba(143,221,191,.45); }
.dpv__langs button:disabled { opacity: .35; cursor: not-allowed; }
.dpv__zgh { padding: 8px 12px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; }
.dpv__scroll { max-height: calc(100vh - 160px); overflow: auto; padding: clamp(12px, 2vw, 22px); border-radius: 0 0 16px 16px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); }

.paper { position: relative; overflow: hidden; isolation: isolate; max-width: 794px; margin-inline: auto; padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 60px); background: #FFFFFF; color: #161616;
  font-family: "Times New Roman", Times, serif; font-size: clamp(.9rem, 1.2vw, 1rem); line-height: 1.65; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 20px 50px -20px rgba(0,0,0,.35); }
.paper[lang="ar"] { font-family: "Amiri", "IBM Plex Sans Arabic", "Traditional Arabic", serif; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.9; }
.paper[lang="zgh"] { font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; }
.paper__wm { position: absolute; inset: -20%; z-index: 2; pointer-events: none; display: grid; align-content: space-around; justify-items: center; transform: rotate(-28deg); }
.paper__wm span { font: 800 clamp(1.4rem, 3vw, 2.2rem)/1 var(--f-body); letter-spacing: .12em; color: rgba(11, 93, 75, .07); white-space: nowrap; user-select: none; }
.paper h1, .paper .dh1 { font-family: inherit; font-weight: 700; font-size: 1.3em; text-align: center; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .4em; color: #111; }
.paper[lang="ar"] h1, .paper[lang="zgh"] h1, .paper[lang="ar"] .dh1, .paper[lang="zgh"] .dh1 { text-transform: none; letter-spacing: 0; }
.paper h2 { font-family: inherit; font-size: 1em; font-weight: 700; margin: 1.2em 0 .4em; text-decoration: underline; text-underline-offset: 3px; color: #111; }
.paper p { margin: 0 0 .7em; text-align: justify; }
.paper p.sub { text-align: center; color: #555; font-size: .9em; }
.paper p.right { text-align: end; }
.paper ul { margin: 0 0 .8em; padding-inline-start: 1.4em; }
.paper .v { font-weight: 700; background: linear-gradient(transparent 60%, rgba(67, 182, 148, .22) 0); border-radius: 2px; transition: background .3s; }
.paper .v.is-focus, .paper .ph.is-focus { background: rgba(229, 131, 88, .3); box-shadow: 0 0 0 3px rgba(229, 131, 88, .25); animation: dpulse 1.4s ease-in-out infinite; }
@keyframes dpulse { 50% { box-shadow: 0 0 0 6px rgba(229, 131, 88, .1); } }
.paper .ph { display: inline; padding: 0 .35em; margin: 0 .05em; border: 1px dashed #B7C9C1; border-radius: 4px; background: #F1F7F4; color: #3E7A67; font: inherit; font-size: .86em; line-height: 1.5; cursor: pointer; }
.paper .ph:hover { border-color: #0B5D4B; color: #0B5D4B; }
.paper .blank { color: #999; }
.paper .signs { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; margin-top: 2em; }
.paper .sign { flex: 1 1 180px; text-align: center; font-weight: 700; font-size: .92em; }
.paper .sign i { display: block; height: 64px; border-bottom: 1px dotted #aaa; margin: 0 10%; }
.paper--locked .paper__body > :nth-child(n+8) { filter: blur(4px); user-select: none; }

.ded__switch { display: none; }
.ded__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; padding-bottom: 60px; }
.dinfo { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dinfo h2 { display: flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--brand); }
.dinfo ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.dinfo p { font-size: .9rem; color: var(--ink-2); }
.ded__info .ddisclaimer, .ded__info .drel__t, .ded__info .dgrid { grid-column: 1 / -1; }
.drel__t { margin-top: 20px; font-size: 1.4rem; font-weight: 500; }

/* ---------- Commande ---------- */
.dord__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; margin-top: -56px; padding-bottom: 70px; align-items: start; position: relative; }
.dord__card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.dord__meta { display: grid; gap: 10px; margin: 0; }
.dord__meta div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.dord__meta dt { color: var(--ink-3); font-size: .88rem; } .dord__meta dd { margin: 0; font-weight: 700; }
.dst { padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.dst--pending { background: var(--accent-soft); color: var(--accent); } .dst--paid { background: var(--brand-soft); color: var(--brand); } .dst--cancelled { background: var(--surface-3); color: var(--ink-3); }
.dord__txt { color: var(--ink-2); font-size: .95rem; }
.dord__dl { display: grid; gap: 10px; }
.dord__note { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-2); padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.dord__pv { border-radius: 16px; max-height: none; }

/* ---------- Bloc d'accueil ---------- */
.dgen { position: relative; overflow: hidden; }
.dgen__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dgen__steps { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: dstep; }
.dgen__steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 14px 0; counter-increment: dstep; }
.dgen__steps li::before { content: counter(dstep); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-family: var(--f-display); font-size: 1.3rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.dgen__steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 22px; top: 62px; bottom: -6px; width: 2px; background: linear-gradient(var(--brand-soft), transparent); }
.dgen__steps strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.dgen__steps p { color: var(--ink-2); font-size: .93rem; }
.dgen__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dgen__cats a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.dgen__cats a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.dgen__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.dgen__demo { position: relative; perspective: 1200px; }
.dgen__demo::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 30px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 35%, transparent), transparent); filter: blur(30px); z-index: -1; animation: hxglow 10s ease-in-out infinite alternate; }
.dgen__win { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); }
[dir="rtl"] .dgen__win { transform: rotateY(8deg) rotateX(4deg); }
.dgen__demo:hover .dgen__win { transform: none; }
.dgen__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--deep); color: #D6E4DD; font-size: .8rem; }
.dgen__bar span:last-child { display: inline-flex; gap: 4px; }
.dgen__bar b { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; }
.dgen__bar b:first-child { background: #F7F3EA; color: #0B2F28; }
.dgen__split { display: grid; grid-template-columns: .9fr 1.1fr; }
.dgen__form { padding: 16px; display: grid; gap: 10px; border-inline-end: 1px solid var(--line); background: var(--bg); }
.dgen__form label { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.dgen__form span { display: block; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); position: relative; overflow: hidden; }
.dgen__form span::after { content: attr(data-v); position: absolute; inset: 0; padding: 7px 10px; font-size: .8rem; color: var(--ink); white-space: nowrap; overflow: hidden;
  width: 0; animation: dtype 5s steps(22) infinite; border-inline-end: 2px solid var(--brand); }
.dgen__form label:nth-child(2) span::after { animation-delay: 1.2s; } .dgen__form label:nth-child(3) span::after { animation-delay: 2.4s; }
@keyframes dtype { 0% { width: 0; } 40%, 85% { width: 100%; border-color: transparent; } 100% { width: 100%; border-color: transparent; } }
.dgen__paper { padding: 18px 18px 22px; background: #fff; color: #222; font-family: "Times New Roman", serif; font-size: .74rem; line-height: 1.55; }
.dgen__paper h4 { text-align: center; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; font-family: inherit; color: #111; }
.dgen__paper p { margin-bottom: 6px; }
.dgen__paper mark { background: linear-gradient(transparent 55%, rgba(67, 182, 148, .35) 0); color: inherit; font-weight: 700; animation: dmark 5s ease-in-out infinite; }
@keyframes dmark { 0%, 30% { background-size: 0 100%; } 50%, 100% { background-size: 100% 100%; } }
.dgen__paper mark { background-repeat: no-repeat; }
.dgen__paper i { display: block; height: 5px; margin: 6px 0; border-radius: 3px; background: #ECECEC; font-style: normal; }
.dgen__paper i:nth-of-type(2n) { width: 82%; }
.dgen__price { position: absolute; inset-inline-end: -10px; bottom: -16px; padding: 12px 18px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 20px 40px -14px rgba(196,83,45,.7); animation: dfloat 4s ease-in-out infinite; }
.dgen__price small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; }
@keyframes dfloat { 50% { transform: translateY(-8px); } }

@media (max-width: 1100px) { .dtrust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .ded__grid { grid-template-columns: 1fr; margin-top: -48px; }
  .ded__pv { position: static; display: none; }
  .ded__grid.is-preview .ded__pv { display: block; }
  .ded__grid.is-preview .ded__form { display: none; }
  .dpv__scroll { max-height: none; }
  .ded__switch { position: fixed; z-index: 40; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px;
    background: color-mix(in srgb, var(--deep) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
  .ded__switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 12px; background: transparent; color: #D6E4DD; font: inherit; font-weight: 600; cursor: pointer; }
  .ded__switch button[aria-pressed="true"] { background: #F7F3EA; color: #0B2F28; }
  .ded__switch b { padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; }
  .ded__info { grid-template-columns: 1fr; padding-bottom: 40px; }
  .ded__grid { padding-bottom: 84px; }   /* les derniers champs et boutons ne passent jamais sous la barre */
  .ded__switch { transition: opacity .2s, transform .2s; }
  .ded__switch.is-off { opacity: 0; transform: translateY(24px); pointer-events: none; }
  .dord__grid { grid-template-columns: 1fr; }
  .dgen__grid { grid-template-columns: 1fr; }
  .dgen__price { inset-inline-end: 6px; }
}
@media (max-width: 600px) {
  .dform__fields { grid-template-columns: 1fr; }
  .dassist__box:not([hidden]) { flex-wrap: wrap; }
  .dassist__box input { flex-basis: 100%; }
  .dtrust { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; }
  .dsearch { height: 52px; }
  .dgen__split { grid-template-columns: 1fr; }
  .dgen__form { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .dgen__win { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dlangs span, .dform__bar i, .dorder__btn::after, .dgen__form span::after, .dgen__paper mark, .dgen__price, .paper .is-focus { animation: none; }
  .dgen__form span::after { width: 100%; }
}
.dgen h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
[dir="rtl"] .dgen h2 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.dgen__lead { margin-top: 14px; color: var(--ink-2); max-width: 54ch; }
.dcard[hidden], .dcat[hidden] { display: none !important; }
.dord__alert { padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .9rem; }
.dord__alert--err { background: var(--accent-soft); color: var(--accent); }
.dord__secure { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--ink-3); }
.dord__licence { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; line-height: 1.45; color: var(--ink-3); margin: 0; }

/* ---------- Blog ---------- */
.blist { padding-top: 40px; }
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.bcard--lead { grid-column: 1 / -1; padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, var(--surface), var(--brand-soft)); }
.bcard--lead .bcard__title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.bcard__art { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 8%, transparent); }
.bcard__art .i { width: 26px; height: 26px; }
.bcard:hover .bcard__art { animation: dfloat 2.4s ease-in-out infinite; }
.bcard__meta { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.bcard__title { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
[dir="rtl"] .bcard__title { font-weight: 700; }
.bcard__desc { color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.bcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: .9rem; }
.bpost__meta { margin-top: 14px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #F3B28F; }
.bpost__dates { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(143,221,191,.12); color: #8FDDBF; font-size: .84rem; font-weight: 600; }
.bpost__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 34px; padding-bottom: 40px; align-items: start; }
.bpost__side { position: sticky; top: 90px; display: grid; gap: 14px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.btoc { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.btoc strong { display: block; margin-bottom: 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.btoc ol { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; font-size: .88rem; }
.btoc a { color: var(--ink-2); } .btoc a:hover { color: var(--brand); }
.bpost__body { max-width: 74ch; font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.bpost__body h2 { margin: 1.8em 0 .5em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 500; line-height: 1.25; scroll-margin-top: 90px; }
[dir="rtl"] .bpost__body h2 { font-weight: 700; }
.bpost__body h3 { margin: 1.3em 0 .4em; font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; }
.bpost__body p { margin: 0 0 1em; }
.bpost__body ul { margin: 0 0 1.2em; padding-inline-start: 1.3em; display: grid; gap: .45em; }
.bpost__body li::marker { color: var(--brand); }
.bnote { display: flex; gap: 12px; margin: 1.4em 0; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); border-inline-start: 4px solid var(--accent); }
.bnote .i { color: var(--accent); flex: none; margin-top: 4px; } .bnote p { margin: 0; }
.bcta, .bdoc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 1.6em 0; padding: 18px 20px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.bcta { background: var(--deep); color: #F2F5EF; box-shadow: 0 20px 40px -24px rgba(11,93,75,.8); }
.bcta strong { flex: 1 1 260px; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.bcta__k { display: inline-flex; align-items: center; gap: 6px; width: 100%; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8FDDBF; }
.bcta__go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #E58358; color: #fff; font-weight: 700; font-size: .86rem; box-shadow: 0 0 20px rgba(229,131,88,.45); }
.bdoc { background: var(--surface); border: 1px solid var(--line); }
.bdoc > span:nth-child(2) { flex: 1; display: grid; } .bdoc small { color: var(--ink-3); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.bdoc b { color: var(--brand); }
.bcta:hover, .bdoc:hover { transform: translateY(-3px); }
.bfaq { margin-top: 2.2em; }
.bfaq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.bfaq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.bfaq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.bfaq details[open] summary::after { transform: rotate(45deg); }
.bfaq details p { margin: 10px 0 0; color: var(--ink-2); }
.bsrc { margin-top: 2em; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.bsrc h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--f-body); font-size: 1rem; font-weight: 700; color: var(--brand); }
.bsrc ul { margin-bottom: 10px; } .bsrc p { margin: 0; color: var(--ink-3); font-size: .86rem; }
.bmore { padding-bottom: 70px; } .bmore h2 { margin-bottom: 16px; font-size: 1.5rem; font-weight: 500; }
@media (max-width: 900px) { .bpost__grid { grid-template-columns: minmax(0, 1fr); } .bpost__body, .bpost__side { min-width: 0; } .bpost__side { position: static; } .bgrid, .bgrid--3 { grid-template-columns: 1fr; } }
/* Abonnement Avocat */
.pro-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 18px; }
.pro-plan { position: relative; display: grid; gap: 12px; padding: 28px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.pro-plan--hot { border-color: var(--brand); box-shadow: 0 30px 70px -30px rgba(11,93,75,.5), 0 0 0 4px var(--brand-soft); transform: translateY(-6px); }
.pro-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0 18px rgba(229,131,88,.5); }
.pro-plan__k { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.pro-plan__price { font-family: var(--f-display); font-size: 3rem; font-weight: 500; color: var(--brand); line-height: 1; }
.pro-plan__price small { font-family: var(--f-body); font-size: .95rem; color: var(--ink-3); }
.pro-plan p { color: var(--ink-2); font-size: .92rem; }
.pro-plans--3 { grid-template-columns: repeat(3, minmax(0, 300px)); }
.pro-plan__alt { font-size: .86rem; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pro-plan__price--quote { font-size: 2.1rem; padding: 6px 0; }
@media (max-width: 980px) { .pro-plans--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); } }
.pro-plans__note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.pro-status { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--brand); }
.pro-status__badge { padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.pro-status__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 700px) { .pro-plans { grid-template-columns: 1fr; } .pro-plan--hot { transform: none; } }

/* ---------- Blog : couverture et graphiques du banc d'essai ---------- */
.bcover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(11, 47, 40, .55); background: var(--deep); }
.bcover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.bfig { margin: 30px 0; } .bfig img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(11, 47, 40, .55); background: var(--deep); }
.bfig figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.5; color: var(--muted, #5b6b66); text-align: center; }
.bch { margin: 26px 0; padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bch figcaption { font-weight: 700; font-size: 1rem; margin-bottom: 14px; color: var(--ink); }
.bch__grp { padding: 10px 0 12px; border-top: 1px dashed var(--line); }
.bch__grp:first-of-type { border-top: 0; padding-top: 0; }
.bch__grp > strong { display: block; font-size: .86rem; margin-bottom: 8px; color: var(--ink-2); }
.bch__grp > strong small, .bch__v small, .bch__table small { color: var(--ink-3); font-weight: 500; }
.bch__row { display: grid; grid-template-columns: minmax(110px, 30%) 1fr auto; align-items: center; gap: 10px; margin: 6px 0; }
.bch__lb { font-size: .84rem; color: var(--ink-2); line-height: 1.25; }
.bch__track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bch__bar { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink-3); transform-origin: left; animation: bchIn .9s cubic-bezier(.2, .7, .2, 1) both; }
[dir="rtl"] .bch__bar { transform-origin: right; }
.bch__bar--haqia { background: linear-gradient(90deg, var(--brand), var(--gold)); }
.bch__bar--gpt55maroc { background: #5B6FD6; }
.bch__bar--gpt55 { background: #9AA6E6; }
.bch__bar--gpt4omaroc { background: #8A8F98; }
.bch__bar--claudemaroc { background: #C77B4E; }
.bch__bar--claude { background: #E2B79B; }
.bch__bar--geminimaroc { background: #3F8FD9; }
.bch__bar--gemini { background: #9CC7EE; }
.bch__bar--gpt4o { background: #C2C6CC; }
.bch__v { font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 88px; text-align: end; }
.bch__v small { display: inline-block; margin-inline-start: 6px; font-size: .74rem; }
.bch__note { margin: 12px 0 0; font-size: .8rem; color: var(--ink-3); }
.bch__tablewrap { overflow-x: auto; }
.bch__table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.bch__table th, .bch__table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.bch__table thead th { font-size: .78rem; color: var(--ink-2); vertical-align: bottom; }
.bch__table thead small { display: block; font-weight: 500; }
.bch__table tr.is-haqia { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.bch__table tr.is-haqia th, .bch__table tr.is-haqia b { color: var(--brand); }
@keyframes bchIn { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bch__bar { animation: none; } }
@media (max-width: 560px) { .bch { padding: 16px 14px 12px; } .bch__row { grid-template-columns: 1fr auto; } .bch__lb { grid-column: 1 / -1; } .bch__v { min-width: 0; } }

.bpost__body p a, .bpost__body li a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bpost__body .bext { font-size: .75em; }
.bcard__img { display: block; margin: -24px -24px 6px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--deep); }
.bcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard--lead .bcard__img { margin: calc(-1 * clamp(24px, 4vw, 40px)) calc(-1 * clamp(24px, 4vw, 40px)) 8px; aspect-ratio: 21 / 8; }

/* ---------- Annonces des sites partenaires (une par page, en rotation) ---------- */
.hads { margin: 28px 0; }
.hads-wrap .hads { margin: 8px auto 40px; max-width: 980px; }
.bgrid .hads { grid-column: 1 / -1; margin: 4px 0; }
.hads__in { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ha) 10%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--ha) 28%, var(--line));
  color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.hads__in:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ha) 70%, transparent); border-color: color-mix(in srgb, var(--ha) 55%, var(--line)); }
.hads__logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
.hads__txt { display: grid; gap: 2px; min-width: 0; }
.hads__tag { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.hads__txt strong { font-size: 1rem; line-height: 1.3; }
.hads__txt span { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.hads__cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--ha); color: #fff; font-weight: 700; font-size: .84rem; white-space: nowrap; }
@media (max-width: 640px) { .hads__in { grid-template-columns: auto 1fr; } .hads__cta { grid-column: 1 / -1; justify-self: start; } .hads__logo { width: 46px; height: 46px; } }

/* ---------- Page Avocats : les 10 outils et le comparatif ---------- */
.pro-tools__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pro-tool { position: relative; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1, none); }
.pro-tool h3 { margin: 0 0 6px; font-size: 1.08rem; display: flex; gap: 8px; align-items: center; padding-inline-end: 34px; }
.pro-tool > p { margin: 0 0 10px; color: var(--ink-2); font-size: .92rem; }
.pro-tool ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pro-tool li { position: relative; padding-inline-start: 22px; font-size: .88rem; line-height: 1.45; color: var(--ink); }
.pro-tool li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--brand); font-weight: 800; }
.pro-tool__n { position: absolute; top: 16px; inset-inline-end: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); font-size: .78rem; font-weight: 800; }
.pro-tool--chat { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.pro-cmp__t { text-align: center; margin-bottom: 18px; }
.pro-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .92rem; }
.pro-cmp th, .pro-cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.pro-cmp td:first-child, .pro-cmp th:first-child { text-align: start; }
.pro-cmp tr:last-child td { border-bottom: 0; }
.pro-cmp .is-pro { background: color-mix(in srgb, var(--brand) 7%, transparent); font-weight: 700; }
.pro-cmp .ok { color: var(--brand); font-weight: 900; font-size: 1.05rem; }
.pro-cmp .no { color: var(--ink-3); }
@media (max-width: 560px) { .pro-cmp th, .pro-cmp td { padding: 10px 8px; font-size: .84rem; } .pro-tools__grid { grid-template-columns: 1fr; } }
/* Tableau de scores du banc d'essai : défilement horizontal dans son cadre sur mobile, première colonne figée */
.bch__tablewrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .bch__table { font-size: .8rem; }
  .bch__table th, .bch__table td { padding: 8px 7px; }
  .bch__table tbody th, .bch__table thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); white-space: normal; min-width: 120px; max-width: 140px; }
  .bch__table tr.is-haqia th { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
}

/* ---------- Pages de présentation des outils de l'Espace Avocat ---------- */
.ft__crumbs { font-size: .85rem; color: #BFD3CA; margin-bottom: 10px; } .ft__crumbs a { color: #DCEBE4; text-decoration: none; } .ft__crumbs a:hover { text-decoration: underline; }
.ft__ico { display: inline-block; margin-inline-end: .1em; }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, .3); color: #F2F5EF; background: rgba(255, 255, 255, .05); }
.btn--ghost-light:hover { border-color: #8FDDBF; background: rgba(143, 221, 191, .12); }
.ft__points .pro-tool h3 { padding-inline-end: 40px; }
.ft__why { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ft__why li { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.5; }
[dir="rtl"] .ft__why li { padding: 14px 46px 14px 16px; }
.ft__why li::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; }
.ft__others { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ft__other { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.ft__other span { font-size: 1.4rem; } .ft__other small { color: var(--brand); font-weight: 700; }
.ft__other:hover { border-color: var(--brand); transform: translateY(-2px); }
.pro-tool__more { display: inline-block; margin-top: 12px; margin-inline-end: 14px; color: var(--brand); font-weight: 700; font-size: .88rem; text-decoration: none; }
.pro-tool__more:hover { text-decoration: underline; }
@media (min-width: 761px) { .ft__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Modèles gratuits (17/11/2026) */
.ded__price.is-free { background: #2E9E78; box-shadow: 0 0 0 4px rgba(46,158,120,.2), 0 0 24px rgba(46,158,120,.4); }
.dorder__price.is-free, .dcard__foot b.is-free { color: #2E9E78; }

/* Téléphone : filtres repliables et cartes compactes (en fin de fichier pour primer sur les règles de base) */
@media (max-width: 760px) {
  /* Mobile : un bouton « Filtres » + le nombre de résultats ; le panneau se déplie au toucher */
  .dfl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 14px; }
  .dfl__toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
  .dfl__toggle[aria-expanded="true"] { border-color: var(--ink); }
  .dfl__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand, #fff); font-size: .72rem; }
  .dfl__badge[hidden] { display: none; }
  .dfl__result { order: 2; margin: 0; margin-inline-start: auto; gap: 10px; font-size: .85rem; }
  .dfl__row { order: 3; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .dfl.is-open .dfl__row { display: flex; }
  .dfl__item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dseg { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 0; background: none; overflow: visible; border-radius: 0; }
  .dseg button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .dseg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); box-shadow: none; }
  .dtabs { padding-top: 16px; }
  .dtabs a { padding: 8px 14px; font-size: .86rem; }
  /* Cartes plus compactes : icône à gauche, texte à droite */
  .dgrid { gap: 10px; }
  .dcard { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 16px; border-radius: 16px; }
  .dcard__paper { grid-row: 1 / span 2; width: 32px; height: 40px; padding: 7px 6px; gap: 4px; }
  .dcard__body { gap: 4px; }
  .dcard__body strong { font-size: .98rem; }
  .dcard__body small { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dcard__foot { grid-column: 2; padding-top: 10px; margin-top: 4px; }
  .dcard:hover { transform: none; }
  .dcat-wrap { padding-top: 24px; }
  .dcat__head { margin-bottom: 14px; }
  .dcat__ic { width: 42px; height: 42px; border-radius: 12px; }
  .hx--docs .hx__stage { padding-top: 40px; padding-bottom: 40px; }
}

/* Suite du modèle masquée avant paiement (le texte n'est pas envoyé au navigateur) */
.paper__lock { margin: 18px 0 6px; padding: 18px 16px; border: 1px dashed var(--line, #ccc); border-radius: 12px; text-align: center; font: 600 .86rem/1.5 system-ui, sans-serif; color: var(--ink-3, #666); background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(0,0,0,.04) 18px 19px); }
