/**
 * Aménage Tout enfant 1.9.1 — contrastes de l'espace client et des dossiers.
 */

:root{
 --at-account-blue:#075A93;
 --at-account-blue-deep:#063A61;
 --at-account-link:#075A93;
 --at-account-orange:#A84200;
 --at-account-green:#0B6B43;
 --at-account-ink:#172432;
 --at-account-muted:#455A68;
 --at-account-line:#B8C8D3;
 --at-account-soft:#F3F7FA;
 --at-account-soft-green:#E9F8F0;
}

/* Navigation et cartes du compte. */
body.at-v140-site.woocommerce-account .woocommerce-MyAccount-navigation a{background:#F3F7FA;border-color:#B8C8D3;color:#172432}
body.at-v140-site.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:#E8F3FA!important;border-color:#8DBBD7;color:#075A93!important;box-shadow:inset 4px 0 0 #075A93}
body.at-v140-site .at-account-v160-hero{background:#075A93!important}
body.at-v140-site .at-account-v160-hero :where(h1,h2,h3,p,.at-account-v160-eyebrow){color:#fff!important}
body.at-v140-site .at-account-v160-stats span{background:#fff;border:1px solid #D4E2EA}
body.at-v140-site .at-account-v160-stats b{color:#075A93!important}
body.at-v140-site .at-account-v160-stats small{color:#455A68!important}
.at-account-priority-card,.at-account-order-card,body.at-v140-site .at-account-v160-card,
.at-account-empty-state,.atp360-support__form,.atp360-support-ticket,.atp360-support-channel{
 background:#F3F7FA;border-color:#B8C8D3
}
.at-account-priority-card>span,.at-account-priority-card>a,.at-account-project-actions>a,
body.at-v140-site .at-account-order-card__actions .button,.at-account-order-help>a,
.at-account-pagination a,.at-account-favorites-toolbar button,.atp360-support-ticket__download,
.atp360-support-channel a{color:#075A93!important}
.at-account-priority-card.is-order>span,.at-account-order-card strong{color:#A84200}
.at-account-project-actions>a.is-pose{background:#A84200;color:#fff!important}
.at-account-project-actions>a.is-pose:hover{background:#7A3200;color:#fff!important}
.at-account-progress{background:#C9D7E0}.at-account-progress>span{background:#075A93}

/* États commerciaux : fond, texte et bordure distincts. */
.at-order-status,.at-dossier__state{border:1px solid currentColor}
.at-order-status.is-active{background:#FFF4D6;color:#704600}
.at-order-status.is-completed{background:#E9F8F0;color:#0B6B43}
.at-order-status.is-closed{background:#EEF2F5;color:#566674}
.at-order-status.is-cancelled{background:#FDEDEC;color:#8E2E28}
.at-dossier__state--nouvelle,.at-dossier__state--a-qualifier{background:#E8F3FA;color:#075A93}
.at-dossier__state--visite-requise,.at-dossier__state--visite-planifiee{background:#F2EAFE;color:#5B2B91}
.at-dossier__state--devis-envoye{background:#E4F3FA;color:#075A93}
.at-dossier__state--accepte,.at-dossier__state--acompte-recu{background:#E9F8F0;color:#0B6B43}
.at-dossier__state--planifie,.at-dossier__state--realise{background:#EFF7D9;color:#435E12}
.at-dossier__state--receptionne{background:#172432;color:#fff}
.at-dossier__state--sav{background:#FDEDEC;color:#8E2E28}

/* Dossiers, étapes et prochaine action. */
.at-dossier,.at-dossiers__empty{border:1px solid #B8C8D3}
.at-dossiers__empty,.at-dossier__stages li,.at-dossier__next{background:#EEF3F6}
.at-dossier__reference,.at-dossier__stages li.is-current strong{color:#A84200}
.at-dossier__head p,.at-dossier__stages span,.at-dossier__next span{color:#455A68}
.at-dossier__stages li.is-done{background:#E9F8F0}
.at-dossier__stages li.is-done strong::before{color:#0B6B43}
.at-dossier__stages li.is-current{background:#FFF3E8;box-shadow:inset 0 0 0 2px #A84200}
.at-dossier__next{border-left-color:#075A93}
.at-dossier__actions a:not(.wp-element-button){color:#075A93}

/* Support : champs et messages lisibles. */
.atp360-support__toggle,.atp360-support__form button[type=submit]{background:#0B6B43!important;border-color:#0B6B43!important;color:#fff!important}
.atp360-support__form :where(input,select,textarea){border-color:#7D929F;color:#172432}
.atp360-support__form :where(input,textarea)::placeholder{color:#5A6874;opacity:1}
.atp360-support__form :where(input,select,textarea):focus-visible{border-color:#075A93;box-shadow:0 0 0 3px rgba(7,90,147,.22);outline:0}

@media (forced-colors:active){
 .at-order-status,.at-dossier__state,.at-dossier,.at-account-priority-card,.at-account-order-card{border:1px solid CanvasText}
}

/* 1.9.1 — garde-fous chargés après le thème parent. */
body.at-v140-site .at-account-v160-hero :where(
 .at-account-v160-identity,.at-account-v160-identity h1,.at-account-v160-identity h2,
 .at-account-v160-identity h3,.at-account-v160-identity p,.at-account-v160-eyebrow
){color:#fff!important}
body.at-v140-site .at-account-v160-stats :where(b,strong){color:#075A93!important}
body.at-v140-site .at-account-v160-stats :where(small,span){color:#455A68!important}

/* L'action commerciale conserve l'orange unique ; le vert reste réservé au SAV. */
body.at-v140-site .at-account-project-actions>a.is-pose{
 background:#A84200!important;border-color:#A84200!important;color:#fff!important
}
body.at-v140-site .at-account-project-actions>a.is-pose:hover{
 background:#7A3200!important;border-color:#7A3200!important;color:#fff!important
}
body.at-v140-site :where(.atp360-support__toggle,.atp360-support__form button[type=submit]){
 background:#0B6B43!important;border-color:#0B6B43!important;color:#fff!important
}
body.at-v140-site :where(.atp360-support__toggle,.atp360-support__form button[type=submit]):hover{
 background:#075033!important;border-color:#075033!important;color:#fff!important
}

/* Le thème enfant est la dernière feuille chargée : le pied reste donc blanc,
   y compris si une personnalisation locale a ciblé ses liens ou ses mentions. */
body.at-v140-site :where(.at-v140-footer,.at-site-footer,.site-footer){background:#063A61!important;color:#fff!important}
body.at-v140-site :where(.at-v140-footer,.at-site-footer,.site-footer) :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,strong,b,small,span,a){
 color:#fff!important;opacity:1!important
}
body.at-v140-site :where(.at-v140-footer,.at-site-footer,.site-footer) a:hover,
body.at-v140-site :where(.at-v140-footer,.at-site-footer,.site-footer) a:focus-visible{
 color:#fff!important;text-decoration:underline;text-decoration-thickness:.1em;text-underline-offset:.2em
}
