/* Page annonceurs, réservation et suivi de commande (templates/advertisers/). */

.adv {
    padding-bottom: 48px;
    color: var(--jtp-ink);
}

.adv-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jtp-b-deep);
}

.adv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.adv-btn:hover { transform: translateY(-1px); text-decoration: none; }
.adv-btn--primary { background: var(--jtp-pop); color: var(--jtp-pop-ink); }
.adv-btn--primary:hover { color: var(--jtp-pop-ink); }
.adv-btn--ghost { border-color: currentColor; color: var(--jtp-a-deep); background: transparent; }
.adv-btn--block { width: 100%; }

/* Hero */
.adv-hero {
    background: linear-gradient(135deg, var(--jtp-a-deep), var(--jtp-a) 60%, #2a8f8a);
    color: #fff;
    padding: 56px 0 48px;
    overflow: hidden;
}
.adv-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 40px;
    align-items: center;
}
.adv-hero .adv-kicker { color: var(--jtp-pop); }
.adv-hero__title {
    margin: 0 0 16px;
    font-family: var(--jtp-font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    text-wrap: balance;
}
.adv-hero__lead { max-width: 58ch; margin: 0 0 24px; font-size: 18px; line-height: 1.6; opacity: .92; }
.adv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.adv-hero .adv-btn--ghost { color: #fff; }
.adv-hero__demo { display: flex; align-items: flex-end; gap: 18px; }
.adv-hero__demo .jtp-hb--skyscraper { transform: rotate(-2deg); }
.adv-hero__demo .jtp-hb--rectangle { transform: rotate(2deg) translateY(-40px); }

/* Sections */
.adv-sec { padding-top: 48px; }
.adv-sec__title {
    margin: 0 0 8px;
    font-family: var(--jtp-font-display);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
}
.adv-sec__title--sm { margin-top: 32px; font-size: 24px; }
.adv-sec__kicker { margin: 0 0 24px; color: var(--jtp-muted); font-size: 16px; }
.adv-note { color: var(--jtp-muted); font-size: 14px; line-height: 1.55; }

.adv-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.adv-stat {
    flex: 1 1 180px;
    padding: 20px;
    border-radius: var(--jtp-r-md);
    background: var(--jtp-surface);
    box-shadow: var(--jtp-shadow);
}
.adv-stat strong { display: block; font-family: var(--jtp-font-display); font-size: 32px; color: var(--jtp-a-deep); }
.adv-stat span { color: var(--jtp-muted); }

.adv-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin-top: 16px;
}
.adv-card {
    padding: 22px;
    border-radius: var(--jtp-r-md);
    background: var(--jtp-surface);
    box-shadow: var(--jtp-shadow);
}
.adv-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.adv-card p { margin: 0; color: var(--jtp-muted); line-height: 1.6; }

/* Emplacements */
.adv-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}
.adv-slot {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--jtp-r-lg);
    background: var(--jtp-surface);
    box-shadow: var(--jtp-shadow);
}
.adv-slot__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 16px;
    background: repeating-linear-gradient(45deg, var(--jtp-surface-2), var(--jtp-surface-2) 10px, var(--jtp-ground) 10px, var(--jtp-ground) 20px);
    overflow: hidden;
}
/* Skyscraper réduit pour tenir dans la carte. */
.adv-slot__preview--skyscraper .jtp-hb { transform: scale(.37); transform-origin: center; flex: 0 0 auto; }
/* Megabanner en miniature à l'échelle (et non comprimée) : on voit sa vraie mise en page. */
.adv-slot__preview--leaderboard .jtp-hb { max-width: none; transform: scale(.42); transform-origin: center; flex: 0 0 auto; }
.adv-slot__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.adv-slot__title { margin: 0; font-size: 20px; font-weight: 800; }
.adv-slot__meta { margin: 0; color: var(--jtp-muted); font-size: 14px; line-height: 1.55; }
.adv-prices { list-style: none; margin: 0 0 auto; padding: 0; }
.adv-prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--jtp-line);
}
.adv-prices li strong { font-size: 18px; white-space: nowrap; }
.adv-prices small { color: var(--jtp-muted); font-weight: 400; }
.adv-prices--quote { font-size: 18px; font-weight: 800; color: var(--jtp-a-deep); }

.adv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; padding: 0; margin: 16px 0 0; list-style: none; counter-reset: step; }
.adv-steps li {
    counter-increment: step;
    padding: 20px;
    border-radius: var(--jtp-r-md);
    background: var(--jtp-a-soft);
    line-height: 1.55;
}
.adv-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--jtp-a-deep);
    color: #fff;
    font-weight: 800;
}

