/* Gabarit commun des pages Prestations et Thématiques (préfixe tp-).
   Chargé après style.css. */

/* ── HERO ── */
.tp-hero{
  position:relative;padding:8.5rem 4% 4.5rem;overflow:hidden;
  background:linear-gradient(135deg, rgb(var(--primary-rgb) / .06) 0%, rgb(var(--secondary-rgb) / .05) 40%, var(--bg) 100%);
}
.tp-hero-content{position:relative;z-index:1;max-width:720px}
/* Le fil d'Ariane est un <nav> : on neutralise les styles du menu principal (nav{position:fixed...} dans style.css) */
.tp-breadcrumb{position:static;display:block;padding:0;background:none;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:auto;font-size:.78rem;color:var(--muted);margin-bottom:1.25rem}
.tp-breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem}
.tp-breadcrumb li+li::before{content:'›';margin-right:.35rem;opacity:.6}
.tp-breadcrumb a{color:var(--muted);text-decoration:none}
.tp-breadcrumb a:hover{color:var(--primary)}
.tp-hero h1{font-size:clamp(2.1rem,4.8vw,3.2rem);font-weight:900;color:var(--text);line-height:1.1;letter-spacing:-.03em;margin-bottom:1.1rem;text-wrap:balance}
.tp-hero h1 em{font-style:normal;color:var(--primary)}
.tp-hero-sub{font-size:1rem;color:var(--muted);line-height:1.8;max-width:600px;margin-bottom:2rem}
.tp-actions{display:flex;gap:1rem;flex-wrap:wrap}
.tp-tags{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:-.75rem 0 1.75rem}
.tp-tags li{font-size:.78rem;font-weight:700;color:var(--secondary-text);background:var(--secondary-light);padding:.35rem .85rem;border-radius:999px}

/* ── SECTIONS ── */
.tp-section{padding:5rem 4%}
.tp-section.alt{background:var(--bg2)}
.tp-section.muted{background:var(--bg3)}
.tp-head{max-width:680px;margin-bottom:2.5rem}
.tp-head p{font-size:.95rem;color:var(--muted);line-height:1.8}
.tp-prose{max-width:720px}
.tp-prose p{font-size:.95rem;color:var(--muted);line-height:1.85;margin-bottom:1.1rem}
.tp-prose strong{color:var(--text)}

/* Cartes (situations, enjeux, bénéfices) */
.tp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}
.tp-card{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:1.6rem}
.tp-section.alt .tp-card{background:var(--bg)}
.tp-card-icon{width:42px;height:42px;border-radius:12px;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1.15rem;margin-bottom:1rem}
.tp-card h3{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:.45rem;line-height:1.35}
.tp-card p{font-size:.87rem;color:var(--muted);line-height:1.7}

/* Liste « ce qui est inclus » */
.tp-included{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.85rem 2rem;list-style:none}
.tp-included li{display:flex;gap:.7rem;align-items:flex-start;font-size:.92rem;color:var(--text);line-height:1.6}
.tp-included li::before{content:'✓';color:var(--secondary-text);font-weight:800;flex-shrink:0}
.tp-included li span{color:var(--muted)}

/* Déroulé en étapes */
.tp-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1.25rem;list-style:none;counter-reset:step}
.tp-steps li{counter-increment:step;background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:1.5rem}
.tp-steps li::before{content:counter(step,decimal-leading-zero);display:block;font-size:.78rem;font-weight:800;letter-spacing:.1em;color:var(--primary);margin-bottom:.6rem}
.tp-steps h3{font-size:.98rem;font-weight:700;margin-bottom:.4rem}
.tp-steps p{font-size:.85rem;color:var(--muted);line-height:1.7}

