/* ============================================================
   Outils Pratiques — feuille de style
   Direction : premium, sobre et éditoriale.
   ============================================================ */

:root {
    --bg:        #F3F2EF;
    --surface:   #FFFFFF;
    --ink:       #000000;
    --ink-soft:  #504E51;
    --muted:     #646460;
    --line:      #D9D6CE;
    --line-soft: #EAE8E2;
    --accent:    #F0561E;
    --accent-ink:#735A2B;
    --accent-soft:rgba(197, 160, 89, 0.16);
    --ok:        #1f9d61;

    --sans:  'Inter', system-ui, sans-serif;
    --display:'Space Grotesk', var(--sans);
    --mono:  'Space Mono', ui-monospace, monospace;

    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 9px;
    --sidebar-w: 284px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 38px rgba(0,0,0,.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    z-index: 300;
}
.skip-link:focus { left: 12px; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Barre mobile ---------- */
.topbar {
    display: none;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
}
.topbar__brand {
    font-family: var(--display);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.02em;
    font-size: 1.05rem;
}
.topbar__brand span { color: var(--accent); }
.topbar__spacer { flex: 1; }
.topbar__btn {
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-sm);
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
}
.topbar__btn span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ---------- Boîte à outils (sidebar) ---------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    z-index: 200;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    padding: 4px 8px 18px;
}
.brand__mark {
    width: 30px; height: 30px;
    display: grid; place-content: center;
    background: var(--ink);
    color: var(--accent);
    border-radius: 8px;
    font-size: .8rem;
    transform: rotate(0deg);
    overflow: hidden;
    padding: 0;
}
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__text {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -.03em;
}
.brand__text strong { color: var(--accent); font-weight: 700; }

.search { padding: 0 4px 14px; }
.search input {
    width: 100%;
    border: 1px solid var(--line);
    background: #F7F6F3;
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font: 500 .9rem var(--sans);
    color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); border-color: var(--ink); outline: none; }

.toollist {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0 12px;
    margin: 0 -4px;
}
.toollist::-webkit-scrollbar { width: 8px; }
.toollist::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.group__label {
    font: 700 .66rem var(--mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 16px 12px 7px;
}
.group:first-child .group__label { padding-top: 4px; }

.tool-row {
    display: flex;
    align-items: center;
    border-radius: var(--r-sm);
    animation: rise .3s ease both;
}
.tool-row:hover { background: #F4F5F7; }
.tool-row.is-active { background: var(--ink); }
.tool-link {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--ink-soft);
    font: 500 .92rem var(--sans);
    transition: color .15s;
}
.tool-row:hover .tool-link { color: var(--ink); }
.tool-link__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--line);
    flex: none;
    transition: background .15s, transform .15s;
}
.tool-row.is-active .tool-link { color: #fff; font-weight: 600; }
.tool-row.is-active .tool-link__dot { background: var(--accent); transform: scale(1.35); }
.tool-fav {
    flex: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 8px 12px 8px 4px;
    color: var(--line);
    transition: color .15s, transform .12s;
}
.tool-fav:hover { color: var(--accent); transform: scale(1.25); }
.tool-fav.is-fav { color: var(--accent); }
.tool-row.is-active .tool-fav { color: rgba(255, 255, 255, .4); }
.tool-row.is-active .tool-fav.is-fav { color: var(--accent); }


.toollist__empty {
    color: var(--muted);
    font-size: .88rem;
    padding: 14px 12px;
}

.sidebar__foot {
    font: 400 .72rem var(--sans);
    color: var(--muted);
    padding: 14px 12px 0;
    margin: 0;
    border-top: 1px solid var(--line-soft);
    line-height: 1.5;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(21,23,28,.42);
    z-index: 150;
    border: 0;
}

/* ---------- Contenu ---------- */
.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    padding: 40px clamp(20px, 5vw, 64px) 48px;
    display: flex;
    flex-direction: column;
}

.panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    flex: 1;
    outline: none;
}

.panel__head { margin-bottom: 28px; }
.panel__eyebrow {
    font: 700 .68rem var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.panel__eyebrow::before {
    content: "";
    width: 18px; height: 2px;
    background: var(--accent);
}
.panel h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0 0 8px;
}
.panel__desc {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0;
    max-width: 56ch;
}

