/* =========================================================================
   Perle Account — design de « Mon compte ».

   Le balisage vient de nos propres templates (templates/myaccount/), donc ce
   fichier style nos classes .acc-*, pas celles de WooCommerce. Le vocabulaire
   est celui du reste du site : lignes de liste du panier, CTA pleine largeur
   avec flèche, champs soulignés d'un trait, micro-libellés en majuscules.

   Les !important ne servent qu'à passer devant Divi, qui style globalement
   input, button et a (même principe que checkout.css).
   ========================================================================= */

body.woocommerce-account .woocommerce{max-width:1400px;margin:0 auto;padding:0 0 90px}

/* ===== Navigation : une ligne de liens, comme le header ===== */
.acc-nav{display:flex;flex-wrap:wrap;gap:28px;padding:0 var(--inset) 20px}
.acc-nav-link{font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:rgba(17,17,17,.45);text-decoration:none;transition:color .12s}
.acc-nav-link:hover{color:#111}
.acc-nav-link.is-on{color:#f163ab}
.acc-content{padding-top:50px}

/* ===== Titres et textes ===== */
.acc-h2{font-size:22px;font-weight:700;letter-spacing:-0.01em;line-height:1.2;color:#111;margin:0 0 26px}
.acc-h2-sub{margin-top:50px}
.acc-note{font-size:14px;line-height:1.7;color:rgba(17,17,17,.45);margin:0 0 14px;max-width:420px}
.acc-note strong{color:#111;font-weight:600}
.acc-link{display:inline-block;margin-top:24px;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:rgba(17,17,17,.45);text-decoration:none;transition:color .12s}
.acc-link:hover{color:#f163ab}
.acc-arrow{width:19px;height:11px;display:inline-flex;flex-shrink:0;color:inherit;position:relative;top:-1px;transition:color .1s}
.acc-arrow svg{width:100%;height:100%;display:block}

/* ===== Vue d'ensemble (grille de 4, comme la page Thank you) ===== */
.acc-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:0 var(--inset)}
.acc-cell{display:flex;flex-direction:column;gap:8px;padding:0 0 34px}
.acc-lbl{font-size:8px;letter-spacing:0.18em;text-transform:uppercase;color:#111}
.acc-val{font-size:14px;font-weight:500;letter-spacing:-0.01em;color:#111;word-break:break-word}

/* ===== Listes (fichiers, commandes, lignes d'une commande) ===== */
.acc-items{padding:0 var(--inset)}
.acc-item{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto auto;column-gap:24px;padding:26px 0;border-bottom:1px solid rgba(17,17,17,.12);color:#111;text-decoration:none}
.acc-items .acc-item:first-child{border-top:1px solid #111}
.acc-item-idx{grid-column:1;grid-row:1;font-size:9px;letter-spacing:0.14em;text-transform:uppercase;color:rgba(17,17,17,.45);display:block;margin-bottom:8px}
.acc-item-name{grid-column:1;grid-row:2;font-size:20px;font-weight:700;letter-spacing:-0.01em;line-height:1.2;color:#111;transition:color .1s}
.acc-item-meta{grid-column:1;grid-row:3;font-size:11px;color:rgba(17,17,17,.45);line-height:1.6;margin-top:8px}
.acc-item-price{grid-column:2;grid-row:2;align-self:center;justify-self:end;font-size:16px;font-weight:500;letter-spacing:-0.01em;color:#111;white-space:nowrap}
.acc-item-action{grid-column:2;grid-row:3;justify-self:end;align-self:start;margin-top:10px;display:inline-flex;align-items:center;gap:8px;font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:rgba(17,17,17,.45);transition:color .1s}
.acc-item-link:hover .acc-item-name,
.acc-item-link:hover .acc-item-action{color:#f163ab}

/* Boutons de téléchargement : contour fin, comme sur la page Thank you */
.acc-dl{grid-column:1 / -1;grid-row:4;display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.acc-dl-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #111!important;background:none!important;border-radius:0!important;font-size:11px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:#111!important;text-decoration:none!important;transition:background .15s,color .15s}
.acc-dl-btn:hover{background:#111!important;color:#fff!important}
.acc-dl-btn::before{content:"";display:block;width:11px;height:11px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-4-4m4 4l4-4M4 21h16'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-4-4m4 4l4-4M4 21h16'/%3E%3C/svg%3E") no-repeat center/contain}

/* ===== Lignes d'action pleine largeur (comme « Proceed to checkout ») ===== */
.acc-rows{padding-top:44px}
.acc-row{display:flex!important;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;padding:16px var(--inset)!important;margin:0!important;background:none!important;border:none!important;border-radius:0!important;box-shadow:none!important;text-align:left;text-decoration:none!important;cursor:pointer;font-family:inherit;transition:none}
.acc-row::before,.acc-row::after{display:none!important}
.acc-row-lbl{font-size:14px;font-weight:500;letter-spacing:-0.01em;color:#111;transition:color .1s;text-transform:none}
.acc-row-arrow{width:19px;height:11px;display:inline-flex;flex-shrink:0;color:#111;position:relative;top:-1px;transition:color .1s}
.acc-row-arrow svg{width:100%;height:100%;display:block}
.acc-row:hover .acc-row-lbl,
.acc-row:hover .acc-row-arrow{color:#f163ab}
/* Dans un formulaire, la ligne et ses traits s'alignent sur le formulaire */
.acc-row-submit{padding-left:0!important;padding-right:0!important}
.rule-x.acc-rule-flush{padding:0!important}

/* ===== Connexion / mot de passe ===== */
.acc-login{display:grid;grid-template-columns:minmax(0,440px) minmax(0,360px);gap:90px;padding:0 var(--inset)}
@media (max-width:900px){ .acc-login{grid-template-columns:1fr;gap:60px} }
.acc-form{margin:0}
.acc-form-wide{padding:0 var(--inset);max-width:640px}

.acc-field{margin:0 0 30px}
.acc-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
@media (max-width:600px){ .acc-field-grid{grid-template-columns:1fr} }
.acc-field-lbl{display:block;font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:rgba(17,17,17,.45);margin-bottom:10px}
.acc-field-input{width:100%!important;box-sizing:border-box!important;border:none!important;border-bottom:1px solid #111!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;padding:6px 0 10px!important;margin:0!important;font-family:inherit!important;font-size:16px!important;line-height:1.3!important;color:#111!important;-webkit-appearance:none;appearance:none;transition:border-color .15s}
.acc-field-input:focus{border-bottom-color:#f163ab!important}
/* Bouton œil ajouté par WooCommerce sur les champs mot de passe */
.acc-field .password-input{display:block;position:relative;width:100%}
.acc-field .show-password-input{position:absolute;right:0;bottom:12px;background:none!important;border:none!important;padding:0!important;cursor:pointer}

.acc-check{display:flex;align-items:center;gap:10px;margin:0 0 30px;font-size:12px;color:rgba(17,17,17,.45);cursor:pointer}
.acc-check-box{width:16px!important;height:16px!important;flex-shrink:0;margin:0!important;padding:0!important;border:1px solid #111!important;border-radius:0!important;background:none!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important;position:relative;cursor:pointer}
/* Divi réactive la case native (appearance:checkbox) : sans le !important ci-dessus, deux coches s'affichent. */
.acc-check-box::before{display:none!important;content:none!important}
.acc-check-box:checked{background:#111!important}
.acc-check-box:checked::after{content:"";position:absolute;top:50%;left:50%;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}

/* ===== Connexion Google ===== */
.acc-google .acc-row-lbl{display:inline-flex;align-items:center;gap:12px}
.acc-google-g{width:16px;height:16px;flex-shrink:0;display:block}
.acc-or{display:flex;align-items:center;gap:14px;margin:30px 0 34px;font-size:10px;letter-spacing:0.14em;text-transform:uppercase;color:rgba(17,17,17,.45)}
.acc-or::before,.acc-or::after{content:"";flex:1;border-top:1px solid rgba(17,17,17,.12)}

/* ===== État vide (repris du panier) ===== */
.acc-empty{padding:0 var(--inset) 40px;max-width:520px}
.acc-empty-title{font-size:clamp(28px,3.4vw,40px);font-weight:700;letter-spacing:-0.02em;line-height:1.05;color:#111;margin-bottom:14px}
.acc-empty-desc{font-size:14px;line-height:1.6;color:rgba(17,17,17,.45);margin-bottom:26px}
.acc-empty-cta{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#111;text-decoration:none}
.acc-empty-cta:hover,.acc-empty-cta:hover .acc-arrow{color:#f163ab}
.acc-login-note .acc-empty-cta{margin-top:10px}

/* ===== Totaux et adresse (détail d'une commande) ===== */
.acc-totals{padding:40px var(--inset) 0;display:flex;justify-content:flex-end}
.acc-totals-box{width:100%;max-width:360px}
.acc-trow{display:flex;justify-content:space-between;gap:20px;padding:10px 0;font-size:13px;color:rgba(17,17,17,.45)}
.acc-trow .acc-tv{color:#111;text-align:right}
.acc-trow-grand{border-top:1px solid #111;margin-top:8px;padding-top:16px}
.acc-trow-grand .acc-tk{font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:#111}
.acc-trow-grand .acc-tv{font-size:20px;font-weight:700;color:#111}
.acc-address{padding:60px var(--inset) 0}
.acc-address address{font-size:14px;line-height:1.7;color:#111;font-style:normal}
.acc-email{margin-top:10px;font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:rgba(17,17,17,.45)}

/* ===== Pagination des commandes ===== */
.acc-pager{display:flex;gap:28px;padding:30px var(--inset) 0}
.acc-pager-link{font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:rgba(17,17,17,.45);text-decoration:none}
.acc-pager-link:hover{color:#f163ab}

/* ===== Messages WooCommerce (balisage non maîtrisé) : discrets ===== */
.woocommerce-account .woocommerce-notices-wrapper{padding:0 var(--inset)}
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info{list-style:none!important;margin:0 0 34px!important;padding:16px 20px!important;border:1px solid rgba(17,17,17,.12)!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:13px!important;color:#111!important}
.woocommerce-account .woocommerce-error{border-color:#dc2626!important;color:#dc2626!important}
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-info::before{display:none!important}
.woocommerce-account .woocommerce-notices-wrapper li{list-style:none!important;margin:0!important}

/* ===== Adresses (template WooCommerce d'origine, non surchargé) ===== */
.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr;gap:24px;padding:0 var(--inset);max-width:520px}
.woocommerce-account .woocommerce-Address{border:1px solid rgba(17,17,17,.12);padding:24px}
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3{font-size:15px!important;font-weight:700!important;margin:0 0 14px!important;color:#111!important}
.woocommerce-account .woocommerce-Address-title .edit{font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:rgba(17,17,17,.45)!important;text-decoration:none!important}
.woocommerce-account .woocommerce-Address-title .edit:hover{color:#f163ab!important}
.woocommerce-account .woocommerce-Address address{font-size:14px;line-height:1.7;color:#111;font-style:normal}
.woocommerce-account .woocommerce-address-fields{padding:0 var(--inset);max-width:640px}
.woocommerce-account .woocommerce-address-fields .input-text,
.woocommerce-account .woocommerce-address-fields select{width:100%!important;box-sizing:border-box!important;border:none!important;border-bottom:1px solid #111!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:6px 0 10px!important;font-family:inherit!important;font-size:16px!important;color:#111!important;-webkit-appearance:none;appearance:none}
.woocommerce-account .woocommerce-address-fields label{display:block;font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:rgba(17,17,17,.45)!important;margin-bottom:10px}
.woocommerce-account .woocommerce-address-fields .form-row{margin:0 0 30px!important;padding:0!important}
.woocommerce-account .woocommerce-address-fields .button{display:inline-flex!important;align-items:center;padding:14px 24px!important;background:#111!important;color:#fff!important;border:none!important;border-radius:0!important;font-size:12px!important;font-weight:700!important;letter-spacing:0.05em;text-transform:uppercase;box-shadow:none!important}
.woocommerce-account .woocommerce-address-fields .button:hover{background:#f163ab!important}

@media (max-width:720px){
  .acc-overview{grid-template-columns:repeat(2,1fr)}
  .acc-item{grid-template-columns:1fr;grid-template-rows:auto auto auto auto auto}
  .acc-item-price{grid-column:1;grid-row:4;justify-self:start;margin-top:12px}
  .acc-item-action{grid-column:1;grid-row:5;justify-self:start;margin-top:10px}
  .acc-dl{grid-row:6}
  .acc-totals{justify-content:stretch}
  .acc-totals-box{max-width:none}
}
