/* HiddenDocs 2026 : paiement, confirmation, mentions légales, espace affilié.
   Même univers que la landing : noir, blanc cassé, Jost. Mobile d'abord. */

:root {
    --space: #050505;
    --ink: #ece8df;
    --mute: #908b81;
    --soft: rgba(236, 232, 223, 0.82);
    --line: rgba(236, 232, 223, 0.16);
    --edge: rgba(236, 232, 223, 0.26);
    --field: #0d0d0c;
    --error: #e0907f;
    --f: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
    --gut: clamp(22px, 6.4vw, 72px);
}

html { background: var(--space); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.hd-site {
    margin: 0;
    background: var(--space);
    color: var(--ink);
    font: 400 17px/1.55 var(--f);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.hd-site *,
.hd-site *::before,
.hd-site *::after { box-sizing: border-box; }

.hd-site a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hd-site img { max-width: 100%; }
.hd-site ::selection { background: var(--ink); color: var(--space); }
.hd-site :focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.hd-site .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#ast-scroll-top,
.woocommerce-store-notice { display: none !important; }

/* En-tête */
.hd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(env(safe-area-inset-top) + 20px) var(--gut) 0;
}

.hd-top__logo img { display: block; width: auto; height: 26px; }
.hd-top__right { display: flex; align-items: center; gap: 24px; }
.hd-top__nav { display: flex; gap: 18px; font-size: 14px; letter-spacing: 0.04em; }
.hd-top__nav a { color: var(--mute); text-decoration: none; }
.hd-top__nav a:hover,
.hd-top__nav a[aria-current='page'] { color: var(--ink); }
.hd-top__lang { display: flex; gap: 18px; font-size: 14px; letter-spacing: 0.04em; }
.hd-top__lang a { color: var(--mute); text-decoration: none; }
.hd-top__lang a[aria-current='true'] { color: var(--ink); }
.hd-top__note { margin: 0; font-size: 14px; color: var(--mute); }

/* Corps */
.hd-main { padding: clamp(48px, 9vh, 96px) var(--gut) clamp(72px, 12vh, 128px); }
.hd-wrap { max-width: 1080px; margin: 0 auto; }
.hd-wrap--narrow { max-width: 640px; }
.hd-wrap--aff { max-width: 760px; }

.hd-title {
    margin: 0;
    font-weight: 300;
    font-size: clamp(36px, 9vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.hd-lead { max-width: 34em; margin: 16px 0 0; color: var(--mute); text-wrap: pretty; }
.hd-content { margin-top: clamp(36px, 6vh, 56px); }

/* Boutons */
.hd-btn,
.hd-site #place_order,
.hd-site .affiliate-login-form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    color: var(--space) !important;
    font: 500 15px/1.2 var(--f);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.hd-btn:hover,
.hd-site #place_order:hover,
.hd-site .affiliate-login-form .button:hover { background: #fff; }

/* Champs de formulaire (le formulaire de carte de WooPayments reprend ce style) */
.hd-site input.input-text,
.hd-site input[type='text'],
.hd-site input[type='email'],
.hd-site input[type='password'],
.hd-site select,
.hd-site textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--edge);
    border-radius: 4px;
    background: var(--field);
    color: var(--ink);
    font: 400 17px/1.3 var(--f);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
}

.hd-site textarea { min-height: 96px; padding: 14px 16px; }

.hd-site select {
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(-45deg, transparent 50%, var(--mute) 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.hd-site input:focus,
.hd-site select:focus,
.hd-site textarea:focus { outline: none; border-color: var(--ink); }

.hd-site ::placeholder { color: rgba(144, 139, 129, 0.8); }

/* Messages WooCommerce */
.hd-site .woocommerce-error,
.hd-site .woocommerce-message,
.hd-site .woocommerce-info,
.hd-site .login-error {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--edge);
    border-left: 2px solid var(--ink);
    background: none;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    list-style: none;
}

.hd-site .woocommerce-error,
.hd-site .login-error { border-left-color: var(--error); }
.hd-site .woocommerce-error li { margin: 0; }
.hd-site .woocommerce-error li + li { margin-top: 6px; }
.hd-site .woocommerce-error::before,
.hd-site .woocommerce-message::before,
.hd-site .woocommerce-info::before { display: none; }
.hd-site .woocommerce-error a { color: var(--ink); }

/* ------------------------------------------------------------------
   Paiement
   ------------------------------------------------------------------ */
.hd-checkout .woocommerce { position: relative; display: flex; flex-direction: column; }
/* Le formulaire et le récapitulatif s'ouvrent : leurs blocs se rangent librement */
.hd-checkout form.checkout,
.hd-checkout #order_review { display: contents; }
.hd-checkout #order_review_heading { display: none; }

.hd-checkout .woocommerce-checkout-review-order-table { order: 1; }
.hd-checkout .woocommerce-form-coupon-toggle { order: 2; }
.hd-checkout .checkout_coupon { order: 3; }
.hd-checkout .wcpay-express-checkout-wrapper { order: 4; }
.hd-checkout #customer_details { order: 5; }
.hd-checkout .hd-pay-title { order: 6; }
.hd-checkout #payment { order: 7; }

/* Récapitulatif : la couverture, le titre, le prix */
.hd-checkout .shop_table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: none;
}

.hd-checkout .shop_table thead,
.hd-checkout .shop_table .cart-subtotal,
.hd-checkout .shop_table .product-quantity { display: none; }

.hd-checkout .shop_table th,
.hd-checkout .shop_table td {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.hd-checkout .shop_table .cart_item td { padding-bottom: 20px; }
.hd-checkout .shop_table .product-total { padding-left: 16px; text-align: right; white-space: nowrap; }

.hd-item { display: flex; align-items: center; gap: 16px; }

.hd-item__cover {
    flex: none;
    width: 64px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.hd-item__title { display: block; font-size: 16px; line-height: 1.35; }
.hd-item__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--mute); }

.hd-checkout .shop_table tfoot th,
.hd-checkout .shop_table tfoot td { padding-top: 16px; border-top: 1px solid var(--line); }
.hd-checkout .shop_table tfoot td { text-align: right; white-space: nowrap; }
.hd-checkout .shop_table .order-total td,
.hd-checkout .shop_table .order-total strong { font-weight: 400; font-size: 20px; }
.hd-checkout .shop_table .order-total th { font-size: 16px; }

/* Code promo, discret */
.hd-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    color: var(--mute);
}

.hd-checkout .showcoupon { color: var(--ink); text-decoration: underline; }
.hd-checkout .checkout_coupon { margin: 12px 0 0; padding: 0; border: 0; }
.hd-checkout .checkout_coupon .form-row { float: none; width: 100%; margin: 0; padding: 0; }
.hd-checkout .checkout_coupon .form-row + .form-row { margin-top: 10px; }
.hd-checkout .checkout_coupon .button {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--edge);
    border-radius: 0;
    background: none;
    color: var(--ink);
    font: 400 15px/1 var(--f);
    cursor: pointer;
}
.hd-checkout .checkout_coupon .button:hover { border-color: var(--ink); }
.hd-checkout .checkout_coupon .clear { display: none; }

