/* ==========================================================================
   Artisaction Tunnel — pages du tunnel de vente
   S’appuie sur les variables et boutons du thème parent (main.css).
   ========================================================================== */

/* En-tête ----------------------------------------------------------------- */
.tn-header { position: sticky; top: 0; z-index: 900; background: var(--art-black); color: #fff; }
.admin-bar .tn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tn-header { top: 0; } }
.tn-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.tn-brand { cursor: default; }
.tn-brand:hover .brand__mark { transform: none; }
.tn-header__actions { display: flex; align-items: center; gap: 1rem; }
.tn-header__link { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 600; }
.tn-header__link:hover { color: var(--art-gold); }
.tn-header__wa { display: inline-flex; align-items: center; gap: .45rem; padding: .55em 1.1em; border-radius: 999px; background: #25d366; color: #0b3d1f; font-weight: 700; text-decoration: none; }
.tn-header__wa:hover { background: #1fbd5b; color: #0b3d1f; }
@media (max-width: 640px) {
	.tn-header__link { display: none; }
	.tn-header .brand__name { font-size: 1.05rem; letter-spacing: .14em; }
	.tn-header .brand__mark { width: 36px; }
	.tn-header__inner { min-height: 62px; }
	.tn-header .brand__tag { display: none; }
}

/* Bannière ---------------------------------------------------------------- */
.tn-hero { background: var(--art-black) var(--tn-topo, none) center / cover; color: #fff; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.tn-hero__inner { max-width: 860px; }
.tn-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tn-hero__grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.tn-hero__title { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: .5em; }
.tn-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 640px; }
.tn-hero--thanks .tn-hero__text { margin-inline: auto; }
.tn-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.6rem 0 0; }
.tn-link-light { color: var(--art-gold); font-weight: 600; }
.tn-link-light:hover { color: #fff; }
.tn-proof { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.tn-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.tn-proof .icon { color: var(--art-gold); }
.tn-badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--art-gold); color: var(--art-black); margin-bottom: 1.2rem; }
.tn-badge .icon { width: 36px; height: 36px; }

/* Sections ---------------------------------------------------------------- */
.tn-section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.tn-section--soft { background: var(--art-soft); }
.tn-section--dark { background: var(--art-black); color: #fff; }
.tn-section--dark h2, .tn-section--dark h3 { color: #fff; }
.tn-h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-align: center; margin-bottom: 1.2em; }
.tn-h2--left { text-align: left; }
.tn-h3 { font-size: 1.3rem; }
.tn-center { text-align: center; }
.tn-lead { font-size: 1.1rem; text-align: center; color: var(--art-grey); margin-top: 1.5rem; }
.tn-muted { color: var(--art-grey); font-size: .95rem; }
.tn-section--dark .tn-muted { color: rgba(255, 255, 255, .7); }
.tn-card { background: #fff; color: var(--art-ink); border: 1px solid var(--art-line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.tn-card .art-test { border: 0; padding: 0; }
.tn-card--price { text-align: center; }

/* Problèmes, listes ------------------------------------------------------- */
.tn-problems, .tn-checks, .tn-momo { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.tn-problems li, .tn-checks li, .tn-momo li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--art-line); border-radius: var(--art-radius); font-weight: 500; }
.tn-problems .icon { color: var(--art-orange); margin-top: .2em; }
.tn-checks .icon { color: #1f9d55; margin-top: .2em; }
.tn-momo li { font-weight: 700; font-size: 1.05rem; background: var(--art-cream); border-color: #f3dcb6; }
.tn-momo .icon { color: var(--art-bronze); margin-top: .2em; }

/* Deux colonnes (texte + formulaire) -------------------------------------- */
.tn-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .tn-split { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }
.tn-steps { list-style: none; counter-reset: tn; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.tn-steps li { counter-increment: tn; position: relative; padding-left: 3.2rem; display: grid; gap: .15rem; }
.tn-steps li::before { content: counter(tn); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--art-gold); color: var(--art-black); font-family: var(--font-title); font-weight: 800; }
.tn-steps span { color: var(--art-grey); }

/* Prix -------------------------------------------------------------------- */
.tn-price { margin: 1rem 0 1.4rem; }
.tn-price__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin: 0 0 .4rem; }
.tn-card--price .tn-price__amount { justify-content: center; }
.tn-price__amount del { color: var(--art-grey-light); font-size: 1.2rem; }
.tn-price__amount strong { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--art-orange); line-height: 1.1; }
.tn-price__note { display: inline-flex; gap: .5rem; align-items: flex-start; font-size: .95rem; color: var(--art-grey); margin: 0; }
.tn-section--dark .tn-price__note { color: rgba(255, 255, 255, .75); }
.tn-price__note .icon { color: var(--art-gold); margin-top: .15em; }
.tn-scarcity { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .5rem 0 0; font-weight: 600; color: var(--art-bronze); }
.tn-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: tn-pulse 1.8s infinite; }
@keyframes tn-pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.tn-offer-teaser { background: #fff; border: 2px solid var(--art-gold); border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.4rem); }

/* Contenu de l’offre ------------------------------------------------------ */
.tn-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tn-feature { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--art-line); border-radius: var(--art-radius); padding: 1.1rem 1.2rem; }
.tn-feature p { margin: 0; font-weight: 500; }
.tn-feature__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--art-cream); color: var(--art-bronze); }
.tn-feature__icon .icon { width: 22px; height: 22px; }
.tn-timeline { list-style: none; counter-reset: tl; padding: 0; margin: 0; position: relative; }
.tn-timeline::before { content: ""; position: absolute; left: 1.15rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--art-line); }
.tn-timeline li { counter-increment: tl; position: relative; padding: 0 0 1.6rem 3.4rem; display: grid; gap: .2rem; }
.tn-timeline li:last-child { padding-bottom: 0; }
.tn-timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--art-black); color: var(--art-gold); font-family: var(--font-title); font-weight: 800; }
.tn-timeline span { color: var(--art-grey); }
.tn-guarantee { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; border-radius: 18px; background: #eaf7ef; border: 1px solid #bfe5cc; }
.tn-guarantee p { margin: 0; }
.tn-guarantee__icon { flex: none; color: #1f9d55; }
.tn-guarantee__icon .icon { width: 44px; height: 44px; }

/* FAQ --------------------------------------------------------------------- */
.tn-faq { display: grid; gap: .7rem; margin-bottom: 2rem; }
.tn-faq__item { background: #fff; border: 1px solid var(--art-line); border-radius: var(--art-radius); padding: 0 1.2rem; }
.tn-faq__item summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 700; position: relative; }
.tn-faq__item summary::-webkit-details-marker { display: none; }
.tn-faq__item summary::after { content: "+"; position: absolute; right: 0; top: .75rem; font-size: 1.4rem; color: var(--art-orange); }
.tn-faq__item[open] summary::after { content: "−"; }
.tn-faq__item p { margin: 0 0 1.1rem; color: var(--art-grey); }

/* Paiement, vidéo, WhatsApp ----------------------------------------------- */
.tn-pay { display: grid; gap: .4rem; }
.tn-pay .btn { width: 100%; }
.tn-btn-wa { background: #25d366; border-color: #25d366; color: #0b3d1f; }
.tn-btn-wa:hover, .tn-btn-wa:focus-visible { background: #1fbd5b; border-color: #1fbd5b; color: #0b3d1f; }
.tn-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.tn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tn-warning { padding: 1rem; border: 2px dashed var(--art-orange); border-radius: var(--art-radius); color: var(--art-bronze); }

/* Bouton collant (téléphone) ---------------------------------------------- */
.tn-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(18, 19, 20, .96); }
.tn-sticky__btn { width: 100%; }
@media (min-width: 900px) { .tn-sticky { display: none; } }
@media (max-width: 899px) { body.has-tn-sticky .art-wa { bottom: 86px; } body.has-tn-sticky { padding-bottom: 76px; } }

/* Le délai de réponse du formulaire est remplacé par la promesse du tunnel. */
.is-tunnel .art-form__reassure { display: none; }

/* Pied de page ------------------------------------------------------------ */
.tn-footer { background: var(--art-black); color: rgba(255, 255, 255, .65); font-size: .9rem; padding: 1.6rem 0; }
.tn-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.tn-footer p { margin: 0; }
.tn-footer a { color: rgba(255, 255, 255, .8); }

/* Logo personnalisé ------------------------------------------------------- */
.tn-brand--custom img { max-height: 52px; width: auto; }
@media (max-width: 640px) { .tn-brand--custom img { max-height: 40px; } }
