/**
 * Aménage Tout integrated refonte components.
 *
 * Integrated into the Aménage Tout V1 parent baseline.
 * Loaded after assets/css/theme.css so it can refine the storefront without
 * requiring a child theme.
 */

/* Adaptations spécifiques conservées dans le thème enfant. */

/* Le diagnostic simplifié mène désormais vers un seul tunnel projet. */
.at-diagnostic-next__grid--single {
    grid-template-columns: minmax(0, 1fr) !important;
}

.at-diagnostic-next__grid--single > a {
    max-width: none !important;
    width: 100% !important;
}

/* Carrousel mobile réservé aux collections de produits. */
@keyframes at-carousel-nudge {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

@media (max-width: 680px) {
    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--ready {
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        position: relative;
        width: 100% !important;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--scrollable::before {
        align-items: center;
        background: color-mix(in srgb, var(--at-primary) 9%, white);
        border: 1px solid color-mix(in srgb, var(--at-primary) 24%, white);
        border-radius: 999px;
        color: var(--at-primary-dark);
        content: "Glissez pour voir la suite  →";
        display: inline-flex;
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .01em;
        margin: 0 0 .7rem;
        min-height: 32px;
        padding: .42rem .78rem;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--scrollable::after {
        align-items: center;
        animation: at-carousel-nudge 1.8s ease-in-out infinite;
        background: var(--at-primary);
        border: 3px solid var(--at-white);
        border-radius: 50%;
        box-shadow: 0 6px 18px rgba(7, 61, 58, .28);
        color: var(--at-white);
        content: "›";
        display: flex;
        font-size: 1.55rem;
        font-weight: 800;
        height: 38px;
        justify-content: center;
        pointer-events: none;
        position: absolute;
        right: -7px;
        top: 52%;
        width: 38px;
        z-index: 8;
        transition: opacity .18s ease;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--ready .wc-block-product-template {
        display: grid !important;
        gap: 12px !important;
        grid-auto-columns: minmax(80%, 270px) !important;
        grid-auto-flow: column !important;
        grid-template-columns: none !important;
        max-width: 100%;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        padding: 3px 52px 16px 0 !important;
        scroll-padding-inline: 0 18%;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--ready .wc-block-product-template::-webkit-scrollbar {
        display: none;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--ready .wc-block-product {
        min-width: 0 !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--at-end::after {
        opacity: 0;
    }
}

/* Accueil 4.5 : cette section ne redéfinit aucun élément de navigation. */
.home .at-hero__content {
    max-width: 760px;
}

.home .at-hero__content > p:not(.at-eyebrow) {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    max-width: 670px;
}

.at-home-search {
    align-items: stretch;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(5, 28, 48, .24);
    display: flex;
    gap: 8px;
    margin: 1.4rem 0 1.1rem;
    max-width: 720px;
    padding: 8px;
}

.at-home-search label {
    align-items: center;
    color: var(--at-primary-dark);
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

.at-home-search label::before {
    content: "⌕";
    font-size: 1.65rem;
    line-height: 1;
    margin-left: .55rem;
}

.at-home-search input[type="search"] {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--at-ink);
    font: inherit;
    min-height: 48px;
    min-width: 0;
    outline: 0;
    padding: .65rem .35rem;
    width: 100%;
}

.at-home-search:focus-within {
    box-shadow: 0 0 0 4px rgba(14, 110, 181, .24), 0 18px 48px rgba(5, 28, 48, .24);
}

.at-home-search button {
    background: var(--at-secondary);
    border: 0;
    border-radius: 11px;
    color: var(--at-white);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    min-height: 48px;
    padding: .75rem 1.25rem;
    transition: background-color .2s ease, transform .2s ease;
}

.at-home-search button:hover {
    background: var(--at-secondary-hover);
    transform: translateY(-1px);
}

.at-home-v2 .at-v2-section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.at-home-v2 .at-section-heading,
.at-home-v2 .at-v2-heading {
    gap: 1.25rem 2rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.at-home-v2 .at-section-heading h2,
.at-home-v2 .at-v2-heading h2 {
    font-size: clamp(1.8rem, 3.3vw, 3rem);
    letter-spacing: -.03em;
    margin-bottom: .55rem;
}

.at-home-v2 .at-section-heading > p a {
    align-items: center;
    border: 1px solid var(--at-border);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: .55rem 1rem;
}

.at-home-v2 .at-section-heading > p a:hover {
    background: var(--at-primary-soft);
    border-color: var(--at-primary);
}

.at-home-v2 :where(.at-need-card, .at-category-card, .at-project-card, .at-resource-card, .at-value-pillar, .wc-block-product) {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(8, 59, 93, .09);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.at-home-v2 :where(.at-need-card, .at-category-card, .at-project-card, .at-resource-card, .wc-block-product):hover {
    box-shadow: 0 16px 38px rgba(8, 59, 93, .14);
    transform: translateY(-4px);
}

.at-home-v2 .wc-block-product .wc-block-components-product-image img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.at-home-v2 .wc-block-product .wp-block-button__link,
.at-home-v2 .wc-block-product .wp-element-button {
    border-radius: 10px;
    min-height: 44px;
    width: 100%;
}

.at-home-v2 .at-atoutplus-cta,
.at-home-v2 .at-professional {
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(8, 59, 93, .16);
    overflow: hidden;
}

.at-home-v2 .at-reassurance__item {
    background: var(--at-white);
    border: 1px solid var(--at-border);
    border-radius: 16px;
    padding: 1.15rem;
}

.at-site-footer__main {
    gap: clamp(1.75rem, 4vw, 3.5rem);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.at-site-footer h3 {
    color: var(--at-white);
    font-size: 1rem;
    letter-spacing: .02em;
}

.at-site-footer li + li {
    margin-top: .55rem;
}

@media (max-width: 960px) {
    .home .at-home-main > .wp-block-cover {
        min-height: 610px;
    }
}

@media (max-width: 680px) {
    .home .at-home-main > .wp-block-cover {
        min-height: 660px;
    }

    .home .at-home-main > .wp-block-cover .wp-block-cover__inner-container {
        width: min(100% - 28px, 1180px);
    }

    .home .at-home-main > .wp-block-cover h1 {
        font-size: clamp(2.05rem, 10vw, 3.1rem);
    }

    .at-home-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .at-home-search button,
    .home .at-hero__content .wp-block-buttons,
    .home .at-hero__content .wp-block-button,
    .home .at-hero__content .wp-block-button__link {
        width: 100%;
    }

    .at-home-v2 .at-v2-section {
        padding-block: 3.4rem;
    }

    .at-home-v2 .at-section-heading {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-home-v2 :where(.at-need-card, .at-category-card, .at-project-card, .at-resource-card, .wc-block-product),
    .at-home-search button {
        transition: none;
    }
}

/* V1 : recherche instantanée, panier visible, repères et compte modernisé. */
body .at-project-entry-floating {
    box-sizing: border-box !important;
    border-left-width: 2px !important;
    border-radius: 16px 0 0 16px !important;
    gap: .38rem !important;
    max-width: 126px !important;
    min-height: 46px !important;
    overflow: hidden !important;
    padding: .45rem .5rem .45rem .42rem !important;
    width: 126px !important;
}

body .at-project-entry-floating__icon {
    border-radius: 9px !important;
    flex: 0 0 28px !important;
    font-size: .85rem !important;
    height: 28px !important;
    margin: 0 !important;
    min-width: 28px !important;
    padding: 0 !important;
    width: 28px !important;
}

body .at-project-entry-floating__label {
    align-content: center;
    flex: 0 1 70px !important;
    font-size: .66rem !important;
    line-height: 1.08 !important;
    max-width: 70px !important;
    overflow: hidden !important;
    padding: 0 !important;
    white-space: normal !important;
    width: 70px !important;
    writing-mode: horizontal-tb !important;
}

body .atp360-floating .at-project-entry-floating__label > span,
body .at-project-entry-floating__label > span {
    align-items: initial !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    font-size: .66rem !important;
    height: auto !important;
    justify-content: initial !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    max-width: 70px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    width: auto !important;
    writing-mode: horizontal-tb !important;
}

body .atp360-floating .at-project-entry-floating__label > span:first-child {
    font-size: .69rem !important;
}

/* Résultats produits et catégories pendant la saisie. */
.at-live-search-ready {
    overflow: visible !important;
    position: relative !important;
}

.at-live-search-ready > .at-product-search__suggestions:not(.at-live-search) {
    display: none !important;
}

.at-live-search {
    background: #fff;
    border: 1px solid var(--at-border, #D7E4EC);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(10, 74, 113, .2);
    box-sizing: border-box;
    display: grid;
    left: 0;
    max-height: min(510px, 70vh);
    overflow-y: auto;
    padding: .55rem;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
    z-index: 100020;
}

.at-live-search[hidden] {
    display: none !important;
}

.at-live-search__item {
    align-items: center;
    border-radius: 11px;
    color: var(--at-ink, #17212b);
    display: grid;
    gap: .7rem;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: .42rem .5rem;
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

.at-live-search__item:hover,
.at-live-search__item:focus-visible,
.at-live-search__item.is-active {
    background: var(--at-primary-softer, #f3f8fb);
    color: var(--at-primary-dark, #063A61);
    transform: translateX(2px);
}

.at-live-search__media {
    align-items: center;
    background: var(--at-primary-soft, #EAF4FB);
    border-radius: 9px;
    color: var(--at-primary, #075A93);
    display: flex;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.at-live-search__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.at-live-search__copy {
    display: grid;
    gap: .14rem;
    min-width: 0;
}

.at-live-search__copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-live-search__copy small {
    color: var(--at-muted, #5C6B76);
}

.at-live-search__arrow {
    color: var(--at-secondary, #A84200);
    font-weight: 900;
}

.at-live-search__all {
    background: var(--at-primary, #075A93);
    border-radius: 10px;
    color: #fff;
    font-size: .84rem;
    font-weight: 850;
    margin-top: .35rem;
    padding: .72rem .8rem;
    text-align: center;
    text-decoration: none;
}

.at-live-search__all:hover,
.at-live-search__all:focus-visible {
    background: var(--at-secondary, #A84200);
    color: #fff;
}

.at-live-search__empty,
.at-live-search__loading {
    color: var(--at-muted, #5C6B76);
    display: grid;
    gap: .2rem;
    padding: .8rem;
}

.at-live-search__empty strong {
    color: var(--at-primary-dark, #063A61);
}

.at-live-search__loading {
    align-items: center;
    grid-template-columns: 18px minmax(0, 1fr);
}

.at-live-search__loading > span {
    animation: at-search-spin 700ms linear infinite;
    border: 2px solid var(--at-primary-soft, #EAF4FB);
    border-radius: 50%;
    border-top-color: var(--at-primary, #075A93);
    height: 16px;
    width: 16px;
}

@keyframes at-search-spin {
    to { transform: rotate(360deg); }
}

/* Panier : une vraie action visible dans la zone utilitaire. */
body .at-cart-widget--ready {
    align-items: center !important;
    background: linear-gradient(145deg, #fff8ef, #fff) !important;
    border: 1px solid color-mix(in srgb, var(--at-secondary, #A84200) 28%, #fff) !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 18px rgba(122, 62, 8, .08) !important;
    color: var(--at-primary-dark, #063A61) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 58px !important;
    padding: .35rem .5rem !important;
    position: relative !important;
    transition: box-shadow 160ms ease, transform 160ms ease !important;
}

body .at-cart-widget--ready:hover,
body .at-cart-widget--ready:focus-visible {
    box-shadow: 0 12px 24px rgba(122, 62, 8, .16) !important;
    transform: translateY(-2px);
}

body .at-cart-widget--has-items {
    background: linear-gradient(145deg, var(--at-secondary, #A84200), #7A3200) !important;
    border-color: var(--at-secondary, #A84200) !important;
    color: #fff !important;
}

.at-cart-widget__label {
    color: inherit;
    display: block;
    font-size: .65rem;
    font-weight: 850;
    line-height: 1;
    margin-top: .18rem;
}

/* Repère de section dans le menu ou sur les pages hors menu. */
.at-header-nav nav a.at-nav-current,
.at-header-nav nav .at-nav-current-item > a {
    background: color-mix(in srgb, var(--at-primary-dark, #063A61) 72%, transparent) !important;
    box-shadow: inset 0 -4px 0 var(--at-secondary, #A84200);
    color: #fff !important;
}

.at-page-location {
    align-items: center;
    color: var(--at-muted, #5C6B76);
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 750;
    gap: .45rem;
    margin: 0 0 .75rem;
}

.at-page-location a {
    color: var(--at-primary, #075A93);
    text-decoration: none;
}

.at-page-location strong {
    color: var(--at-primary-dark, #063A61);
    font-weight: 850;
}

/* Mon compte : identité, résumé et hiérarchie plus lisibles. */
.at-account-dashboard-hero {
    align-items: stretch;
}

.at-account-dashboard-hero__identity {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.at-account-dashboard-hero__identity img {
    background: #fff;
    border: 3px solid rgba(255, 255, 255, .5);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    flex: 0 0 72px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.at-account-dashboard-hero__aside {
    align-items: flex-end;
    display: grid;
    flex: 0 0 auto;
    gap: .8rem;
    justify-items: end;
}

.at-account-dashboard-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

.at-account-dashboard-hero__stats > span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    font-size: .72rem;
    padding: .38rem .6rem;
}

.at-account-dashboard-hero__stats b {
    color: #fff;
    font-size: .88rem;
}

.at-account-dashboard-hero__aside > a {
    align-items: center;
    background: var(--at-secondary, #A84200);
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(118, 53, 0, .22);
    color: #fff;
    display: inline-flex;
    font-weight: 850;
    gap: .5rem;
    min-height: 46px;
    padding: .68rem 1rem;
    text-decoration: none;
}

.at-account-dashboard-hero__aside > a:hover,
.at-account-dashboard-hero__aside > a:focus-visible {
    background: #de6500;
    color: #fff;
    transform: translateY(-2px);
}

.at-account-quick__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.at-account-current-section {
    align-items: center;
    background: linear-gradient(90deg, var(--at-primary-softer, #f3f8fb), #fff);
    border: 1px solid var(--at-border, #D7E4EC);
    border-left: 4px solid var(--at-secondary, #A84200);
    border-radius: 12px;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding: .7rem .85rem;
}

.at-account-current-section span {
    color: var(--at-muted, #5C6B76);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.at-account-current-section strong {
    color: var(--at-primary-dark, #063A61);
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    background: #fff;
    border: 1px solid var(--at-border, #D7E4EC);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(10, 74, 113, .1);
    overflow: hidden;
}

body.woocommerce-account:not(.logged-in) .woocommerce form.login,
body.woocommerce-account:not(.logged-in) .woocommerce form.register {
    border: 0;
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.at-registration-security {
    align-items: flex-start;
    background: #effaf5;
    border: 1px solid #bce3d1;
    border-radius: 12px;
    color: #315f4b;
    display: flex;
    font-size: .82rem;
    gap: .65rem;
    margin: .85rem 0;
    padding: .75rem;
}

.at-registration-security > span {
    align-items: center;
    background: #168b58;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 26px;
    height: 26px;
    justify-content: center;
}

.at-registration-security p {
    margin: 0;
}

@media (max-width: 900px) {
    .at-account-dashboard-hero__aside {
        justify-items: start;
        width: 100%;
    }

    .at-account-dashboard-hero__stats {
        justify-content: flex-start;
    }

    .at-account-quick__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body .at-project-entry-floating {
        border: 0 !important;
        border-radius: 50% !important;
        height: 50px !important;
        max-width: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        width: 50px !important;
    }

    body .at-project-entry-floating__icon {
        flex-basis: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        width: 30px !important;
    }

    .at-cart-widget__label {
        display: none;
    }

    body .at-cart-widget--ready {
        border-radius: 50% !important;
        min-height: 44px !important;
        min-width: 44px !important;
        padding: .3rem !important;
    }

    .at-account-dashboard-hero__identity {
        align-items: flex-start;
    }

    .at-account-dashboard-hero__identity img {
        flex-basis: 54px;
        height: 54px;
        width: 54px;
    }

    .at-account-dashboard-hero__aside > a,
    .at-account-quick__grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .at-account-current-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .at-live-search {
        left: -4px;
        right: -4px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-live-search__loading > span {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-home-v2 .wp-block-woocommerce-product-collection.at-product-carousel--scrollable::after {
        animation: none;
    }
}

/* ==========================================================================
   Parcours visuel projets → configuration → produits
   ========================================================================== */

:root {
    --at-project-blue: #0f5f8f;
    --at-project-blue-dark: #073d63;
    --at-project-orange: #A84200;
    --at-project-orange-dark: #7A3200;
    --at-project-ink: #172432;
    --at-project-muted: #5e6b78;
    --at-project-line: #dce4e8;
    --at-project-surface: #f6f8f8;
    --at-project-white: #ffffff;
}

/* Accueil : contraste du visuel principal et appel à l'action prioritaire. */
.home .at-home-main > .wp-block-cover {
    isolation: isolate;
    min-height: clamp(520px, 62vw, 720px);
}

.home .at-home-main > .wp-block-cover::before {
    background:
        linear-gradient(90deg, rgba(5, 26, 43, .88) 0%, rgba(5, 36, 58, .74) 46%, rgba(5, 36, 58, .22) 100%) !important;
    opacity: 1 !important;
}

.home .at-home-main > .wp-block-cover .wp-block-cover__inner-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
    position: relative;
    width: min(100% - 40px, 1180px);
    z-index: 2;
}

.home .at-home-main > .wp-block-cover h1,
.home .at-home-main > .wp-block-cover h1 strong,
.home .at-home-main > .wp-block-cover p {
    color: var(--at-project-white) !important;
    max-width: 760px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.home .at-home-main > .wp-block-cover h1 {
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.home .at-home-main > .wp-block-cover .wp-block-button__link {
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 850;
    min-height: 52px;
    padding: .85rem 1.25rem;
}

.home .at-home-main > .wp-block-cover .at-hero-primary {
    background: var(--at-project-orange);
    border-color: var(--at-project-orange);
    color: var(--at-project-white);
}

.home .at-home-main > .wp-block-cover .at-hero-primary:hover {
    background: var(--at-project-orange-dark);
    border-color: var(--at-project-orange-dark);
}

.home .at-home-main > .wp-block-cover .at-hero-secondary {
    background: rgba(5, 26, 43, .22);
    border-color: rgba(255, 255, 255, .9);
    color: var(--at-project-white);
}

.home .at-home-main > .wp-block-cover .at-hero-secondary:hover {
    background: rgba(5, 26, 43, .48);
}

/* Encadré commun expliquant le parcours. */
.at-project-journey {
    background:
        radial-gradient(circle at 95% 0%, rgba(245, 130, 20, .18), transparent 32%),
        linear-gradient(135deg, var(--at-project-blue-dark), var(--at-project-blue));
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(7, 61, 99, .18);
    color: var(--at-project-white);
    margin: clamp(1.5rem, 4vw, 3rem) 0;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.5rem);
}

.at-project-journey__eyebrow {
    color: #ffd2a5;
    display: block;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.at-project-journey h2,
.at-project-journey h3 {
    color: var(--at-project-white) !important;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.12;
    margin: 0;
    max-width: 780px;
}

.at-project-journey > p {
    color: rgba(255, 255, 255, .84);
    margin: .7rem 0 0;
    max-width: 760px;
}

.at-project-journey__steps {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.at-project-journey__step {
    align-items: flex-start;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    min-height: 100%;
    padding: 1rem;
}

.at-project-journey__number {
    align-items: center;
    background: var(--at-project-orange);
    border-radius: 50%;
    color: var(--at-project-white);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: .82rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}

.at-project-journey__step strong {
    color: var(--at-project-white);
    display: block;
    font-size: .96rem;
    line-height: 1.25;
}

.at-project-journey__step span:last-child {
    color: rgba(255, 255, 255, .76);
    display: block;
    font-size: .82rem;
    line-height: 1.45;
    margin-top: .2rem;
}

.at-project-journey__actions,
.at-project-conversion__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.35rem;
}

.at-project-button {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 11px;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: .72rem 1rem;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.at-project-button:hover {
    transform: translateY(-1px);
}

.at-project-button--primary {
    background: var(--at-project-orange);
    color: var(--at-project-white) !important;
}

.at-project-button--primary:hover {
    background: var(--at-project-orange-dark);
}

.at-project-button--secondary {
    background: var(--at-project-white);
    border-color: var(--at-project-line);
    color: var(--at-project-blue-dark) !important;
}

.at-project-journey .at-project-button--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: var(--at-project-white) !important;
}

.at-project-journey .at-project-button--secondary:hover {
    background: rgba(255, 255, 255, .12);
}

/* Hub des projets. */
.post-type-archive-at_project .at-listing-shell,
.tax-at_project_type .at-listing-shell {
    padding-bottom: clamp(3rem, 7vw, 6rem);
    padding-top: clamp(2.5rem, 6vw, 5rem);
}

.post-type-archive-at_project .at-listing-shell > h1,
.tax-at_project_type .at-listing-shell > h1 {
    color: var(--at-project-ink);
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    letter-spacing: -.045em;
    line-height: 1;
    margin-bottom: .8rem;
}

.at-project-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.5rem;
}

.at-project-filter {
    appearance: none;
    background: var(--at-project-white);
    border: 1px solid var(--at-project-line);
    border-radius: 999px;
    color: var(--at-project-blue-dark);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    min-height: 40px;
    padding: .55rem .9rem;
}

.at-project-filter:hover,
.at-project-filter[aria-pressed="true"] {
    background: var(--at-project-blue);
    border-color: var(--at-project-blue);
    color: var(--at-project-white);
}

/* Cartes projet : image, informations et actions lisibles sans chevauchement. */
.at-project-grid {
    align-items: stretch;
    display: grid !important;
    gap: clamp(18px, 2.5vw, 28px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 1.5rem;
}

.at-project-card {
    background: var(--at-project-white);
    border: 1px solid var(--at-project-line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(18, 39, 54, .07);
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 0 !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.at-project-card:hover {
    border-color: #b9ccd6;
    box-shadow: 0 18px 38px rgba(18, 39, 54, .13);
    transform: translateY(-4px);
}

.at-project-card[hidden] {
    display: none !important;
}

.at-project-card__media {
    aspect-ratio: 16 / 10;
    background: #eaf0f2;
    display: block;
    flex: 0 0 auto;
    inset: auto !important;
    overflow: hidden;
    position: relative !important;
    width: 100% !important;
}

.at-project-card__media img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100% !important;
}

.at-project-card:hover .at-project-card__media img {
    transform: scale(1.035);
}

.at-project-card__media > span {
    background: rgba(7, 61, 99, .92);
    border-radius: 999px;
    bottom: 12px;
    color: var(--at-project-white) !important;
    font-size: .7rem;
    font-weight: 850;
    left: 12px;
    letter-spacing: .03em;
    line-height: 1;
    padding: .5rem .7rem;
    position: absolute;
    text-transform: uppercase;
}

.at-project-card__body {
    box-sizing: border-box;
    display: flex !important;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem !important;
    width: 100% !important;
}

.at-project-card__body h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    line-height: 1.22 !important;
    margin: 0 0 .65rem !important;
    min-height: 0 !important;
}

.at-project-card__body h3 a {
    color: var(--at-project-ink) !important;
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
    position: static !important;
    text-decoration: none !important;
}

.at-project-card__body > p {
    color: var(--at-project-muted) !important;
    display: -webkit-box;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1rem !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.at-project-card__route {
    align-items: center;
    color: var(--at-project-blue);
    display: flex;
    font-size: .74rem;
    font-weight: 850;
    gap: 6px;
    letter-spacing: .04em;
    margin: auto 0 .85rem;
    text-transform: uppercase;
}

.at-project-card__route::before {
    background: var(--at-project-orange);
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
}

.at-project-card__actions {
    display: grid !important;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 0 !important;
}

.at-project-card__actions a {
    align-items: center;
    border: 1px solid var(--at-project-line);
    border-radius: 10px;
    color: var(--at-project-blue-dark) !important;
    display: inline-flex !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 42px;
    padding: .55rem .65rem !important;
    position: static !important;
    text-align: center;
    text-decoration: none !important;
}

.at-project-card__actions a:hover {
    background: #edf4f7;
}

.at-project-card__actions .at-project-card__shop {
    background: var(--at-project-orange);
    border-color: var(--at-project-orange);
    color: var(--at-project-white) !important;
    grid-column: 1 / -1;
}

.at-project-card__actions .at-project-card__shop:hover {
    background: var(--at-project-orange-dark);
}

/* Fiche projet : hiérarchie, contenu et passage vers les produits. */
.single-at_project .at-single-shell {
    padding-bottom: clamp(3rem, 7vw, 6rem);
    padding-top: clamp(2.5rem, 6vw, 5rem);
}

.single-at_project .at-single-shell > .wp-block-post-title {
    color: var(--at-project-ink);
    font-size: clamp(2.15rem, 5vw, 4.25rem);
    letter-spacing: -.045em;
    line-height: 1.04;
    margin-bottom: 1rem;
    max-width: 980px;
}

.single-at_project .at-single-shell > .wp-block-post-excerpt {
    color: var(--at-project-muted);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
    line-height: 1.55;
    max-width: 850px;
}

.single-at_project .wp-block-post-featured-image.at-empty-media {
    display: none;
}

.single-at_project .entry-content {
    background: var(--at-project-white);
    border: 1px solid var(--at-project-line);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(18, 39, 54, .07);
    margin: 2rem 0 !important;
    max-width: none !important;
    padding: clamp(1.35rem, 4vw, 2.5rem) !important;
}

.single-at_project .entry-content h2 {
    color: var(--at-project-blue-dark);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    margin: 1.7rem 0 .45rem;
}

.single-at_project .entry-content h2:first-of-type {
    margin-top: .75rem;
}

.single-at_project .entry-content p,
.single-at_project .entry-content li {
    color: var(--at-project-muted);
    line-height: 1.7;
}

.at-project-conversion {
    background: var(--at-project-surface);
    border: 1px solid var(--at-project-line);
    border-radius: 20px;
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.at-project-conversion__eyebrow {
    color: var(--at-project-orange-dark);
    display: block;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .11em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.at-project-conversion h2 {
    color: var(--at-project-ink) !important;
    font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
    margin: 0 0 .55rem !important;
}

.at-project-conversion > p {
    color: var(--at-project-muted);
    margin: 0;
    max-width: 780px;
}

.at-project-products {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.at-project-product-link {
    background: var(--at-project-white);
    border: 1px solid var(--at-project-line);
    border-radius: 14px;
    color: var(--at-project-ink) !important;
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 1rem;
    text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.at-project-product-link:hover {
    border-color: var(--at-project-orange);
    box-shadow: 0 12px 24px rgba(18, 39, 54, .08);
    transform: translateY(-2px);
}

.at-project-product-link__icon {
    align-items: center;
    background: #FFF1E6;
    border-radius: 10px;
    color: var(--at-project-orange-dark);
    display: inline-flex;
    font-size: 1rem;
    height: 34px;
    justify-content: center;
    margin-bottom: .7rem;
    width: 34px;
}

.at-project-product-link strong {
    color: var(--at-project-ink);
    display: block;
    font-size: .95rem;
}

.at-project-product-link span:last-child {
    color: var(--at-project-muted);
    font-size: .78rem;
    line-height: 1.4;
    margin-top: .25rem;
}

.single-at_project .at-single-shell > .wp-block-heading,
.single-at_project .at-single-shell > .wp-block-paragraph,
.single-at_project .at-single-shell > .wp-block-buttons,
.single-at_project .at-single-shell > .at-whatsapp-button {
    max-width: 900px;
}

/* Le bloc projets de l'accueil devient une vraie vitrine, sans carrousel forcé. */
.home .at-home-projects-organized {
    background: var(--at-project-surface) !important;
}

.home .at-home-projects-organized .at-project-grid {
    margin-bottom: 1.25rem;
}

.at-home-project-cta {
    align-items: center;
    background: var(--at-project-white);
    border: 1px solid var(--at-project-line);
    border-radius: 16px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
}

.at-home-project-cta strong {
    color: var(--at-project-ink);
    display: block;
    font-size: 1rem;
}

.at-home-project-cta span {
    color: var(--at-project-muted);
    display: block;
    font-size: .83rem;
    margin-top: .15rem;
}

/* Les appels à l'action sont intégrés à ces pages : éviter les doublons flottants. */
.home .atp360-floating,
.home .ate-floating-widget,
.post-type-archive-at_project .atp360-floating,
.post-type-archive-at_project .ate-floating-widget,
.tax-at_project_type .atp360-floating,
.tax-at_project_type .ate-floating-widget,
.single-at_project .atp360-floating,
.single-at_project .ate-floating-widget {
    display: none !important;
}

@media (max-width: 980px) {
    .at-project-grid,
    .at-project-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .at-project-journey__steps {
        grid-template-columns: 1fr;
    }
}

/* Hero 4.8 : pleine largeur réelle, indépendamment du conteneur de la page. */
body:has(.at-hero-slider--ready) {
    overflow-x: clip;
}

.at-home-main > .at-hero-slider--ready,
main > .at-hero-slider--ready {
    box-sizing: border-box;
    left: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    position: relative;
    right: 50%;
    width: 100vw !important;
}

.at-hero-slider--ready .at-hero__content,
.at-hero-slider--ready .wp-block-cover__inner-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Position de retour après validation : résultat visible, puis suite du parcours. */
#resultat-diagnostic {
    outline: none;
    scroll-margin-top: clamp(28px, 4vw, 52px);
}

#resultat-diagnostic:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--at-success) 24%, transparent);
}

/* ========================================================================== 
   Mon compte 4.9 — espace client authentifié
   ========================================================================== */
body.logged-in.woocommerce-account {
    background:
        radial-gradient(circle at 90% 10%, rgba(242, 121, 10, .08), transparent 25%),
        var(--at-surface);
}

body.logged-in.woocommerce-account main {
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

body.logged-in.woocommerce-account main > .wp-block-group,
body.logged-in.woocommerce-account main .woocommerce {
    margin-inline: auto;
    max-width: 1240px;
    width: 100%;
}

.at-account-dashboard-hero {
    align-items: center;
    background:
        radial-gradient(circle at 92% 0, rgba(242, 121, 10, .34), transparent 30%),
        linear-gradient(135deg, var(--at-primary-deep), var(--at-primary));
    border: 1px solid color-mix(in srgb, var(--at-primary) 55%, white);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(8, 59, 93, .16);
    color: var(--at-white);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2.5rem);
}

.at-account-dashboard-hero__eyebrow {
    color: #FFD7B5;
    display: block;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.at-account-dashboard-hero h2 {
    color: var(--at-white) !important;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    letter-spacing: -.035em;
    margin: 0 0 .45rem;
}

.at-account-dashboard-hero p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
    max-width: 720px;
}

.at-account-dashboard-hero > a {
    align-items: center;
    background: var(--at-secondary);
    border: 1px solid var(--at-secondary);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(118, 53, 0, .22);
    color: var(--at-white);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 850;
    gap: .55rem;
    min-height: 50px;
    padding: .75rem 1.1rem;
}

.at-account-dashboard-hero > a:hover {
    background: var(--at-secondary-hover);
    color: var(--at-white);
    transform: translateY(-2px);
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--at-white);
    border: 1px solid var(--at-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(8, 59, 93, .07);
    box-sizing: border-box;
    float: left;
    overflow: hidden;
    padding: .65rem;
    position: sticky;
    top: 24px;
    width: 26%;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation li {
    border: 0;
    margin: 0;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a {
    align-items: center;
    border-radius: 11px;
    color: var(--at-muted);
    display: flex;
    font-weight: 750;
    gap: .7rem;
    min-height: 48px;
    padding: .55rem .75rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    align-items: center;
    background: var(--at-primary-soft);
    border-radius: 9px;
    color: var(--at-primary);
    content: "•";
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 1.05rem;
    height: 32px;
    justify-content: center;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "⌂" !important; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "▣" !important; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "↓" !important; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "⌖" !important; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "◎" !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "↪" !important; }
.woocommerce-MyAccount-navigation li[class*="atout-plus"] a::before { content: "★" !important; }

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: var(--at-primary-softer);
    color: var(--at-primary-dark);
    transform: translateX(2px);
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--at-primary);
    color: var(--at-white);
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before {
    background: rgba(255, 255, 255, .16);
    color: var(--at-white);
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--at-white);
    border: 1px solid var(--at-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(8, 59, 93, .07);
    box-sizing: border-box;
    float: right;
    min-height: 430px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    width: calc(74% - 18px);
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content h2,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: var(--at-primary-dark);
    letter-spacing: -.02em;
}

.at-account-quick {
    border-top: 1px solid var(--at-border);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.at-account-quick__heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.at-account-quick__heading span {
    color: var(--at-secondary-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.at-account-quick__heading h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    margin: .2rem 0 0;
}

.at-account-quick__heading > a {
    font-size: .86rem;
    font-weight: 800;
}

.at-account-quick__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.at-account-quick-card {
    background: linear-gradient(145deg, var(--at-primary-softer), var(--at-white));
    border: 1px solid var(--at-border);
    border-radius: 15px;
    color: var(--at-ink);
    display: grid;
    gap: .42rem;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.at-account-quick-card > span {
    align-items: center;
    background: var(--at-primary-soft);
    border-radius: 11px;
    color: var(--at-primary);
    display: flex;
    font-size: 1.1rem;
    grid-row: 1 / 4;
    height: 42px;
    justify-content: center;
}

.at-account-quick-card strong {
    color: var(--at-primary-dark);
}

.at-account-quick-card small {
    color: var(--at-muted);
    line-height: 1.45;
}

.at-account-quick-card b {
    color: var(--at-secondary-dark);
    font-size: .82rem;
}

.at-account-quick-card:hover {
    border-color: var(--at-primary);
    box-shadow: 0 12px 28px rgba(8, 59, 93, .11);
    transform: translateY(-3px);
}

body.logged-in.woocommerce-account .woocommerce table.shop_table {
    border: 1px solid var(--at-border);
    border-collapse: separate;
    border-radius: 14px;
    overflow: hidden;
}

body.logged-in.woocommerce-account .woocommerce table.shop_table th {
    background: var(--at-primary-softer);
    color: var(--at-primary-dark);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.logged-in.woocommerce-account .woocommerce table.shop_table td,
body.logged-in.woocommerce-account .woocommerce table.shop_table th {
    border-color: var(--at-border);
    padding: .9rem;
}

body.logged-in.woocommerce-account .woocommerce-Address {
    background: var(--at-primary-softer);
    border: 1px solid var(--at-border);
    border-radius: 15px;
    box-sizing: border-box;
    padding: 1.1rem;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(input.input-text, select, textarea) {
    background: var(--at-white);
    border: 1px solid var(--at-border-strong);
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 48px;
    padding: .65rem .8rem;
    width: 100%;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(input.input-text, select, textarea):focus {
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-primary) 14%, transparent);
    outline: 0;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content .button {
    background: var(--at-primary);
    border-radius: 10px;
    color: var(--at-white);
    font-weight: 800;
    min-height: 44px;
    padding: .65rem 1rem;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: var(--at-primary-hover);
}

@media (max-width: 900px) {
    .at-account-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation,
    body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        position: static;
        width: 100%;
    }

    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 14px;
    }

    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .at-account-dashboard-hero > a,
    .at-account-quick__grid {
        width: 100%;
    }

    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul,
    .at-account-quick__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .at-account-quick__heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .home .at-home-main > .wp-block-cover {
        min-height: 590px;
    }

    .home .at-home-main > .wp-block-cover::before {
        background: linear-gradient(180deg, rgba(5, 26, 43, .82), rgba(5, 26, 43, .68)) !important;
    }

    .home .at-home-main > .wp-block-cover .wp-block-cover__inner-container {
        width: min(100% - 28px, 1180px);
    }

    .home .at-home-main > .wp-block-cover h1 {
        font-size: clamp(2.15rem, 11vw, 3.3rem);
    }

    .home .at-home-main > .wp-block-cover .wp-block-buttons {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .home .at-home-main > .wp-block-cover .wp-block-button,
    .home .at-home-main > .wp-block-cover .wp-block-button__link {
        width: 100%;
    }

    .at-project-grid,
    .at-project-products {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .at-project-card__media {
        aspect-ratio: 16 / 9;
    }

    .at-project-card__actions {
        grid-template-columns: 1fr;
    }

    .at-project-card__actions .at-project-card__shop {
        grid-column: auto;
    }

    .at-project-journey {
        border-radius: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .at-project-journey__actions,
    .at-project-conversion__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .at-project-button {
        width: 100%;
    }

    .at-home-project-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .at-home-project-cta .at-project-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-project-card,
    .at-project-card__media img,
    .at-project-product-link,
    .at-project-button {
        transition: none;
    }
}

/* ==========================================================================
   Sécurité de mise en page — cartes, grilles et blocs imbriqués
   ========================================================================== */

/*
 * Certains grands composants utilisent la largeur de la fenêtre alors qu'ils
 * peuvent être insérés dans une colonne de contenu plus étroite. Ils doivent
 * toujours respecter la largeur réelle de leur parent.
 */
.at-project-wizard,
.at-lead-capture {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
}

.at-project-wizard > *,
.at-project-wizard form,
.at-project-wizard fieldset,
.at-lead-capture > *,
.at-lead-capture form {
    max-width: 100%;
    min-width: 0;
}

.at-wizard-actions {
    flex-wrap: wrap;
}

.at-wizard-actions > * {
    max-width: 100%;
}

/*
 * Les enfants d'une grille ne doivent jamais imposer leur largeur au parent.
 * Cette règle couvre les cartes de besoins, projets, univers, ressources,
 * marques, favoris et produits.
 */
.at-needs-grid > *,
.at-category-grid > *,
.at-project-grid > *,
.at-resource-grid > *,
.at-value-pillars > *,
.at-brand-grid > *,
.at-favorites__grid > *,
.at-product-choice-grid > *,
.wp-block-woocommerce-product-collection .wc-block-product-template > * {
    max-width: 100%;
    min-width: 0;
}

.at-need-card,
.at-category-card,
.at-project-card,
.at-resource-card,
.at-post-card,
.at-favorite-card,
.at-project-product-link,
.wp-block-woocommerce-product-collection .wc-block-product {
    isolation: isolate;
    min-width: 0;
}

.at-need-card strong,
.at-need-card small,
.at-category-card strong,
.at-project-card h3,
.at-project-card p,
.at-project-card a,
.at-resource-card h3,
.at-resource-card p,
.at-post-card h2,
.at-post-card h3,
.at-favorite-card h2,
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a,
.wc-block-product .wp-block-woocommerce-product-price {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Collections : conserver des cartes assez larges pour leurs quatre actions. */
@media (min-width: 681px) {
    .wp-block-woocommerce-product-collection .wc-block-product-template {
        align-items: stretch !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    }
}

.wp-block-woocommerce-product-collection .wc-block-product {
    align-self: stretch;
    flex-basis: auto !important;
    height: 100% !important;
    margin: 0 !important;
    width: auto !important;
}

.at-product-card-actions {
    display: grid !important;
    gap: .45rem !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100%;
}

.at-product-card-actions > * {
    max-width: 100%;
    min-width: 0;
}

.at-product-card-actions .wp-element-button,
.at-product-card-actions .at-product-view {
    overflow-wrap: anywhere;
    white-space: normal;
}

.at-product-card-actions .at-product-card-whatsapp,
.at-product-card-actions .at-wishlist-button {
    justify-self: start;
}

/*
 * Le bouton WhatsApp du thème et le bouton d'assistance de l'hébergeur
 * occupaient la même zone. WhatsApp est décalé sans masquer les cartes.
 */
@media (min-width: 781px) {
    .at-floating-whatsapp {
        right: 142px !important;
    }
}

/*
 * Les pages marchandes possèdent déjà WhatsApp et les actions de projet dans
 * leurs cartes ou leur fiche. Supprimer les deux doublons horizontaux évite
 * qu'ils recouvrent les prix, les images ou les boutons d'achat.
 */
.page-id-63 .ate-floating-widget,
.page-id-63 .at-floating-whatsapp,
.page-id-64 .ate-floating-widget,
.page-id-64 .at-floating-whatsapp,
.woocommerce-shop .ate-floating-widget,
.woocommerce-shop .at-floating-whatsapp,
.tax-product_cat .ate-floating-widget,
.tax-product_cat .at-floating-whatsapp,
.single-product .ate-floating-widget,
.single-product .at-floating-whatsapp {
    display: none !important;
}

@media (max-width: 780px) {
    .at-project-wizard,
    .at-lead-capture {
        overflow: hidden;
    }

    .at-project-wizard {
        padding: 1.15rem !important;
    }

    .at-lead-capture__intro,
    .at-lead-capture__form {
        padding: 1.25rem !important;
    }

    body:not(.home) .wp-block-woocommerce-product-collection .wc-block-product-template {
        align-items: stretch !important;
        display: grid !important;
        gap: 12px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /*
     * Sur téléphone, conserver le configurateur général et retirer le second
     * bouton Électricité qui faisait doublon dans la même zone.
     */
    .ate-floating-widget {
        display: none !important;
    }

    .atp360-floating {
        align-items: center !important;
        border-radius: 50% !important;
        bottom: 82px !important;
        display: flex !important;
        font-size: 0 !important;
        height: 56px !important;
        justify-content: center !important;
        padding: 0 !important;
        right: 14px !important;
        top: auto !important;
        transform: none !important;
        width: 56px !important;
        writing-mode: horizontal-tb !important;
    }

    .atp360-floating::before {
        content: "⌂";
        font-size: 1.25rem;
        line-height: 1;
    }

    .at-floating-whatsapp {
        bottom: 14px !important;
        right: 132px !important;
    }
}

@media (max-width: 540px) {
    body:not(.home) .wp-block-woocommerce-product-collection .wc-block-product-template {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .at-choice-grid,
    .at-project-card__actions,
    .at-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .at-project-card__actions .at-project-card__shop {
        grid-column: auto;
    }
}

/* ==========================================================================
   Mon compte — connexion et inscription
   ========================================================================== */

body.woocommerce-account:not(.logged-in) {
    background: #f5f7f8;
}

body.woocommerce-account:not(.logged-in) main {
    overflow: hidden;
}

body.woocommerce-account:not(.logged-in) main > .wp-block-group,
body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 1180px;
}

body.woocommerce-account:not(.logged-in) .entry-title,
body.woocommerce-account:not(.logged-in) main h1 {
    margin-bottom: .55rem;
}

.at-account-welcome {
    align-items: center;
    background:
        radial-gradient(circle at 92% 10%, rgba(235, 110, 15, .20), transparent 30%),
        linear-gradient(135deg, #063A61 0%, #075A93 100%);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(7, 61, 58, .16);
    color: #fff;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
    margin: 0 0 1rem;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    position: relative;
}

.at-account-welcome__copy,
.at-account-benefits {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.at-account-welcome__eyebrow {
    color: #FFD7B5;
    display: block;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .09em;
    margin-bottom: .65rem;
    text-transform: uppercase;
}

.at-account-welcome h2 {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0 0 .85rem;
    max-width: 680px;
}

.at-account-welcome__copy p {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.98rem, 1.5vw, 1.1rem);
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
}

.at-account-benefits {
    display: grid;
    gap: .65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.at-account-benefits li {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    display: grid;
    gap: .05rem .7rem;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: .72rem .85rem;
}

.at-account-benefits li > span {
    align-items: center;
    background: #A84200;
    border-radius: 50%;
    display: flex;
    font-size: .78rem;
    font-weight: 900;
    grid-row: 1 / 3;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.at-account-benefits strong {
    color: #fff;
    font-size: .92rem;
}

.at-account-benefits small {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    background: #fff;
    border: 1px solid #dfe6e8;
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(26, 48, 57, .09);
    box-sizing: border-box;
    display: block;
    margin: 0;
    overflow: hidden;
    padding: clamp(1.1rem, 3vw, 2rem);
}

.at-account-switch {
    background: #eef3f3;
    border: 1px solid #d9e3e3;
    border-radius: 14px;
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    padding: .35rem;
}

.at-account-switch__button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #506169;
    cursor: pointer;
    display: inline-flex;
    font-size: .94rem;
    font-weight: 800;
    gap: .55rem;
    justify-content: center;
    min-height: 52px;
    padding: .7rem 1rem;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}

.at-account-switch__button::before {
    font-size: 1.05rem;
    line-height: 1;
}

.at-account-switch__button[data-account-panel="login"]::before {
    content: "↪";
}

.at-account-switch__button[data-account-panel="register"]::before {
    content: "+";
}

.at-account-switch__button[aria-selected="true"] {
    background: #fff;
    box-shadow: 0 5px 16px rgba(26, 48, 57, .1);
    color: #075A93;
}

.at-account-switch__button:focus-visible {
    outline: 3px solid rgba(235, 110, 15, .30);
    outline-offset: 2px;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1[hidden],
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2[hidden] {
    display: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1 > h2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 > h2 {
    color: #172432;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    letter-spacing: -.025em;
    margin: 0 0 .45rem;
    text-align: center;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1 > h2::after,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 > h2::after {
    color: #687780;
    display: block;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    margin-top: .35rem;
    text-align: center;
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1 > h2::after {
    content: "Retrouvez vos projets, commandes et documents.";
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 > h2::after {
    content: "Particulier ou professionnel : votre espace est gratuit.";
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form {
    border: 0;
    margin: 1.35rem auto 0;
    max-width: 620px;
    padding: 0;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-row,
body.woocommerce-account:not(.logged-in) form.woocommerce-form > p {
    margin-bottom: .9rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form label {
    color: #283943;
    display: block;
    font-size: .82rem;
    font-weight: 750;
    margin-bottom: .38rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form input[type="text"],
body.woocommerce-account:not(.logged-in) .woocommerce-form input[type="email"],
body.woocommerce-account:not(.logged-in) .woocommerce-form input[type="tel"],
body.woocommerce-account:not(.logged-in) .woocommerce-form input[type="password"],
body.woocommerce-account:not(.logged-in) .woocommerce-form select {
    background: #fbfcfc;
    border: 1px solid #cfdadd;
    border-radius: 10px;
    box-sizing: border-box;
    color: #172432;
    font-size: 16px;
    min-height: 52px;
    padding: .72rem .85rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form input:focus,
body.woocommerce-account:not(.logged-in) .woocommerce-form select:focus {
    background: #fff;
    border-color: #075A93;
    box-shadow: 0 0 0 3px rgba(11, 98, 93, .12);
    outline: 0;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
    align-items: center;
    display: inline-flex;
    gap: .4rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme input {
    accent-color: #075A93;
    height: 18px;
    width: 18px;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form .button {
    align-items: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: .75rem 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login .button {
    background: #075A93;
    color: #fff;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-register .button {
    background: #A84200;
    box-shadow: 0 8px 20px rgba(235, 110, 15, .20);
    color: #fff;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form .button:hover {
    box-shadow: 0 9px 22px rgba(23, 36, 50, .16);
    transform: translateY(-1px);
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
    font-size: .84rem;
    margin-bottom: 0;
    text-align: center;
}

body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register > p:not(.form-row) {
    color: #6d7980;
    font-size: .76rem;
    line-height: 1.55;
}

.at-account-reassurance {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe6e8;
    border-radius: 14px;
    color: #53636b;
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: 1rem;
    padding: .8rem 1rem;
    text-align: center;
}

.at-account-reassurance p {
    font-size: .82rem;
    margin: 0;
}

/* ==========================================================================
   Point d'entrée unique — Démarrer mon projet
   ========================================================================== */

.at-project-gateway-page.at-project-choice-mode main.at-page-shell,
.page-id-142.at-project-choice-mode main.at-page-shell {
    max-width: 1240px;
}

.at-project-gateway-page.at-project-choice-mode main.at-page-shell > h1,
.page-id-142.at-project-choice-mode main.at-page-shell > h1 {
    margin-bottom: .65rem;
    text-align: center;
}

/* Le thème parent force .entry-content en flow-root. Préserver le masquage
   natif du configurateur tant que le visiteur n'a pas choisi son parcours. */
.at-project-gateway-page.at-project-choice-mode main.at-page-shell > .entry-content[hidden],
.page-id-142.at-project-choice-mode main.at-page-shell > .entry-content[hidden] {
    display: none !important;
}

.at-project-gateway {
    background:
        radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--at-secondary) 16%, transparent), transparent 31%),
        linear-gradient(145deg, var(--at-primary-softer), var(--at-white) 58%);
    border: 1px solid var(--at-border);
    border-radius: 26px;
    box-shadow: var(--at-brand-shadow);
    box-sizing: border-box;
    margin: 0 auto 2rem;
    max-width: 1180px;
    overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2.7rem);
    position: relative;
}

.at-project-gateway__intro {
    margin: 0 auto 1.6rem;
    max-width: 760px;
    text-align: center;
}

.at-project-gateway__eyebrow {
    color: var(--at-primary);
    display: block;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.at-project-gateway__intro h2 {
    color: var(--at-primary-dark);
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0 0 .75rem;
}

.at-project-gateway__intro p {
    color: var(--at-muted);
    font-size: clamp(.94rem, 1.4vw, 1.06rem);
    line-height: 1.65;
    margin: 0;
}

.at-project-gateway__grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.at-project-path {
    background: var(--at-white);
    border: 1px solid var(--at-border);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(13, 79, 122, .08);
    box-sizing: border-box;
    color: var(--at-ink);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.at-project-path:hover {
    border-color: color-mix(in srgb, var(--at-primary) 45%, var(--at-border));
    box-shadow: var(--at-brand-shadow-hover);
    transform: translateY(-3px);
}

.at-project-path--featured {
    border-color: color-mix(in srgb, var(--at-primary) 42%, white);
}

.at-project-path__tag {
    background: var(--at-primary-soft);
    border-radius: 999px;
    color: var(--at-primary-dark);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .04em;
    padding: .34rem .62rem;
    position: absolute;
    right: .9rem;
    text-transform: uppercase;
    top: .9rem;
}

.at-project-path__icon {
    align-items: center;
    background: var(--at-primary-soft);
    border-radius: 14px;
    color: var(--at-primary);
    display: inline-flex;
    font-size: 1.45rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

.at-project-path--electric .at-project-path__icon {
    background: var(--at-secondary-soft);
    color: var(--at-secondary-dark);
}

.at-project-path--quote .at-project-path__icon {
    background: var(--at-surface);
    color: var(--at-primary-dark);
}

.at-project-path h3 {
    color: var(--at-primary-dark);
    font-size: 1.2rem;
    letter-spacing: -.02em;
    margin: 0 0 .45rem;
}

.at-project-path > p {
    color: var(--at-muted);
    font-size: .88rem;
    line-height: 1.55;
    margin: 0 0 .85rem;
}

.at-project-path ul {
    color: var(--at-ink);
    display: grid;
    font-size: .8rem;
    gap: .42rem;
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
}

.at-project-path li {
    padding-left: 1.05rem;
    position: relative;
}

.at-project-path li::before {
    color: var(--at-primary);
    content: "✓";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.at-project-path__button {
    align-items: center;
    background: var(--at-primary);
    border-radius: 11px;
    color: var(--at-white) !important;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 850;
    gap: .45rem;
    justify-content: center;
    margin-top: auto;
    min-height: 48px;
    padding: .7rem .9rem;
    text-align: center;
    text-decoration: none !important;
}

.at-project-path--electric .at-project-path__button {
    background: var(--at-secondary);
}

.at-project-path--quote .at-project-path__button {
    background: var(--at-primary-dark);
}

.at-project-path__button::after {
    content: "→";
}

.at-project-gateway__note {
    align-items: center;
    color: var(--at-muted);
    display: flex;
    font-size: .79rem;
    gap: .55rem;
    justify-content: center;
    margin: 1.2rem 0 0;
    text-align: center;
}

.at-project-gateway__note span {
    align-items: center;
    background: var(--at-primary-soft);
    border-radius: 50%;
    color: var(--at-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.at-project-context {
    align-items: center;
    background: var(--at-primary-softer);
    border: 1px solid var(--at-border);
    border-radius: 14px;
    box-sizing: border-box;
    color: var(--at-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .45rem;
    margin: 0 auto 1rem;
    max-width: 1180px;
    padding: .7rem .9rem;
}

.at-project-context a {
    color: var(--at-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.at-project-context__current {
    color: var(--at-ink);
    font-weight: 750;
}

.at-project-context__change {
    background: var(--at-white);
    border: 1px solid var(--at-border);
    border-radius: 999px;
    margin-left: auto;
    padding: .38rem .7rem;
}

/* Le configurateur électrique devient un parcours du canal unique. */
.ate-floating-widget {
    display: none !important;
}

.at-project-entry-floating {
    align-items: center !important;
    background: var(--at-primary) !important;
    border: 0 !important;
    border-radius: 999px 0 0 999px !important;
    box-shadow: 0 10px 28px rgba(13, 79, 122, .25) !important;
    color: var(--at-white) !important;
    display: flex !important;
    flex-direction: row !important;
    font-size: .78rem !important;
    font-weight: 850 !important;
    gap: .45rem !important;
    height: auto !important;
    line-height: 1.15 !important;
    min-height: 48px !important;
    padding: .7rem .85rem !important;
    text-decoration: none !important;
    width: auto !important;
    writing-mode: horizontal-tb !important;
}

.at-project-entry-floating__icon {
    font-size: 1.05rem;
}

.at-project-tool-page .atp360-floating,
.page-id-59 .atp360-floating,
.page-id-142 .atp360-floating,
.page-id-148 .atp360-floating {
    display: none !important;
}

@media (max-width: 900px) {
    .at-project-gateway__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .at-project-path {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .at-project-gateway {
        border-radius: 18px;
        padding: 1.05rem;
    }

    .at-project-gateway__intro {
        margin-bottom: 1.1rem;
    }

    .at-project-path {
        border-radius: 16px;
        padding: 1.05rem;
    }

    .at-project-context {
        align-items: flex-start;
    }

    .at-project-context__change {
        margin-left: 0;
        width: 100%;
    }

    .at-project-entry-floating {
        border-radius: 50% !important;
        bottom: 82px !important;
        font-size: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 !important;
        right: 14px !important;
        width: 56px !important;
    }

    .at-project-entry-floating__icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 760px) {
    .at-account-welcome {
        grid-template-columns: minmax(0, 1fr);
    }

    .at-account-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .at-account-benefits li {
        align-content: start;
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .at-account-benefits li > span {
        grid-row: auto;
        justify-self: center;
    }

}

@media (max-width: 560px) {
    body.woocommerce-account:not(.logged-in) main h1 {
        font-size: 1.75rem;
    }

    .at-account-welcome {
        border-radius: 18px;
        padding: 1.35rem;
    }

    .at-account-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
    body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
        padding: 0;
    }

    body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
        border-radius: 16px;
        padding: 1rem;
    }

    .at-account-switch {
        margin-bottom: 1.2rem;
    }

    .at-account-switch__button {
        font-size: .84rem;
        min-height: 48px;
        padding: .55rem .45rem;
    }

    .at-account-reassurance {
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Palette de marque et harmonie visuelle — V1
   Bleu du logo = structure, orange du logo = action, surfaces claires = rythme.
   ========================================================================== */

:root {
    --at-primary: #075A93;
    --at-primary-hover: #0B5F9D;
    --at-primary-dark: #063A61;
    --at-primary-deep: #063A61;
    --at-primary-soft: #EAF4FB;
    --at-primary-softer: #F4F9FC;
    --at-secondary: #A84200;
    --at-secondary-hover: #7A3200;
    --at-secondary-dark: #9C4300;
    --at-secondary-soft: #FFF1E6;
    --at-accent: #FF9A4A;
    --at-contrast: #172432;
    --at-ink: #172432;
    --at-muted: #5C6B76;
    --at-base: #FFFFFF;
    --at-surface: #F5F8FA;
    --at-surface-blue: #eef7fc;
    --at-border: #D7E4EC;
    --at-border-strong: #bfd0da;
    --at-white: #fff;
    --at-success: #0B6B43;
    --at-danger: #a93434;
    --at-brand-shadow: 0 14px 36px rgba(8, 75, 122, .10);
    --at-brand-shadow-hover: 0 18px 42px rgba(8, 75, 122, .16);

    /* Les modules métier reprennent la même identité visuelle. */
    --at-project-blue: var(--at-primary);
    --at-project-blue-dark: var(--at-primary-dark);
    --at-project-orange: var(--at-secondary);
    --at-project-orange-dark: var(--at-secondary-hover);
    --at-project-ink: var(--at-ink);
    --at-project-muted: var(--at-muted);
    --at-project-line: var(--at-border);
    --at-project-surface: var(--at-primary-softer);
    --at-project-white: var(--at-white);
    --atc-green: var(--at-primary);
    --atc-orange: var(--at-secondary);
    --atc-ink: var(--at-ink);
    --atc-soft: var(--at-primary-softer);
    --atc-line: var(--at-border);
    --ate-primary: var(--at-secondary);
    --ate-primary-dark: var(--at-secondary-hover);
    --ate-ink: var(--at-ink);
    --ate-muted: var(--at-muted);
    --ate-line: var(--at-border);
    --ate-bg: var(--at-surface);
    --wc-primary: var(--at-primary);
}

body {
    background: var(--at-base);
    color: var(--at-ink);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: var(--at-ink);
}

body a {
    text-decoration-color: color-mix(in srgb, var(--at-primary) 38%, transparent);
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--at-secondary) 32%, transparent);
    outline-offset: 2px;
}

/* En-tête : le bleu organise la navigation et l'orange signale l'action. */
.at-contact-bar,
.at-site-footer {
    background: var(--at-primary-dark);
}

.at-header-nav {
    background: var(--at-primary);
    box-shadow: 0 4px 14px rgba(8, 75, 122, .14);
}

.at-header-nav a:hover,
.at-header-nav a:focus-visible {
    background: color-mix(in srgb, var(--at-primary-dark) 36%, transparent);
}

.at-mega-menu__toggle,
.at-product-search__form button,
.at-product-search__form [type="submit"] {
    background: var(--at-secondary);
    color: var(--at-white);
}

.at-mega-menu__toggle:hover,
.at-product-search__form button:hover,
.at-product-search__form [type="submit"]:hover {
    background: var(--at-secondary-hover);
}

.at-product-search__form {
    background: var(--at-primary-softer);
    border-color: var(--at-border);
}

.at-product-search__form:focus-within {
    background: var(--at-white);
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-primary) 13%, transparent);
}

.at-account-actions a:hover,
.at-account-actions a:focus-visible,
.at-favorites-link:hover,
.at-atoutplus-link:hover {
    color: var(--at-primary-dark);
}

.at-mega-menu__panel,
.at-product-search__suggestions {
    border-color: var(--at-border);
    box-shadow: var(--at-brand-shadow);
}

.at-mega-menu__monogram {
    background: var(--at-primary-soft);
    color: var(--at-primary);
}

/* Rythme des pages : une alternance discrète, sans multiplier les couleurs. */
.at-v2-section--surface,
.at-project-content .at-projects-surface,
.woocommerce-account .woocommerce-MyAccount-content {
    background-color: var(--at-primary-softer);
}

.at-v2-heading .at-eyebrow,
.at-section-heading .at-eyebrow,
.at-project-wizard .at-eyebrow,
.at-atoutplus-cta .at-eyebrow,
.at-resource-card .at-eyebrow {
    color: var(--at-primary-dark);
}

.at-section-heading p,
.at-v2-heading p,
.at-project-wizard__intro p {
    color: var(--at-muted);
}

/* Une seule famille visuelle pour toutes les cartes. */
.at-need-card,
.at-project-card,
.at-home-project-cta,
.at-category-card,
.at-value-pillar,
.at-resource-card,
.at-project-wizard,
.wc-block-product,
.woocommerce ul.products li.product,
.at-catalog-filters,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
    background: var(--at-white);
    border-color: var(--at-border);
    box-shadow: 0 8px 24px rgba(13, 79, 122, .055);
}

.at-need-card:hover,
.at-project-card:hover,
.at-category-card:hover,
.at-resource-card:hover,
.wc-block-product:hover,
.woocommerce ul.products li.product:hover {
    border-color: color-mix(in srgb, var(--at-primary) 55%, var(--at-border));
    box-shadow: var(--at-brand-shadow-hover);
}

.at-need-card__number,
.at-product-saving {
    color: var(--at-secondary-dark);
}

.at-project-card__media,
.at-category-card__media,
.at-resource-card__media,
.at-trust-bar__icon {
    background: var(--at-primary-soft);
    color: var(--at-primary);
}

.at-project-card__route,
.at-product-view,
.at-category-card__body span,
.at-resource-card a {
    color: var(--at-primary-dark);
}

.at-value-pillar {
    border-top: 4px solid var(--at-primary);
}

.at-value-pillar:nth-child(even) {
    border-top-color: var(--at-secondary);
}

/* Projets : structure bleue, conversion orange. */
.at-project-journey,
.at-lead-capture {
    background:
        radial-gradient(circle at 94% 0%, rgba(235, 110, 15, .20), transparent 34%),
        linear-gradient(135deg, var(--at-primary-dark), var(--at-primary));
    box-shadow: 0 18px 45px rgba(8, 75, 122, .18);
}

.at-project-journey__eyebrow,
.at-lead-capture .at-eyebrow {
    color: #FFD7B5;
}

.at-project-journey__number,
.at-project-card__shop,
.at-project-button--primary {
    background: var(--at-secondary);
    border-color: var(--at-secondary);
    color: var(--at-white);
}

.at-project-card__shop:hover,
.at-project-button--primary:hover {
    background: var(--at-secondary-hover);
    border-color: var(--at-secondary-hover);
}

.at-project-filter {
    color: var(--at-primary-dark);
}

.at-project-filter.is-active,
.at-project-filter[aria-pressed="true"] {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: var(--at-white);
}

/* Promotions et produits : l'orange reste réservé au prix et à l'achat. */
.at-promo-countdown {
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14), transparent 32%),
        linear-gradient(135deg, var(--at-primary-dark), var(--at-primary));
    border: 1px solid color-mix(in srgb, var(--at-primary) 58%, var(--at-white));
    box-shadow: 0 18px 45px rgba(13, 79, 122, .17);
    color: var(--at-white);
}

.at-promo-countdown h2,
.at-promo-countdown h3,
.at-promo-countdown p {
    color: var(--at-white);
}

.at-primary-button,
.at-hero-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link),
.wc-block-components-product-button__button {
    background-color: var(--at-secondary);
    border-color: var(--at-secondary);
    color: var(--at-white);
}

.at-primary-button:hover,
.at-hero-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-product-button__button:hover {
    background-color: var(--at-secondary-hover);
    border-color: var(--at-secondary-hover);
    color: var(--at-white);
}

.at-secondary-button,
.at-filter-submit,
.at-filter-mobile-toggle {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: var(--at-white);
}

.at-secondary-button:hover,
.at-filter-submit:hover,
.at-filter-mobile-toggle:hover {
    background: var(--at-primary-hover);
    border-color: var(--at-primary-hover);
}

.wc-block-product .wc-block-components-product-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce-Price-amount {
    color: var(--at-secondary-dark);
}

.wc-block-product del,
.woocommerce del .woocommerce-Price-amount {
    color: var(--at-muted);
}

.wc-block-product ins,
.woocommerce ins {
    color: var(--at-secondary-dark);
    text-decoration: none;
}

.at-product-badge--popular {
    background: var(--at-primary-dark);
}

.at-product-badge--sale,
.at-product-badge--promo,
.onsale {
    background: var(--at-secondary);
    color: var(--at-white);
}

.at-product-stock {
    color: var(--at-success);
}

.at-range-level,
.at-wishlist-button {
    background: var(--at-primary-softer);
    border-color: var(--at-border);
    color: var(--at-muted);
}

.at-catalog-filters h2,
.at-filter-group h3 {
    color: var(--at-primary-dark);
}

/* Diagnostic, formulaires et états interactifs. */
.at-project-wizard,
.at-lead-capture__form {
    border-color: var(--at-border);
}

.at-wizard-progress,
.at-project-wizard input,
.at-project-wizard select,
.at-project-wizard textarea,
.woocommerce form input,
.woocommerce form select,
.woocommerce form textarea {
    background-color: var(--at-primary-softer);
    border-color: var(--at-border-strong);
}

.at-project-wizard input:focus,
.at-project-wizard select:focus,
.at-project-wizard textarea:focus,
.woocommerce form input:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
    background: var(--at-white);
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-primary) 14%, transparent);
}

.at-choice-grid input:checked + label,
.at-choice-grid label:has(input:checked) {
    background: var(--at-primary-soft);
    border-color: var(--at-primary);
    color: var(--at-primary-dark);
}

/* Atout+, ressources et espace professionnel. */
.at-atoutplus-cta {
    background: var(--at-secondary-soft);
    border-color: color-mix(in srgb, var(--at-secondary) 28%, var(--at-border));
}

.at-atoutplus-cta .at-primary-button {
    box-shadow: 0 9px 22px rgba(242, 121, 10, .2);
}

.at-professional {
    background-color: var(--at-primary-dark);
    border-color: color-mix(in srgb, var(--at-primary) 45%, var(--at-white));
}

.at-site-footer a:hover,
.at-site-footer a:focus-visible {
    color: #FFD7B5;
}

/* Mon compte : suppression complète de l'ancien vert. */
body.woocommerce-account:not(.logged-in) {
    background: var(--at-surface);
}

.at-account-welcome {
    background:
        radial-gradient(circle at 92% 10%, rgba(242, 121, 10, .23), transparent 30%),
        linear-gradient(135deg, var(--at-primary-dark) 0%, var(--at-primary) 100%);
    box-shadow: 0 18px 45px rgba(13, 79, 122, .17);
}

.at-account-benefits li > span {
    background: var(--at-secondary);
}

.at-account-switch {
    background: var(--at-primary-soft);
    border-color: color-mix(in srgb, var(--at-primary) 18%, var(--at-border));
}

.at-account-switch__button {
    color: var(--at-muted);
}

.at-account-switch__button[aria-selected="true"] {
    color: var(--at-primary-dark);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form input:focus,
body.woocommerce-account:not(.logged-in) .woocommerce-form select:focus {
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-primary) 14%, transparent);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme input {
    accent-color: var(--at-primary);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login .button {
    background: var(--at-primary);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login .button:hover {
    background: var(--at-primary-hover);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-register .button {
    background: var(--at-secondary);
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-register .button:hover {
    background: var(--at-secondary-hover);
}

/* Tableaux de bord et configurateurs : mêmes variables de marque. */
.atc-dashboard,
.atc-login {
    --atc-green: var(--at-primary);
    --atc-orange: var(--at-secondary);
    --atc-ink: var(--at-ink);
    --atc-soft: var(--at-primary-softer);
    --atc-line: var(--at-border);
}

.atc-login,
.atc-now {
    background: linear-gradient(135deg, var(--at-primary-soft), var(--at-white));
}

.atc-projects a.active,
.atc-tabs button.active {
    border-color: var(--at-primary);
    color: var(--at-primary-dark);
}

.atp360-app {
    /* !important neutralise les deux variables injectées en style inline. */
    --atp-primary: var(--at-secondary) !important;
    --atp-secondary: var(--at-primary-dark) !important;
    --atp-text: var(--at-ink);
    --atp-muted: var(--at-muted);
    --atp-bg: var(--at-surface);
    border-color: var(--at-border);
    box-shadow: var(--at-brand-shadow);
}

.atp360-hero {
    background: linear-gradient(135deg, var(--at-primary-dark), var(--at-primary));
}

.ate-configurator {
    --ate-primary: var(--at-secondary);
    --ate-primary-dark: var(--at-secondary-hover);
    --ate-ink: var(--at-ink);
    --ate-muted: var(--at-muted);
    --ate-line: var(--at-border);
    --ate-bg: var(--at-surface);
    border-color: var(--at-border);
    box-shadow: var(--at-brand-shadow);
}

.ate-hero {
    background: linear-gradient(135deg, var(--at-secondary-soft), var(--at-white) 72%);
}

/* Les retours système restent sémantiques et lisibles. */
.woocommerce-message,
.woocommerce-info {
    background: var(--at-primary-softer);
    border-top-color: var(--at-primary);
    color: var(--at-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--at-primary);
}

.woocommerce-error {
    background: #fff3f2;
    border-top-color: var(--at-danger);
    color: var(--at-ink);
}

@media (max-width: 680px) {
    .at-contact-bar,
    .at-header-nav,
    .at-site-footer {
        background-color: var(--at-primary-dark);
    }

    .at-v2-section--surface {
        background-color: var(--at-primary-softer);
    }

    .at-need-card,
    .at-project-card,
    .at-category-card,
    .at-value-pillar,
    .at-resource-card,
    .wc-block-product {
        box-shadow: 0 7px 20px rgba(13, 79, 122, .07);
    }
}

/* Hero défilant 4.6. */
.at-hero-slider--ready {
    min-height: clamp(620px, 65vw, 760px);
    overflow: hidden;
    padding: 0 !important;
}

.at-hero-slider--ready > .wp-block-cover__image-background,
.at-hero-slider--ready > .wp-block-cover__background {
    opacity: 0 !important;
}

.at-home-main > .wp-block-cover.at-hero-slider--ready::before,
.at-hero-slider--ready::before {
    background: none !important;
    opacity: 0 !important;
}

.at-hero-slider--ready .wp-block-cover__inner-container,
.at-hero-slider--ready .at-hero__content,
.at-hero-slider__viewport,
.at-hero-slider__track {
    height: 100%;
    max-width: none;
    width: 100%;
}

.at-hero-slider--ready .wp-block-cover__inner-container {
    margin: 0;
}

.at-hero-slider__viewport {
    min-height: clamp(620px, 65vw, 760px);
    overflow: hidden;
}

.at-hero-slider__track {
    display: flex;
    transition: transform .65s cubic-bezier(.22, .7, .2, 1);
}

.at-hero-slide {
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(5, 27, 45, .94) 0%, rgba(8, 59, 93, .80) 48%, rgba(8, 59, 93, .22) 100%),
        var(--at-slide-image);
    background-position: center;
    background-size: cover;
    display: flex;
    flex: 0 0 100%;
    min-height: clamp(620px, 65vw, 760px);
    padding: clamp(4.5rem, 8vw, 7rem) max(24px, calc((100vw - 1180px) / 2));
}

.at-hero-slide:nth-child(2) {
    background-position: center 35%;
}

.at-hero-slide:nth-child(3) {
    background-image:
        linear-gradient(110deg, rgba(6, 35, 57, .95), rgba(13, 79, 122, .78) 55%, rgba(235, 110, 15, .20)),
        var(--at-slide-image);
}

.at-hero-slide__content {
    max-width: 780px;
}

.at-hero-slide h1,
.at-hero-slide h1 strong,
.at-hero-slide p {
    color: var(--at-white) !important;
}

.at-hero-slide h1 {
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: .7rem 0 1rem;
}

.at-hero-slide__content > p:not(.at-eyebrow) {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    max-width: 680px;
}

.at-hero-slider__controls {
    align-items: center;
    bottom: clamp(1.2rem, 3vw, 2rem);
    display: flex;
    gap: 8px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 8;
}

.at-hero-slider__controls > button,
.at-hero-slider__dots button {
    align-items: center;
    background: rgba(5, 27, 45, .68);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    color: var(--at-white);
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-width: 42px;
}

.at-hero-slider__dots {
    align-items: center;
    display: flex;
    gap: 7px;
}

.at-hero-slider__dots button {
    height: 11px;
    min-width: 11px;
    padding: 0;
    transition: background-color .2s ease, width .2s ease;
}

.at-hero-slider__dots button[aria-current="true"] {
    background: var(--at-secondary);
    border-color: var(--at-secondary);
    min-width: 34px;
}

.at-hero-slider__controls button:focus-visible {
    outline: 3px solid var(--at-white);
    outline-offset: 3px;
}

/* Suite proposée après le devis ou le diagnostic simplifié. */
.at-diagnostic-next {
    background:
        radial-gradient(circle at 95% 0, rgba(242, 121, 10, .18), transparent 30%),
        linear-gradient(135deg, var(--at-primary-deep), var(--at-primary));
    border-radius: 24px;
    box-shadow: var(--at-brand-shadow-hover);
    color: var(--at-white);
    margin: 2rem 0;
    padding: clamp(1.35rem, 4vw, 2.5rem);
    scroll-margin-top: 2rem;
}

.at-diagnostic-next h2,
.at-diagnostic-next > p {
    color: var(--at-white) !important;
}

.at-diagnostic-next h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    margin: .3rem 0 .65rem;
}

.at-diagnostic-next > p:not(.at-eyebrow) {
    color: rgba(255, 255, 255, .84) !important;
    max-width: 760px;
}

.at-diagnostic-next__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.at-diagnostic-next__grid a {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 17px;
    color: var(--at-ink);
    display: grid;
    gap: .55rem;
    min-height: 100%;
    padding: 1.25rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.at-diagnostic-next__grid a:hover {
    box-shadow: 0 16px 36px rgba(3, 28, 47, .24);
    transform: translateY(-4px);
}

.at-diagnostic-next__grid span {
    align-items: center;
    background: var(--at-secondary-soft);
    border-radius: 12px;
    color: var(--at-secondary-dark);
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 52px;
}

.at-diagnostic-next__grid strong {
    color: var(--at-primary-dark);
    font-size: 1.08rem;
}

.at-diagnostic-next__grid small {
    color: var(--at-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.at-diagnostic-next__grid b {
    color: var(--at-secondary-dark);
    margin-top: auto;
}

@media (max-width: 900px) {
    .at-diagnostic-next__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .at-hero-slider--ready,
    .at-hero-slider__viewport,
    .at-hero-slide {
        min-height: 760px;
    }

    .at-hero-slide {
        background-position: 60% center;
        padding: 4.25rem 16px 6.5rem;
    }

    .at-hero-slide h1 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .at-hero-slide .wp-block-buttons,
    .at-hero-slide .wp-block-button,
    .at-hero-slide .wp-block-button__link {
        width: 100%;
    }

    .at-hero-slider__controls {
        bottom: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-hero-slider__track,
    .at-hero-slider__dots button,
    .at-diagnostic-next__grid a {
        transition: none;
    }
}

/* V1 : la suite du diagnostic occupe toute la grille parente. */
.at-project-wizard > .at-diagnostic-next,
.at-quote-form-wrap > .at-diagnostic-next,
.at-project-wizard .at-form-success + .at-diagnostic-next,
.at-quote-form-wrap .at-form-notice--success + .at-diagnostic-next {
    box-sizing: border-box;
    clear: both;
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.at-project-wizard:has(> .at-diagnostic-next) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.at-project-wizard.at-diagnostic-flow--completed,
.at-quote-form-wrap.at-diagnostic-flow--completed {
    grid-template-columns: minmax(0, 1fr) !important;
}

.at-diagnostic-next__grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    width: 100%;
}

.at-diagnostic-next__grid a,
.at-diagnostic-next__grid strong,
.at-diagnostic-next__grid small,
.at-diagnostic-next__grid b {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 980px) {
    .at-diagnostic-next__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* V1 : accueil personnalisé Atout+ et accès flottants globaux. */
.at-atoutplus-first-points {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 1px solid rgba(246, 124, 20, 0.28);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(10, 74, 113, 0.1);
    margin: 1.5rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.at-atoutplus-first-points__eyebrow {
    color: var(--at-orange, #A84200);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.at-atoutplus-first-points h2 {
    color: var(--at-blue-dark, #063A61);
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin: 0 0 0.55rem;
}

.at-atoutplus-first-points > p {
    color: #52616d;
    margin: 0;
    max-width: 820px;
}

.at-atoutplus-first-points__intro {
    align-items: flex-start;
    display: flex;
    gap: 0.9rem;
}

.at-atoutplus-first-points__intro > span {
    align-items: center;
    background: #fff1e5;
    border-radius: 12px;
    color: #7A3200;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.15rem;
    height: 42px;
    justify-content: center;
}

.at-atoutplus-first-points__intro small {
    color: var(--at-orange, #A84200);
    display: block;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    margin-bottom: 0.35rem;
}

.at-atoutplus-first-points__intro h3 {
    color: var(--at-blue-dark, #063A61);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0 0 0.4rem;
}

.at-atoutplus-first-points__intro p {
    color: #52616d;
    margin: 0;
    max-width: 820px;
}

.at-atoutplus-first-points ol {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.at-atoutplus-first-points li {
    background: #fff;
    border: 1px solid #dce8f0;
    border-radius: 16px;
    counter-increment: atoutplus-step;
    min-width: 0;
    padding: 1rem 1rem 1rem 3.35rem;
    position: relative;
}

.at-atoutplus-first-points ol {
    counter-reset: atoutplus-step;
}

.at-atoutplus-first-points li::before {
    align-items: center;
    background: #fff1e5;
    border-radius: 10px;
    color: #7A3200;
    content: counter(atoutplus-step);
    display: inline-flex;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    left: 0.75rem;
    position: absolute;
    top: 0.8rem;
    width: 32px;
}

.at-atoutplus-first-points li strong,
.at-atoutplus-first-points li span {
    display: block;
}

.at-atoutplus-first-points li strong {
    color: #173f5b;
    line-height: 1.35;
}

.at-atoutplus-first-points li span {
    color: #687986;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.at-atoutplus-first-points__steps {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.25rem 0;
}

.at-atoutplus-first-points__step {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dce8f0;
    border-radius: 16px;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem;
}

.at-atoutplus-first-points__number {
    align-items: center;
    background: #fff1e5;
    border-radius: 10px;
    color: #7A3200;
    display: inline-flex;
    flex: 0 0 34px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}

.at-atoutplus-first-points__step strong {
    color: #173f5b;
    display: block;
    font-size: 0.98rem;
    line-height: 1.3;
}

.at-atoutplus-first-points__step small {
    color: #687986;
    display: block;
    line-height: 1.45;
    margin-top: 0.2rem;
}

.at-atoutplus-first-points__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.at-atoutplus-first-points__actions a {
    align-items: center;
    background: var(--at-blue, #075A93);
    border: 2px solid var(--at-blue, #075A93);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.at-atoutplus-first-points__actions a:nth-child(2) {
    background: transparent;
    color: var(--at-blue-dark, #063A61);
}

.at-atoutplus-first-points__actions a:hover,
.at-atoutplus-first-points__actions a:focus-visible {
    background: var(--at-orange, #A84200);
    border-color: var(--at-orange, #A84200);
    color: #fff;
    transform: translateY(-2px);
}

body .at-project-entry-floating {
    align-items: center !important;
    display: flex !important;
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    visibility: visible !important;
    z-index: 99994 !important;
}

body .at-floating-whatsapp.at-global-floating-whatsapp {
    align-items: center !important;
    background: #15935b !important;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    bottom: 18px !important;
    box-shadow: 0 12px 30px rgba(11, 61, 43, 0.25) !important;
    color: #fff !important;
    display: flex !important;
    gap: 0.55rem !important;
    min-height: 56px !important;
    opacity: 1 !important;
    padding: 0.75rem 1.1rem !important;
    position: fixed !important;
    right: 150px !important;
    text-decoration: none !important;
    visibility: visible !important;
    z-index: 99995 !important;
}

body .at-floating-whatsapp.at-global-floating-whatsapp > [aria-hidden="true"] {
    font-size: 1.35rem;
    line-height: 1;
}

body .at-global-ai-native {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99996 !important;
}

@media (max-width: 700px) {
    .at-atoutplus-first-points ol,
    .at-atoutplus-first-points__steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .at-atoutplus-first-points__actions a {
        width: 100%;
    }

    body .at-project-entry-floating {
        border-radius: 999px !important;
        bottom: 146px !important;
        font-size: 0 !important;
        height: 56px !important;
        justify-content: center !important;
        min-height: 56px !important;
        padding: 0 !important;
        right: 14px !important;
        top: auto !important;
        transform: none !important;
        width: 56px !important;
    }

    body .at-project-entry-floating__icon {
        font-size: 1.2rem !important;
    }

    body .at-project-entry-floating > span:not(.at-project-entry-floating__icon) {
        display: none !important;
    }

    body .at-floating-whatsapp.at-global-floating-whatsapp {
        bottom: 78px !important;
        font-size: 0 !important;
        height: 56px !important;
        justify-content: center !important;
        min-height: 56px !important;
        padding: 0 !important;
        right: 14px !important;
        width: 56px !important;
    }

    body .at-floating-whatsapp.at-global-floating-whatsapp strong,
    body .at-floating-whatsapp.at-global-floating-whatsapp span:not([aria-hidden="true"]) {
        display: none !important;
    }
}

/* V1 : architecture commerciale et repères de confiance. */
.at-commercial-home > .at-commercial-section {
    box-sizing: border-box;
    margin-block: 0 !important;
    padding-block: clamp(3rem, 6vw, 5.75rem) !important;
    position: relative;
}

.at-commercial-home > .at-commercial-section[data-commercial-tone="soft"] {
    background: linear-gradient(180deg, #f5f8fb 0%, #eef4f8 100%);
}

.at-commercial-home > .at-commercial-section[data-commercial-tone="white"] {
    background: #fff;
}

.at-commercial-home > .at-commercial-section h2 {
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.at-commercial-trust:not(.at-commercial-trust--existing) {
    background: #fff;
    border: 1px solid #D7E4EC;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(10, 55, 82, .08);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(1.25rem, 3vw, 2.4rem) auto;
    max-width: min(1180px, calc(100% - 32px));
    overflow: hidden;
}

.at-commercial-structured main > h1,
.at-commercial-structured #primary > h1,
.at-commercial-structured .site-main > h1 {
    color: var(--at-secondary, #063A61);
}

.at-commercial-structured main > h2,
.at-commercial-structured .entry-content > h2 {
    letter-spacing: -.025em;
    margin-top: clamp(2.2rem, 5vw, 4.4rem);
}

.at-commercial-trust__item {
    align-items: flex-start;
    display: flex;
    gap: .8rem;
    min-width: 0;
    padding: 1.15rem 1.2rem;
}

.at-commercial-trust__item + .at-commercial-trust__item {
    border-left: 1px solid #e5edf2;
}

.at-commercial-trust__item > span {
    align-items: center;
    background: #eef7fd;
    border-radius: 12px;
    color: var(--at-primary, #075A93);
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 1.05rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
}

.at-commercial-trust__item strong,
.at-commercial-trust__item small {
    display: block;
}

.at-commercial-trust__item strong {
    color: var(--at-secondary, #063A61);
    font-size: .91rem;
    line-height: 1.25;
    margin-bottom: .25rem;
}

.at-commercial-trust__item small {
    color: #61727e;
    font-size: .76rem;
    line-height: 1.45;
}

.at-product-reassurance-panel {
    align-items: flex-start;
    background: linear-gradient(135deg, #F4F9FC 0%, #fff 100%);
    border: 1px solid #cadde9;
    border-left: 4px solid var(--at-primary, #075A93);
    border-radius: 16px;
    display: flex;
    gap: .9rem;
    margin-top: 1.5rem;
    padding: 1.1rem;
}

.at-product-reassurance-panel > span {
    align-items: center;
    background: var(--at-secondary, #063A61);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}

.at-product-reassurance-panel strong {
    color: var(--at-secondary, #063A61);
    display: block;
    font-size: 1rem;
}

.at-product-reassurance-panel p {
    color: #5d6d78;
    font-size: .88rem;
    line-height: 1.5;
    margin: .25rem 0 .8rem;
}

.at-product-reassurance-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.at-product-reassurance-panel__actions a {
    background: #fff;
    border: 1px solid #cbd9e2;
    border-radius: 999px;
    color: var(--at-secondary, #063A61);
    font-size: .78rem;
    font-weight: 850;
    padding: .55rem .8rem;
    text-decoration: none;
}

.at-product-reassurance-panel__actions a:hover,
.at-product-reassurance-panel__actions a:focus-visible {
    background: var(--at-primary, #075A93);
    border-color: var(--at-primary, #075A93);
    color: #fff;
}

.at-commercial-closing {
    align-items: center;
    background: linear-gradient(135deg, #063A61 0%, #075A93 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    box-shadow: 0 24px 55px rgba(8, 63, 98, .22);
    color: #fff;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.45fr) auto;
    margin: clamp(2.5rem, 6vw, 5.5rem) auto;
    max-width: min(1180px, calc(100% - 32px));
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
}

.at-commercial-closing::after {
    background: rgba(244, 123, 32, .22);
    border-radius: 50%;
    content: "";
    height: 220px;
    position: absolute;
    right: -80px;
    top: -115px;
    width: 220px;
}

.at-commercial-closing > * {
    position: relative;
    z-index: 1;
}

.at-commercial-closing p {
    color: #ffad67;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .13em;
    margin: 0 0 .6rem;
}

.at-commercial-closing h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.06;
    margin: 0 0 .75rem;
}

.at-commercial-closing span {
    color: rgba(255, 255, 255, .78);
    display: block;
    line-height: 1.65;
    max-width: 690px;
}

.at-commercial-closing__actions {
    display: grid;
    gap: .7rem;
    min-width: 230px;
}

.at-commercial-closing__actions a {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 13px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 52px;
    padding: .8rem 1.1rem;
    text-align: center;
    text-decoration: none;
}

.at-commercial-closing__primary {
    background: var(--at-orange, #A84200);
    border-color: var(--at-orange, #A84200) !important;
    color: #fff !important;
}

.at-commercial-closing__secondary {
    background: transparent;
    color: #fff !important;
}

.at-commercial-closing__actions a:hover,
.at-commercial-closing__actions a:focus-visible {
    filter: brightness(1.07);
    transform: translateY(-2px);
}

@media (max-width: 920px) {
    .at-commercial-trust:not(.at-commercial-trust--existing) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .at-commercial-trust__item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e5edf2;
    }

    .at-commercial-trust__item:nth-child(4) {
        border-top: 1px solid #e5edf2;
    }

    .at-commercial-closing {
        grid-template-columns: 1fr;
    }

    .at-commercial-closing__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .at-commercial-home > .at-commercial-section {
        padding-block: 2.75rem !important;
    }

    .at-commercial-trust:not(.at-commercial-trust--existing) {
        border-radius: 16px;
        grid-template-columns: 1fr;
    }

    .at-commercial-trust__item + .at-commercial-trust__item,
    .at-commercial-trust__item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e5edf2;
    }

    .at-commercial-closing {
        border-radius: 20px;
        padding: 1.6rem;
    }

    .at-commercial-closing__actions {
        grid-template-columns: 1fr;
    }

    .at-product-reassurance-panel {
        display: block;
    }

    .at-product-reassurance-panel > span {
        margin-bottom: .7rem;
    }
}

/* V1 : repères éditoriaux communs aux pages commerciales. */
.at-copy-page-eyebrow {
    color: var(--at-orange, #A84200);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.at-copy-page-lead {
    color: #536571;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.7;
    margin: 0.7rem 0 2rem;
    max-width: 820px;
}

.at-copy-page h1 {
    letter-spacing: -0.035em;
    max-width: 980px;
}

@media (max-width: 700px) {
    .at-copy-page-eyebrow {
        letter-spacing: 0.09em;
    }

    .at-copy-page-lead {
        line-height: 1.6;
        margin-bottom: 1.4rem;
    }
}

/* V1 : actions Projet, WhatsApp et IA fiables sur toutes les pages. */
body .at-project-entry-fallback {
    display: contents;
}

body .at-project-entry-floating {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body .atp360-floating.at-project-entry-floating {
    display: flex !important;
}

body .at-project-entry-menu {
    background: #fff;
    border: 1px solid #D7E4EC;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(10, 74, 113, .22);
    display: grid;
    gap: .45rem;
    padding: .85rem;
    position: fixed;
    right: 96px;
    top: 50%;
    transform: translateY(-50%);
    width: min(260px, calc(100vw - 120px));
    z-index: 99993;
}

body .at-project-entry-menu[hidden] {
    display: none !important;
}

body .at-project-entry-menu strong {
    color: var(--at-blue-dark, #063A61);
    padding: .25rem .35rem;
}

body .at-project-entry-menu a {
    background: #f3f8fb;
    border-radius: 10px;
    color: var(--at-blue-dark, #063A61);
    font-weight: 800;
    padding: .7rem .8rem;
    text-decoration: none;
}

body .at-project-entry-menu a:hover,
body .at-project-entry-menu a:focus-visible {
    background: var(--at-orange, #A84200);
    color: #fff;
}

@media (max-width: 700px) {
    body .at-project-entry-menu {
        bottom: 145px;
        left: 14px;
        right: 82px;
        top: auto;
        transform: none;
        width: auto;
    }
}

/* V1 : lanceur projet compact et mega menu illustré, sans changer la navigation. */
body .at-project-entry-floating {
    background: linear-gradient(145deg, var(--at-primary, #075A93), var(--at-primary-dark, #063A61)) !important;
    border: 0 !important;
    border-left: 3px solid var(--at-secondary, #A84200) !important;
    border-radius: 22px 0 0 22px !important;
    gap: .52rem !important;
    justify-content: flex-start !important;
    max-width: 158px !important;
    min-width: 0 !important;
    padding: .62rem .72rem .62rem .58rem !important;
    transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease !important;
}

body .at-project-entry-floating:hover,
body .at-project-entry-floating:focus-visible {
    box-shadow: 0 16px 34px rgba(10, 74, 113, .35) !important;
    filter: saturate(1.08);
    transform: translateY(-50%) translateX(-4px) !important;
}

body .at-project-entry-floating__icon {
    align-items: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 1rem !important;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

body .at-project-entry-floating__label {
    align-items: start;
    color: #fff;
    display: grid;
    flex: 0 1 auto;
    font-size: .75rem !important;
    font-weight: 850;
    gap: .08rem;
    letter-spacing: -.01em;
    line-height: 1.08;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

body .at-project-entry-floating__label > span:first-child {
    color: #fff;
    font-size: .78rem;
}

body .at-project-entry-floating__label > span:last-child {
    color: rgba(255, 255, 255, .9);
}

@keyframes at-mega-panel-arrival {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.at-mega-menu__panel--illustrated:not([hidden]) {
    animation: at-mega-panel-arrival 180ms ease-out both;
    background: linear-gradient(180deg, #fff 0%, var(--at-primary-softer, #f3f8fb) 100%);
    border-radius: 0 0 22px 22px;
    max-height: calc(100vh - 268px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem !important;
    scrollbar-color: color-mix(in srgb, var(--at-primary, #075A93) 32%, transparent) transparent;
    scrollbar-width: thin;
}

.at-mega-menu__panel--illustrated .at-mega-menu__grid {
    align-items: start;
    gap: 1rem !important;
}

.at-mega-menu__column--illustrated {
    background: rgba(255, 255, 255, .92);
    border: 1px solid color-mix(in srgb, var(--at-primary, #075A93) 13%, #fff);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(10, 74, 113, .06);
    min-width: 0;
    padding: .66rem .72rem .74rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.at-mega-menu__column--illustrated:hover,
.at-mega-menu__column--illustrated:focus-within {
    border-color: color-mix(in srgb, var(--at-secondary, #A84200) 45%, #fff);
    box-shadow: 0 14px 30px rgba(10, 74, 113, .13);
    transform: translateY(-3px);
}

.at-mega-menu__column--illustrated .at-mega-menu__heading {
    align-items: center;
    background: var(--at-primary-softer, #f3f8fb);
    border-radius: 12px;
    display: grid !important;
    gap: .65rem;
    grid-template-columns: 68px minmax(0, 1fr);
    line-height: 1.18;
    min-height: 50px;
    overflow: hidden;
    padding: .36rem .5rem .36rem .36rem;
    position: relative;
}

.at-mega-menu__column--illustrated .at-mega-menu__monogram {
    display: none;
}

.at-mega-menu__visual {
    background-color: var(--at-primary-soft, #EAF4FB);
    background-position: center;
    background-size: cover;
    border-radius: 9px;
    display: block;
    height: 46px;
    overflow: hidden;
    position: relative;
    transform: scale(1);
    transition: transform 220ms ease;
    width: 68px;
}

.at-mega-menu__visual::after {
    background: linear-gradient(145deg, rgba(10, 74, 113, .02), rgba(10, 74, 113, .3));
    content: "";
    inset: 0;
    position: absolute;
}

.at-mega-menu__column--illustrated:hover .at-mega-menu__visual,
.at-mega-menu__column--illustrated:focus-within .at-mega-menu__visual {
    transform: scale(1.04);
}

.at-mega-menu__column--illustrated ul {
    margin: .48rem 0 0 !important;
}

.at-mega-menu__column--illustrated li a {
    border-radius: 8px;
    display: block;
    padding: .32rem .45rem !important;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.at-mega-menu__column--illustrated li a:hover,
.at-mega-menu__column--illustrated li a:focus-visible {
    background: color-mix(in srgb, var(--at-primary, #075A93) 9%, #fff);
    color: var(--at-primary-dark, #063A61);
    transform: translateX(3px);
}

.at-header-nav nav > ul > li > a {
    position: relative;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.at-header-nav nav > ul > li > a:hover,
.at-header-nav nav > ul > li > a:focus-visible {
    transform: translateY(-1px);
}

.at-mega-menu__toggle [aria-hidden="true"] {
    transition: transform 180ms ease;
}

.at-mega-menu__toggle[aria-expanded="true"] [aria-hidden="true"] {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .at-mega-menu__panel--illustrated:not([hidden]) {
        border-radius: 0 0 16px 16px;
        max-height: calc(100vh - 190px);
        padding: .75rem !important;
    }

    .at-mega-menu__panel--illustrated .at-mega-menu__grid {
        gap: .72rem !important;
    }

    .at-mega-menu__column--illustrated {
        border-radius: 13px;
        padding: .55rem;
    }

    .at-mega-menu__column--illustrated .at-mega-menu__heading {
        gap: .5rem;
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 44px;
    }

    .at-mega-menu__visual {
        height: 40px;
        width: 54px;
    }
}

@media (max-width: 700px) {
    body .at-project-entry-floating {
        border: 0 !important;
        border-radius: 50% !important;
        gap: 0 !important;
        height: 56px !important;
        justify-content: center !important;
        max-width: 56px !important;
        min-height: 56px !important;
        padding: 0 !important;
        width: 56px !important;
    }

    body .at-project-entry-floating:hover,
    body .at-project-entry-floating:focus-visible {
        transform: none !important;
    }

    body .at-project-entry-floating__label {
        display: none !important;
    }
}

/* V1 — en-tête et pied de page compacts, catalogue réel et grands écrans. */
@media (min-width: 961px) {
    body :where(.at-site-header__main, .at-header-main, .site-header__main, .site-header .header-main) {
        min-height: 0 !important;
        padding-block: .55rem !important;
    }

    body :where(.at-site-header, .site-header) :where(.custom-logo, .custom-logo-link img, .site-logo img) {
        height: auto !important;
        max-height: 68px !important;
        width: auto !important;
    }

    body .at-product-search__form {
        min-height: 46px !important;
    }

    body .at-product-search__form :where(input, button, [type="submit"]) {
        min-height: 44px !important;
    }

    body .at-header-nav nav > ul > li > a,
    body .at-mega-menu__toggle {
        min-height: 48px !important;
        padding-block: .68rem !important;
    }
}

body .at-contact-bar {
    min-height: 28px !important;
    padding-block: .22rem !important;
}

body .at-site-footer__main,
body .site-footer__main {
    gap: clamp(1rem, 2.2vw, 2rem) !important;
    padding-block: clamp(1.5rem, 2.8vw, 2.25rem) !important;
}

body :where(.at-site-footer, .site-footer) :where(h2, h3, h4, p, ul) {
    margin-top: 0 !important;
}

body :where(.at-site-footer, .site-footer) :where(h2, h3, h4) {
    margin-bottom: .62rem !important;
}

body :where(.at-site-footer, .site-footer) p {
    line-height: 1.45 !important;
    margin-bottom: .48rem !important;
}

body :where(.at-site-footer, .site-footer) li + li {
    margin-top: .28rem !important;
}

body :where(.at-site-footer__bottom, .site-footer__bottom, .at-footer-bottom) {
    min-height: 0 !important;
    padding-block: .68rem !important;
}

@media (min-width: 1360px) {
    body:not(.home) :where(#primary, .site-content > .container, .at-page-shell, .at-shop-shell) {
        box-sizing: border-box;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 1440px !important;
        width: min(calc(100% - 64px), 1440px) !important;
    }

    body:not(.home) :where(main.site-main, main#main, .woocommerce-account .woocommerce) {
        box-sizing: border-box;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 1440px;
    }

    body:not(.home) .entry-content > :where(.alignwide, .wp-block-group.alignwide) {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 1320px !important;
    }
}

/* Filtres boutique : catégories et attributs non vides issus de WooCommerce. */
.at-catalog-filters[hidden] {
    display: none !important;
}

.at-dynamic-catalog-filters {
    background: #fff;
    border: 1px solid var(--at-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(13, 79, 122, .08);
    box-sizing: border-box;
    display: grid;
    gap: 1rem;
    margin: 0 auto 1.35rem;
    max-width: 1440px;
    padding: clamp(.9rem, 1.8vw, 1.3rem);
    width: 100%;
}

.at-dynamic-catalog-filters__heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.at-dynamic-catalog-filters__heading span {
    color: var(--at-secondary-dark);
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .18rem;
}

.at-dynamic-catalog-filters__heading h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    margin: 0;
}

.at-dynamic-catalog-filters__heading p {
    color: var(--at-muted);
    font-size: .82rem;
    margin: 0;
    text-align: right;
}

.at-dynamic-catalog-filters__form {
    align-items: end;
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.at-dynamic-catalog-filters__fields {
    align-items: end;
    display: grid;
    gap: .72rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.at-dynamic-catalog-filters__fields label:not(.at-dynamic-catalog-filters__check) {
    display: grid;
    gap: .32rem;
    min-width: 0;
}

.at-dynamic-catalog-filters__fields label > span {
    color: var(--at-ink);
    font-size: .75rem;
    font-weight: 800;
}

.at-dynamic-catalog-filters select {
    background: var(--at-primary-softer);
    border: 1px solid var(--at-border);
    border-radius: 10px;
    color: var(--at-ink);
    font: inherit;
    min-height: 42px;
    padding: .55rem 2rem .55rem .72rem;
    width: 100%;
}

.at-dynamic-catalog-filters__check {
    align-items: center;
    background: var(--at-primary-softer);
    border: 1px solid var(--at-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: .55rem;
    min-height: 42px;
    padding: .5rem .72rem;
}

.at-dynamic-catalog-filters__check input {
    accent-color: var(--at-primary);
    height: 18px;
    width: 18px;
}

.at-dynamic-catalog-filters__actions {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.at-dynamic-catalog-filters__actions button,
.at-dynamic-catalog-filters__actions a {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 850;
    justify-content: center;
    min-height: 42px;
    padding: .62rem .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.at-dynamic-catalog-filters__actions button {
    background: var(--at-primary);
    border: 1px solid var(--at-primary);
    color: #fff;
}

.at-dynamic-catalog-filters__actions a {
    border: 1px solid var(--at-border);
    color: var(--at-primary-dark);
}

.at-dynamic-catalog-filters--updating {
    opacity: .68;
    pointer-events: none;
}

/* Check-list Conseils : large, horizontale et moins haute. */
.at-project-checklist--compact {
    align-items: center;
    background: linear-gradient(135deg, var(--at-primary-softer), #fff 74%);
    border: 1px solid var(--at-border);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(13, 79, 122, .08);
    box-sizing: border-box;
    display: grid !important;
    gap: clamp(1rem, 2vw, 1.7rem);
    grid-template-columns: minmax(230px, .8fr) minmax(520px, 2fr) auto;
    margin: clamp(1.5rem, 3vw, 2.5rem) auto !important;
    max-width: 1440px;
    min-height: 0 !important;
    padding: clamp(1rem, 2vw, 1.5rem) !important;
    width: min(calc(100% - 32px), 1440px) !important;
}

.at-project-checklist__intro > span,
.at-project-checklist--compact > div:first-child > span {
    color: var(--at-secondary-dark);
    display: block;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .25rem;
}

.at-project-checklist--compact h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    line-height: 1.12;
    margin: 0 0 .42rem !important;
}

.at-project-checklist--compact p {
    color: var(--at-muted);
    font-size: .85rem;
    line-height: 1.45;
    margin: 0 !important;
}

.at-project-checklist__items,
.at-project-checklist--compact ul {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(5, minmax(95px, 1fr));
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.at-project-checklist__items li,
.at-project-checklist--compact ul li {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--at-border);
    border-radius: 12px;
    display: flex;
    gap: .42rem;
    min-width: 0;
    padding: .62rem;
}

.at-project-checklist__items li > b {
    color: var(--at-secondary-dark);
    font-size: .7rem;
}

.at-project-checklist__items li span {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.at-project-checklist__items strong {
    font-size: .8rem;
}

.at-project-checklist__items small {
    color: var(--at-muted);
    font-size: .68rem;
    line-height: 1.35;
}

.at-project-checklist__cta {
    align-items: center;
    background: var(--at-secondary);
    border-radius: 11px;
    color: #fff !important;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 850;
    gap: .45rem;
    justify-content: center;
    min-height: 44px;
    padding: .7rem .9rem;
    text-decoration: none !important;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .at-dynamic-catalog-filters__form {
        grid-template-columns: 1fr;
    }

    .at-project-checklist--compact {
        grid-template-columns: 1fr;
    }

    .at-project-checklist__items,
    .at-project-checklist--compact ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .at-project-checklist__cta {
        justify-self: start;
    }
}

@media (max-width: 700px) {
    body :where(.at-site-header, .site-header) :where(.custom-logo, .custom-logo-link img, .site-logo img) {
        max-height: 50px !important;
    }

    body .at-site-footer__main,
    body .site-footer__main {
        padding-block: 1.25rem !important;
    }

    .at-dynamic-catalog-filters__heading {
        align-items: start;
        display: grid;
    }

    .at-dynamic-catalog-filters__heading p {
        text-align: left;
    }

    .at-dynamic-catalog-filters__fields {
        grid-template-columns: 1fr;
    }

    .at-dynamic-catalog-filters__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .at-project-checklist__items,
    .at-project-checklist--compact ul {
        grid-template-columns: 1fr;
    }

    .at-project-checklist__cta {
        justify-self: stretch;
        width: 100%;
    }
}

/* V1 — navigation visible pendant le défilement. */
body .at-header-nav {
    position: sticky !important;
    top: 0;
    z-index: 9990 !important;
}

body.admin-bar .at-header-nav {
    top: 32px;
}

body .at-header-nav::after {
    background: linear-gradient(180deg, rgba(5, 51, 83, .18), transparent);
    bottom: -8px;
    content: "";
    height: 8px;
    left: 0;
    opacity: .7;
    pointer-events: none;
    position: absolute;
    right: 0;
}

@media (max-width: 782px) {
    body.admin-bar .at-header-nav {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .at-header-nav {
        scroll-behavior: auto;
    }
}

/* V1 — fiche produit lisible et correctement dimensionnée. */
body.single-product #primary,
body.single-product main.site-main,
body.single-product main#main {
    box-sizing: border-box;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1280px !important;
    width: min(calc(100% - 40px), 1280px) !important;
}

body.single-product .woocommerce div.product {
    align-items: start;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    width: 100%;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after {
    display: none !important;
}

body.single-product .woocommerce div.product > .woocommerce-product-gallery,
body.single-product .woocommerce div.product > .images {
    float: none !important;
    grid-column: 1;
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    width: 100% !important;
}

body.single-product .woocommerce div.product > .summary {
    float: none !important;
    grid-column: 2;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0;
    width: 100% !important;
}

body.single-product .woocommerce div.product > :where(.at-commercial-trust--product, .woocommerce-tabs, .related, .upsells) {
    clear: both;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

body.single-product .summary :where(h1, h2, h3, p, span, small, strong, a, button, label, div) {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

body.single-product .summary > .at-commercial-trust:not(.at-commercial-trust--product) {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.single-product .at-commercial-trust--product {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

body.single-product .at-commercial-trust--product .at-commercial-trust__item {
    min-width: 0;
}

body.single-product .at-commercial-trust--product .at-commercial-trust__item :where(strong, small) {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

body.single-product .summary :where(.cart, .at-product-card-actions, .at-product-actions, .at-product-reassurance-panel__actions) {
    max-width: 100%;
}

body.single-product .summary :where(button, .button, a.button) {
    white-space: normal;
}

body.single-product .woocommerce-tabs {
    overflow: hidden;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .45rem;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: .35rem !important;
}

@media (max-width: 900px) {
    body.single-product .woocommerce div.product {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product .woocommerce div.product > .woocommerce-product-gallery,
    body.single-product .woocommerce div.product > .images,
    body.single-product .woocommerce div.product > .summary {
        grid-column: 1;
    }

    body.single-product .at-commercial-trust--product {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.single-product #primary,
    body.single-product main.site-main,
    body.single-product main#main {
        width: min(calc(100% - 24px), 1280px) !important;
    }

    body.single-product .at-commercial-trust--product {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-mega-menu__panel--illustrated:not([hidden]) {
        animation: none;
    }

    body .at-project-entry-floating,
    .at-mega-menu__column--illustrated,
    .at-mega-menu__visual,
    .at-mega-menu__column--illustrated li a,
    .at-header-nav nav > ul > li > a {
        transition: none !important;
    }
}

/* V1 — garde-fous finaux après les styles historiques du thème. */
body .at-project-entry-floating {
    border-left-width: 2px !important;
    border-radius: 16px 0 0 16px !important;
    box-sizing: border-box !important;
    gap: .38rem !important;
    max-width: 126px !important;
    min-height: 46px !important;
    overflow: hidden !important;
    padding: .45rem .5rem .45rem .42rem !important;
    width: 126px !important;
}

body .at-project-entry-floating__icon {
    border-radius: 9px !important;
    flex: 0 0 28px !important;
    font-size: .85rem !important;
    height: 28px !important;
    margin: 0 !important;
    min-width: 28px !important;
    padding: 0 !important;
    width: 28px !important;
}

body .at-project-entry-floating__label {
    display: grid !important;
    flex: 0 1 70px !important;
    font-size: .66rem !important;
    line-height: 1.08 !important;
    max-width: 70px !important;
    overflow: hidden !important;
    padding: 0 !important;
    white-space: normal !important;
    width: 70px !important;
}

body .atp360-floating .at-project-entry-floating__label > span,
body .at-project-entry-floating__label > span {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    font-size: .66rem !important;
    height: auto !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    width: auto !important;
}

@media (min-width: 901px) {
    .at-account-quick__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body .at-project-entry-floating {
        border: 0 !important;
        border-radius: 50% !important;
        bottom: 142px !important;
        gap: 0 !important;
        height: 50px !important;
        justify-content: center !important;
        max-width: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        width: 50px !important;
    }

    body .at-project-entry-floating__icon {
        flex-basis: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        width: 30px !important;
    }

    body .at-project-entry-floating__label {
        display: none !important;
    }
}


/* === Aménage Tout 6.0 — Stability, responsive and unified project entry === */
:root {
    --at-site-gutter: clamp(14px, 3vw, 28px);
    --at-primary: #075A93;
    --at-primary-dark: #063A61;
    --at-secondary: #A84200;
    --at-surface: #F5F8FA;
    --at-border: #D7E4EC;
    --at-text: #172432;
    --at-muted: #5C6B76;
}

html,
body,
.wp-site-blocks,
main {
    max-width: 100% !important;
    overflow-x: clip !important;
}

@supports not (overflow: clip) {
    html,
    body,
    .wp-site-blocks,
    main { overflow-x: hidden !important; }
}

/* Cancel historical viewport-width hacks that shifted the hero outside its parent. */
.at-home-main > .at-hero-slider--ready,
main > .at-hero-slider--ready,
body .at-hero-slider--ready {
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

:where(.wp-block-group, .wp-block-columns, .wp-block-column, .at-home-main, .at-home-main > *, .woocommerce, .woocommerce-page, .wc-block-grid, .products, .at-commercial-closing, .at-account-quick__grid) {
    min-width: 0 !important;
}

:where(.entry-content, .wp-block-post-content, .woocommerce, .woocommerce-page) :where(p, li, td, th, h1, h2, h3, h4, a, button) {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Project 360° is the only project launcher; legacy electricity widgets must not compete with it. */
.ate-floating-widget,
.ate-floating-widget-toggle,
.ate-floating-widget-panel {
    display: none !important;
}

body .at-project-entry-floating,
body .atp360-floating.at-project-entry-floating {
    z-index: 9992 !important;
}

body .at-project-entry-fallback .at-project-entry-menu,
body .atp360-floating + .at-project-entry-menu {
    max-width: min(320px, calc(100vw - (2 * var(--at-site-gutter)))) !important;
}

@media (max-width: 782px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        gap: clamp(16px, 4vw, 24px) !important;
    }

    .at-commercial-closing,
    .at-commercial-closing__actions,
    .at-account-quick__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(.at-commercial-closing__actions, .at-account-quick__grid) > * {
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 700px) {
    body .at-project-entry-floating {
        bottom: 92px !important;
        right: max(14px, env(safe-area-inset-right)) !important;
    }

    body .at-floating-whatsapp,
    body .at-global-floating-whatsapp {
        bottom: max(18px, env(safe-area-inset-bottom)) !important;
        right: max(14px, env(safe-area-inset-right)) !important;
    }
}


/* Project 360 single-path gateway */
.at-project-gateway .at-project-path--single {
    margin-inline: auto !important;
    max-width: 760px !important;
}

.at-project-path__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.at-project-path__secondary {
    color: var(--at-primary-dark) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .at-project-path__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .at-project-path__actions > * {
        text-align: center;
        width: 100%;
    }
}


/* ==========================================================================\n   V1 — Mode compact premium\n   Réduit les espaces verticaux et la hauteur des composants tout en gardant\n   une respiration visuelle cohérente et des zones tactiles accessibles.\n   ========================================================================== */
:root{
    --at-compact-section:clamp(1.9rem,3.6vw,2.9rem);
    --at-compact-section-mobile:1.5rem;
    --at-compact-gap:.75rem;
    --at-compact-card-pad:.8rem;
}

/* Accueil : hero plus direct et moins haut. */
.home .at-home-main>.wp-block-cover{
    min-height:clamp(440px,46vw,520px)!important;
}
.home .at-home-main>.wp-block-cover .wp-block-cover__inner-container{padding-block:1.25rem}
.home .at-home-main>.wp-block-cover h1{font-size:clamp(2rem,4.3vw,3.85rem);line-height:1.02;margin-block:.45rem .7rem}
.home .at-hero__content>p:not(.at-eyebrow){font-size:clamp(.95rem,1.35vw,1.08rem);line-height:1.5;margin-block:.4rem .75rem}
.home .at-hero__chips{gap:.4rem;margin-top:.75rem}
.home .at-hero__chips span{padding:.32rem .55rem}
.at-home-search{margin:.85rem 0 .65rem;padding:6px}
.at-home-search input[type="search"]{min-height:44px;padding:.5rem .25rem}
.at-home-search button{min-height:44px;padding:.6rem 1rem}

/* Sections : une seule source d'espacement, sans cumul margin + padding. */
.at-home-v2 .at-v2-section{margin-block:0!important;padding-block:var(--at-compact-section)!important}
.at-home-v2 .at-section-heading,.at-home-v2 .at-v2-heading{gap:.6rem 1rem;margin-bottom:1rem}
.at-home-v2 .at-section-heading h2,.at-home-v2 .at-v2-heading h2{font-size:clamp(1.55rem,2.7vw,2.35rem);line-height:1.08;margin-bottom:.3rem}
.at-home-v2 .at-section-heading p,.at-home-v2 .at-v2-heading p{line-height:1.45}
.at-home-v2 .at-section-heading>p a{min-height:38px;padding:.42rem .8rem}

/* Cartes et grilles : densité accrue, sans supprimer les repères visuels. */
.at-home-v2 :where(.at-need-card,.at-category-card,.at-project-card,.at-resource-card,.at-value-pillar,.wc-block-product){border-radius:14px}
.at-home-v2 :where(.at-needs-grid,.at-category-grid,.at-value-pillars,.at-project-grid,.at-resource-grid,.wc-block-product-template){gap:var(--at-compact-gap)!important}
.at-home-v2 .at-need-card{min-height:128px;padding:.78rem}
.at-home-v2 .at-category-card__body{padding:.7rem .75rem}
.at-home-v2 .at-value-pillar{padding:.8rem}
.at-home-v2 .at-project-card__body,.at-home-v2 .at-resource-card__body{padding:.75rem}
.at-home-v2 .at-reassurance__item{padding:.75rem}

/* Produits : format 4/3 et contenu resserré = davantage de produits visibles. */
.wp-block-woocommerce-product-collection .wc-block-product{padding:.65rem!important}
.wp-block-woocommerce-product-collection .wc-block-product>*{margin-block-start:.35rem!important}
.wp-block-woocommerce-product-collection .wc-block-product>.wp-block-woocommerce-product-image,
.wp-block-woocommerce-product-collection .wc-block-product>.wc-block-components-product-image{margin-block-start:0!important;margin-bottom:.35rem!important}
.wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-image img,
.wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-image img{aspect-ratio:4/3!important;max-height:220px;object-fit:contain}
.wp-block-woocommerce-product-collection .wc-block-product h3{font-size:.95rem!important;line-height:1.25;margin-block:.3rem!important}
.wp-block-woocommerce-product-collection .wc-block-product .wp-block-button__link,
.wp-block-woocommerce-product-collection .wc-block-product .wp-element-button{min-height:42px;padding:.55rem .65rem}
.at-catalog-toolbar{margin-bottom:.75rem}
.at-catalog-layout{gap:1.1rem!important}
.at-catalog-sidebar{padding:.8rem!important}

/* Pages standards, compte et formulaires. */
.at-page-shell,.at-shop-shell,.at-single-product-shell{padding-block:clamp(1rem,2vw,1.6rem)!important}
.at-page-shell>h1,.at-shop-shell>h1,.at-single-product-shell h1{margin-block:.2rem .75rem}
.at-page-location{margin-bottom:.5rem}
body.woocommerce-account:not(.logged-in) .woocommerce form.login,
body.woocommerce-account:not(.logged-in) .woocommerce form.register{padding:clamp(1rem,2vw,1.4rem)}
.at-registration-security{margin:.6rem 0;padding:.6rem .7rem}
.at-account-current-section{margin-bottom:.8rem;padding:.55rem .7rem}
.at-account-dashboard-hero__identity{gap:.75rem}
.at-account-dashboard-hero__identity img{flex-basis:60px;height:60px;width:60px}
.at-account-dashboard-hero__aside{gap:.55rem}
.at-account-dashboard-hero__aside>a{min-height:42px;padding:.55rem .8rem}
.at-account-quick__grid{gap:.7rem!important}

/* Grands blocs commerciaux. */
.at-home-v2 .at-atoutplus-cta,.at-home-v2 .at-professional{border-radius:18px}
.at-professional{padding:clamp(1.2rem,2.8vw,1.9rem)!important}
.at-professional__audiences{margin-block:.65rem .85rem}
.at-atoutplus-cta{padding:clamp(1.1rem,2.5vw,1.7rem)!important;gap:1.25rem!important}
.at-atoutplus-cta__media img{max-height:240px!important}
.at-lead-capture__intro,.at-lead-capture__form{padding:clamp(1.05rem,2.6vw,1.7rem)!important}
.at-project-wizard{padding:clamp(1.05rem,2.5vw,1.55rem)!important;gap:1.2rem!important}
.at-promo-countdown{padding:clamp(1rem,2.3vw,1.45rem)!important}

/* Footer plus utile : moins de vide, mêmes informations. */
.at-site-footer{margin-top:2rem!important}
.at-site-footer__main{gap:1.2rem;padding-block:1.9rem}
.at-site-footer li+li{margin-top:.3rem}

@media(max-width:960px){
    .home .at-home-main>.wp-block-cover{min-height:460px!important}
}
@media(max-width:680px){
    .home .at-home-main>.wp-block-cover{min-height:430px!important}
    .home .at-home-main>.wp-block-cover .wp-block-cover__inner-container{padding-block:1rem;width:min(100% - 24px,1180px)}
    .home .at-home-main>.wp-block-cover h1{font-size:clamp(1.85rem,8.5vw,2.65rem);margin-block:.3rem .55rem}
    .home .at-hero__content>p:not(.at-eyebrow){font-size:.94rem;line-height:1.42;margin-block:.3rem .55rem}
    .home .at-hero__chips{margin-top:.55rem}
    .at-home-v2 .at-v2-section{padding-block:var(--at-compact-section-mobile)!important}
    .at-home-v2 .at-section-heading,.at-home-v2 .at-v2-heading{margin-bottom:.8rem}
    .at-home-v2 .at-section-heading h2,.at-home-v2 .at-v2-heading h2{font-size:clamp(1.4rem,6vw,1.85rem)}
    .at-home-v2 .at-need-card{min-height:0}
    .wp-block-woocommerce-product-collection .wc-block-product{padding:.55rem!important}
    .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-image img,
    .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-image img{max-height:185px}
    .at-site-footer{margin-top:1.35rem!important}
    .at-site-footer__main{padding-block:1.45rem}
    .at-professional,.at-atoutplus-cta,.at-project-wizard,.at-lead-capture__intro,.at-lead-capture__form{padding:1rem!important}
}


/* ==========================================================================
   Identité couleur Aménage Tout V1.1 — palette extraite du logo officiel.
   Bleu = structure/confiance. Orange = action/repère. Couleurs sémantiques
   (succès, erreur, WhatsApp) restent réservées à leur fonction.
   ========================================================================== */
:root{
 --at-logo-blue:#075A93;--at-logo-blue-dark:#063A61;--at-logo-blue-deep:#063A61;
 --at-logo-orange:#A84200;--at-logo-orange-dark:#7A3200;
 --at-primary:#075A93;--at-primary-hover:#0B5F9D;--at-primary-dark:#063A61;--at-primary-deep:#063A61;
 --at-primary-soft:#EAF4FB;--at-primary-softer:#F4F9FC;
 --at-secondary:#A84200;--at-secondary-hover:#7A3200;--at-secondary-dark:#9C4300;--at-secondary-soft:#FFF1E6;
 --at-accent:#FF9A4A;--at-contrast:#172432;--at-ink:#172432;--at-muted:#5C6B76;
 --at-base:#FFFFFF;--at-surface:#F5F8FA;--at-surface-blue:#EAF4FB;--at-border:#D7E4EC;--at-border-strong:#BFD3E0;
 --at-brand-shadow:0 14px 36px rgba(8,75,122,.10);--at-brand-shadow-hover:0 18px 42px rgba(8,75,122,.16);
}
body{background:var(--at-base);color:var(--at-ink)}
a{color:var(--at-primary)}a:hover{color:var(--at-secondary-hover)}
:focus-visible{outline-color:var(--at-secondary)}
.at-header-nav{background:var(--at-primary)}
.at-contact-bar,.at-site-footer{background:var(--at-primary-dark)}
.at-header-nav .wp-block-navigation a:hover{color:#FFF1E6}
.at-product-search__form{background:var(--at-primary-softer);border-color:var(--at-border)}
.at-product-search__form:focus-within{border-color:var(--at-primary);box-shadow:0 0 0 3px rgba(14,110,181,.14)}
.at-mega-menu__toggle,.at-mega-menu__fallback,.at-product-search__form button,.at-submit-quote,.at-primary-button,
.at-project-button--primary,.at-project-card__shop,.woocommerce button.button.alt,.woocommerce a.button.alt,
.wp-block-button:not(.is-style-outline)>.wp-block-button__link{background:var(--at-secondary);border-color:var(--at-secondary);color:var(--at-contrast)!important}
.at-mega-menu__toggle:hover,.at-mega-menu__fallback:hover,.at-product-search__form button:hover,.at-submit-quote:hover,.at-primary-button:hover,
.at-project-button--primary:hover,.at-project-card__shop:hover,.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,
.wp-block-button:not(.is-style-outline)>.wp-block-button__link:hover{background:var(--at-secondary-hover);border-color:var(--at-secondary-hover);color:#fff!important}
.at-eyebrow,.at-section-eyebrow,.at-account-welcome__eyebrow{color:var(--at-secondary-dark)}
.at-account-welcome{background:radial-gradient(circle at 92% 10%,rgba(235,110,15,.20),transparent 30%),linear-gradient(135deg,var(--at-primary-dark) 0%,var(--at-primary) 100%);box-shadow:0 18px 45px rgba(8,75,122,.18)}
.at-account-welcome__eyebrow{color:#FFD7B5}.at-account-benefits li>span{background:var(--at-secondary);color:var(--at-contrast)}
.at-account-switch{background:var(--at-primary-softer);border-color:var(--at-border)}
.at-account-switch__button[aria-selected="true"]{color:var(--at-primary-dark)}
body.woocommerce-account:not(.logged-in) .woocommerce-form input:focus,body.woocommerce-account:not(.logged-in) .woocommerce-form select:focus{border-color:var(--at-primary);box-shadow:0 0 0 3px rgba(14,110,181,.12)}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login .button{background:var(--at-primary);color:#fff}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login .button:hover{background:var(--at-primary-dark)}
body.woocommerce-account:not(.logged-in) .woocommerce-form-register .button{background:var(--at-secondary);color:var(--at-contrast)}
body.woocommerce-account:not(.logged-in) .woocommerce-form-register .button:hover{background:var(--at-secondary-hover);color:#fff}
.at-commercial-home>.at-commercial-section[data-commercial-tone="soft"]{background:linear-gradient(180deg,#F7FAFC 0%,#EEF5FA 100%)}
.at-commercial-trust:not(.at-commercial-trust--existing){border-color:var(--at-border);box-shadow:0 16px 40px rgba(8,75,122,.08)}
.at-commercial-trust__item>span{background:var(--at-primary-soft);color:var(--at-primary)}
.at-commercial-trust__item strong{color:var(--at-primary-dark)}
.at-product-reassurance-panel{background:linear-gradient(135deg,var(--at-primary-softer) 0%,#fff 100%);border-color:#C6DBE8;border-left-color:var(--at-primary)}
.at-product-reassurance-panel>span{background:var(--at-primary);color:#fff}.at-product-reassurance-panel strong{color:var(--at-primary-dark)}
.at-commercial-closing{background:linear-gradient(135deg,var(--at-primary-deep) 0%,var(--at-primary) 100%);box-shadow:0 24px 55px rgba(8,75,122,.22)}
.has-primary-color{color:var(--at-primary)!important}.has-primary-background-color{background-color:var(--at-primary)!important}
.has-primary-dark-color{color:var(--at-primary-dark)!important}.has-primary-dark-background-color{background-color:var(--at-primary-dark)!important}
.has-secondary-color{color:var(--at-secondary-dark)!important}.has-secondary-background-color{background-color:var(--at-secondary)!important;color:var(--at-contrast)!important}

/* ========================================================================== 
   Accueil V1.2 — parcours commercial compact
   Produits → Projet → Recommandations → Achat → Accompagnement → Fidélisation
   ========================================================================== */
.at-home-v3{
    --at-home-section:clamp(2rem,4vw,3.4rem);
    --at-home-gap:clamp(.75rem,1.5vw,1.15rem);
}
.at-home-v3>.at-home-v3__section{margin-block:0!important;padding-block:var(--at-home-section)!important}
.at-home-v3>.at-home-v3__section+.at-home-v3__section{border-top:1px solid color-mix(in srgb,var(--at-border) 75%,transparent)}
.at-home-v3 .at-home-v3__heading{margin:0 0 1.15rem;max-width:760px}
.at-home-v3 .at-home-v3__heading h2,.at-home-v3 .at-section-heading h2{font-size:clamp(1.55rem,3vw,2.25rem);letter-spacing:-.025em;line-height:1.12;margin:.25rem 0 .45rem}
.at-home-v3 .at-home-v3__heading p,.at-home-v3 .at-section-heading p{margin-block:.25rem;max-width:760px}
.at-home-v3 .at-section-heading{align-items:end;gap:1rem;margin-bottom:1.1rem}
.at-home-v3 .at-section-heading>p{margin:0}

/* Hero carousel réellement compact, sans double hauteur du viewport. */
.home .at-home-v3>.at-hero-slider--ready,
.home .at-home-v3>.at-hero-slider--ready .at-hero-slider__viewport,
.home .at-home-v3>.at-hero-slider--ready .at-hero-slide{
    min-height:clamp(480px,46vw,560px)!important;
    height:auto!important;
}
.home .at-home-v3>.at-hero-slider--ready .at-hero-slide{padding:clamp(2.6rem,5vw,4rem) max(24px,calc((100vw - 1180px)/2)) clamp(4.8rem,7vw,5.6rem)}
.home .at-home-v3 .at-hero-slide__content{max-width:720px}
.home .at-home-v3 .at-hero-slide h1{font-size:clamp(2.05rem,4.2vw,3.7rem);line-height:1.02;margin:.45rem 0 .75rem}
.home .at-home-v3 .at-hero-slide__content>p:not(.at-eyebrow){font-size:clamp(.98rem,1.4vw,1.12rem);line-height:1.52;margin:.35rem 0 .85rem;max-width:640px}
.home .at-home-v3 .at-home-search{margin:.7rem 0;max-width:650px}
.home .at-home-v3 .at-home-search input[type="search"]{min-height:46px}
.home .at-home-v3 .at-home-search button{min-height:46px;padding:.65rem 1rem}
.home .at-home-v3 .at-hero-slide .wp-block-buttons{gap:.65rem;margin-top:.8rem}
.home .at-home-v3 .at-hero-slide .wp-block-button__link{min-height:44px;padding:.65rem 1rem}
.home .at-home-v3 .at-hero-slider__controls{bottom:1rem}

/* Quatre portes d'entrée, pas huit mini-parcours concurrents. */
.at-home-path-grid{display:grid;gap:var(--at-home-gap);grid-template-columns:repeat(4,minmax(0,1fr))}
.at-home-path-card{background:#fff;border:1px solid var(--at-border);border-radius:18px;box-shadow:0 8px 24px rgba(8,75,122,.07);color:var(--at-ink)!important;display:grid;gap:.4rem;min-height:154px;padding:1rem;text-decoration:none!important;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.at-home-path-card:hover{border-color:color-mix(in srgb,var(--at-primary) 55%,var(--at-border));box-shadow:var(--at-brand-shadow);transform:translateY(-3px)}
.at-home-path-card>span{align-items:center;background:var(--at-primary-soft);border-radius:999px;color:var(--at-primary-dark);display:inline-flex;font-size:.75rem;font-weight:900;height:30px;justify-content:center;width:38px}
.at-home-path-card--project>span,.at-home-path-card--product>span{background:var(--at-secondary-soft);color:var(--at-secondary-dark)}
.at-home-path-card strong{color:var(--at-primary-dark);font-size:1.02rem;line-height:1.2}
.at-home-path-card small{color:var(--at-muted);font-size:.86rem;line-height:1.4}
.at-home-path-card b{color:var(--at-secondary-dark);font-size:.85rem;margin-top:auto}

/* Produits : six univers compacts. */
.at-home-v3__products{background:var(--at-primary-softer)}
.at-home-v3__products .at-category-grid{gap:.75rem!important}
.at-home-v3__products .at-category-card{min-height:0!important}
.at-home-v3__products .at-category-card__body{padding:.65rem .7rem!important}
.at-home-v3__products .at-category-card__body h3{font-size:.95rem!important;margin:.1rem 0!important}

/* Projet : un teaser en 3 étapes, le tunnel détaillé reste sur /projet/. */
.at-home-v3__project{background:linear-gradient(135deg,var(--at-primary-deep),var(--at-primary));color:#fff}
.at-home-project-flow{align-items:center;display:grid;gap:clamp(1.5rem,4vw,3.5rem);grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.at-home-project-flow .at-eyebrow{color:#FFD7B5}
.at-home-project-flow h2{color:#fff!important;font-size:clamp(1.7rem,3.4vw,2.65rem);letter-spacing:-.03em;line-height:1.08;margin:.3rem 0 .65rem}
.at-home-project-flow__copy>p:not(.at-eyebrow){color:rgba(255,255,255,.84);line-height:1.55;max-width:680px}
.at-home-project-flow__actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}
.at-home-project-flow .at-project-button--secondary{background:transparent;border-color:rgba(255,255,255,.65);color:#fff!important}
.at-home-project-flow__steps{display:grid;gap:.7rem}
.at-home-project-flow__steps>div{align-items:start;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.58);border-radius:16px;color:var(--at-ink);display:grid;gap:.15rem;grid-template-columns:42px 1fr;padding:.8rem .9rem}
.at-home-project-flow__steps span{align-items:center;background:var(--at-secondary);border-radius:12px;color:#fff;display:flex;font-weight:900;grid-row:1/3;height:38px;justify-content:center;width:38px}
.at-home-project-flow__steps strong{color:var(--at-primary-dark);font-size:.96rem}
.at-home-project-flow__steps small{color:var(--at-muted);font-size:.83rem;line-height:1.35}

/* Une seule sélection produit sur la home. */
.at-home-v3__recommendations .wp-block-woocommerce-product-collection{margin-block:0!important}
.at-home-v3__recommendations .wc-block-product{box-shadow:0 7px 20px rgba(8,75,122,.06)}

/* Achat : la réassurance vient après les recommandations, au moment de décider. */
.at-home-v3__purchase{background:var(--at-surface)}
.at-home-v3__purchase .at-trust-bar{margin-top:.9rem}
.at-home-v3__purchase .at-trust-bar__item{padding:.7rem!important}
.at-home-v3__center-actions{justify-content:center;margin-top:1rem}

/* Accompagnement compact : trois bénéfices, un seul CTA. */
.at-home-v3__support{background:#fff}
.at-home-support{align-items:center;display:grid;gap:clamp(1.4rem,4vw,3rem);grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.at-home-support>div:first-child>p:not(.at-eyebrow){color:var(--at-muted);line-height:1.5;max-width:620px}
.at-home-support h2{font-size:clamp(1.65rem,3vw,2.3rem);letter-spacing:-.025em;line-height:1.12;margin:.25rem 0 .55rem}
.at-home-support__grid{display:grid;gap:.65rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.at-home-support__grid article{background:var(--at-primary-softer);border:1px solid var(--at-border);border-radius:16px;display:grid;gap:.35rem;padding:.85rem}
.at-home-support__grid article>span{align-items:center;background:var(--at-primary);border-radius:10px;color:#fff;display:flex;font-size:.76rem;font-weight:900;height:34px;justify-content:center;width:42px}
.at-home-support__grid strong{color:var(--at-primary-dark);font-size:.92rem;line-height:1.25}
.at-home-support__grid small{color:var(--at-muted);font-size:.8rem;line-height:1.35}

/* Fidélisation réduite à un teaser : le détail reste dans la page Atout+. */
.at-home-v3__atoutplus .at-atoutplus-cta{border:1px solid var(--at-border);box-shadow:var(--at-brand-shadow);gap:1.25rem!important;padding:1rem!important}
.at-home-v3__atoutplus .at-atoutplus-cta__media img{max-height:190px!important}
.at-home-v3__atoutplus .at-atoutplus-cta__content h2{font-size:clamp(1.45rem,2.5vw,2rem);margin:.2rem 0 .45rem}
.at-home-v3__atoutplus .at-atoutplus-cta__content p{margin:.35rem 0}
.at-home-v3__atoutplus .at-atoutplus-cta__content ul{display:flex;flex-wrap:wrap;gap:.35rem .9rem;margin:.5rem 0 .75rem;padding-left:1.1rem}

/* Newsletter native : capture CRM sécurisée et très courte. */
.at-home-v3__newsletter{background:linear-gradient(135deg,var(--at-primary-dark),var(--at-primary));border-top:0!important}
.at-newsletter-v2{align-items:center;color:#fff;display:grid;gap:clamp(1.2rem,4vw,3rem);grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.at-newsletter-v2 .at-eyebrow{color:#FFD7B5}
.at-newsletter-v2 h2{color:#fff!important;font-size:clamp(1.6rem,3vw,2.3rem);letter-spacing:-.025em;line-height:1.1;margin:.25rem 0 .55rem}
.at-newsletter-v2__copy>p:not(.at-eyebrow){color:rgba(255,255,255,.86);line-height:1.5;margin:.35rem 0}
.at-newsletter-v2__copy>small{color:rgba(255,255,255,.68);display:block;font-size:.78rem;margin-top:.55rem}
.at-newsletter-v2__form-wrap{background:#fff;border-radius:18px;box-shadow:0 18px 42px rgba(3,32,54,.22);color:var(--at-ink);padding:1rem}
.at-newsletter-v2__email{display:grid;gap:.55rem;grid-template-columns:minmax(0,1fr) auto}
.at-newsletter-v2__email label{margin:0}
.at-newsletter-v2__email input[type="email"]{background:#fff;border:1px solid var(--at-border-strong);border-radius:10px;box-sizing:border-box;min-height:44px;padding:.65rem .75rem;width:100%}
.at-newsletter-v2__email input[type="email"]:focus{border-color:var(--at-primary);box-shadow:0 0 0 3px rgba(14,110,181,.12);outline:0}
.at-newsletter-v2__email .at-primary-button{min-height:44px;padding:.6rem .95rem;white-space:nowrap}
.at-newsletter-v2__topics{border:0;display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin:.65rem 0 0;padding:0}
.at-newsletter-v2__topics legend{color:var(--at-muted);font-size:.75rem;font-weight:800;margin-bottom:.35rem;width:100%}
.at-newsletter-v2__topics label{align-items:center;color:var(--at-ink);display:flex;font-size:.78rem;gap:.3rem;margin:0}
.at-newsletter-v2__topics input{accent-color:var(--at-primary)}
.at-newsletter-v2__consent{font-size:.74rem!important;margin:.65rem 0 0!important}
.at-newsletter-v2__form-wrap .at-form-success{display:grid;gap:.3rem;margin:0}
.at-newsletter-v2__form-wrap .at-form-success span{font-size:.85rem}

@media(max-width:980px){
    .at-home-path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .at-home-project-flow,.at-home-support,.at-newsletter-v2{grid-template-columns:1fr}
    .at-home-support__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
    .at-home-v3{--at-home-section:1.55rem}
    .home .at-home-v3>.at-hero-slider--ready,
    .home .at-home-v3>.at-hero-slider--ready .at-hero-slider__viewport,
    .home .at-home-v3>.at-hero-slider--ready .at-hero-slide{min-height:560px!important}
    .home .at-home-v3>.at-hero-slider--ready .at-hero-slide{padding:2.5rem 16px 4.8rem}
    .home .at-home-v3 .at-hero-slide h1{font-size:clamp(1.9rem,9vw,2.7rem)}
    .home .at-home-v3 .at-hero-slide__content>p:not(.at-eyebrow){font-size:.94rem;line-height:1.42}
    .home .at-home-v3 .at-home-search{grid-template-columns:1fr}
    .home .at-home-v3 .at-home-search button{width:100%}
    .at-home-path-grid,.at-home-support__grid{grid-template-columns:1fr}
    .at-home-path-card{min-height:0;padding:.8rem}
    .at-home-project-flow__actions,.at-home-project-flow__actions .at-project-button{width:100%}
    .at-home-project-flow__actions .at-project-button{text-align:center}
    .at-newsletter-v2__email{grid-template-columns:1fr}
    .at-newsletter-v2__email .at-primary-button{width:100%}
    .at-newsletter-v2__topics{gap:.45rem}
    .at-newsletter-v2__topics label{width:100%}
    .at-home-v3__atoutplus .at-atoutplus-cta__media{display:none}
}

/* Navigation V1.2 : Produits reste l'entrée catalogue via le mega-menu ; le
   projet est l'unique CTA principal. Atout+/favoris/compte restent utilitaires. */
.at-header-nav .wp-block-navigation-item.at-nav-project>a{
    background:var(--at-secondary);
    border-radius:999px;
    color:#fff!important;
    font-weight:850;
    padding:.45rem .8rem!important;
}
.at-header-nav .wp-block-navigation-item.at-nav-project>a:hover{background:var(--at-secondary-hover);color:#fff!important}
@media(max-width:782px){
    .at-header-nav .wp-block-navigation-item.at-nav-project>a{border-radius:10px;padding:.6rem .75rem!important}
}

/* ========================================================================== 
   V1.6.0 — profils Particulier / Professionnel et fonctionnalités par compte
   ========================================================================== */
.at-account-type-picker{margin:0 auto 1.1rem;max-width:620px}.at-account-type-picker__title{color:#283943;font-size:.85rem;font-weight:800;margin:0 0 .55rem}.at-account-type-picker__choices{display:grid;gap:.7rem;grid-template-columns:repeat(2,minmax(0,1fr))}.at-account-type-choice{cursor:pointer;margin:0!important}.at-account-type-choice input{height:1px!important;opacity:0;position:absolute;width:1px!important}.at-account-type-choice>span{background:#fbfcfc;border:1px solid #d7e0e3;border-radius:13px;display:block;min-height:76px;padding:.9rem 1rem;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.at-account-type-choice strong,.at-account-type-choice small{display:block}.at-account-type-choice strong{color:#172432;font-size:.95rem;margin-bottom:.2rem}.at-account-type-choice small{color:#687780;font-size:.78rem;line-height:1.4}.at-account-type-choice input:checked+span{background:#eef7fd;border-color:#075A93;box-shadow:0 0 0 2px rgba(14,110,181,.10)}.at-account-type-choice input:focus-visible+span{outline:3px solid rgba(235,110,15,.28);outline-offset:2px}.at-account-pro-fields{background:#f8fafb;border:1px solid #e0e7ea;border-radius:14px;margin:1rem auto;max-width:620px;padding:1rem}.at-account-pro-fields[hidden]{display:none!important}.at-account-edit-profile{border:1px solid #dfe6e8;border-radius:16px;margin:1.4rem 0;padding:1.1rem}.at-account-edit-profile legend{color:#172432;font-size:1.05rem;font-weight:850;padding:0 .35rem}.at-account-inline-note{color:#6d7980;font-size:.82rem;font-weight:500}

.at-account-v160-hero{align-items:center;background:radial-gradient(circle at 92% 0,rgba(242,121,10,.34),transparent 30%),linear-gradient(135deg,var(--at-primary-deep),var(--at-primary));border:1px solid color-mix(in srgb,var(--at-primary) 55%,white);border-radius:24px;box-shadow:0 18px 44px rgba(8,59,93,.16);color:#fff;display:flex;gap:1.5rem;justify-content:space-between;margin-bottom:1.35rem;overflow:hidden;padding:clamp(1.35rem,4vw,2.5rem)}.at-account-v160-identity{align-items:center;display:flex;gap:1rem;min-width:0}.at-account-v160-identity img{border:3px solid rgba(255,255,255,.28);border-radius:50%;height:72px;width:72px}.at-account-v160-eyebrow{color:#FFD7B5;display:block;font-size:.75rem;font-weight:900;letter-spacing:.1em;margin-bottom:.35rem;text-transform:uppercase}.at-account-v160-hero h2{color:#fff!important;font-size:clamp(1.55rem,3vw,2.45rem);letter-spacing:-.035em;margin:0 0 .35rem}.at-account-v160-hero p{color:rgba(255,255,255,.8);margin:0;max-width:650px}.at-account-v160-stats{display:grid;flex:0 0 auto;gap:.55rem;grid-template-columns:repeat(3,minmax(92px,1fr))}.at-account-v160-stats span{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16);border-radius:13px;min-width:92px;padding:.65rem .75rem;text-align:center}.at-account-v160-stats b,.at-account-v160-stats small{display:block}.at-account-v160-stats b{color:#fff;font-size:1.2rem}.at-account-v160-stats small{color:rgba(255,255,255,.74);font-size:.7rem;line-height:1.25}

.at-account-v160-features{margin-top:1rem}.at-account-v160-features__heading{align-items:end;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1rem}.at-account-v160-features__heading span{color:var(--at-secondary);display:block;font-size:.75rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.at-account-v160-features__heading h2{margin:.25rem 0 0}.at-account-v160-features__heading>a{font-size:.85rem;font-weight:800}.at-account-v160-grid{display:grid;gap:.85rem;grid-template-columns:repeat(2,minmax(0,1fr))}.at-account-v160-card{background:#fff;border:1px solid var(--at-border);border-radius:16px;box-shadow:0 8px 24px rgba(8,59,93,.055);box-sizing:border-box;display:grid;gap:.32rem;grid-template-columns:46px minmax(0,1fr);min-height:142px;padding:1rem;text-decoration:none;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.at-account-v160-card__icon{align-items:center;background:var(--at-primary-softer);border-radius:12px;color:var(--at-primary);display:flex;grid-row:1/4;height:42px;justify-content:center;width:42px}.at-account-v160-card__icon svg{fill:none;height:22px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:22px}.at-account-v160-card strong{align-self:end;color:var(--at-ink);font-size:1rem}.at-account-v160-card small{color:var(--at-muted);font-size:.8rem;line-height:1.45}.at-account-v160-card b{color:var(--at-primary);font-size:.78rem;margin-top:.15rem}.at-account-v160-card:not(.is-disabled):hover{border-color:color-mix(in srgb,var(--at-primary) 35%,var(--at-border));box-shadow:0 12px 30px rgba(8,59,93,.1);transform:translateY(-2px)}.at-account-v160-card.is-disabled{background:#f5f7f8;border-style:dashed;box-shadow:none;cursor:not-allowed;opacity:.72}.at-account-v160-card.is-disabled .at-account-v160-card__icon{background:#e8edef;color:#84939b}.at-account-v160-card.is-disabled b{color:#7c8990}

body.at-account-feature-orders-disabled .woocommerce-MyAccount-navigation-link--orders a,body.at-account-feature-downloads-disabled .woocommerce-MyAccount-navigation-link--downloads a,body.at-account-feature-addresses-disabled .woocommerce-MyAccount-navigation-link--edit-address a,body.at-account-feature-atout_plus-disabled .woocommerce-MyAccount-navigation li[class*="atout-plus"] a{filter:grayscale(1);opacity:.48;pointer-events:none}

@media(max-width:960px){.at-account-v160-hero{align-items:flex-start;flex-direction:column}.at-account-v160-stats{width:100%}}@media(max-width:680px){.at-account-type-picker__choices,.at-account-v160-grid{grid-template-columns:1fr}.at-account-v160-identity{align-items:flex-start}.at-account-v160-identity img{height:56px;width:56px}.at-account-v160-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.at-account-v160-stats span{min-width:0;padding:.55rem .4rem}.at-account-v160-features__heading{align-items:flex-start;flex-direction:column}.at-account-v160-card{min-height:132px}}

/* Le nouveau tableau de bord remplace les paragraphes d'accueil WooCommerce par défaut. */
body.at-account-dashboard-page .woocommerce-MyAccount-content > p{display:none}

/* Projet 360° respecte les cartes et les rythmes du tableau de bord V1.6.1. */
.atp360-account-projects{border-top:1px solid var(--at-border);margin-top:1.4rem;padding-top:1.4rem}.atp360-account-projects>h2{margin:0 0 .3rem}.atp360-account-projects>p{color:var(--at-muted);margin:.3rem 0 1rem}.atp360-account-projects__grid{display:grid;gap:.75rem}.atp360-account-projects__card{background:#fff;border:1px solid var(--at-border);border-radius:14px;box-shadow:0 7px 20px rgba(8,59,93,.045);display:grid;gap:.28rem;padding:1rem}.atp360-account-projects__card strong{color:var(--at-ink)}.atp360-account-projects__card span{color:var(--at-muted);font-size:.84rem}.atp360-account-projects__card b{color:var(--at-primary);font-size:.95rem}


/* V1.6.8 — navigation catalogue native: one PHP-rendered hierarchy, no JS duplication. */
.at-mega-menu__column--illustrated .at-mega-menu__category-list {
    list-style: none;
    margin: .48rem 0 0 !important;
    padding: 0 !important;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-list--depth-1,
.at-mega-menu__column--illustrated .at-mega-menu__category-list--depth-2 {
    border-left: 1px solid color-mix(in srgb, var(--at-muted, #667085) 22%, transparent);
    margin: .15rem 0 .15rem .55rem !important;
    padding-left: .55rem !important;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-item + .at-mega-menu__category-item { margin-top: .06rem; }
.at-mega-menu__column--illustrated .at-mega-menu__category-link {
    border-radius: 7px;
    color: var(--at-muted, #5c6b76) !important;
    display: block;
    font-family: inherit;
    font-size: .86rem !important;
    font-weight: 500 !important;
    line-height: 1.3;
    padding: .28rem .38rem !important;
    text-decoration: none;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-link:hover,
.at-mega-menu__column--illustrated .at-mega-menu__category-link:focus-visible {
    background: color-mix(in srgb, var(--at-primary, #075A93) 8%, #fff);
    color: var(--at-primary-dark, #063A61) !important;
    transform: none;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-link.is-disabled {
    color: #98a2b3 !important;
    cursor: not-allowed;
    opacity: .72;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-list--depth-1 .at-mega-menu__category-link,
.at-mega-menu__column--illustrated .at-mega-menu__category-list--depth-2 .at-mega-menu__category-link {
    font-size: .78rem !important;
    font-weight: 450 !important;
}
@media (max-width: 760px) {
    .at-mega-menu__column--illustrated .at-mega-menu__category-link { font-size: .84rem !important; }
}


/* V1.6.9 — condensed commercial families in the native mega-menu. */
.at-mega-menu__category-list.has-families {
    display: grid;
    gap: .22rem;
}
.at-mega-menu__family { margin: 0 !important; }
.at-mega-menu__family-disclosure {
    border: 1px solid color-mix(in srgb, var(--at-border, #d7e0e3) 88%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--at-primary-softer, #eef7fd) 28%, #fff);
    overflow: clip;
}
.at-mega-menu__family-disclosure > summary {
    align-items: center;
    color: var(--at-ink, #263844);
    cursor: pointer;
    display: flex;
    font-size: .83rem;
    font-weight: 700;
    gap: .5rem;
    justify-content: space-between;
    list-style: none;
    min-height: 34px;
    padding: .42rem .55rem;
    user-select: none;
}
.at-mega-menu__family-disclosure > summary::-webkit-details-marker { display: none; }
.at-mega-menu__family-disclosure > summary::after {
    color: var(--at-primary, #075A93);
    content: '+';
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.at-mega-menu__family-disclosure[open] > summary::after { content: '−'; }
.at-mega-menu__family-disclosure > summary small {
    background: #fff;
    border: 1px solid var(--at-border, #d7e0e3);
    border-radius: 99px;
    color: var(--at-muted, #667085);
    font-size: .65rem;
    font-weight: 700;
    margin-left: auto;
    min-width: 20px;
    padding: .08rem .34rem;
    text-align: center;
}
.at-mega-menu__family-disclosure[open] > summary {
    background: color-mix(in srgb, var(--at-primary, #075A93) 7%, #fff);
    color: var(--at-primary-dark, #063A61);
}
.at-mega-menu__family-list {
    border-top: 1px solid color-mix(in srgb, var(--at-border, #d7e0e3) 78%, transparent);
    list-style: none;
    margin: 0 !important;
    padding: .24rem .25rem .34rem !important;
}
.at-mega-menu__family-list > .at-mega-menu__category-item + .at-mega-menu__category-item { margin-top: .02rem; }
.at-mega-menu__family-list > .at-mega-menu__category-item > .at-mega-menu__category-link {
    font-size: .78rem !important;
    font-weight: 500 !important;
    padding: .24rem .34rem !important;
}
@media (min-width: 980px) {
    .at-mega-menu__column--illustrated:has(.at-mega-menu__family) { align-content: start; }
}
@media (max-width: 760px) {
    .at-mega-menu__family-disclosure > summary { font-size: .82rem; min-height: 38px; }
    .at-mega-menu__family-list > .at-mega-menu__category-item > .at-mega-menu__category-link { font-size: .8rem !important; }
}

/* V1.7.0 — navigation condensée complète et déroulement au survol. */
.at-mega-menu__column--illustrated .at-mega-menu__category-row {
    align-items: center;
    display: flex;
    gap: .18rem;
    min-width: 0;
}
.at-mega-menu__column--illustrated .at-mega-menu__category-row > .at-mega-menu__category-link {
    flex: 1 1 auto;
    min-width: 0;
}
.at-mega-menu__submenu-toggle,
.at-mega-menu__family-trigger {
    appearance: none;
    border: 0;
    font-family: inherit;
}
.at-mega-menu__submenu-toggle {
    align-items: center;
    background: transparent;
    border-radius: 6px;
    color: var(--at-muted, #667085);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}
.at-mega-menu__submenu-toggle:hover,
.at-mega-menu__submenu-toggle:focus-visible {
    background: color-mix(in srgb, var(--at-primary, #075A93) 8%, #fff);
    color: var(--at-primary-dark, #063A61);
}
.at-mega-menu__submenu-toggle span,
.at-mega-menu__caret {
    display: inline-block;
    transition: transform .16s ease;
}
.at-mega-menu__category-item.is-expanded > .at-mega-menu__category-row .at-mega-menu__submenu-toggle span,
.at-mega-menu__family.is-expanded > .at-mega-menu__family-trigger .at-mega-menu__caret {
    transform: rotate(180deg);
}
.at-mega-menu__family {
    margin: 0 !important;
    position: relative;
}
.at-mega-menu__family-trigger {
    align-items: center;
    background: transparent;
    border-radius: 8px;
    color: var(--at-ink, #263844);
    cursor: pointer;
    display: flex;
    font-size: .83rem;
    font-weight: 700;
    gap: .45rem;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 34px;
    padding: .4rem .5rem;
    text-align: left;
    width: 100%;
}
.at-mega-menu__family-trigger:hover,
.at-mega-menu__family-trigger:focus-visible,
.at-mega-menu__family.is-expanded > .at-mega-menu__family-trigger {
    background: color-mix(in srgb, var(--at-primary, #075A93) 7%, #fff);
    color: var(--at-primary-dark, #063A61);
}
.at-mega-menu__family-list {
    border-left: 1px solid color-mix(in srgb, var(--at-muted, #667085) 22%, transparent);
    list-style: none;
    margin: .08rem 0 .12rem .45rem !important;
    padding: .08rem 0 .12rem .45rem !important;
}
.at-mega-menu__family-list > .at-mega-menu__category-item > .at-mega-menu__category-row > .at-mega-menu__category-link {
    color: var(--at-muted, #5c6b76) !important;
    font-size: .79rem !important;
    font-weight: 500 !important;
    padding: .24rem .3rem !important;
}

/* Les descendants ne prennent plus de hauteur tant que leur parent n'est pas survolé/ouvert. */
.at-mega-menu__category-item > .at-mega-menu__category-list,
.at-mega-menu__family > .at-mega-menu__family-list {
    display: none;
}
.at-mega-menu__category-item.is-expanded > .at-mega-menu__category-list,
.at-mega-menu__family.is-expanded > .at-mega-menu__family-list {
    display: block;
}

@media (hover: hover) and (pointer: fine) and (min-width: 980px) {
    .at-mega-menu__submenu-toggle { display: none; }
    .at-mega-menu__category-item.has-children:hover > .at-mega-menu__category-list,
    .at-mega-menu__category-item.has-children:focus-within > .at-mega-menu__category-list,
    .at-mega-menu__family.has-children:hover > .at-mega-menu__family-list,
    .at-mega-menu__family.has-children:focus-within > .at-mega-menu__family-list {
        display: block;
    }
    .at-mega-menu__category-item.has-children > .at-mega-menu__category-row > .at-mega-menu__category-link::after {
        color: var(--at-primary, #075A93);
        content: '›';
        float: right;
        font-weight: 800;
        margin-left: .35rem;
    }
    .at-mega-menu__family.has-children:hover > .at-mega-menu__family-trigger .at-mega-menu__caret,
    .at-mega-menu__family.has-children:focus-within > .at-mega-menu__family-trigger .at-mega-menu__caret {
        transform: rotate(180deg);
    }
}

@media (max-width: 979px), (hover: none), (pointer: coarse) {
    .at-mega-menu__submenu-toggle { display: inline-flex; }
    .at-mega-menu__family-trigger { min-height: 40px; }
    .at-mega-menu__family-list { margin-left: .3rem !important; padding-left: .4rem !important; }
}

/* V1.7.1 — administration : classement fiable des univers */
.at-nav-category-tree.is-root > .at-nav-category-row > .at-nav-category-row__main{
  grid-template-columns:34px 42px minmax(220px,1fr) 100px 88px 170px auto;
}
.at-nav-universe-position{display:grid;gap:3px;font-weight:600;align-items:center}
.at-nav-universe-position span{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.04em;color:#667085}
.at-nav-universe-position input{width:72px;min-height:34px}
@media(max-width:900px){
  .at-nav-category-tree.is-root > .at-nav-category-row > .at-nav-category-row__main{grid-template-columns:30px 38px minmax(150px,1fr) 78px 150px}
  .at-nav-category-tree.is-root > .at-nav-category-row > .at-nav-category-row__main .at-nav-category-level,
  .at-nav-category-tree.is-root > .at-nav-category-row > .at-nav-category-row__main > a{display:none}
  .at-nav-universe-position input{width:64px}
}


/* V1.7.2 — images représentatives dans les blocs du méga-menu */
.at-mega-menu__family-trigger{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:.7rem;align-items:center}
.at-mega-menu__family-media,.at-mega-menu__category-thumb{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#f3f4f6;border:1px solid rgba(8,75,122,.08)}
.at-mega-menu__family-media{width:44px;height:44px;border-radius:12px;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.at-mega-menu__family-media img,.at-mega-menu__category-thumb img{width:100%;height:100%;object-fit:cover}
.at-mega-menu__family-copy{display:grid;gap:2px;min-width:0;text-align:left}
.at-mega-menu__family-copy strong{display:block;color:#334155;font-size:.86rem;font-weight:700;line-height:1.25}
.at-mega-menu__category-link{display:inline-flex;align-items:center;gap:.58rem;min-width:0}
.at-mega-menu__category-thumb{width:30px;height:30px;border-radius:9px;flex:0 0 30px}
.at-mega-menu__category-text{display:inline-block;min-width:0;white-space:normal}
.at-mega-menu__family-list > .at-mega-menu__category-item > .at-mega-menu__category-row{padding-block:2px}
.at-mega-menu__category-list--depth-1 .at-mega-menu__category-thumb,.at-mega-menu__category-list--depth-2 .at-mega-menu__category-thumb,.at-mega-menu__category-list--depth-3 .at-mega-menu__category-thumb{width:24px;height:24px;flex-basis:24px;border-radius:8px;opacity:.95}
@media(max-width:979px){
  .at-mega-menu__family-trigger{grid-template-columns:40px minmax(0,1fr) auto;gap:.55rem}
  .at-mega-menu__family-media{width:40px;height:40px}
  .at-mega-menu__family-copy strong{font-size:.82rem}
  .at-mega-menu__category-thumb{width:22px;height:22px;flex-basis:22px;border-radius:7px}
}