/* Apple Pay / Google Pay */
.hd-checkout .wcpay-express-checkout-wrapper { margin-top: 32px; }
.hd-checkout .wcpay-express-checkout-wrapper:empty { display: none; }

.hd-site #wcpay-express-checkout-button-separator {
    margin: 18px 0 0 !important;
    font-size: 0 !important;
    text-align: center;
    color: var(--mute);
}

.hd-site #wcpay-express-checkout-button-separator::before { content: 'ou'; font-size: 14px; letter-spacing: 0.04em; }
html[lang='en'] .hd-site #wcpay-express-checkout-button-separator::before { content: 'or'; }

/* Coordonnées */
.hd-checkout #customer_details,
.hd-checkout #customer_details .col-1,
.hd-checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; margin: 0; padding: 0; }
.hd-checkout #customer_details .col-2:empty,
.hd-checkout .woocommerce-shipping-fields:empty { display: none; }

.hd-checkout .woocommerce-billing-fields > h3,
.hd-checkout .woocommerce-additional-fields > h3,
.hd-checkout .hd-pay-title {
    margin: 44px 0 0;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: 0;
}

.hd-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}

.hd-checkout .form-row { float: none; width: auto; margin: 16px 0 0; padding: 0; }
.hd-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
.hd-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
.hd-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }

.hd-checkout .form-row label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--mute);
}

.hd-checkout .form-row .required { color: var(--mute); border: 0; text-decoration: none; }
.hd-checkout .woocommerce-input-wrapper { display: block; }
.hd-checkout .woocommerce-invalid input.input-text,
.hd-checkout .woocommerce-invalid select { border-color: var(--error); }
.hd-checkout .checkout-inline-error-message { margin: 6px 0 0; font-size: 13px; color: var(--error); }
.hd-checkout .form-row .description { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); }

