/* Adkomo Lead Posting : formulaire (site + aperçu du constructeur). Couleurs et rayons : variables --adlp-* posées par form.js. */
.adlp-root { margin: 1.5em auto; }
.adlp {
    --adlp-tint: color-mix(in srgb, var(--adlp-primary) 10%, var(--adlp-bg));
    --adlp-ring: color-mix(in srgb, var(--adlp-primary) 28%, transparent);
    --adlp-muted: color-mix(in srgb, var(--adlp-text) 62%, var(--adlp-bg));
    --adlp-danger: #dc2626;
    box-sizing: border-box; max-width: var(--adlp-width); margin: 0 auto; padding: clamp(20px, 4vw, 36px);
    background: var(--adlp-bg); color: var(--adlp-text); border-radius: calc(var(--adlp-radius) + 6px);
    border: 1px solid var(--adlp-border); font-size: 16px; line-height: 1.5; text-align: left; position: relative; overflow: hidden;
}
.adlp *, .adlp *::before, .adlp *::after { box-sizing: border-box; }
.adlp--shadow { border-color: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 40px -8px rgba(15, 23, 42, .18); }
.adlp--font-inherit { font-family: inherit; }
.adlp--font-system { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.adlp--font-rounded { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif; }
.adlp--font-serif { font-family: ui-serif, Georgia, "Times New Roman", serif; }
.adlp [hidden] { display: none !important; }
.adlp p { margin: 0; }

/* En-tête et progression */
.adlp-head { margin-bottom: 20px; }
.adlp--center .adlp-head, .adlp--center .adlp-step-title, .adlp--center .adlp-step-sub, .adlp--center .adlp-done { text-align: center; }
.adlp .adlp-title { font-size: clamp(1.35em, 3.2vw, 1.7em); font-weight: 750; line-height: 1.2; letter-spacing: -.01em; color: var(--adlp-text); }
.adlp .adlp-sub { margin-top: 6px; color: var(--adlp-muted); }
.adlp-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.adlp-progress-track { flex: 1; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--adlp-primary) 14%, var(--adlp-bg)); overflow: hidden; }
.adlp-progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--adlp-primary); transition: width .35s cubic-bezier(.4, 0, .2, 1); }
.adlp-progress-text { font-size: .8em; color: var(--adlp-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Étapes */
.adlp-step { animation: none; }
.adlp-step.adlp-in-next { animation: adlp-in-next .28s ease both; }
.adlp-step.adlp-in-prev { animation: adlp-in-prev .28s ease both; }
@keyframes adlp-in-next { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes adlp-in-prev { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adlp-step.adlp-in-next, .adlp-step.adlp-in-prev { animation: none; } .adlp-progress-bar { transition: none; } }
.adlp--single .adlp-step + .adlp-step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--adlp-border); }
.adlp .adlp-step-title { font-size: 1.2em; font-weight: 700; margin-bottom: 4px; }
.adlp .adlp-step-sub { color: var(--adlp-muted); margin-bottom: 8px; }
.adlp-fields { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 14px; }
.adlp-field { flex: 1 1 100%; min-width: 0; }
.adlp-w-half { flex: 1 1 calc(50% - 8px); }
@media (max-width: 520px) { .adlp-w-half { flex-basis: 100%; } }

/* Libellés, champs */
.adlp .adlp-label { display: block; font-weight: 650; margin: 0 0 8px; padding: 0; color: var(--adlp-text); font-size: 1em; line-height: 1.35; }
.adlp--steps .adlp-field--buttons .adlp-label, .adlp--steps .adlp-field--radio .adlp-label, .adlp--steps .adlp-field--checkboxes .adlp-label { font-size: 1.15em; margin-bottom: 14px; }
.adlp--center .adlp-fieldset > .adlp-label { text-align: center; width: 100%; }
.adlp-req { color: var(--adlp-primary); }
.adlp .adlp-help { font-size: .87em; color: var(--adlp-muted); margin: -4px 0 10px; }
.adlp .adlp-input .adlp-help, .adlp .adlp-input + .adlp-help { margin: 6px 0 0; }
.adlp .adlp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.adlp .adlp-input {
    display: block; width: 100%; height: auto; min-height: 50px; margin: 0; padding: 12px 15px; font: inherit; color: var(--adlp-text);
    background: var(--adlp-field-bg); border: 1.5px solid var(--adlp-border); border-radius: var(--adlp-radius); box-shadow: none; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.adlp textarea.adlp-input { min-height: 110px; resize: vertical; }
.adlp .adlp-input::placeholder { color: color-mix(in srgb, var(--adlp-text) 40%, var(--adlp-field-bg)); opacity: 1; }
.adlp .adlp-input:hover { border-color: color-mix(in srgb, var(--adlp-primary) 35%, var(--adlp-border)); }
.adlp .adlp-input:focus { border-color: var(--adlp-primary); box-shadow: 0 0 0 4px var(--adlp-ring); background: var(--adlp-bg); }
.adlp .adlp-select { padding-right: 42px; 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.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.adlp .adlp-has-error .adlp-input { border-color: var(--adlp-danger); }
.adlp .adlp-has-error .adlp-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--adlp-danger) 22%, transparent); }
.adlp .adlp-error { color: var(--adlp-danger); font-size: .87em; margin-top: 7px; display: flex; gap: 6px; align-items: center; }
.adlp .adlp-error::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--adlp-danger); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.adlp .adlp-info { color: var(--adlp-muted); font-size: .95em; }
.adlp a { color: var(--adlp-primary); }