.adv-faq details { border-top: 1px solid var(--jtp-line); padding: 14px 0; }
.adv-faq details:last-child { border-bottom: 1px solid var(--jtp-line); }
.adv-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.adv-faq p { margin: 10px 0 0; color: var(--jtp-muted); line-height: 1.6; max-width: 70ch; }

/* Formulaires */
.adv-contact { max-width: 760px; }
.adv-form { display: flex; flex-direction: column; gap: 16px; }
.adv-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.adv-form input[type="text"],
.adv-form input[type="email"],
.adv-form input[type="url"],
.adv-form input[type="date"],
.adv-form input[type="file"],
.adv-form select,
.adv-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1.5px solid var(--jtp-line);
    border-radius: 10px;
    background: var(--jtp-surface);
    color: var(--jtp-ink);
    font: inherit;
    font-weight: 400;
    font-size: 16px; /* pas de zoom iOS */
}
.adv-form textarea { resize: vertical; }
.adv-form small { font-weight: 400; color: var(--jtp-muted); }
.adv-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.adv-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.adv-form legend { margin-bottom: 10px; font-family: var(--jtp-font-display); font-size: 20px; font-weight: 800; }
.adv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.adv-alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; }
.adv-alert ul { margin: 0; padding-left: 18px; }
.adv-alert--ok { background: var(--jtp-a-soft); color: var(--jtp-a-deep); }
.adv-alert--err { background: var(--jtp-b-soft); color: var(--jtp-b-deep); }

.adv-terms ol { color: var(--jtp-muted); line-height: 1.6; max-width: 80ch; padding-left: 20px; }

/* Réservation */
.adv-back { display: inline-block; margin-bottom: 12px; color: var(--jtp-a); font-weight: 700; }
.adv-book__form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.adv-book__main { display: flex; flex-direction: column; gap: 28px; }
.adv-book__summary {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: var(--jtp-r-lg);
    background: var(--jtp-surface);
    box-shadow: var(--jtp-shadow);
}
.adv-book__preview { display: flex; justify-content: center; max-height: 260px; overflow: hidden; }
.adv-book__preview .jtp-hb--skyscraper { transform: scale(.42); transform-origin: top center; margin-bottom: -348px; }
.adv-book__preview .jtp-hb--leaderboard { transform: scale(.41); transform-origin: top center; margin-bottom: -53px; flex: 0 0 auto; }
.adv-book__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 18px; }
.adv-book__total strong { font-family: var(--jtp-font-display); font-size: 30px; }
.adv-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.adv-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }

.adv-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.adv-choice {
    position: relative;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--jtp-line);
    border-radius: 12px;
    background: var(--jtp-surface);
    cursor: pointer;
}
.adv-choice input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; }
.adv-choice:has(input:checked) { border-color: var(--jtp-a); background: var(--jtp-a-soft); }
.adv-choice:has(input:focus-visible) { outline: 3px solid var(--jtp-a); outline-offset: 2px; }
.adv-choice.is-disabled { opacity: .5; cursor: not-allowed; }
.adv-choice__label { font-weight: 800; }
.adv-choice__price { font-weight: 400; color: var(--jtp-muted); font-size: 14px; }
.adv-choice__price--deal { color: var(--jtp-b-deep); font-weight: 800; }

/* Suivi */
.adv-status {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    background: var(--jtp-surface-2);
}
.adv-status--paid { background: var(--jtp-pop); color: var(--jtp-pop-ink); }
.adv-status--live { background: var(--jtp-a-soft); color: var(--jtp-a-deep); }
.adv-status--cancelled { background: var(--jtp-b-soft); color: var(--jtp-b-deep); }
.adv-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 24px 0 0; }
.adv-summary div { padding: 14px 16px; border-radius: 12px; background: var(--jtp-surface); box-shadow: var(--jtp-shadow); }
.adv-summary dt { color: var(--jtp-muted); font-size: 14px; }
.adv-summary dd { margin: 4px 0 0; font-weight: 800; }
.adv-table-wrap { overflow-x: auto; margin-top: 16px; }
.adv-table { width: 100%; border-collapse: collapse; }
.adv-table th, .adv-table td { padding: 8px 12px; border-bottom: 1px solid var(--jtp-line); text-align: left; }
.adv-table td + td, .adv-table th + th { text-align: right; }

@media (max-width: 900px) {
    .adv-hero__inner { grid-template-columns: 1fr; }
    .adv-hero__demo { display: none; }
    .adv-book__form { grid-template-columns: 1fr; }
    .adv-book__summary { position: static; }
}
