/* Takoori — habillage Espace client (Mon compte). Scopé body.woocommerce-account. */
body.woocommerce-account .woocommerce::before,body.woocommerce-account .woocommerce::after{content:none;display:none}
body.woocommerce-account .entry-title{font-family:var(--tk-display);color:var(--tk-accent);font-weight:800;letter-spacing:-.018em;line-height:1.05;font-size:clamp(1.7rem,1.2rem + 2.2vw,2.4rem)}
body.woocommerce-account .woocommerce{display:grid;grid-template-columns:248px 1fr;gap:clamp(1.2rem,3vw,2rem);align-items:start;font-family:var(--tk-body)}
body.woocommerce-account .woocommerce-MyAccount-navigation{background:var(--tk-bg);border:1px solid var(--tk-line);border-radius:var(--tk-radius);box-shadow:var(--tk-card-sh);padding:.55rem;position:sticky;top:1.2rem;float:none;width:auto}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
body.woocommerce-account .woocommerce-MyAccount-navigation-link{border:0}
body.woocommerce-account .woocommerce-MyAccount-navigation-link a{display:flex;align-items:center;gap:.7rem;padding:.7rem .85rem;border-radius:var(--tk-radius-sm);color:var(--tk-ink-2);text-decoration:none;font-size:.95rem;font-weight:500;transition:background .15s ease,color .15s ease}
body.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover{background:var(--tk-surface);color:var(--tk-accent)}
body.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a{background:var(--tk-tint);color:var(--tk-accent);font-weight:600}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--tk-muted)}
body.woocommerce-account .woocommerce-MyAccount-content{background:var(--tk-bg);border:1px solid var(--tk-line);border-radius:var(--tk-radius);box-shadow:var(--tk-card-sh);padding:clamp(1.3rem,3.5vw,2rem);width:auto;float:none}
body.woocommerce-account .woocommerce-MyAccount-content h2,body.woocommerce-account .woocommerce-MyAccount-content h3{font-family:var(--tk-display);color:var(--tk-accent);font-weight:700;letter-spacing:-.015em;font-size:clamp(1.1rem,1rem + .7vw,1.35rem);margin:0 0 .9rem}
body.woocommerce-account .woocommerce-MyAccount-content p{color:var(--tk-ink-2)}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button){color:var(--tk-accent-d);text-underline-offset:2px}
body.woocommerce-account .woocommerce .button,body.woocommerce-account .woocommerce-button{background:var(--tk-cta);color:#fff;border:0;padding:.72em 1.4em;border-radius:12px;font-family:var(--tk-body);font-weight:700;font-size:.95rem;text-decoration:none;transition:background .15s ease,transform .05s ease}
body.woocommerce-account .woocommerce .button:hover,body.woocommerce-account .woocommerce-button:hover{background:var(--tk-cta-h)}
body.woocommerce-account .woocommerce .button.tk-ghost{background:transparent;color:var(--tk-accent);border:1px solid var(--tk-line)}
body.woocommerce-account .woocommerce .button.tk-ghost:hover{background:var(--tk-surface);border-color:var(--tk-accent)}
body.woocommerce-account .woocommerce-orders-table,body.woocommerce-account .woocommerce-MyAccount-paymentMethods{width:100%;border-collapse:collapse;font-size:.92rem}
body.woocommerce-account .woocommerce-orders-table thead th,body.woocommerce-account .woocommerce-MyAccount-paymentMethods thead th{text-align:left;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;color:var(--tk-muted);font-weight:600;padding:.6rem .7rem;border-bottom:2px solid var(--tk-line)}
body.woocommerce-account .woocommerce-orders-table tbody td,body.woocommerce-account .woocommerce-MyAccount-paymentMethods tbody td{padding:.85rem .7rem;border-bottom:1px solid var(--tk-line);color:var(--tk-ink-2);vertical-align:middle}
body.woocommerce-account .woocommerce-orders-table tbody tr:last-child td{border-bottom:0}
body.woocommerce-account .woocommerce-MyAccount-paymentMethods .delete{color:var(--tk-danger);text-decoration:none;font-size:.85rem;font-weight:600}
body.woocommerce-account .addresses,body.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,2.5vw,1.5rem)}
body.woocommerce-account .woocommerce-Address{background:var(--tk-surface);border:1px solid var(--tk-line);border-radius:12px;padding:clamp(1rem,3vw,1.3rem)}
body.woocommerce-account .woocommerce-Address h3{font-family:var(--tk-display);font-size:1rem;font-weight:700;color:var(--tk-ink);margin:0 0 .6rem}
body.woocommerce-account .woocommerce-Address address{font-style:normal;color:var(--tk-ink-2);font-size:.92rem;line-height:1.55}
body.woocommerce-account .woocommerce-EditAccountForm{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.2rem}
body.woocommerce-account .woocommerce-form-row{margin:0}
body.woocommerce-account .woocommerce-form-row--wide{grid-column:1/-1}
body.woocommerce-account .woocommerce-EditAccountForm label{font-weight:600;font-size:.85rem;margin-bottom:.32rem;color:var(--tk-ink)}
body.woocommerce-account .woocommerce-EditAccountForm input{width:100%;padding:.7em .85em;border:1px solid var(--tk-line);border-radius:var(--tk-radius-sm);font-family:inherit;font-size:.95rem;background:var(--tk-surface);color:var(--tk-ink)}
body.woocommerce-account .woocommerce-EditAccountForm input:focus{outline:none;border-color:var(--tk-accent);background:var(--tk-bg);box-shadow:0 0 0 3px rgba(13,110,99,.13)}
body.woocommerce-account fieldset{border:1px solid var(--tk-line);border-radius:12px;padding:1rem 1.2rem;margin-top:.4rem}
body.woocommerce-account fieldset legend{font-size:.82rem;color:var(--tk-muted);font-weight:600;padding:0 .4rem}
/* bloc aide/SAV injecté via hook */
body.woocommerce-account .tk-help{margin-top:clamp(1.2rem,3vw,1.8rem);background:var(--tk-tint);border:1px solid var(--tk-tint-line);border-radius:var(--tk-radius);padding:clamp(1.2rem,3.5vw,1.7rem)}
body.woocommerce-account .tk-help h2{font-family:var(--tk-display);color:var(--tk-accent);font-weight:700;font-size:1.1rem;margin:0 0 .2rem}
body.woocommerce-account .tk-help>p{color:#39424a;font-size:.92rem;margin:0 0 1rem}
body.woocommerce-account .tk-help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}
body.woocommerce-account .tk-help-card{display:block;background:var(--tk-bg);border:1px solid var(--tk-tint-line);border-radius:12px;padding:.85rem 1rem;text-decoration:none;color:var(--tk-ink);font-weight:600;font-size:.92rem;transition:border-color .15s ease,transform .05s ease}
body.woocommerce-account .tk-help-card:hover{border-color:var(--tk-accent);transform:translateY(-1px)}
body.woocommerce-account .tk-help-card span{display:block;font-weight:400;font-size:.8rem;color:var(--tk-muted);margin-top:.1rem}
/* etat vide */
body.woocommerce-account .woocommerce-info,body.woocommerce-account .no_orders{background:var(--tk-surface);border:1px solid var(--tk-line);border-left:3px solid var(--tk-accent);border-radius:var(--tk-radius-sm);color:var(--tk-ink-2)}
@media(max-width:1366px){body.woocommerce-account .woocommerce{grid-template-columns:236px 1fr;gap:1.7rem}}
@media(max-width:1200px){body.woocommerce-account .woocommerce{grid-template-columns:224px 1fr}}
@media(max-width:1024px){body.woocommerce-account .woocommerce{grid-template-columns:200px 1fr;gap:1.3rem}}
@media(max-width:880px){body.woocommerce-account .woocommerce{grid-template-columns:1fr}body.woocommerce-account .woocommerce-MyAccount-navigation{position:static}body.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}body.woocommerce-account .woocommerce-MyAccount-navigation-link a{width:100%}body.woocommerce-account .tk-help-grid{grid-template-columns:1fr}}
@media(max-width:768px){body.woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}body.woocommerce-account .woocommerce-EditAccountForm{grid-template-columns:1fr}}
@media(max-width:480px){body.woocommerce-account .woocommerce-MyAccount-content{padding:1.1rem 1rem}body.woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}}
body.woocommerce-account .tk-account-title{font-family:var(--tk-display);color:var(--tk-accent);font-weight:800;letter-spacing:-.018em;line-height:1.05;text-align:center;font-size:clamp(1.7rem,1.2rem + 2.2vw,2.4rem);margin:clamp(1.6rem,4.5vw,2.8rem) 0 clamp(1.4rem,3.5vw,2rem)}
/* === OVERRIDE THEME : tout l'espace client en polices + couleurs Takoori (bat Astra/League Spartan/bordeaux) === */
body.woocommerce-account{font-family:var(--tk-body)}
body.woocommerce-account :is(h1,h2,h3,h4,h5,h6){font-family:var(--tk-display);letter-spacing:-.015em}
body.woocommerce-account h1.tk-account-title{font-family:var(--tk-display);color:var(--tk-accent)}
body.woocommerce-account .woocommerce-MyAccount-content h2,body.woocommerce-account .woocommerce-MyAccount-content h3,body.woocommerce-account .tk-help h2{color:var(--tk-accent)}
body.woocommerce-account .woocommerce .button,body.woocommerce-account .woocommerce button.button,body.woocommerce-account .woocommerce input.button,body.woocommerce-account .woocommerce .woocommerce-button,body.woocommerce-account .woocommerce a.button{background-color:var(--tk-cta)!important;border-color:var(--tk-cta)!important;color:#fff!important;font-family:var(--tk-body)!important;text-transform:none!important;letter-spacing:0!important;border-radius:12px!important;font-weight:700!important}
body.woocommerce-account .woocommerce .button.tk-ghost{background:transparent!important;color:var(--tk-accent)!important;border-color:var(--tk-line)!important}
body.woocommerce-account .woocommerce .button:hover,body.woocommerce-account .woocommerce button.button:hover,body.woocommerce-account .woocommerce input.button:hover{background-color:var(--tk-cta-h)!important}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button){color:var(--tk-accent-d)!important}
/* fond uniforme : neutralise le beige de la section Elementor du compte */
body.woocommerce-account .elementor-element-79db6ca5{background-color:#fff!important;background-image:none!important}
/* === RESPONSIVE : 7e breakpoint (1366) + tableaux en cartes sur mobile === */
@media(max-width:600px){
body.woocommerce-account .woocommerce-orders-table thead,body.woocommerce-account .woocommerce-MyAccount-paymentMethods thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.woocommerce-account .woocommerce-orders-table tr,body.woocommerce-account .woocommerce-MyAccount-paymentMethods tr{display:block;border:1px solid var(--tk-line);border-radius:12px;padding:.3rem .9rem;margin-bottom:.8rem}
body.woocommerce-account .woocommerce-orders-table td,body.woocommerce-account .woocommerce-MyAccount-paymentMethods td{display:flex;justify-content:space-between;align-items:center;gap:1rem;text-align:right;padding:.6rem 0;border-bottom:1px solid var(--tk-line)}
body.woocommerce-account .woocommerce-orders-table td::before,body.woocommerce-account .woocommerce-MyAccount-paymentMethods td::before{content:attr(data-title);font-weight:600;color:var(--tk-muted);font-size:.78rem;text-align:left;text-transform:uppercase;letter-spacing:.04em}
body.woocommerce-account .woocommerce-orders-table td:last-child,body.woocommerce-account .woocommerce-MyAccount-paymentMethods td:last-child{border-bottom:0}
body.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{justify-content:flex-end;flex-wrap:wrap}
}
/* filet anti-debordement mobile : items de grille peuvent retrecir + mots longs + tableaux/medias contenus */
body.woocommerce-account .woocommerce-MyAccount-navigation,body.woocommerce-account .woocommerce-MyAccount-content{min-width:0}
body.woocommerce-account .woocommerce-MyAccount-content{overflow-wrap:anywhere}
body.woocommerce-account .woocommerce-MyAccount-content img,body.woocommerce-account .woocommerce-MyAccount-content iframe{max-width:100%;height:auto}
@media(max-width:880px){body.woocommerce-account .woocommerce-MyAccount-content{overflow-x:auto}}

/* ============================================================
   ÉCRAN CONNEXION / INSCRIPTION (visiteur déconnecté) — #customer_login
   Ajout 18/06 : cible le markup WooCommerce natif form-login / form-register.
   ============================================================ */
.tk-auth-intro{max-width:60ch;color:var(--tk-muted);font-size:clamp(.92rem,.88rem+.2vw,1rem);margin:0 auto clamp(1.2rem,3vw,1.8rem);text-align:center}
#customer_login{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.2rem,3vw,2rem);align-items:start;margin-top:clamp(.4rem,1.5vw,1rem)}
#customer_login:not(:has(.u-column2)){grid-template-columns:minmax(0,520px);justify-content:center}
#customer_login>.u-column1,#customer_login>.u-column2{background:var(--tk-bg);border:1px solid var(--tk-line);border-radius:var(--tk-radius);box-shadow:var(--tk-card-sh);padding:clamp(1.4rem,3.5vw,2rem)}
#customer_login>.u-column2{background:var(--tk-tint);border-color:var(--tk-tint-line)}
#customer_login h2{font-family:var(--tk-display);color:var(--tk-accent);font-weight:700;letter-spacing:-.015em;font-size:clamp(1.15rem,1rem+.8vw,1.45rem);margin:0 0 .7rem}
.woocommerce-form-login,.woocommerce-form-register{display:flex;flex-direction:column;gap:.9rem}
.woocommerce-form-login .form-row,.woocommerce-form-register .form-row{margin:0}
.tk-auth-tag{color:var(--tk-muted);font-size:.9rem;margin:0}
#customer_login label:not(.woocommerce-form-login__rememberme){display:block;font-weight:600;font-size:.85rem;margin-bottom:.32rem;color:var(--tk-ink)}
#customer_login .woocommerce-Input,#customer_login input[type=email],#customer_login input[type=password],#customer_login input[type=text]{width:100%;padding:.72em .9em;border:1px solid var(--tk-line);border-radius:var(--tk-radius-sm);font-family:inherit;font-size:.95rem;background:var(--tk-surface);color:var(--tk-ink)}
#customer_login .u-column2 input{background:var(--tk-bg)}
#customer_login input:focus{outline:none;border-color:var(--tk-accent);background:var(--tk-bg);box-shadow:0 0 0 3px rgba(13,110,99,.13)}
.woocommerce-form-login__rememberme{display:flex;align-items:center;gap:.5rem;font-size:.88rem;color:var(--tk-ink-2);font-weight:500;cursor:pointer}
.woocommerce-form-login__rememberme input{width:auto;margin:0;accent-color:var(--tk-accent)}
.woocommerce-form-login button,.woocommerce-form-register button{align-self:flex-start;margin-top:.15rem}
.woocommerce-LostPassword{margin:.1rem 0 0;font-size:.86rem}
.woocommerce-LostPassword a{color:var(--tk-accent-d);text-decoration:underline;text-underline-offset:2px}
.tk-auth-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.tk-auth-perks li{display:flex;align-items:flex-start;gap:.6rem;font-size:.9rem;color:var(--tk-ink-2);line-height:1.45}
.tk-auth-perks li::before{content:"";width:18px;height:18px;margin-top:.08rem;flex:0 0 18px;background:var(--tk-accent);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat}
.tk-auth-legal{font-size:.8rem;color:var(--tk-muted);margin:.1rem 0 0;line-height:1.5}
.tk-auth-legal a{color:var(--tk-accent-d)}
.tk-auth-reassure{margin:clamp(1.4rem,3.5vw,2.2rem) auto 0;max-width:1080px;display:flex;flex-wrap:wrap;gap:.9rem 1.9rem;justify-content:center;padding-top:clamp(1.1rem,3vw,1.5rem);border-top:1px solid var(--tk-line)}
.tk-reassure-item{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--tk-ink-2);font-weight:500}
.tk-reassure-item::before{content:"";width:20px;height:20px;flex:0 0 20px;background:var(--tk-accent);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.tk-reassure-item.lock::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='11' width='18' height='10' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='11' width='18' height='10' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>")}
.tk-reassure-item.truck::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 7h11l4 4v6h-3'/><circle cx='7.5' cy='17.5' r='2'/><circle cx='17.5' cy='17.5' r='2'/><path d='M3 7v10h2'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 7h11l4 4v6h-3'/><circle cx='7.5' cy='17.5' r='2'/><circle cx='17.5' cy='17.5' r='2'/><path d='M3 7v10h2'/></svg>")}
.tk-reassure-item.back::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M9 14 4 9l5-5'/><path d='M4 9h11a5 5 0 0 1 5 5v1'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M9 14 4 9l5-5'/><path d='M4 9h11a5 5 0 0 1 5 5v1'/></svg>")}
@media(max-width:880px){#customer_login{grid-template-columns:1fr}}

/* ── Onglet Adresses : forcer 2 colonnes propres (override floats/colonnes Astra/WooCommerce) — 18/06 ── */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .addresses{display:grid!important;grid-template-columns:1fr 1fr;gap:clamp(1rem,2.5vw,1.5rem);align-items:start;float:none!important;width:auto!important;column-count:initial!important}
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .col2-set .col-1,
body.woocommerce-account .col2-set .col-2{float:none!important;width:auto!important;max-width:none!important;margin:0!important}
@media(max-width:768px){body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,body.woocommerce-account .woocommerce-MyAccount-content .addresses{grid-template-columns:1fr!important}}

/* FIX escalier : le clearfix ::before/::after de WooCommerce (.col2-set) devient un grid-item et casse la grille → le neutraliser sur nos conteneurs passés en grille (adresses + écran connexion) — 19/06 */
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after,
body.woocommerce-account .addresses::before,
body.woocommerce-account .addresses::after,
body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after{content:none!important;display:none!important}

/* FIX écran login grand écran : la grille .woocommerce (nav|contenu du tableau de bord) ne doit s'appliquer qu'au CONNECTÉ. Déconnecté (page login) → bloc plein largeur pour ne pas écraser #customer_login — 19/06 */
body.woocommerce-account:not(.logged-in) .woocommerce{display:block!important}