/* Choix : entrées masquées mais accessibles */
.adlp-choice input, .adlp-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.adlp-choices { display: grid; gap: 10px; }
.adlp-choice { display: block; cursor: pointer; margin: 0; position: relative; }
.adlp-choice-box {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; background: var(--adlp-field-bg); color: var(--adlp-text);
    border: 1.5px solid var(--adlp-border); border-radius: var(--adlp-radius); font-weight: 550; line-height: 1.3;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.adlp-choice:hover .adlp-choice-box { border-color: color-mix(in srgb, var(--adlp-primary) 50%, var(--adlp-border)); }
.adlp-choice input:focus-visible + .adlp-choice-box { box-shadow: 0 0 0 4px var(--adlp-ring); }
.adlp-choice input:checked + .adlp-choice-box { border-color: var(--adlp-primary); background: var(--adlp-tint); box-shadow: inset 0 0 0 1px var(--adlp-primary); }
.adlp-choice:active .adlp-choice-box { transform: scale(.985); }
.adlp-choice-mark {
    flex: none; width: 20px; height: 20px; border: 2px solid color-mix(in srgb, var(--adlp-text) 28%, var(--adlp-bg)); border-radius: 50%;
    background: var(--adlp-bg); transition: all .15s; position: relative;
}
.adlp-choices--multi .adlp-choice-mark { border-radius: 6px; }
.adlp-choice input:checked + .adlp-choice-box .adlp-choice-mark { border-color: var(--adlp-primary); background: var(--adlp-primary); box-shadow: inset 0 0 0 3px var(--adlp-bg); }
.adlp-choices--multi .adlp-choice input:checked + .adlp-choice-box .adlp-choice-mark { box-shadow: none; background: var(--adlp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.adlp-has-error .adlp-choice-box { border-color: color-mix(in srgb, var(--adlp-danger) 55%, var(--adlp-border)); }

/* Style « cartes » (choix en boutons) : grille */
.adlp--choice-cards .adlp-choices--buttons { grid-template-columns: repeat(var(--adlp-cols), minmax(0, 1fr)); }
.adlp--choice-cards .adlp-choices--buttons .adlp-choice-box { justify-content: center; text-align: center; min-height: 64px; padding: 16px 14px; }
.adlp--choice-cards .adlp-choices--buttons .adlp-choice-mark { display: none; }
.adlp--choice-cards .adlp-choices--buttons .adlp-choice input:checked + .adlp-choice-box::after {
    content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--adlp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (max-width: 420px) { .adlp--choice-cards .adlp-choices--buttons { grid-template-columns: repeat(min(var(--adlp-cols), 2), minmax(0, 1fr)); } }
/* Style « liste » : une ligne par choix */
.adlp--choice-list .adlp-choices--buttons { grid-template-columns: 1fr; }
/* Style « pastilles » : boutons arrondis côte à côte */
.adlp--choice-pills .adlp-choices--buttons { display: flex; flex-wrap: wrap; }
.adlp--choice-pills .adlp-choices--buttons .adlp-choice-box { border-radius: 999px; padding: 10px 18px; }
.adlp--choice-pills .adlp-choices--buttons .adlp-choice-mark { display: none; }
.adlp--choice-pills .adlp-choices--buttons .adlp-choice input:checked + .adlp-choice-box { background: var(--adlp-primary); color: var(--adlp-on-primary); }
.adlp--center.adlp--choice-pills .adlp-choices--buttons { justify-content: center; }
/* Boutons radio et cases multiples : compacts, en ligne si la place le permet */
.adlp-choices--radio, .adlp-choices--multi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.adlp-choices--radio .adlp-choice-box, .adlp-choices--multi .adlp-choice-box { padding: 11px 14px; font-weight: 500; }

/* Case à cocher, consentement */
.adlp-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; position: relative; }
.adlp-check-box {
    flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--adlp-field-bg);
    border: 2px solid color-mix(in srgb, var(--adlp-text) 28%, var(--adlp-bg)); transition: all .15s;
}
.adlp-check input:checked + .adlp-check-box { background: var(--adlp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; border-color: var(--adlp-primary); }
.adlp-check input:focus-visible + .adlp-check-box { box-shadow: 0 0 0 4px var(--adlp-ring); }
.adlp-has-error .adlp-check-box { border-color: var(--adlp-danger); }
.adlp-field--consent .adlp-check-text { font-size: .86em; color: var(--adlp-muted); line-height: 1.45; }

/* Boutons de navigation */
.adlp-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 26px; }
.adlp .adlp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; margin: 0;
    font: inherit; font-weight: 700; font-size: 1em; line-height: 1; letter-spacing: .01em; text-decoration: none; text-transform: none;
    border: 2px solid transparent; border-radius: var(--adlp-radius); cursor: pointer; box-shadow: none; width: auto;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s, filter .15s;
}
.adlp .adlp-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--adlp-ring); }
.adlp .adlp-btn:active { transform: translateY(1px); }
.adlp .adlp-btn--main { margin-left: auto; min-width: 160px; }
.adlp .adlp-btn--main.adlp-btn--submit { flex: 1; }
.adlp .adlp-btn--main::after { content: "→"; font-weight: 400; transition: transform .15s; }
.adlp .adlp-btn--main:hover::after { transform: translateX(3px); }
.adlp .adlp-btn--back { background: transparent; color: var(--adlp-muted); padding: 0 6px; min-height: 44px; font-weight: 600; border: 0; }
.adlp .adlp-btn--back::before { content: "←"; font-weight: 400; }
.adlp .adlp-btn--back:hover { color: var(--adlp-text); background: transparent; }
/* Types de bouton principal */
.adlp--btn-filled .adlp-btn--main, .adlp--btn-pill .adlp-btn--main, .adlp--btn-shadow .adlp-btn--main { background: var(--adlp-primary); color: var(--adlp-on-primary); }
.adlp--btn-filled .adlp-btn--main:hover, .adlp--btn-pill .adlp-btn--main:hover { filter: brightness(1.07); }
.adlp--btn-pill .adlp-btn--main { border-radius: 999px; }
.adlp--btn-outline .adlp-btn--main { background: transparent; color: var(--adlp-primary); border-color: var(--adlp-primary); }
.adlp--btn-outline .adlp-btn--main:hover { background: var(--adlp-primary); color: var(--adlp-on-primary); }
.adlp--btn-gradient .adlp-btn--main { color: #fff; background: linear-gradient(135deg, var(--adlp-primary), color-mix(in srgb, var(--adlp-primary) 55%, #7c3aed)); background-size: 150% 150%; }
.adlp--btn-gradient .adlp-btn--main:hover { background-position: 100% 0; filter: brightness(1.05); }
.adlp--btn-soft .adlp-btn--main { background: var(--adlp-tint); color: var(--adlp-primary); }
.adlp--btn-soft .adlp-btn--main:hover { background: color-mix(in srgb, var(--adlp-primary) 18%, var(--adlp-bg)); }
.adlp--btn-shadow .adlp-btn--main { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--adlp-primary) 70%, transparent); }
.adlp--btn-shadow .adlp-btn--main:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px color-mix(in srgb, var(--adlp-primary) 75%, transparent); }
.adlp .adlp-btn:disabled { opacity: .65; cursor: progress; }
.adlp .adlp-btn.adlp-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: adlp-spin .7s linear infinite; }
@keyframes adlp-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .adlp .adlp-btn--main { flex: 1; } }