/* ---------- Blocs / cartes d'outil ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}
.card + .card { margin-top: 18px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
    display: block;
    font: 600 .8rem var(--sans);
    color: var(--ink-soft);
    margin-bottom: 7px;
}
.label--mono {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 14px;
    font: 400 .98rem var(--sans);
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}
textarea.is-output, input.is-output {
    background: #F7F6F3;
    font-family: var(--mono);
    font-size: .92rem;
    color: var(--ink);
}
textarea.is-output:focus { box-shadow: none; border-color: var(--line); }

select {
    appearance: none;
    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 1l5 5 5-5' stroke='%23646460' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--r-md);
    padding: 11px 16px;
    font: 600 .9rem var(--sans);
    cursor: pointer;
    transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn--ink:hover { background: #000; }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 12px; font-size: .82rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* Groupe de choix (casse) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    border: 1.5px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 15px;
    font: 600 .85rem var(--sans);
    color: var(--ink-soft);
    cursor: pointer;
    transition: .14s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---------- Statistiques (compteur) ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.stat { background: var(--surface); padding: 16px 14px; }
.stat__num {
    font: 700 1.7rem var(--display);
    letter-spacing: -.02em;
    line-height: 1;
}
.stat__label {
    font: 400 .76rem var(--sans);
    color: var(--muted);
    margin-top: 5px;
}

/* ---------- Lignes clé/valeur (couleurs, base64) ---------- */
.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #F6F7F9;
    font-family: var(--mono);
    font-size: .9rem;
}
.kv + .kv { margin-top: 9px; }
.kv__key { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.kv__val { font-weight: 700; }
.kv__copy {
    border: none; background: none; cursor: pointer;
    color: var(--muted); font: 600 .76rem var(--sans);
    padding: 4px 8px; border-radius: 6px;
}
.kv__copy:hover { color: var(--accent); background: var(--accent-soft); }

/* ---------- Aperçu couleur / mot de passe ---------- */
.swatch {
    height: 96px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    margin-bottom: 16px;
}
.color-pick {
    display: flex; gap: 12px; align-items: center;
    margin-bottom: 16px;
}
.color-pick input[type="color"] {
    width: 56px; height: 56px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0; cursor: pointer; background: none;
}

.range-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.range-row output {
    font: 700 1rem var(--mono);
    min-width: 34px; text-align: right;
}
input[type="range"] { flex: 1; accent-color: var(--accent); }

.toggles { display: grid; gap: 10px; margin-bottom: 18px; }
.toggle {
    display: flex; align-items: center; gap: 11px;
    font-size: .92rem; cursor: pointer;
}
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.meter { height: 7px; border-radius: 5px; background: var(--line-soft); overflow: hidden; margin: 14px 0 6px; }
.meter__bar { height: 100%; width: 0; border-radius: 5px; transition: width .25s, background .25s; }
.meter__label { font: 600 .8rem var(--sans); color: var(--muted); }

.hint { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.error { color: var(--accent-ink); font-weight: 600; }

.divider-arrow { text-align: center; color: var(--line); font-size: 1.3rem; margin: 14px 0; }

/* ---------- Grille de lettres accentuées ---------- */
.accent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.accent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #F6F7F9;
}
.accent-row__base {
    font: 700 1rem var(--mono);
    color: var(--muted);
    width: 18px;
    text-align: center;
    flex: none;
}
.accent-row__keys { display: flex; flex-wrap: wrap; gap: 7px; }
.accent-key {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    font: 600 1.25rem var(--display);
    color: var(--ink);
    cursor: pointer;
    transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.accent-key:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}
.accent-key:active { transform: translateY(0); background: var(--accent); border-color: var(--accent); }

/* Grille de caractères recherchable */
.char-section { margin-bottom: 18px; }
.char-section:last-child { margin-bottom: 0; }
.char-section .label { margin-bottom: 9px; }
.char-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* Correcteur */
mark { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; padding: 0 3px; border-radius: 4px; }
.co-list { margin: 12px 0; }
.co-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.co-item:last-child { border-bottom: none; }
.co-item__msg { font: 600 .92rem var(--sans); margin: 0 0 7px; }
.co-item__ctx { font: 400 .85rem var(--mono); color: var(--muted); margin: 0 0 10px; word-break: break-word; }
.co-fix:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Lignes de conversion (unités, dates) */
.conv-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.conv-row .btn { flex: 0 0 auto; height: 48px; }
#un-swap { font-size: 1.1rem; }

/* Aperçu QR code */
.qr-preview { display: flex; justify-content: center; padding: 18px 0 4px; min-height: 40px; }



/* ---------- Page d'accueil (SEO + landing) ---------- */
.home {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    flex: 1;
}
.home__hero { margin-bottom: 38px; }
.home__hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    letter-spacing: -.035em;
    line-height: 1.06;
    margin: 10px 0 14px;
}
.home__lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.home__cat { margin-bottom: 34px; }
.home__cat h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}
.home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}
.home__card {
    display: block;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .14s, border-color .14s;
}
.home__card:hover { transform: translateY(-3px); border-color: var(--ink); }
.home__card h3 { font: 600 1.02rem var(--sans); margin: 0 0 6px; color: var(--ink); }
.home__card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.home__faq { margin-top: 6px; padding-top: 26px; border-top: 1px solid var(--line); }
.home__faq h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 0 0 14px; }
.home__faq h3 { font: 600 1rem var(--sans); margin: 18px 0 4px; }
.home__faq p { color: var(--ink-soft); margin: 0; font-size: .95rem; max-width: 64ch; }