/* Liste des pays (select2) */
.hd-site .select2-container .select2-selection--single {
    height: 52px;
    border: 1px solid var(--edge);
    border-radius: 4px;
    background: var(--field);
}

.hd-site .select2-container--focus .select2-selection--single,
.hd-site .select2-container--open .select2-selection--single { border-color: var(--ink); }
.hd-site .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 16px; padding-right: 40px; line-height: 50px; color: var(--ink); font: 400 17px/50px var(--f); }
.hd-site .select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 50px; }
.hd-site .select2-container .select2-selection__arrow b { border-top-color: var(--mute) !important; }
.hd-site .select2-dropdown { border: 1px solid var(--edge); border-radius: 4px; background: #111110; color: var(--ink); font-family: var(--f); }
.hd-site .select2-search--dropdown .select2-search__field { min-height: 44px; border: 1px solid var(--edge); background: var(--field); color: var(--ink); font: 400 16px var(--f); }
.hd-site .select2-results__option { padding: 9px 14px; font-size: 15px; }
.hd-site .select2-results__option[aria-selected='true'],
.hd-site .select2-results__option[data-selected='true'] { background: rgba(236, 232, 223, 0.08); color: var(--ink); }
.hd-site .select2-results__option--highlighted[aria-selected],
.hd-site .select2-results__option--highlighted[data-selected] { background: var(--ink) !important; color: var(--space) !important; }

/* Paiement par carte */
.hd-checkout #payment { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.hd-checkout #payment ul.payment_methods { margin: 16px 0 0; padding: 0; border: 0; list-style: none; }
.hd-checkout #payment ul.payment_methods li { margin: 0; padding: 0; list-style: none; }
.hd-checkout #payment ul.payment_methods li + li { margin-top: 12px; }
.hd-checkout #payment .wc_payment_method > input.input-radio { position: absolute; opacity: 0; pointer-events: none; }
.hd-checkout #payment .wc_payment_method > label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--mute); }
.hd-checkout #payment .wc_payment_method > label img { width: auto; max-height: 22px; margin: 0; }
.hd-checkout #payment div.payment_box { margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; }
.hd-checkout #payment div.payment_box::before { display: none; }
.hd-checkout #payment .wc-payment-form { margin: 0; padding: 0 !important; border: 0; }
.hd-checkout #payment .place-order { margin: 26px 0 0; padding: 0; }

.hd-checkout .woocommerce-privacy-policy-text p { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--mute); }
.hd-checkout .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; }

.hd-checkout .form-row .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
}

.hd-checkout .woocommerce-form__label-for-checkbox abbr.required { display: none; }

.hd-site input[type='checkbox'] {
    flex: none;
    display: inline-grid;
    place-content: center;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1px solid rgba(236, 232, 223, 0.5);
    border-radius: 3px;
    background: var(--field);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hd-site input[type='checkbox']:checked { border-color: var(--ink); background: var(--ink); }
.hd-site input[type='checkbox']:checked::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid var(--space);
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

.hd-site #place_order { margin-top: 22px; float: none; }
.hd-secure { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--mute); text-align: center; }

/* Pendant les mises à jour, le voile reste sombre */
.hd-site .blockUI.blockOverlay { background: rgba(5, 5, 5, 0.6) !important; opacity: 1 !important; }

/* Panier vide */
.hd-checkout .cart-empty { margin: 0; padding: 0; border: 0; font-size: 18px; }
.hd-checkout .return-to-shop { margin-top: 24px; }
.hd-checkout .return-to-shop .button { display: inline-flex; min-height: 52px; align-items: center; padding: 0 24px; background: var(--ink); color: var(--space); text-decoration: none; }

/* Grand écran : formulaire à gauche, récapitulatif à droite qui suit le défilement */
@media (min-width: 960px) {
    .hd-checkout .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        column-gap: clamp(56px, 7vw, 120px);
        align-items: start;
    }

    .hd-checkout .woocommerce > *,
    .hd-checkout form.checkout > *,
    .hd-checkout #order_review > * { grid-column: 1; }

    .hd-checkout #order_review > .woocommerce-checkout-review-order-table {
        grid-column: 2;
        grid-row: 1 / span 14;
        position: sticky;
        top: 40px;
        align-self: start;
    }

    .hd-checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin-top: 0; }
    .hd-checkout .wcpay-express-checkout-wrapper { margin-top: 24px; }
    .hd-item { flex-direction: column; align-items: flex-start; gap: 18px; }
    .hd-item__cover { width: 120px; }
    .hd-item__title { font-size: 18px; }
    .hd-checkout .shop_table .cart_item td { vertical-align: bottom; }
}