/* Messages, succès */
.adlp .adlp-msg { margin-top: 18px; padding: 12px 14px; border-radius: var(--adlp-radius); background: color-mix(in srgb, var(--adlp-danger) 9%, var(--adlp-bg)); color: var(--adlp-danger); font-size: .93em; }
.adlp-done { text-align: center; padding: 20px 0 8px; animation: adlp-in-next .3s ease both; }
.adlp-done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--adlp-primary); color: var(--adlp-on-primary); box-shadow: 0 0 0 8px var(--adlp-tint); }
.adlp .adlp-done-title { font-size: 1.4em; font-weight: 750; margin-bottom: 8px; }
.adlp-done-text { color: var(--adlp-muted); }

/* Champ piège */
.adlp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Consentement : partenaires (intermédiaires) dépliés sous la case par le mot « partenaires » */
.adlp .adlp-pword, .adlp .adlp-pmore { background: none; border: 0; padding: 0; margin: 0; min-height: 0; font: inherit; color: var(--adlp-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.adlp .adlp-pword:focus-visible, .adlp .adlp-pmore:focus-visible { outline: 2px solid var(--adlp-primary); outline-offset: 2px; border-radius: 3px; }
.adlp .adlp-pshow { display: inline-block; margin: 8px 0 0 34px; font-size: .87em; }
.adlp .adlp-partners { margin: 10px 0 0 34px; padding: 12px 14px; font-size: .85em; line-height: 1.45; color: var(--adlp-muted); background: var(--adlp-bg); border: 1px solid var(--adlp-border); border-radius: calc(var(--adlp-radius) * .7); }
.adlp .adlp-partners-title { margin: 0 0 8px; color: var(--adlp-text); font-weight: 650; }
.adlp .adlp-partners ul { margin: 0; padding-left: 18px; }
.adlp .adlp-partners li { margin: 0 0 6px; }
.adlp .adlp-partners li[hidden] { display: none; }
.adlp .adlp-partners strong { color: var(--adlp-text); font-weight: 650; }
.adlp .adlp-partners .adlp-pdet { display: block; }
.adlp .adlp-partners .adlp-pmore { margin-top: 2px; font-size: .95em; }
.adlp .adlp-partners .adlp-pmore::after { content: " ▾"; text-decoration: none; display: inline-block; }
.adlp .adlp-partners .adlp-pmore[aria-expanded=true]::after { content: " ▴"; }

/* Écran de remerciement : upsells */
.adlp .adlp-upsells { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.adlp .adlp-upsell { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--adlp-border); border-radius: var(--adlp-radius); background: var(--adlp-bg); color: var(--adlp-text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.adlp .adlp-upsell:hover { border-color: var(--adlp-primary); box-shadow: 0 6px 18px -10px var(--adlp-primary); transform: translateY(-1px); }
.adlp .adlp-upsell:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--adlp-ring); }
.adlp .adlp-upsell-img { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: calc(var(--adlp-radius) * .6); }
.adlp .adlp-upsell-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.adlp .adlp-upsell-title { font-weight: 700; font-size: 1.05em; }
.adlp .adlp-upsell-text { color: var(--adlp-muted); font-size: .92em; }
.adlp .adlp-upsell-btn { align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: var(--adlp-primary); color: var(--adlp-on-primary); font-weight: 650; font-size: .9em; }
@media (max-width: 520px) { .adlp .adlp-upsell-img { width: 56px; height: 56px; } }
