/* Espace client et rétractation : s'appuie sur le gabarit des pages légales de site.css
   (.legal-main, .legal-shell, .legal-kicker, .legal-title) et sur ses variables. Aucun style
   existant n'est modifié : tout ce qui suit est préfixé .acct-. */
.acct-main { min-height: calc(100svh - 80px); }
.acct-lead { max-width: 62ch; margin: -14px 0 36px; color: #9f988e; font-size: 16px; line-height: 1.75; }
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 40px; padding: 0 0 18px; border-bottom: 1px solid rgba(200,149,77,.22); }
.acct-nav a { padding: 8px 0; color: #8e887d; font: 300 12px/1.3 "DM Sans",sans-serif; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid transparent; transition: color .35s ease, border-color .35s ease; }
.acct-nav a:hover, .acct-nav a:focus-visible, .acct-nav a[aria-current="page"] { color: var(--sb-ink); border-color: var(--sb-gold); }
.acct-nav button { margin-left: auto; }

.acct-panel { padding: 30px 0; border-top: 1px solid rgba(200,149,77,.22); }
.acct-panel > h2 { margin: 0 0 22px; color: #e8e1d7; font: 400 clamp(20px,1.65vw,26px)/1.24 "Bodoni Moda",Didot,serif; }
.acct-copy { max-width: 66ch; color: #a8a097; font-size: 15px; line-height: 1.72; }
.acct-copy p { margin: 0 0 15px; }
.acct-copy strong { color: var(--sb-ink); font-weight: 400; }
.acct-copy a, .acct-link { color: #d8aa67; text-underline-offset: 4px; }

/* Formulaires */
.acct-form { display: grid; gap: 22px; max-width: 560px; }
/* display:grid l'emportait sur l'attribut hidden : formulaire e-mail et bloc de confirmation s'affichaient ensemble. */
.acct-form[hidden], .acct-lead[hidden], .acct-actions[hidden], .acct-hint[hidden] { display: none; }
.acct-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.acct-field { display: grid; gap: 8px; min-width: 0; }
.acct-field label, .acct-label { color: #8e887d; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.acct-field input, .acct-field select, .acct-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(200,149,77,.32); border-radius: 0; background: rgba(255,255,255,.025); color: var(--sb-ink); font: 300 16px/1.5 "DM Sans",sans-serif; }
.acct-field textarea { min-height: 132px; resize: vertical; }
.acct-field select option { background: #111; color: var(--sb-ink); }
.acct-field input:focus-visible, .acct-field select:focus-visible, .acct-field textarea:focus-visible { outline: 1px solid var(--sb-gold); outline-offset: 2px; border-color: var(--sb-gold); }
.acct-field input[aria-invalid="true"], .acct-field textarea[aria-invalid="true"] { border-color: #c9695c; }
.acct-hint { margin: 0; color: #756f67; font-size: 13px; line-height: 1.6; }
.acct-check { display: flex; align-items: flex-start; gap: 12px; color: #a8a097; font-size: 15px; line-height: 1.6; }
.acct-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sb-gold); }

/* Boutons */
.acct-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
/* Aperçu de facture dans la page : cadre doré sur le fond noir ; sous 700 px le script n'intègre pas le PDF et laisse le bouton. */
.acct-doc { margin: 0 0 28px; }
.acct-doc:last-child { margin-bottom: 0; }
.acct-doc-title { margin: 0 0 14px; color: #e8e1d7; line-height: 1.6; overflow-wrap: anywhere; }
.acct-doc-title strong { font-weight: 500; color: #d8aa67; }
.acct-doc-frame { display: block; width: 100%; height: min(82vh, 900px); min-height: 480px; margin-top: 18px; border: 1px solid rgba(200,149,77,.55); background: #fff; }
@media (max-width: 700px) { .acct-doc .acct-button { width: 100%; } .acct-doc-frame { display: none; } }
.acct-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--sb-gold); border-radius: 0; background: var(--sb-gold); color: #080604; cursor: pointer; font: 400 11px/1 "DM Sans",sans-serif; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; transition: background .35s, color .35s; }
.acct-button:hover, .acct-button:focus-visible { background: transparent; color: var(--sb-gold); }
.acct-button--ghost { background: transparent; color: var(--sb-ink); border-color: rgba(200,149,77,.55); }
.acct-button--ghost:hover, .acct-button--ghost:focus-visible { background: rgba(200,149,77,.12); color: var(--sb-ink); }
.acct-button--danger { background: transparent; color: #e0a39a; border-color: #c9695c; }
.acct-button--danger:hover, .acct-button--danger:focus-visible { background: #c9695c; color: #080604; }
.acct-button:focus-visible, .acct-nav a:focus-visible { outline: 1px solid var(--sb-gold); outline-offset: 3px; }
.acct-button[disabled] { opacity: .45; cursor: not-allowed; }
.acct-small { min-height: 40px; padding: 0 16px; }

/* Messages (annoncés par les lecteurs d'écran : role=status / role=alert dans le HTML) */
.acct-msg { max-width: 560px; margin: 0 0 22px; padding: 14px 16px; border-left: 2px solid var(--sb-gold); background: rgba(200,149,77,.07); color: #d7cfc4; font-size: 15px; line-height: 1.65; }
.acct-msg[hidden] { display: none; }
.acct-msg--error { border-left-color: #c9695c; background: rgba(201,105,92,.09); color: #f0cbc5; }

/* Statuts et listes */
.acct-badge { display: inline-block; padding: 5px 12px; border: 1px solid rgba(200,149,77,.5); color: var(--sb-gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.acct-orders { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(200,149,77,.22); }
.acct-order { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto auto; gap: 12px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #d7cfc4; }
.acct-order a { color: var(--sb-ink); font: 400 20px/1.2 "Bodoni Moda",Didot,serif; text-decoration: none; }
.acct-order a:hover, .acct-order a:focus-visible { color: var(--sb-gold); }
.acct-order small { display: block; margin-top: 6px; color: #756f67; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.acct-dl { display: grid; grid-template-columns: minmax(130px,.3fr) minmax(0,1fr); gap: 12px 28px; margin: 0; max-width: 720px; color: #d7cfc4; font-size: 15px; line-height: 1.6; }
.acct-dl dt { color: #756f67; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding-top: 3px; }
.acct-dl dd { margin: 0; overflow-wrap: anywhere; }
.acct-lines { width: 100%; max-width: 720px; border-collapse: collapse; color: #d7cfc4; font-size: 15px; }
.acct-lines th { padding: 10px 0; border-bottom: 1px solid rgba(200,149,77,.4); color: #756f67; font-size: 11px; font-weight: 400; letter-spacing: .18em; text-align: left; text-transform: uppercase; }
.acct-lines td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.acct-lines .acct-num { text-align: right; white-space: nowrap; }
.acct-lines .acct-total td { color: var(--sb-ink); font-size: 17px; }
.acct-timeline { margin: 0; padding: 0; list-style: none; max-width: 520px; }
.acct-timeline li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #d7cfc4; font-size: 15px; }
.acct-timeline time { color: #756f67; font-size: 13px; }
.acct-addresses { display: grid; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; max-width: 720px; }
.acct-address { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 18px; border: 1px solid rgba(200,149,77,.24); color: #d7cfc4; font-size: 15px; line-height: 1.6; }
.acct-address strong { display: block; color: var(--sb-ink); font-weight: 400; }
.acct-address address { font-style: normal; }
.acct-card-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.acct-quote { margin: 0 0 22px; padding: 16px 18px; border: 1px solid rgba(200,149,77,.24); color: #d7cfc4; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.acct-empty { color: #8e887d; font-size: 15px; }

@media (max-width: 660px) {
  .acct-row { grid-template-columns: 1fr; gap: 22px; }
  .acct-order { grid-template-columns: 1fr auto; }
  .acct-order > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .acct-dl { grid-template-columns: 1fr; gap: 4px; }
  .acct-dl dd { margin-bottom: 14px; }
  .acct-nav { gap: 4px 20px; }
  .acct-nav button { margin-left: 0; }
  .acct-button { width: 100%; }
  .acct-card-actions .acct-button, .acct-small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .acct-button, .acct-nav a { transition: none; }
}
.acct-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.acct-after { margin-top: 22px; }
.acct-flush { margin: 0; }
.acct-gap { margin-top: 44px; }
.acct-top { margin-top: 22px; }
.acct-order--solo { grid-template-columns: 1fr; }
.acct-step-title { margin-bottom: 22px; font-size: clamp(26px,3vw,38px); }

/* Lien de connexion de secours : repliée sous le formulaire du mot de passe. */
details.acct-panel > summary { cursor: pointer; padding: 6px 0; color: #d8aa67; }
details.acct-panel > summary:hover, details.acct-panel > summary:focus-visible { color: var(--sb-gold); outline: 1px solid var(--sb-gold); outline-offset: 4px; }
details.acct-panel[open] > summary { margin-bottom: 14px; }