/* Bloc tarif */
.tp-price{display:grid;grid-template-columns:1.1fr 1fr;gap:2rem;align-items:center;background:var(--bg2);border:1.5px solid var(--primary);border-radius:20px;padding:2.25rem;box-shadow:var(--shadow-md)}
.tp-price-label{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:.5rem}
.tp-price-amount{font-size:clamp(1.6rem,3vw,2.1rem);font-weight:900;color:var(--text);letter-spacing:-.02em;line-height:1.2}
.tp-price-amount small{font-size:.85rem;font-weight:500;color:var(--muted);letter-spacing:0}
.tp-price-detail{font-size:.86rem;color:var(--muted);line-height:1.7;margin-top:.6rem}
.tp-price-side{font-size:.86rem;color:var(--muted);line-height:1.75}
.tp-price-side .btn{margin-top:1rem}

/* Offre recommandée (pages Thématiques) */
.tp-reco{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}
.tp-reco-card{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:1.6rem;display:flex;flex-direction:column;gap:.5rem}
.tp-reco-card.main{border:1.5px solid var(--primary);box-shadow:var(--shadow-sm)}
.tp-reco-card h3{font-size:1.02rem;font-weight:700}
.tp-reco-card p{font-size:.87rem;color:var(--muted);line-height:1.7;flex:1}
.tp-reco-card .tp-reco-price{font-size:.88rem;font-weight:700;color:var(--text)}
.tp-reco-card a{font-size:.88rem;font-weight:600;color:var(--primary);text-decoration:none}
.tp-reco-card a:hover{text-decoration:underline}

/* Témoignage réel */
.tp-quote{max-width:760px;background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:2rem 2.25rem;margin-top:2.5rem}
.tp-quote blockquote{font-size:.95rem;color:var(--text);line-height:1.85;font-style:italic;margin-bottom:1rem}
.tp-quote figcaption{font-size:.84rem;color:var(--muted)}
.tp-quote figcaption strong{color:var(--text);font-style:normal}

/* Références (rendues par js/pages.js depuis data/projets.json) */
.tp-refs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.25rem}
.tp-ref{display:flex;flex-direction:column;background:var(--bg2);border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}
.tp-ref:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.tp-ref img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:var(--bg3)}
.tp-ref-body{padding:1rem 1.15rem 1.2rem}
.tp-ref-client{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--secondary-text);margin-bottom:.25rem}
.tp-ref-title{font-size:.95rem;font-weight:700;color:var(--text);margin-bottom:.3rem}
.tp-ref-desc{font-size:.8rem;color:var(--muted);line-height:1.6}
.tp-refs-more{margin-top:1.5rem;font-size:.9rem}
.tp-refs-more a{color:var(--primary);font-weight:600;text-decoration:none}
.tp-refs-more a:hover{text-decoration:underline}

/* FAQ */
.tp-faq{display:flex;flex-direction:column;gap:.85rem;max-width:820px}
.tp-faq details{background:var(--bg2);border:1px solid var(--border);border-radius:14px;transition:border-color .2s}
.tp-faq details[open]{border-color:var(--primary)}
.tp-faq summary{list-style:none;cursor:pointer;padding:1.15rem 1.4rem;font-size:.95rem;font-weight:600;color:var(--text);display:flex;justify-content:space-between;gap:1rem;align-items:center}
.tp-faq summary::-webkit-details-marker{display:none}
.tp-faq summary::after{content:'+';font-size:1.3rem;font-weight:400;color:var(--primary);flex-shrink:0;transition:transform .25s}
.tp-faq details[open] summary::after{transform:rotate(45deg)}
.tp-faq details p{padding:0 1.4rem 1.25rem;font-size:.88rem;color:var(--muted);line-height:1.75}

/* Liens vers les autres prestations */
.tp-siblings{display:flex;flex-wrap:wrap;gap:.6rem}
.tp-siblings a{font-size:.85rem;font-weight:600;color:var(--text);text-decoration:none;border:1px solid var(--border2);border-radius:999px;padding:.5rem 1.1rem;transition:border-color .2s,color .2s}
.tp-siblings a:hover{border-color:var(--primary);color:var(--primary)}