/* ------------------------------------------------------------------
   Confirmation de commande
   ------------------------------------------------------------------ */
.hd-thanks { text-align: center; }
.hd-thanks .hd-lead { margin-left: auto; margin-right: auto; }
.hd-thanks .hd-lead strong { color: var(--ink); font-weight: 400; }
.hd-downloads { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.hd-thanks .hd-btn { max-width: 380px; }
.hd-thanks > .hd-btn { margin-top: 34px; }

.hd-recap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 56px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.hd-recap dt { font-size: 13px; color: var(--mute); }
.hd-recap dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.hd-help { margin: 36px 0 0; font-size: 14px; color: var(--mute); }

@media (min-width: 700px) {
    .hd-recap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------
   Mentions légales
   ------------------------------------------------------------------ */
.hd-legal { max-width: 720px; }
.hd-legal__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; font-size: 15px; }
.hd-legal__nav a { color: var(--mute); text-decoration: none; }
.hd-legal__nav a:hover { color: var(--ink); text-decoration: underline; }
.hd-legal__section { margin-top: clamp(56px, 9vh, 80px); scroll-margin-top: 24px; }
.hd-legal h2 { margin: 0; font-weight: 300; font-size: clamp(27px, 6vw, 40px); line-height: 1.15; }
.hd-legal h3 { margin: 30px 0 0; font-weight: 500; font-size: 17px; line-height: 1.4; }
.hd-legal p { margin: 8px 0 0; color: var(--soft); font-size: 16px; line-height: 1.7; }
.hd-legal p a,
.hd-legal li a { color: var(--ink); }
.hd-legal strong { color: var(--ink); font-weight: 500; }
.hd-legal ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--soft); }
.hd-legal li { font-size: 16px; line-height: 1.7; }
.hd-legal li::marker { color: var(--mute); }
.hd-legal .hd-legal__date { margin-top: 56px; font-size: 14px; color: var(--mute); }

/* ------------------------------------------------------------------
   Espace affilié : connexion
   ------------------------------------------------------------------ */
.hd-aff .hd-content > *:first-child { margin-top: 0; }
.hd-site .affiliate-login-form { max-width: 420px; }
.hd-site .affiliate-login-form h2 { margin: 0; font-weight: 400; font-size: 22px; }
.hd-site .affiliate-login-form form p { margin: 18px 0 0; }
.hd-site .affiliate-login-form label { display: block; margin: 0 0 7px; font-size: 14px; color: var(--mute); }
.hd-site .affiliate-login-form .button { margin-top: 8px; -webkit-appearance: none; appearance: none; }
.hd-site .affiliate-login-form .login-error { margin: 0 0 24px; }
.hd-site .aff-eye-toggle-wrapper { position: relative; }
.hd-site .aff-eye-toggle-wrapper input { padding-right: 52px; }
.hd-site .aff-eye-toggle-btn { position: absolute; top: 50%; right: 14px; width: 26px; height: 26px; transform: translateY(-50%); }
.hd-site .aff-eye-toggle-btn svg * { stroke: var(--mute); }
.hd-site .affiliate-join { margin: 28px 0 0; font-size: 15px; color: var(--mute); }
.hd-site .affiliate-join a { color: var(--ink); }

/* ------------------------------------------------------------------
   Espace affilié : tableau de bord
   ------------------------------------------------------------------ */
.hd-site .affiliate-dashboard { color: var(--ink); }
.hd-site .affiliate-dashboard h2,
.hd-site .affiliate-dashboard .dashboard-title { margin: 0; font-weight: 400; font-size: 22px; }

.hd-site .currency-selector { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--mute); }
.hd-site .currency-selector label { margin: 0; }
.hd-site .currency-selector select { width: auto; min-height: 42px; font-size: 15px; }