.content__foot {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

/* Autopromotion discrète vers le site de création web. */
.promo {
    max-width: 760px;
    width: 100%;
    margin: 34px auto 0;
}
.promo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 15px 18px;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    text-decoration: none;
    font-size: .86rem;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.promo__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.promo__link img { width: 170px; height: auto; }
.promo__link strong { color: var(--ink); }

.legal-page {
    width: min(100% - 32px, 900px);
    margin: 34px auto 64px;
    padding: clamp(28px, 6vw, 64px) clamp(22px, 6vw, 72px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.legal-topbar {
    display: flex;
    align-items: center;
    width: min(100% - 32px, 900px);
    margin: 24px auto 0;
}
.legal-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font: 700 1.08rem var(--display);
    text-decoration: none;
}
.legal-topbar img { width: 34px; height: 34px; border-radius: 9px; }
.legal-topbar strong { color: var(--accent); }
.legal-page::before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin-bottom: 26px;
    border-radius: 4px;
    background: var(--accent);
}
.legal-page h1 {
    margin: 0 0 42px;
    font: 700 clamp(2rem, 5vw, 3.2rem) / 1.05 var(--display);
    letter-spacing: -.04em;
}
.legal-page__back {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: .9rem;
    text-decoration: none;
}
.legal-page__back:hover { color: var(--accent-ink); }
.legal-section {
    padding: 25px 0;
    border-top: 1px solid var(--line);
}
.legal-section h2 { margin: 0 0 12px; font: 650 1.2rem var(--display); letter-spacing: -.02em; }
.legal-section p { max-width: 68ch; margin: 7px 0; color: var(--ink-soft); }
.legal-section a, .legal-page__footer a { color: var(--accent-ink); }
.legal-page__footer { padding-top: 28px; color: var(--muted); font-size: .84rem; }

@media (max-width: 560px) {
    .legal-topbar { margin-top: 16px; }
    .legal-page { width: min(100% - 20px, 900px); margin-top: 18px; border-radius: 16px; }
    .legal-page h1 { font-size: 2rem; margin-bottom: 30px; }
}

@media (max-width: 560px) {
    .promo__link { flex-direction: column; gap: 9px; }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font: 600 .88rem var(--sans);
    box-shadow: 0 12px 28px rgba(21,23,28,.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 9px;
}
.toast::before { content: "✓"; color: var(--accent); font-weight: 700; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animation d'entrée ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.panel.is-entering { animation: rise .32s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .topbar { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform .26s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.18);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    .content { margin-left: 0; padding: 26px 18px 40px; }
    .panel, .content__foot { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- Finition premium et responsive ---------- */
.topbar {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
}
.topbar__brand span,
.brand__text strong { color: var(--accent); }
.topbar__btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.sidebar {
    background: #fff;
    border-right-color: var(--line);
    padding-top: 26px;
}
.brand { padding-bottom: 24px; }
.brand__mark {
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: var(--accent);
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
}
.search { padding-bottom: 18px; }
.search input { min-height: 44px; border-radius: 10px; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.group__label { color: var(--accent-ink); }
.tool-row { margin: 2px 0; }
.tool-row:hover { background: var(--accent-soft); }
.tool-row.is-active { background: var(--ink); box-shadow: 0 5px 14px rgba(0,0,0,.13); }
.tool-link { min-height: 42px; }
.tool-link__dot { background: #C9C6BE; }
.tool-row:hover .tool-link__dot { background: var(--accent); }
.tool-row.is-active .tool-link__dot { background: var(--accent); }
.tool-fav:hover, .tool-fav.is-fav { color: var(--accent); }

.content {
    background:
        radial-gradient(circle at 92% 0, rgba(197,160,89,.10), transparent 27rem),
        var(--bg);
    padding-top: clamp(32px, 5vw, 70px);
}
.panel, .home { max-width: 900px; }
.panel__eyebrow { color: var(--accent-ink); }
.panel__eyebrow::before { background: var(--accent); }
.panel h1, .home__hero h1 { color: var(--ink); }
.panel__desc, .home__lead { color: var(--ink-soft); }

.card, .home__card, .promo__link {
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.card { padding: clamp(19px, 3vw, 28px); }
.card:hover { border-color: #C8B98E; }
.home__hero { margin-bottom: 48px; }
.home__hero h1 { max-width: 18ch; }
.home__lead { max-width: 67ch; }
.home__cat h2, .home__faq h2 { position: relative; padding-left: 16px; }
.home__cat h2::before, .home__faq h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.home__card { position: relative; overflow: hidden; }
.home__card::after {
    content: "↗";
    position: absolute;
    right: 17px;
    top: 15px;
    color: var(--accent);
    font: 700 1rem var(--sans);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity .15s, transform .15s;
}
.home__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.home__card:hover::after { opacity: 1; transform: none; }
.home__card h3 { padding-right: 20px; }

textarea, input[type="text"], input[type="number"], input[type="search"],
input[type="date"], input[type="datetime-local"], select {
    min-height: 46px;
    border-color: #CFCBC2;
}
textarea { min-height: 142px; }
textarea:focus, input[type="text"]:focus, input[type="number"]:focus,
input[type="search"]:focus, input[type="date"]:focus,
input[type="datetime-local"]:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.is-output, input.is-output, .kv, .accent-row { background: #F7F6F3; }
.btn { min-height: 46px; }
.btn:hover { border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #000; }
.btn--accent:hover { background: #D3B777; border-color: #B18B43; color: #000; }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.chip.is-active { background: var(--ink); border-color: var(--ink); }
.chip:hover { border-color: var(--accent); }
input[type="range"], .toggle input { accent-color: var(--accent); }
.accent-key:active, .accent-key:hover { background: var(--ink); border-color: var(--ink); }
.kv__copy:hover { color: var(--accent-ink); background: var(--accent-soft); }
mark { background: var(--accent-soft); color: var(--accent-ink); }

/* Selecteurs natifs date/heure : surface plus lisible sans perdre le calendrier du navigateur. */
input[type="date"], input[type="datetime-local"] {
    min-height: 52px;
    padding: 12px 14px;
    color-scheme: light;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    background: var(--surface);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    width: 22px;
    height: 22px;
    padding: 3px;
    opacity: .72;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity .15s, background-color .15s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: var(--accent-soft);
}
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
    color: var(--ink);
}
.promo__link:hover { border-color: var(--accent); }
.content__foot { border-top-color: var(--line); }

@media (max-width: 860px) {
    body.nav-open { overflow: hidden; }
    .sidebar { width: min(var(--sidebar-w), calc(100vw - 34px)); }
    .content { padding-top: 30px; }
}
@media (max-width: 560px) {
    .content { padding: 25px 14px 34px; }
    .home__hero { margin-bottom: 36px; }
    .home__hero h1 { max-width: none; font-size: clamp(1.85rem, 10vw, 2.45rem); }
    .home__lead { font-size: .98rem; }
    .home__grid { grid-template-columns: 1fr; gap: 11px; }
    .home__card { padding: 17px; }
    .card { border-radius: 14px; }
    .conv-row > .field { flex-basis: 100% !important; }
    .conv-row > .btn { align-self: center; }
    .btn-row .btn { flex-basis: 100%; }
    .promo { margin-top: 28px; }
    .promo__link { padding: 17px 14px; }
}