/* Pages Objectifs : tableaux, bloc tarifs, encadré de clarté */
.tp-table{width:100%;max-width:820px;border-collapse:collapse;background:var(--bg2);border:1px solid var(--border);border-radius:16px;overflow:hidden;font-variant-numeric:tabular-nums}
.tp-table th,.tp-table td{padding:1rem 1.25rem;text-align:left;border-top:1px solid var(--border);font-size:.92rem;vertical-align:top}
.tp-table thead th{border-top:none;background:var(--primary);color:#fff;font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.tp-table tbody th{font-weight:700;color:var(--text)}
.tp-table tbody th span{display:block;font-size:.8rem;font-weight:400;color:var(--muted);margin-top:.15rem}
.tp-table td{color:var(--muted)}
.tp-pricebox .tp-table td{color:var(--text);font-weight:700;white-space:nowrap}
.tp-table-rythme tbody th{white-space:nowrap;color:var(--primary)}
.tp-note{margin-top:1.25rem;font-size:.92rem;color:var(--text);background:var(--secondary-light);border-radius:12px;padding:.85rem 1.1rem;max-width:820px}
.tp-pricebox{max-width:820px}
.tp-pricebox-notes{list-style:none;margin:1.5rem 0;display:flex;flex-direction:column;gap:.6rem}
.tp-pricebox-notes li{font-size:.9rem;color:var(--muted);line-height:1.7;padding-left:1.5rem;position:relative}
.tp-pricebox-notes li::before{content:'→';position:absolute;left:0;color:var(--secondary-text);font-weight:700}
.tp-pricebox-notes strong{color:var(--text)}
.tp-pricebox-reco{font-size:.92rem;color:var(--text);line-height:1.75;margin-bottom:1.5rem}
.tp-callout{margin-top:2.5rem;max-width:820px;border-left:4px solid var(--primary);background:var(--primary-light);border-radius:0 14px 14px 0;padding:1.4rem 1.6rem}
.tp-callout h3{font-size:1rem;font-weight:700;margin-bottom:.5rem}
.tp-callout p{font-size:.9rem;color:var(--text);line-height:1.75}
.tp-callout a,.tp-card a{color:var(--primary);font-weight:600}
.tp-cta-more{margin-top:1.75rem;font-size:.88rem;color:rgba(255,255,255,.7)}
.tp-cta-more a{color:#fff;font-weight:600}
@media(max-width:640px){
  .tp-pricebox .tp-table thead,.tp-table-stack thead{display:none}
  .tp-pricebox .tp-table,.tp-table-stack,.tp-pricebox .tp-table tbody,.tp-table-stack tbody,.tp-pricebox .tp-table tr,.tp-table-stack tr,.tp-pricebox .tp-table th,.tp-table-stack th,.tp-pricebox .tp-table td,.tp-table-stack td{display:block;width:100%}
  .tp-pricebox .tp-table tr,.tp-table-stack tr{border-top:1px solid var(--border);padding:.5rem 0}
  .tp-pricebox .tp-table th,.tp-table-stack th,.tp-pricebox .tp-table td,.tp-table-stack td{border-top:none;padding:.35rem 1.1rem}
  .tp-pricebox .tp-table td,.tp-table-stack td{display:flex;justify-content:space-between}
  .tp-pricebox .tp-table td::before,.tp-table-stack td::before{content:attr(data-label);font-weight:500;color:var(--muted)}
  .tp-table-rythme tbody th{white-space:normal}
  .tp-table-stack td{display:block}
  .tp-table-stack td::before{display:block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:.15rem}
}

/* Liste dans une carte (Offre Kata) */
.tp-card-list{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.tp-card-list li{font-size:.86rem;color:var(--muted);line-height:1.65;padding-left:1.1rem;position:relative}
.tp-card-list li::before{content:'→';position:absolute;left:0;color:var(--secondary-text);font-weight:700}
.tp-card-list strong{color:var(--text)}
/* Liste dans un texte (page Le Sensei) */
.tp-prose-list{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin:0 0 1.1rem}
.tp-prose-list li{font-size:.95rem;color:var(--text);line-height:1.7;padding-left:1.3rem;position:relative}
.tp-prose-list li::before{content:'→';position:absolute;left:0;color:var(--secondary-text);font-weight:700}
.tp-prose a{color:var(--primary);font-weight:600}
/* Texte + portrait (page Le Sensei) */
.tp-split{display:grid;grid-template-columns:1.6fr 1fr;gap:3rem;align-items:center}
.tp-portrait{margin:0;max-width:320px;justify-self:center}
.tp-portrait img{display:block;width:100%;height:auto}
@media(max-width:768px){.tp-split{grid-template-columns:1fr}.tp-portrait{max-width:220px}}
.tp-callout p+p{margin-top:.75rem}

/* Formulaire d'intérêt (page Formation) */
.tp-form-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:start}
.tp-form{background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:2rem;box-shadow:var(--shadow-sm)}
.tp-form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.tp-form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.tp-form-group label{font-size:.78rem;font-weight:600;color:var(--muted)}
.tp-form-group .optional{font-weight:400}
.tp-form input[type=text],.tp-form input[type=email],.tp-form textarea{padding:.75rem 1rem;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:.9rem;color:var(--text);background:var(--bg);width:100%}
.tp-form input:focus,.tp-form textarea:focus{border-color:var(--primary);background:var(--bg2);outline:none}
.tp-form textarea{resize:vertical;min-height:90px}
.tp-form-consent{display:flex;gap:.65rem;align-items:flex-start;margin:.25rem 0 1.25rem}
.tp-form-consent input{width:1.1rem;height:1.1rem;flex-shrink:0;margin-top:.2rem;accent-color:var(--primary)}
.tp-form-consent label{font-size:.8rem;color:var(--muted);line-height:1.6}
.tp-form-consent a{color:var(--primary)}
.tp-form .btn{width:100%;justify-content:center}
.tp-form-status{margin-top:.85rem;font-size:.86rem;font-weight:600;min-height:1.2em}
.tp-form-status.ok{color:var(--secondary-text)}
.tp-form-status.err{color:#b4233a}
@media(max-width:768px){.tp-form-grid{grid-template-columns:1fr;gap:1.5rem}.tp-form-row{grid-template-columns:1fr}.tp-form{padding:1.5rem}}

/* Formule unique Zen : process, paiement, encart sur les pages Vos objectifs */
.tp-process{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.tp-process > li{background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:1.75rem;scroll-margin-top:100px}
.tp-process h3{font-size:1.15rem;font-weight:800;margin-bottom:.35rem}
.tp-process-num{margin-right:.45rem;text-decoration:underline;text-decoration-color:var(--secondary);text-decoration-thickness:3px;text-underline-offset:5px}
.tp-process > li > p{font-size:.9rem;color:var(--muted);margin-bottom:1rem}
.tp-pay{list-style:none;display:flex;flex-direction:column;gap:.45rem;margin:.6rem 0 1.25rem}
.tp-pay li{display:flex;justify-content:space-between;gap:1rem;font-size:.9rem;color:var(--muted);border-bottom:1px dotted var(--border2);padding-bottom:.45rem}
.tp-pay strong{color:var(--text);font-variant-numeric:tabular-nums}
.tp-split-2{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.tp-included-col{grid-template-columns:1fr}
.tp-zen-box{display:grid;grid-template-columns:1.2fr 1fr;gap:2.5rem;align-items:center;background:var(--bg2);border:1.5px solid var(--primary);border-radius:20px;padding:2.25rem;box-shadow:var(--shadow-md)}
.tp-zen-title{font-size:1.5rem;font-weight:900;letter-spacing:-.02em;margin:.25rem 0 .6rem}
.tp-zen-box p{font-size:.92rem;color:var(--muted);line-height:1.7}
.tp-zen-price .btn{margin-top:1.1rem}
@media(max-width:768px){
  .tp-process,.tp-split-2,.tp-zen-box{grid-template-columns:1fr}
  .tp-split-2{gap:1.5rem}
  .tp-zen-box{padding:1.6rem;gap:1.25rem}
}

/* Bloc partenaire « Un mot du pro » (fond sombre pour le logo blanc) */
.tp-pro{background:var(--dark);color:#fff;padding:5.5rem 4%}
.tp-pro-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:3.5rem;align-items:stretch}
.tp-pro-eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--secondary);margin-bottom:.75rem}
.tp-pro h2{font-size:clamp(1.8rem,3.4vw,2.5rem);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin-bottom:1.5rem}
.tp-pro-logo{display:block;width:160px;max-width:50%;height:auto;margin-bottom:1.25rem}
.tp-pro-intro{font-size:.95rem;color:rgba(255,255,255,.85);line-height:1.75;margin-bottom:1.5rem}
.tp-pro-quote{border-left:3px solid var(--secondary);padding-left:1.4rem;margin:0 0 1.5rem}
.tp-pro-quote p{font-size:.9rem;color:rgba(255,255,255,.75);line-height:1.85;margin-bottom:.9rem}
.tp-pro-quote p:last-child{margin-bottom:0;color:#fff}
.tp-pro-sign{font-size:.88rem;color:rgba(255,255,255,.7);margin-bottom:1.75rem}
.tp-pro-sign strong{color:#fff}
.tp-pro-link{background:var(--secondary);color:var(--on-secondary);padding:.8rem 1.7rem;font-weight:700}
.tp-pro-link:hover{transform:translateY(-2px)}
/* La photo occupe toute la hauteur du bloc, recadrée sur Marc */
.tp-pro-photos{display:flex;min-height:100%}
.tp-pro-photos figure{margin:0;flex:1;border-radius:16px;overflow:hidden;background:#1a1a24;position:relative;min-height:420px}
.tp-pro-photos img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
@media(max-width:900px){
  .tp-pro-grid{grid-template-columns:1fr;gap:2.5rem}
  .tp-pro-photos figure{min-height:0;aspect-ratio:4/5;max-height:560px}
  .tp-pro-photos img{object-position:50% 8%}
}
@media(max-width:768px){.tp-pro{padding:4rem 1.25rem}}

/* CTA final */
.tp-cta{background:var(--dark);color:#fff;text-align:center;padding:5rem 4%}
.tp-cta h2{font-size:clamp(1.7rem,3.4vw,2.4rem);font-weight:800;letter-spacing:-.02em;line-height:1.2;margin-bottom:.9rem;text-wrap:balance}
.tp-cta h2 em{font-style:normal;color:var(--secondary)}
.tp-cta p{color:rgba(255,255,255,.75);font-size:.95rem;line-height:1.75;max-width:560px;margin:0 auto 2rem}
.tp-cta .tp-actions{justify-content:center}
.tp-cta .btn-ghost{color:#fff;border-color:rgba(255,255,255,.45)}
.tp-cta .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:#fff;color:#fff}

@media(max-width:768px){
  .tp-hero{padding:7rem 1.25rem 3.5rem}
  .tp-section,.tp-cta{padding:3.75rem 1.25rem}
  .tp-price{grid-template-columns:1fr;padding:1.6rem}
}
@media(prefers-reduced-motion:reduce){
  .tp-ref,.tp-faq summary::after{transition:none}
}

/* Galerie photos (page Studio) : emplacements visibles tant que les photos manquent */
.tp-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.tp-photo{aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--bg3);border:1.5px dashed var(--border2);display:flex;align-items:center;justify-content:center}
.tp-photo span{font-size:.8rem;color:var(--muted)}
.tp-photo img{width:100%;height:100%;object-fit:cover;display:block}
.tp-photo:has(img){border:none}
.tp-reco-card h3 .dropdown-tag{vertical-align:middle;margin-left:.4rem}
