/* Fiche produit à personnalisation guidée (vue/main/templates/fiche-template.php). Tout est préfixé .tpl-
   Couleurs : celles du site (19/11/2026), comme le menu (vue/navigation/style.php) — texte #242424, titres #1b2a2f,
   texte secondaire #747474 / #595959, filets #e7e7e7 / #d9d9d9, gris clair #f1f1f1, bleu d'action #0949d2 (bouton,
   choix retenu, liens), bleu #5b8ef6 (focus). Rouge sombre gardé pour les erreurs, ambre pour l'avertissement. */
.tpl-fiche{--tpl-encre:#242424;--tpl-titre:#1b2a2f;--tpl-doux:#747474;--tpl-trait:#e7e7e7;--tpl-accent:#0949d2;--tpl-pale:#eef3fe;--tpl-erreur:#b13d2f;max-width:1320px;margin:0 auto;padding:0 30px 40px;color:var(--tpl-encre);font-size:15px;line-height:1.5;text-align:left}
/* Le gabarit pose overflow:hidden sur <main> : l'aperçu ne pouvait pas rester collant pendant le défilement du formulaire */
.tpl-fiche{overflow:visible;overflow-x:clip}
.tpl-fiche *{box-sizing:border-box}
.tpl-fiche button,.tpl-fiche input{font:inherit}
.tpl-fiche button:focus-visible,.tpl-fiche input:focus-visible{outline:3px solid #5b8ef6;outline-offset:3px}
.tpl-ariane{font-size:12px;color:#747474;padding:18px 0}
.tpl-ariane a{color:inherit;text-decoration:none}
.tpl-ariane span{color:#242424;font-weight:700}
.tpl-grille{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(400px,.92fr);grid-template-areas:"galerie intro" "galerie etapes";grid-template-rows:auto 1fr;column-gap:44px;align-items:start}
.tpl-intro{grid-area:intro;padding-bottom:24px}
.tpl-galerie{grid-area:galerie;position:sticky;top:86px;min-width:0}
.tpl-etapes{grid-area:etapes;min-width:0}
.tpl-surtitre{font-size:12px;letter-spacing:.14em;color:var(--tpl-accent);font-weight:800;text-transform:uppercase;margin:0 0 8px}
.tpl-intro h1{text-align:left;font-family:inherit;font-size:34px;line-height:1.12;letter-spacing:-.02em;margin:0 0 12px;font-weight:800;color:var(--tpl-titre)}
.tpl-accroche{color:var(--tpl-doux);margin:0 0 12px}
.tpl-prix{margin:0 0 12px}
.tpl-prix strong{font-size:26px;font-weight:800}
.tpl-prix span{font-size:12px;color:var(--tpl-doux);margin-left:6px}
.tpl-atouts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.tpl-atouts li{font-size:12px;font-weight:700;background:#f1f1f1;border:1px solid #e7e7e7;border-radius:18px;padding:6px 10px}
/* Fond de l'aperçu : beige gardé à la demande de Tom (19/11/2026) — un t-shirt blanc s'en détache mieux que d'un gris */
.tpl-visionneuse{position:relative;background:#f3e3c9;border-radius:20px;overflow:hidden;aspect-ratio:1/1}
.tpl-apercu{position:absolute;inset:0}
.tpl-apercu svg{display:block;width:100%;height:100%}
.tpl-medaillon{position:absolute;right:3%;bottom:3%;width:40%;aspect-ratio:1/1;border-radius:50%;overflow:hidden;border:5px solid #fff;background:#f3e3c9;box-shadow:0 6px 22px rgba(60,40,10,.18);z-index:2}
.tpl-medaillon[hidden]{display:none}
.tpl-medaillon svg{display:block;width:100%;height:100%}
.tpl-etape{border-top:1px solid var(--tpl-trait);padding:20px 0}
.tpl-etape-tete{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.tpl-etape h2{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;margin:0;color:var(--tpl-titre)}
.tpl-num{display:inline-grid;place-items:center;background:var(--tpl-pale);color:var(--tpl-accent);width:27px;height:27px;font-size:12px;font-weight:800;border-radius:50%;flex:none}
.tpl-aide,.tpl-note{font-size:12px;color:#747474}
.tpl-note{margin:10px 0 0}
.tpl-champ{border:1.4px solid #d9d9d9;border-radius:11px;padding:10px 13px;background:#fff;min-height:48px;color:#242424;font-size:16px;width:100%}
.tpl-champ:focus{border-color:var(--tpl-accent)}
.tpl-champ.invalide{border-color:var(--tpl-erreur)}
.tpl-annee{display:flex;gap:12px;align-items:center}
.tpl-annee .tpl-champ{width:150px;font-weight:800;letter-spacing:.04em}
.tpl-emplacement{font-size:13px;color:#595959;background:#f1f1f1;border-radius:10px;padding:12px}
.tpl-prenoms{display:grid;gap:9px}
.tpl-prenom{display:grid;grid-template-columns:24px 1fr 44px;align-items:center;gap:8px}
.tpl-prenom span{font-size:13px;color:#747474;font-weight:800}
.tpl-prenom button{border:0;background:transparent;color:#747474;font-size:24px;line-height:1;border-radius:8px;min-height:44px;cursor:pointer}
.tpl-prenom button:hover{background:#f9e9e6;color:#a94737}
.tpl-prenom button:disabled{opacity:.3;cursor:not-allowed}
.tpl-ajouter-prenom{background:transparent;border:0;color:var(--tpl-accent);font-weight:800;font-size:14px;padding:12px 0 0;min-height:44px;cursor:pointer}
.tpl-ajouter-prenom:disabled{opacity:.45;cursor:not-allowed}
.tpl-erreur{color:var(--tpl-erreur);font-size:13px;margin:8px 0 0;min-height:0}
.tpl-erreur:empty{display:none}
.tpl-libelle{font-size:13px;color:#595959;margin:12px 0 8px;font-weight:700}
.tpl-libelle:first-of-type{margin-top:0}
.tpl-libelle strong{color:var(--tpl-encre)}
.tpl-pastilles{display:flex;gap:6px;flex-wrap:wrap}
.tpl-pastille{background:transparent;border:0;padding:5px;border-radius:50%;cursor:pointer;line-height:0}
.tpl-pastille i{display:block;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.tpl-pastille.choisie i{outline:2px solid var(--tpl-accent);outline-offset:3px}
.tpl-polices{display:flex;gap:8px;flex-wrap:wrap}
.tpl-police{min-height:46px;border-radius:10px;border:1.2px solid #d9d9d9;background:#fff;color:#242424;font-size:16px;cursor:pointer;padding:0 14px}
.tpl-police.choisie{border-color:var(--tpl-accent);background:var(--tpl-pale);color:#0949d2}
.tpl-tailles{display:flex;gap:8px;flex-wrap:wrap}
.tpl-taille{min-width:54px;min-height:46px;border-radius:10px;border:1.2px solid #d9d9d9;background:#fff;color:#595959;font-weight:800;font-size:13px;cursor:pointer;padding:0 10px}
.tpl-taille.choisie{border-color:var(--tpl-accent);background:var(--tpl-pale);color:#0949d2}
.tpl-vues{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.tpl-vue{min-height:40px;border-radius:20px;border:1.2px solid #d9d9d9;background:#fff;color:#595959;font-weight:700;font-size:13px;cursor:pointer;padding:0 14px}
.tpl-vue.choisie{border-color:var(--tpl-accent);background:var(--tpl-pale);color:#0949d2}
.tpl-vignettes{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.tpl-vignette{background:#fff;border:1.4px solid #d9d9d9;border-radius:12px;padding:4px;cursor:pointer;min-height:64px;line-height:0;color:#595959;font-size:13px;font-weight:700}
.tpl-vignette img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
.tpl-vignette.choisie{border-color:var(--tpl-accent);background:var(--tpl-pale);box-shadow:0 0 0 2px var(--tpl-accent)}
.tpl-vignette-sans{line-height:1.2}
#tpl-perso-decor{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
#tpl-perso-decor .tpl-vignette img{aspect-ratio:600/110}
.tpl-avatar{display:block;width:100%;height:auto;aspect-ratio:1/1}
.tpl-cfg .tpl-libelle{margin:14px 0 8px}
.tpl-cfg .tpl-libelle:first-child{margin-top:0}
.tpl-cfg-options{display:flex;flex-wrap:wrap;gap:8px}
.tpl-cfg-options .tpl-vignette{width:68px;min-height:68px;padding:3px}
.tpl-cfg-options .tpl-cfg-modele{width:auto;min-width:68px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 8px 6px;line-height:1.2;font-size:12px}
.tpl-cfg-modele .tpl-avatar{width:42px;aspect-ratio:3/4}
.tpl-enfant summary .tpl-avatar{width:33px;height:44px;aspect-ratio:auto;flex:none}
.tpl-enfant-corps{padding:4px 12px 12px}
.tpl-enfant-corps:empty{display:none}
.tpl-enfant-corps .tpl-vignettes{padding:0}
.tpl-prenom-avatar{display:block;width:36px;height:48px}
.tpl-prenom-avatar .tpl-avatar{width:36px;height:48px;aspect-ratio:auto}
.tpl-bascule{margin-bottom:10px}
.tpl-enfants{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.tpl-enfant{border:1.2px solid #d9d9d9;border-radius:12px;background:#fff;min-width:0}
.tpl-enfant-nom{white-space:nowrap}
.tpl-enfant summary{display:flex;align-items:center;gap:10px;padding:6px 12px;min-height:56px;cursor:pointer;list-style:none}
.tpl-enfant summary::-webkit-details-marker{display:none}
.tpl-enfant summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid #747474;border-bottom:2px solid #747474;transform:rotate(45deg);flex:none}
.tpl-enfant[open] summary::after{transform:rotate(-135deg)}
.tpl-enfant summary img{width:33px;height:44px;object-fit:contain;flex:none}
.tpl-enfant-nom{font-weight:800;font-size:14px}
.tpl-enfant-choix{font-size:12px;color:#747474;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tpl-enfant .tpl-vignettes{padding:4px 12px 12px}
.tpl-prenoms-lies{display:grid;gap:9px}
.tpl-prenom-lie{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px}
.tpl-prenom-lie img{width:36px;height:48px;object-fit:contain}
.tpl-prenom-lie span{font-size:13px;color:#747474;font-weight:800}
.tpl-confirmation{border:1.2px solid #e7c9a2;background:#fdf6ea;border-radius:12px;padding:12px 14px;margin:12px 0 0}
.tpl-confirmation[hidden]{display:none}
.tpl-confirmation p{margin:0 0 10px;font-size:13px}
.tpl-confirmation-actions{display:flex;gap:8px;flex-wrap:wrap}
.tpl-bouton-second{min-height:44px;border-radius:10px;border:1.2px solid #d9d9d9;background:#fff;color:#242424;font-weight:800;font-size:14px;cursor:pointer;padding:0 16px}
.tpl-bouton-retrait{border-color:var(--tpl-erreur);color:var(--tpl-erreur)}
.tpl-resume{border:1px solid #e7e7e7;border-radius:16px;background:#f9f9f9;padding:16px 18px}
.tpl-resume-titre{font-size:12px;font-weight:800;letter-spacing:.09em;color:#595959;text-transform:uppercase;margin:0 0 8px}
.tpl-resume dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:13px}
.tpl-resume dt{color:#595959;font-weight:400}
.tpl-resume dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.tpl-action{margin:16px 0 0}
.tpl-action-prix{display:none}
.tpl-bouton{display:block;width:100%;background:var(--tpl-accent);color:#fff;font-weight:800;font-size:16px;border:0;border-radius:13px;min-height:54px;cursor:pointer}
.tpl-bouton:hover{background:#073aa8}
.tpl-bouton:disabled{opacity:.6;cursor:wait}
.tpl-succes{background:var(--tpl-pale);border-radius:12px;padding:12px 14px;margin:12px 0 0;font-weight:700}
.tpl-succes a{color:var(--tpl-accent);text-decoration:underline;margin-left:8px;white-space:nowrap}
@media(max-width:1024px){
	.tpl-fiche{padding:0 20px 40px}
	.tpl-grille{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);column-gap:24px}
	.tpl-intro h1{font-size:28px}
}
@media(max-width:750px){
	.tpl-fiche{padding:0 16px 110px}
	.tpl-ariane{padding:12px 0;font-size:11px}
	.tpl-grille{display:flex;flex-direction:column;gap:16px}
	.tpl-galerie{position:static;width:100%}
	.tpl-etapes,.tpl-intro{width:100%}
	.tpl-intro h1{font-size:25px}
	.tpl-intro{padding-bottom:0}
	.tpl-visionneuse{border-radius:14px}
	.tpl-action{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.96);border-top:1px solid var(--tpl-trait);padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
	.tpl-action-prix{display:block;font-weight:800;font-size:18px;white-space:nowrap}
	.tpl-action .tpl-bouton{flex:1}
}
@media(prefers-reduced-motion:no-preference){
	.tpl-pastille i,.tpl-taille,.tpl-bouton{transition:background-color .15s ease,border-color .15s ease}
}