.hd-site .stats-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 34px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hd-site .stat-box { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.hd-site .stat-box h3 { margin: 0; font-weight: 400; font-size: 14px; color: var(--mute); }
.hd-site .stat-box .limit-info { display: block; font-size: 12px; }
.hd-site .stat-number { margin: 6px 0 0; font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--ink); }
.hd-site .stat-commission,
.hd-site .sale-row { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.hd-site .stat-divider { display: none; }
.hd-site .stat-box p { margin: 6px 0 0; font-size: 14px; color: var(--mute); }
.hd-site .stat-box .stat-number { color: var(--ink); font-size: 32px; }

.hd-site .affiliate-note-indicative { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: var(--mute); }

.hd-site .affiliate-links,
.hd-site .how-it-works-box { margin-top: 48px; padding: 0; border: 0; background: none; box-shadow: none; }
.hd-site .affiliate-links h3,
.hd-site .how-it-works-box h3 { margin: 0; font-weight: 400; font-size: 20px; }

.hd-site .affiliate-link-explanation {
    display: block !important;
    margin: 10px 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--mute) !important;
    font-size: 14px !important;
}
.hd-site .affiliate-link-explanation svg { display: none !important; }
.hd-site .affiliate-link-explanation strong { color: var(--ink); font-weight: 400 !important; }

.hd-site .link-box { position: relative; }
.hd-site .link-wrapper { display: flex; gap: 8px; }
.hd-site .link-wrapper input { flex: 1; min-width: 0; font-size: 15px; }
.hd-site .copy-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    color: var(--space);
    font: 500 14px/1 var(--f);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.hd-site .copy-button svg { width: 16px; height: 16px; fill: currentColor; }
.hd-site .copy-feedback { margin-top: 8px; font-size: 13px; color: var(--mute); opacity: 0; transition: opacity 0.3s ease; }
.hd-site .copy-feedback.visible { opacity: 1; }

/* « Comment fonctionne votre commission » : une simple suite de lignes */
.hd-site .icons-row { display: none; }
.hd-site .commission-process,
.hd-site .steps-details { margin: 0; padding: 0; border: 0; background: none; }
.hd-site .steps-details { margin-top: 14px; border-top: 1px solid var(--line); }
.hd-site .step-detail-card {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.hd-site .step-number { flex: none; width: 1.6em; font-size: 14px; color: var(--mute); background: none; border: 0; }
.hd-site .step-info { flex: 1; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.hd-site .step-info h4 { margin: 0; font-weight: 400; font-size: 16px; }
.hd-site .step-amount { font-size: 17px; text-align: right; }
.hd-site .step-detail,
.hd-site .commission-label { grid-column: 1 / -1; margin-top: 4px; font-size: 13px; color: var(--mute); }
.hd-site .step-detail .detail-value,
.hd-site .commission-label .percentage { margin-left: 6px; color: var(--ink); }
.hd-site .commission-note { margin-top: 18px; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.6; color: var(--mute); }
.hd-site .commission-note p { margin: 0; }
.hd-site .commission-note p:first-child { display: none; }

@media (min-width: 760px) {
    .hd-site .stats-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Pied de page */
.hd-foot {
    padding: 44px var(--gut) calc(36px + env(safe-area-inset-bottom));
    font-size: 14px;
    color: var(--mute);
    text-align: center;
}

.hd-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.hd-foot__links + .hd-foot__links { margin-top: 12px; }
.hd-foot__links a { color: var(--ink); text-decoration: none; }
.hd-foot__links a:hover { text-decoration: underline; }
.hd-foot p { max-width: 62ch; margin: 22px auto 0; font-size: 13px; line-height: 1.6; }
.hd-foot p + p { margin-top: 8px; }

@media (min-aspect-ratio: 21/20) and (min-width: 900px) {
    .hd-top__logo img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hd-site * { transition: none !important; }
}

/* Sélecteur de langue compact (05/12/2026) : langue courante + menu déroulant */
.langsel { position: relative; font-size: 14px; letter-spacing: 0.06em; }
.langsel summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 2px; color: var(--ink, #ece8df); -webkit-tap-highlight-color: transparent; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary svg { opacity: 0.7; transition: transform 0.2s; }
.langsel[open] summary svg { transform: rotate(180deg); }
.langsel__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 158px; padding: 6px 0; background: #0b0b0a; border: 1px solid rgba(236, 232, 223, 0.18); display: flex; flex-direction: column; }
.langsel__menu a { display: flex; gap: 12px; padding: 9px 16px; color: var(--mute, #908b81); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.langsel__menu a b { font-weight: 500; color: var(--ink, #ece8df); min-width: 22px; letter-spacing: 0.06em; }
.langsel__menu a:hover, .langsel__menu a:focus-visible { color: var(--ink, #ece8df); background: rgba(236, 232, 223, 0.06); }
