/* Fiches produit (chargée uniquement sur les produits, voir functions/atelier.php). */

/* ---------- Description (tous les produits ; ateliers : bandeau .sitz-details sous la fiche) ---------- */
body.single-product .summary .product_content { color : #000000; margin-top : 40px; max-width : 640px; }
body.single-product :is(.summary .product_content, .sitz-details) .wpb_row, body.single-product :is(.summary .product_content, .sitz-details) .wpb_column, body.single-product :is(.summary .product_content, .sitz-details) .wpb_content_element { margin-bottom : 0 !important; padding : 0 !important; }
body.single-product :is(.summary .product_content, .sitz-details) .row-bg-wrap { display : none; }
body.single-product :is(.summary .product_content, .sitz-details) .wpb_row > .col, body.single-product :is(.summary .product_content, .sitz-details) .wpb_column { float : none; margin-left : 0 !important; margin-right : 0 !important; width : 100% !important; }
body.single-product :is(.summary .product_content, .sitz-details) p, body.single-product :is(.summary .product_content, .sitz-details) li { font-size : 16px; line-height : 1.6; }
body.single-product :is(.summary .product_content, .sitz-details) p { margin : 0 0 12px; padding-bottom : 0 !important; }
body.single-product :is(.summary .product_content, .sitz-details) h2, body.single-product :is(.summary .product_content, .sitz-details) h3 { border-top : 1px solid rgba(0, 0, 0, .1); color : #000000; font-family : 'Mulish', sans-serif; font-size : 13px; font-weight : 600; letter-spacing : .2em; line-height : 1.4; margin : 28px 0 12px; padding-top : 24px; text-transform : uppercase; }
body.single-product :is(.summary .product_content, .sitz-details) .wpb_wrapper > h2:first-child, body.single-product :is(.summary .product_content, .sitz-details) > h2:first-child { border-top : none; margin-top : 0; padding-top : 0; }
body.single-product :is(.summary .product_content, .sitz-details) ul, body.single-product :is(.summary .product_content, .sitz-details) ol { list-style : none; margin : 0 0 12px !important; padding : 0 !important; }
body.single-product :is(.summary .product_content, .sitz-details) li { list-style : none !important; margin : 0 0 6px; padding-left : 24px; position : relative; }
body.single-product :is(.summary .product_content, .sitz-details) ul > li::before { background-color : #fb9275; content : ''; height : 2px; left : 2px; position : absolute; top : .8em; width : 10px; }
body.single-product :is(.summary .product_content, .sitz-details) ol { counter-reset : sitz-step; }
body.single-product :is(.summary .product_content, .sitz-details) ol > li { counter-increment : sitz-step; }
body.single-product :is(.summary .product_content, .sitz-details) ol > li::before { color : #fb9275; content : counter(sitz-step); font-weight : 700; left : 2px; position : absolute; top : 0; }
body.single-product :is(.summary .product_content, .sitz-details) a { border-bottom : 1px solid #fb9275; color : #000000; }
body.single-product :is(.summary .product_content, .sitz-details) a:hover, body.single-product :is(.summary .product_content, .sitz-details) a:focus-visible { color : #fb9275; }

/* ---------- Ateliers ---------- */
body.sitz-atelier div.product .product_title { font-size : clamp(24px, 2.2vw, 34px); letter-spacing : .12em; }
.sitz-price-unit { color : rgba(0, 0, 0, .6); font-size : .6em; }

/* Points clés */
.sitz-highlights { display : grid; gap : 10px 24px; grid-template-columns : repeat(2, minmax(0, 1fr)); list-style : none; margin : 4px 0 32px !important; padding : 0 !important; }
.sitz-highlights li { color : #000000; font-size : 15px; line-height : 1.4; list-style : none; margin : 0; padding-left : 24px; position : relative; }
.sitz-highlights li::before { border-bottom : 2px solid #fb9275; border-left : 2px solid #fb9275; content : ''; height : 5px; left : 2px; position : absolute; top : .32em; transform : rotate(-45deg); width : 10px; }

/* Total et tarif duo */
.woocommerce div.product form.cart .sitz-total, .sitz-total { color : rgba(0, 0, 0, .7); font-size : 14px !important; line-height : 1.4; margin : 12px 0 4px; padding : 0 !important; }
.sitz-total.is-total { color : #000000; font-size : 16px !important; font-weight : 600; }
.sitz-total del { color : rgba(0, 0, 0, .5); font-weight : 400; }

/* Lien croisé atelier ↔ carte cadeau */
.woocommerce .summary p.sitz-crosslink { font-size : 15px; margin : 0; padding-bottom : 0 !important; }
.sitz-crosslink a { border-bottom : 2px solid #fb9275; color : #000000; font-weight : 600; transition : color .15s; }
.sitz-crosslink a:hover, .sitz-crosslink a:focus-visible { color : #fb9275; }

/* ---------- Ateliers : bandeau de description sous la fiche ---------- */
/* Fond gris étendu à toute la largeur de l'écran sans sortir du conteneur (ombre + découpe horizontale). */
body.single-product .sitz-details { background : #f4f4f4; box-shadow : 0 0 0 100vmax #f4f4f4; clear : both; clip-path : inset(0 -100vmax); color : #000000; margin : 80px 0 0; padding : 64px 0; }
body.single-product .sitz-details .sitz-sections { display : grid; gap : 40px 64px; grid-template-columns : repeat(auto-fit, minmax(240px, 1fr)); }
body.single-product .sitz-details .sitz-section--intro { grid-column : 1 / -1; max-width : 760px; }
body.single-product .sitz-details .sitz-section h2 { border-top : none; margin-top : 0; padding-top : 0; }
body.single-product .sitz-details .sitz-section > :last-child { margin-bottom : 0 !important; }
/* Le bandeau rejoint directement le pied de page (marge basse de 50 px du conteneur Salient). */
body.sitz-atelier .container-wrap:has(.sitz-details) { padding-bottom : 0 !important; }

/* Image fixe pendant le défilement (desktop) : accompagne le choix de la séance ou de la formule.
   La colonne de l'image est étirée à la hauteur du résumé (conteneur flex de Salient) : c'est la
   galerie, à l'intérieur, qui reste visible. Salient met « overflow : hidden » sur <body>, ce qui en
   fait un conteneur de défilement et neutralise tout « sticky » : « clip » empêche toujours le
   débordement horizontal sans cet effet (navigateurs anciens : image simplement non fixe).
   140 px = en-tête fixe (110 px) + 30 px d'air. « !important » : Salient impose « position : relative » à la galerie. */
@media only screen and (min-width : 1000px) {
    body.sitz-atelier { overflow-x : clip; overflow-y : visible; }
    body.sitz-atelier .single-product-main-image > .woocommerce-product-gallery { position : sticky !important; top : 140px; }
}
@media only screen and (max-width : 999px) {
    body.single-product .sitz-details { margin-top : 48px; padding : 48px 0; }
    body.single-product .sitz-details .sitz-sections { gap : 32px; }
}

@media (prefers-reduced-motion : reduce) {
    .sitz-crosslink a { transition : none; }
}
@media only screen and (max-width : 379px) {
    .sitz-highlights { grid-template-columns : 1fr; }
}
