/* Passion Danse : espace membre, parcours de costumes. Styles confinés à ce module. */
.pd27-preview { color: #28232b; font-family: inherit; max-width: 1180px; margin: 22px auto 60px; scroll-margin-top: 158px; }
.pd27-preview, .pd27-preview * { box-sizing: border-box; }
.pd27-preview__heading { border-radius: 18px; background: #fbf3e9; padding: clamp(22px, 3vw, 32px); margin: 0 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.pd27-preview__eyebrow { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a87335; }
.pd27-preview__heading h2 { font-family: inherit; font-size: clamp(1.85rem, 3vw, 2.45rem); font-weight: 700; line-height: 1.22; margin: 12px 0; color: #29232d; letter-spacing: .01em; }
.pd27-preview__heading p { margin: 0; max-width: 700px; line-height: 1.65; }
.pd27-preview__tag { display: inline-flex; border: 1px solid #e2bc91; background: white; color: #87581f; font-size: .76rem; font-weight: 750; padding: 7px 13px; border-radius: 999px; margin: 8px 0 22px; }
.pd27-preview__notice { border-radius: 13px; border: 1px solid #e9dcc9; background: #fff9f0; color: #61461f; padding: 16px 19px; margin: 19px 0; line-height: 1.6; }
.pd27-preview__warning { background: #fff5df; border: 1px solid #eddbb7; border-radius: 10px; padding: 11px; font-size: .85rem; color: #7d530f; }
.pd27-preview-dashboard { background: #fbf6ee; border: 1px solid #e5caa6; border-radius: 13px; padding: 20px; margin: 20px 0; }
.pd27-preview-dashboard p { margin: 7px 0 13px; }
.pd27-preview-dashboard .button { border-radius: 999px!important; background: #bd9055!important; border: 0!important; color: white!important; }
.pd27-wizard__progress { margin: 9px 0 27px; scroll-margin-top: 148px; }
.pd27-wizard__progress ol { list-style: none!important; padding: 0!important; margin: 0!important; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pd27-wizard__progress li { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .84rem; color: #837870; }
.pd27-wizard__progress li span { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #f5f0eb; color: #76634d; flex: 0 0 auto; border: 1px solid #e7dac8; font-weight: 800; }
.pd27-wizard__progress li.is-current { color: #302a2a; }
.pd27-wizard__progress li.is-current span { color: white; background: #c69a60; border-color: #c69a60; }
.pd27-wizard__progress li.is-complete span { color: #4f6b48; background: #eaf2e7; border-color: #d8e7d3; }
.pd27-wizard__stage[hidden], .pd27-wizard__measure[hidden], .pd27-wizard__error[hidden] { display: none!important; }
.pd27-wizard__section-head { margin: 4px 0 19px; }
.pd27-wizard__overline { color: #9d733d; text-transform: uppercase; letter-spacing: .07em; font-size: .73rem; font-weight: 780; }
.pd27-wizard__section-head h3 { font-family: inherit!important; color: #27212a; font-size: clamp(1.25rem,2vw,1.65rem); font-weight: 750; line-height: 1.3; margin: 7px 0; }
.pd27-wizard__section-head h3:focus { outline: none; }
.pd27-wizard__section-head p { margin: 0; color: #615b57; line-height: 1.55; }
.pd27-wizard__students { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd27-wizard__student { min-width: 0; border: 1px solid #e4ddd6; border-radius: 15px; padding: clamp(16px,2vw,22px); background: #fff; box-shadow: 0 8px 24px rgba(28,23,22,.035); transition: border-color .15s, box-shadow .15s; }
.pd27-wizard__student.is-selected { border-color: #c59b63; box-shadow: 0 0 0 2px #f0dfc6; }
.pd27-wizard__select-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 14px; }
.pd27-wizard__select-row input[type=checkbox] { margin: 0; width: 20px; height: 20px; accent-color: #b78548; flex: 0 0 auto; }
.pd27-wizard__student-name { min-width: 0; font: 750 1.05rem/1.35 system-ui,-apple-system,"Segoe UI",sans-serif!important; color: #27212b; flex: 1; }
.pd27-wizard__badge { border-radius: 999px; background: #fff2dd; color: #85581f; padding: 5px 10px; white-space: nowrap; font-size: .75rem; font-weight: 730; }
.pd27-wizard__course-list { list-style: none!important; margin: 0 0 14px!important; padding: 0!important; }
.pd27-wizard__course-list li { padding: 10px 0; border-bottom: 1px solid #f0e9e2; display: flex; align-items: baseline; justify-content: space-between; gap: 13px; line-height: 1.4; font-size: .89rem; }
.pd27-wizard__course-list li strong { font-size: .73rem; white-space: nowrap; color: #93652f; }
.pd27-wizard__person-total { background: #faf7f4; border-radius: 10px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd27-wizard__person-total span { font-size: .82rem; }
.pd27-wizard__person-total strong { font-size: 1.07rem; white-space: nowrap; }
.pd27-wizard__selection-total, .pd27-wizard__recap-total { color: #fff; background: #c49a62; border-radius: 14px; padding: 19px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; }
.pd27-wizard__selection-total > strong, .pd27-wizard__recap-total > strong { font-size: 1.5rem; white-space: nowrap; }
.pd27-wizard__selection-total span { font-size: .9rem; }
.pd27-wizard__selection-total span strong { font-weight: 800; }
.pd27-wizard__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 11px; margin: 23px 0; }
.pd27-wizard__button { border-radius: 999px!important; font-family: inherit!important; font-size: .93rem!important; font-weight: 700!important; line-height: 1.4!important; border: 1px solid #c49a62!important; padding: 12px 20px!important; cursor: pointer; transition: background-color .15s; }
.pd27-wizard__button--primary { background: #c49a62!important; color: white!important; }
.pd27-wizard__button--secondary { background: white!important; color: #835623!important; }
.pd27-wizard__button--primary:hover { background: #ae7e43!important; }
.pd27-wizard__button:disabled { background: #efebe7!important; color: #847d73!important; border-color: #e1d8cf!important; cursor: not-allowed; }
.pd27-wizard__button:focus-visible, .pd27-wizard__student input:focus-visible, .pd27-wizard__field :is(input,select):focus-visible { outline: 3px solid #2b65cc; outline-offset: 3px; }
.pd27-wizard__error { color: #9c2525; font-weight: 700; margin: 10px 0; }
.pd27-wizard__measure, .pd27-wizard__recap-person { border: 1px solid #e5ddd4; border-radius: 15px; background: white; padding: 23px; margin: 0 0 17px; }
.pd27-wizard__measure-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.pd27-wizard__measure-head h4, .pd27-wizard__recap-person h4 { color: #25222a; margin: 0; font: 750 1.12rem/1.35 system-ui,-apple-system,"Segoe UI",sans-serif!important; }
.pd27-wizard__measure-head span { font-size: .78rem; background: #fff2dd; color: #80521c; padding: 5px 12px; border-radius: 999px; }
.pd27-wizard__fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.pd27-wizard__field { min-width: 0; }
.pd27-wizard__field label { display: block; color: #403b39; font-size: .85rem; font-weight: 700; margin: 0 0 7px; line-height: 1.4; }
.pd27-wizard__field label span { color: #a53c37; }
.pd27-wizard__field :is(input,select) { box-sizing: border-box; display: block; width: 100%; border: 1px solid #cfc7bf; border-radius: 8px; min-height: 44px; padding: 9px 12px; background: #fff; color: #29242c; font-family: inherit; font-size: 1rem; }
.pd27-wizard__field :is(input,select):focus { border-color: #b1834b; }
.pd27-wizard__recap { display: grid; gap: 14px; }
.pd27-wizard__recap-person { margin: 0; }
.pd27-wizard__recap-person ul { list-style:none!important; margin: 10px 0 14px!important; padding: 0!important; }
.pd27-wizard__recap-person li { margin: 0; display:flex; align-items: baseline; justify-content:space-between; gap:18px; padding:8px 0; border-bottom:1px solid #f1eae4; font-size:.9rem; }
.pd27-wizard__recap-person li strong { white-space: nowrap; color: #8c5d25; font-size: .8rem; }
.pd27-wizard__recap-person dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: 7px; column-gap: 12px; margin: 14px 0; background: #faf7f4; padding: 14px; border-radius: 11px; }
.pd27-wizard__recap-person dt { margin: 0; color: #71675e; font-size: .86rem; }
.pd27-wizard__recap-person dd { margin: 0; font-weight: 700; font-size: .87rem; text-align: right; }
.pd27-wizard__recap-person-total { display: block; text-align: right; font-size: 1.1rem; white-space:nowrap; }
.pd27-wizard__payment { border: 1px solid #e5ddd4; border-radius: 13px; padding: 18px; margin: 17px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.pd27-wizard__payment legend { padding: 0 8px; font-weight: 750; color: #29242c; }
.pd27-wizard__payment label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 550; }
.pd27-wizard__payment input { accent-color: #b78548; }
.pd27-wizard__safety { margin-top: 20px; }
@media (max-width: 900px) { .pd27-wizard__students { grid-template-columns: 1fr; } .pd27-wizard__fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .pd27-preview { margin: 13px auto 40px; } .pd27-wizard__progress ol { gap: 5px; } .pd27-wizard__progress li { flex-direction: column; text-align: center; font-size: .7rem; gap: 5px; } .pd27-wizard__progress li span { width: 31px; height: 31px; } .pd27-wizard__select-row { flex-wrap: wrap; } .pd27-wizard__badge { margin-left: 28px; } .pd27-wizard__course-list li { flex-direction: column; gap: 3px; } .pd27-wizard__fields { grid-template-columns: 1fr; } .pd27-wizard__selection-total, .pd27-wizard__recap-total { align-items: flex-start; flex-direction: column; } .pd27-wizard__actions { justify-content: stretch; flex-direction: column-reverse; } .pd27-wizard__button { width: 100%; } }

/* Phase 2.1 - Informations contextuelles réparties par étape. */
.pd27-preview__hero-copy { min-width: 0; }
.pd27-preview__heading h2 { margin: 8px 0 11px; }
.pd27-preview__gala { min-width: 220px; max-width: 250px; border-left: 1px solid #dfc5a5; padding-left: 23px; }
.pd27-preview__gala-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color:#9b6e37; }
.pd27-preview__gala strong { display: block; margin-top: 6px; font-size: 1.16rem; color: #29212a; }
.pd27-preview__gala p { font-size: .81rem; line-height: 1.45; margin: 7px 0 0; color: #655b53; }
.pd27-wizard__faq { max-width: 780px; margin: 30px 0 6px; border-top: 1px solid #e9d9c6; padding-top: 18px; }
.pd27-wizard__faq h4 { font: 750 1rem/1.4 system-ui,-apple-system,Segoe UI,sans-serif!important; margin:0 0 8px; }
.pd27-wizard__faq-item { border-bottom: 1px solid #ede6df; }
.pd27-wizard__faq-item summary { cursor: pointer; padding: 13px 4px; font-size:.9rem; font-weight:600; color:#3c3332; }
.pd27-wizard__faq-item summary:focus-visible, .pd27-wizard__measure-guide summary:focus-visible, .pd27-wizard__measure-details summary:focus-visible { outline: 3px solid #2869b0; outline-offset: 3px; }
.pd27-wizard__faq-item p { color:#615b57; font-size:.86rem; line-height:1.6; margin:0; padding: 0 10px 15px; }
.pd27-wizard__measurement-layout { display:grid; grid-template-columns:minmax(0, 1.8fr) minmax(220px,1fr); gap:22px; align-items:start; }
.pd27-wizard__measures { min-width:0; }
.pd27-wizard__measure { padding: clamp(16px,2.3vw,23px); }
.pd27-wizard__measure-guide { position: sticky; top: 105px; border: 1px solid #e8d9c8; background:#fdf8f1; border-radius: 15px; padding: 17px 19px; }
.pd27-wizard__measure-guide > summary { color:#4b3523; font: 750 .99rem/1.4 system-ui,-apple-system,Segoe UI,sans-serif!important; cursor:pointer; }
.pd27-wizard__measure-guide[open] > summary { margin-bottom: 12px; }
.pd27-wizard__guide-intro, .pd27-wizard__guide-note { color:#5e544d; font-size:.82rem; line-height:1.55; margin:0 0 13px; }
.pd27-wizard__measure-guide ol { list-style:none!important; margin:0!important; padding:0!important; counter-reset: measure; }
.pd27-wizard__measure-guide li { position:relative; counter-increment:measure; padding:0 0 13px 33px; margin:0 0 13px; border-bottom: 1px solid #eaddca; font-size:.84rem; line-height:1.5; }
.pd27-wizard__measure-guide li:before { content: counter(measure); position:absolute; left:0; top:0; border-radius:50%; background:#c3995d; color:#fff; width:23px; height:23px; display:grid; place-items:center; font-weight:800; font-size:.78rem; }
.pd27-wizard__measure-guide li strong { display:block; color:#322827; }
.pd27-wizard__measure-guide li span { display:block; color:#665b52; }
.pd27-wizard__measure-guide li:last-child { border-bottom:0; margin-bottom:0; }
.pd27-wizard__guide-note { background:#fff; border-radius:9px; padding:10px; margin:4px 0 0; }
.pd27-wizard__recap-person { padding: 18px 20px; }
.pd27-wizard__recap-person-head { display:flex; align-items:baseline; justify-content:space-between; gap: 15px; }
.pd27-wizard__measure-details { margin-top:12px; border-radius: 10px; background: #faf7f4; padding: 11px 14px; }
.pd27-wizard__measure-details summary { cursor:pointer; font-size:.87rem; font-weight:700; color:#865a2a; }
.pd27-wizard__measure-details dl { padding: 12px 0 2px; background: transparent; margin: 0; }
.pd27-wizard__payment-hint { margin: 12px 0 3px; padding: 12px 14px; border-radius: 11px; background:#fff8eb; border:1px solid #efdfc7; color:#695130; font-size:.86rem; line-height:1.55; }
@media (min-width: 1160px) { .pd27-wizard__students { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .pd27-wizard__measurement-layout { grid-template-columns:1fr; } .pd27-wizard__measure-guide { position:static; } }
@media (max-width: 640px) {
 .pd27-preview__heading { grid-template-columns:1fr; gap:13px; padding:22px 18px; }
 .pd27-preview__gala { max-width:none; border-left:0; border-top:1px solid #e7ceb0; padding:11px 0 0; min-width:0; }
 .pd27-preview__gala p { margin-top:3px; }
 .pd27-preview__tag { margin:7px 0 17px; }
 .pd27-wizard__measurement-layout { display:flex; flex-direction:column; gap:14px; }
 .pd27-wizard__measure-guide { order:-1; width:100%; }
 .pd27-wizard__measures { width:100%; }
 .pd27-wizard__recap-person li { flex-direction:column; gap:3px; }
 .pd27-wizard__recap-person-head { align-items:center; }
}
@media (prefers-reduced-motion: reduce) {
 .pd27-wizard__student, .pd27-wizard__button { transition:none; }
}

/* v0.3.1 - Visuel historique de prise des mensurations : étape 2 uniquement. */
.pd27-wizard__guide-figure { margin: 0 0 12px; }
.pd27-wizard__guide-image-link { display:block; background:#fff; border-radius: 10px; border:1px solid #eadfce; padding:8px; text-align:center; text-decoration:none; }
.pd27-wizard__guide-image-link img { display:block; width:100%; max-width:100%; height:auto; max-height:460px; object-fit:contain; margin:auto; }
.pd27-wizard__guide-image-link:hover { border-color:#c3995d; }
.pd27-wizard__guide-image-link:focus-visible { outline:3px solid #2869b0; outline-offset:3px; }
.pd27-wizard__guide-figure figcaption { color:#786a5b; text-align:center; font-size:.77rem; line-height:1.5; margin-top:7px; }
@media (max-width:900px) {
  .pd27-wizard__guide-image-link img { max-height:380px; }
}
@media (max-width:640px) {
  .pd27-wizard__guide-image-link img { max-height:300px; }
}


/* v0.3.2 - Guide des mensurations lisible sur smartphone, sans changer la source. */
.pd27-wizard__guide-visual { display: block; position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #fff; }
.pd27-wizard__guide-visual img { display: block; width: 100%; height: auto; max-width: 100%; max-height: 460px; object-fit: contain; margin: auto; }
.pd27-wizard__guide-zoom-label { display: block; font-size: .86rem; font-weight: 750; padding: 9px 2px 4px; color: #755024; text-decoration: underline; text-underline-offset: 2px; }
.pd27-wizard__guide-mobile-instructions { display: none; }
.pd27-wizard__image-dialog { position: fixed; width: min(96vw, 950px); max-width: 96vw; max-height: 94dvh; padding: 12px; border: 1px solid #dfc6a9; background: white; border-radius: 14px; box-shadow: 0 18px 70px rgba(28,23,22,.28); }
.pd27-wizard__image-dialog::backdrop { background: rgba(19,17,21,.75); }
.pd27-wizard__image-dialog-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pd27-wizard__image-dialog img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(94dvh - 90px); object-fit: contain; }
.pd27-wizard__image-dialog-close { align-self: flex-end; padding: 8px 15px!important; border: 1px solid #c79e68!important; border-radius: 999px!important; background: #fff8ed!important; color: #53371c!important; font-weight: 750!important; font-size: .95rem!important; cursor: pointer; }
.pd27-wizard__image-dialog-close:focus-visible { outline: 3px solid #2869b0; outline-offset: 3px; }
@media (max-width: 640px) {
  .pd27-wizard__guide-intro, .pd27-wizard__guide-note { font-size: .94rem; line-height: 1.6; }
  .pd27-wizard__measure-guide { padding: 15px 14px; }
  .pd27-wizard__guide-image-link { padding: 6px; }
  .pd27-wizard__guide-visual { aspect-ratio: 4 / 5; max-height: 440px; }
  /* Zoom uniquement sur la colonne de gauche de l'image source (mannequin). */
  .pd27-wizard__guide-visual img { position: absolute; left: -3%; top: 50%; width: 165%; max-width: none; height: auto; max-height: none; transform: translateY(-50%); object-fit: initial; }
  .pd27-wizard__guide-desktop-caption { display: none; }
  .pd27-wizard__guide-zoom-label { font-size: 1rem; padding: 12px 4px 4px; }
  .pd27-wizard__guide-mobile-instructions { display: grid!important; gap: 12px; padding: 0!important; margin: 17px 0!important; list-style: none!important; counter-reset: pd27-guide; }
  .pd27-wizard__guide-mobile-instructions li { position: relative; padding: 0 0 12px 38px; margin: 0; border-bottom: 1px solid #eddfcf; counter-increment: pd27-guide; font-size: .96rem; line-height: 1.55; }
  .pd27-wizard__guide-mobile-instructions li::before { content: counter(pd27-guide); position: absolute; left: 0; top: 2px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: #ae7e43; font-size: .88rem; font-weight: 800; }
  .pd27-wizard__guide-mobile-instructions li:last-child { border-bottom: 0; padding-bottom: 0; }
  .pd27-wizard__guide-mobile-instructions li strong { display: block; color: #342820; font-size: 1rem; margin-bottom: 2px; }
  .pd27-wizard__guide-mobile-instructions li span { display: block; color: #51463e; }
  .pd27-wizard__image-dialog { padding: 9px; }
}

/* Phase 3A - zone d'enregistrement de TEST, visible par administrateurs uniquement. */
.pd27-wizard__test-ack { display:flex; align-items:flex-start; gap:10px; padding:15px 4px; font-size:.91rem; color:#47382b; line-height:1.5; cursor:pointer; }
.pd27-wizard__test-ack input { accent-color:#ad7d42; width:18px; height:18px; flex:none; margin-top:2px; }
.pd27-wizard__test-success { margin:17px 0 0; border:1px solid #8fbc93; background:#f0f9ef; color:#244a27; border-radius:12px; padding:19px; }
.pd27-wizard__test-success h4 { font-size:1.08rem; font-weight:800; margin:0 0 7px; }
.pd27-wizard__test-success p { margin:6px 0; line-height:1.5; }
.pd27-wizard__test-success a { display:inline-block; margin-top:10px; color:#365b38; font-weight:750; text-decoration:underline; }
.pd27-wizard__test-history { padding:16px 19px; border-radius:12px; border:1px solid #e6ccac; background:#fffaf1; margin:18px 0 25px; }
.pd27-wizard__test-history h3 { margin:0 0 10px; font-size:1rem; }
.pd27-wizard__test-history ul { margin:0 0 10px; padding-left:20px; }
.pd27-wizard__test-history li, .pd27-wizard__test-history p { font-size:.86rem; line-height:1.6; }

/* Phase 3B - Suivi des commandes TEST, visible uniquement par le compte de test. */
.pd27-wizard__test-history { border:1px solid #e6dacb; padding:18px; border-radius:15px; margin:18px 0 24px; background:#fcfaf7; }
.pd27-wizard__test-history h3 { font-size:1.05rem; margin:0 0 6px; }
.pd27-wizard__history-row { background:white; border:1px solid #ece4dc; border-radius:10px; padding:12px 14px; margin-top:11px; }
.pd27-wizard__history-row > strong { display:block; }
.pd27-wizard__history-row > span { font-size:.81rem; color:#70665e; }
.pd27-test-edit { margin-top:12px; }
.pd27-test-edit > summary { cursor:pointer; color:#845521; font-weight:700; padding:9px 0; }
.pd27-test-edit form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:end; }
.pd27-test-edit__field { display:grid; gap:5px; font-size:.83rem; font-weight:650; }
.pd27-test-edit__field input,.pd27-test-edit__field select { width:100%; min-height:40px; border-radius:7px; border:1px solid #d9c9b9; padding:7px; font-size:1rem; }
.pd27-test-edit form button,.pd27-test-edit form p { grid-column:1/-1; margin:0; }
.pd27-wizard__test-ack { display:block; margin:12px 0; line-height:1.55; font-size:.9rem; }
@media(max-width:640px){.pd27-test-edit form{grid-template-columns:1fr;}}

/* 0.5.1 - Page costumes plus large sans la navigation latérale WooCommerce.
   Sélecteurs limités à cet endpoint : aucun changement sur Mes inscriptions / Mon compte. */
body.pd27-costumes-endpoint .woocommerce-MyAccount-navigation { display:none!important; }
body.pd27-costumes-endpoint .woocommerce-MyAccount-content {
  float:none!important; width:100%!important; max-width:none!important;
  flex:1 1 100%!important; min-width:0!important; margin:0!important;
}
body.pd27-costumes-endpoint .woocommerce { width:100%; max-width:none; }
body.pd27-costumes-endpoint .pd27-preview { max-width:1400px; }
.pd27-preview__back {
  display:inline-flex; align-items:center; gap:8px; margin:0 0 16px;
  color:#805523; font-size:.9rem; font-weight:700; text-decoration:none;
  border-bottom:1px solid transparent;
}
.pd27-preview__back:hover { border-bottom-color:currentColor; }
.pd27-preview__back:focus-visible { outline:3px solid #2869b0; outline-offset:4px; }
@media (min-width:1050px) {
  .pd27-wizard__measurement-layout {grid-template-columns:minmax(0,1.42fr) minmax(350px,1fr); gap:24px;}
  .pd27-wizard__measure-guide {position:static; padding:21px 23px;}
  .pd27-wizard__guide-visual img {max-height:650px;}
}
.pd27-wizard__payment-option.is-unavailable { opacity:.45; cursor:not-allowed; }
.pd27-wizard__payment-option.is-unavailable input { cursor:not-allowed; }
.pd27-test-edit-result {
  margin:12px 0 4px; padding:11px 14px; border-radius:9px;
  border:1px solid #b6d3b4; background:#f0f9ef; color:#28592b;
  font-size:.89rem; font-weight:650;
}
.pd27-test-edit-result[hidden] {display:none!important;}
.pd27-wizard__history-updated {display:block; color:#526b41!important; font-size:.8rem; margin:4px 0;}

/* 0.5.2 - Actions de l'étape 2 au plus près des champs, indépendantes
   de la hauteur du schéma, sans barre flottante qui masquerait la saisie. */
.pd27-wizard__actions--measures {
  margin: 6px 0 22px;
  padding: 14px 0 0;
  border-top: 1px solid #eee6dd;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 640px) {
  .pd27-wizard__actions--measures {
    margin: 0 0 20px;
    padding-top: 14px;
    gap: 9px;
    flex-direction: column-reverse;
  }
  .pd27-wizard__actions--measures .pd27-wizard__button {
    min-height: 48px;
    width: 100%;
  }
}

/* 0.5.2 - L'historique occupe une seule ligne au-dessus du parcours.
   Les formulaires de correction restent accessibles en ouvrant ce panneau. */
.pd27-wizard__history-disclosure {
  margin: 18px 0 24px;
  border: 1px solid #e4d5c5;
  border-radius: 14px;
  background: #fcfaf7;
  overflow: clip;
}
.pd27-wizard__history-disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 18px;
  padding: 17px 20px;
  color: #4d3526;
}
.pd27-wizard__history-disclosure > summary::-webkit-details-marker { display:none; }
.pd27-wizard__history-disclosure > summary::before {
  content: '▸';
  color: #a3713a;
  font-weight: 700;
  margin-right: -9px;
}
.pd27-wizard__history-disclosure[open] > summary::before { content:'▾'; }
.pd27-wizard__history-disclosure > summary span { font-weight: 750; margin-right: auto; }
.pd27-wizard__history-disclosure > summary small { font-size: .79rem; color:#815626; }
.pd27-wizard__history-disclosure > summary:focus-visible { outline:3px solid #2869b0; outline-offset:-3px; }
.pd27-wizard__history-disclosure .pd27-wizard__test-history {
  margin: 0;
  border: 0;
  border-top: 1px solid #e8dcd0;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 640px) {
  .pd27-wizard__history-disclosure > summary { padding: 14px; }
  .pd27-wizard__history-disclosure > summary small { flex-basis: 100%; padding-left: 18px; }
}


/* v0.6.4 - Véritable écran final de commande, accessible après rechargement.
   Limité à l'endpoint costumes ; aucun impact sur les autres pages WooCommerce. */
.pd27-preview--confirmed { max-width: 1000px!important; margin: 28px auto 60px; }
.pd27-confirmation { border: 1px solid #e9d8c5; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px rgba(50,35,28,.045); }
.pd27-confirmation__hero { text-align:center; padding: clamp(26px,4vw,52px) 26px 27px; background: #f7fbf5; }
.pd27-confirmation__check { display:grid; place-items:center; width:76px; height:76px; margin:0 auto 18px; border-radius:50%; background:#e7f2e5; color:#366b3b; font-size:2.5rem; font-weight:700; }
.pd27-confirmation__eyebrow { margin:0 0 9px; font-size:.81rem; font-weight:750; color:#7b623d; letter-spacing:.05em; text-transform:uppercase; }
.pd27-confirmation h1 { color:#25462b!important; font-size:clamp(1.55rem,3vw,2.45rem)!important; line-height:1.22; margin:0 auto 12px; max-width:720px; }
.pd27-confirmation h1:focus { outline:none; }
.pd27-confirmation__intro { margin:0 auto; max-width:670px; line-height:1.6; color:#4d5c4d; }
.pd27-confirmation__keyfigures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:18px; border-bottom:1px solid #eae1d8; background:#fffefa; }
.pd27-confirmation__keyfigures > div { display:grid; text-align:center; gap:5px; padding:9px 5px; }
.pd27-confirmation__keyfigures > div + div { border-left:1px solid #e9e0d5; }
.pd27-confirmation__keyfigures span { color:#60544c; font-size:.85rem; }
.pd27-confirmation__keyfigures strong { color:#29232b; font-size:clamp(1.1rem,2.4vw,1.55rem); }
.pd27-confirmation__section { margin:0; padding:24px clamp(20px,4vw,48px); }
.pd27-confirmation__section h2 { margin:0 0 14px!important; font:750 1.1rem/1.4 system-ui,sans-serif!important; color:#30272b; }
.pd27-confirmation__person { border-top:1px solid #ece5de; padding:15px 0 5px; }
.pd27-confirmation__person h3 { margin:0 0 9px!important; font:750 1rem/1.4 system-ui,sans-serif!important; }
.pd27-confirmation__person ul { list-style:none!important; padding:0!important; margin:0!important; }
.pd27-confirmation__person li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; line-height:1.5; padding:5px 0; font-size:.91rem; }
.pd27-confirmation__person li strong { white-space:nowrap; color:#8a5d27; }
.pd27-confirmation__measures { margin:10px 0!important; color:#366b3b; font-size:.85rem; font-weight:700; }
.pd27-confirmation__payment { background:#fbf7f0; border-top:1px solid #eee3d7; }
.pd27-confirmation__payment p { margin:6px 0!important; line-height:1.6; }
.pd27-confirmation__payment-note { font-weight:700; font-size:.88rem; color:#6a4c29; }
.pd27-confirmation__test-note { border:1px solid #e7d1b4; background:#fff9ee; border-radius:12px; padding:15px 19px; margin:22px clamp(20px,4vw,48px) 0; font-size:.85rem; line-height:1.6; color:#5c452b; }
.pd27-confirmation__actions { padding:25px clamp(20px,4vw,48px) 35px; display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }
.pd27-confirmation__button { display:inline-flex; justify-content:center; align-items:center; min-height:48px; border-radius:999px; padding:12px 25px; font-weight:750; text-decoration:none!important; border:1px solid #c49a62; }
.pd27-confirmation__button--primary { background:#c49a62; color:#fff!important; }
.pd27-confirmation__button--primary:hover { background:#a97a40; }
.pd27-confirmation__button--secondary { color:#805522!important; background:#fff; }
.pd27-confirmation__button:focus-visible { outline:3px solid #2869b0; outline-offset:3px; }
.pd27-confirmation--error { padding:40px 28px; text-align:center; }
.pd27-confirmation--error .pd27-confirmation__button { margin-top:14px; }
@media(max-width:560px) { .pd27-preview--confirmed { margin:15px auto 35px; } .pd27-confirmation__hero { padding:28px 16px 22px; } .pd27-confirmation__keyfigures { padding:10px 3px; } .pd27-confirmation__section { padding:20px 17px; } .pd27-confirmation__test-note { margin:18px 16px 0; } .pd27-confirmation__actions { padding:22px 16px 28px; flex-direction:column; } .pd27-confirmation__button { width:100%; } }
