/* ==========================================================================
   WOO SAAS — Feuille de style WooCommerce complète
   --------------------------------------------------------------------------
   Thème : Hello Child Custom — Design System SaaS premium (vert / orange).
   Portée : produit, boutique, panier, checkout, compte, messages, composants.
   Les tokens proviennent de :root (style.css). Aliases --ws-* pour compat.
   Sommaire :
     01. Tokens & aliases
     02. Conteneurs & primitives
     03. Composants (boutons, cartes, champs, badges, alertes, tables)
     04. Page produit (hero, galerie, carte d'achat SaaS)
     05. Boutique (archive / cartes produit)
     06. Panier (grille + récap sticky)
     07. Checkout
     08. Mon compte (dashboard SaaS)
     09. Messages WooCommerce
     10. Zone Elementor
     11. Animations & responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. TOKENS & ALIASES (mappés sur les tokens globaux de style.css)
   -------------------------------------------------------------------------- */
.woocommerce,
.woocommerce-page,
[class*="woo-saas"] {
    --ws-bg:          var(--bg, #fff);
    --ws-surface:     #ffffff;
    --ws-surface-alt: var(--bg-soft, #f8fafc);
    --ws-surface-mid: var(--bg-mid, #f1f5f9);

    --ws-border:      var(--border, #e2e8f0);
    --ws-border-soft: var(--border-soft, #cbd5e1);

    --ws-text:        var(--secondary, #0f172a);
    --ws-text-soft:   var(--text-soft, #334155);
    --ws-text-muted:  var(--text-light, #64748b);

    --ws-brand:       var(--primary, #6d28d9);
    --ws-brand-dark:  var(--primary-dark, #5b21b6);
    --ws-brand-light: var(--primary-light, #7c3aed);
    --ws-brand-50:    var(--primary-50, #f5f3ff);
    --ws-accent:      var(--accent, #f97316);
    --ws-accent-dark: var(--accent-dark, #ea580c);

    /* Fonds de bouton conformes AA (libellé blanc). */
    --ws-accent-cta:       var(--accent-cta, #c2410c);
    --ws-accent-cta-hover: var(--accent-cta-hover, #9a3412);
    --ws-brand-cta:        var(--brand-cta, #6d28d9);
    --ws-brand-cta-hover:  var(--brand-cta-hover, #5b21b6);

    --ws-success:     var(--success, #10b981);
    --ws-danger:      var(--danger, #ef4444);

    --ws-radius-sm:   var(--radius-sm, 8px);
    --ws-radius:      var(--radius, 12px);
    --ws-radius-lg:   var(--radius-lg, 16px);
    --ws-radius-xl:   var(--radius-xl, 22px);

    --ws-shadow-sm:   var(--shadow-sm);
    --ws-shadow:      var(--shadow);
    --ws-shadow-md:   var(--shadow-md);
    --ws-shadow-lg:   var(--shadow-lg);

    --ws-gap:         16px;
    --ws-gap-lg:      24px;
    --ws-section-y:   clamp(40px, 6vw, 80px);
}

/* --------------------------------------------------------------------------
   02. CONTENEURS & PRIMITIVES
   -------------------------------------------------------------------------- */
.woo-saas-container {
    width: 100%;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.woo-saas-main {
    background: var(--ws-bg);
}

.woo-saas-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs, .8125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ws-brand-dark);
}

/* --------------------------------------------------------------------------
   03. COMPOSANTS PARTAGÉS
   -------------------------------------------------------------------------- */

/* --- Boutons -------------------------------------------------------------- */
.woo-saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--ws-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.woo-saas-btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.woo-saas-btn:active {
    transform: translateY(0);
}

.woo-saas-btn--primary {
    background: var(--ws-accent-cta);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.woo-saas-btn--primary:hover {
    background: var(--ws-accent-cta-hover);
    color: #fff;
    transform: translateY(-2px);
}

.woo-saas-btn--brand {
    background: var(--ws-brand-cta);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.woo-saas-btn--brand:hover {
    background: var(--ws-brand-cta-hover);
    color: #fff;
    transform: translateY(-2px);
}

.woo-saas-btn--ghost {
    background: var(--ws-surface);
    color: var(--ws-text);
    border-color: var(--ws-border);
    box-shadow: var(--ws-shadow-sm);
}

.woo-saas-btn--ghost:hover {
    color: var(--ws-brand-dark);
    border-color: var(--ws-brand-light);
    background: var(--ws-brand-50);
    transform: translateY(-2px);
}

/* --- Focus clavier (WCAG 2.4.7) : outline robuste, insensible aux box-shadow --- */
.woo-saas-btn:focus-visible,
.woo-saas-product .single_add_to_cart_button:focus-visible,
.woocommerce #payment #place_order:focus-visible,
.woocommerce-checkout #place_order:focus-visible,
.woocommerce .wc-proceed-to-checkout a.checkout-button:focus-visible,
.woocommerce ul.products li.product .button:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content .button:focus-visible,
.woocommerce-account .woocommerce-Button:focus-visible,
.woocommerce-form-login .button:focus-visible,
.woocommerce-form-register .button:focus-visible {
    outline: 3px solid var(--ink-900, #0f172a);
    outline-offset: 2px;
}

.woo-saas-btn--block {
    width: 100%;
}

/* --- Badges --------------------------------------------------------------- */
.woo-saas-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs, .8125rem);
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    border-radius: var(--radius-pill, 999px);
}

.woo-saas-pill--brand {
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
}

.woo-saas-pill--accent {
    background: var(--accent-100, #ffedd5);
    color: var(--ws-accent-dark);
}

/* --- Champs de formulaire (portée WooCommerce) ---------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ws-text);
    background: var(--ws-surface);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-account input:focus {
    outline: none;
    border-color: var(--ws-brand);
    box-shadow: var(--ring);
}

.woocommerce form .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ws-text);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 0;
    color: var(--ws-text);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

/* --- Tableaux ------------------------------------------------------------- */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    overflow: hidden;
    margin: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 16px;
    text-align: left;
    border-top: 1px solid var(--ws-border);
    vertical-align: middle;
    font-size: 15px;
}

.woocommerce table.shop_table thead th,
.woocommerce table.shop_table tr:first-child th {
    border-top: 0;
    background: var(--ws-surface-alt);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ws-text-muted);
}

/* ==========================================================================
   04. PAGE PRODUIT
   ========================================================================== */
.woo-saas-product {
    color: var(--ws-text);
    background: var(--ws-bg);
    line-height: 1.6;
}

.woo-saas-hero {
    padding: var(--ws-section-y) 0 clamp(32px, 5vw, 56px);
    position: relative;
}

.woo-saas-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    background:
        radial-gradient(60% 120% at 15% 0%, rgba(22,163,74,.06), transparent 60%),
        radial-gradient(50% 120% at 100% 0%, rgba(249,115,22,.05), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.woo-saas-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ws-gap-lg);
}

/* Ordre source : média → cartes → contenu.
   Mobile (1 colonne) : galerie, carte d'achat + specs, puis contenu. */
.woo-saas-hero__media,
.woo-saas-hero__summary,
.woo-saas-hero__content {
    position: relative;
    min-width: 0;
}

@media (min-width: 960px) {
    .woo-saas-hero__grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        column-gap: 48px;
        row-gap: 0;
        align-items: start;
    }

    /* Galerie : colonne gauche, 1re ligne. */
    .woo-saas-hero__media {
        grid-column: 1;
        grid-row: 1;
    }

    /* Cartes (achat + spécifications) : colonne droite, sticky. */
    .woo-saas-hero__summary {
        grid-column: 2;
        grid-row: 1 / -1;
        position: sticky;
        top: 24px;
        align-self: start;
    }

    /* Contenu (présentation, fonctionnalités, Elementor, FAQ, CTA) :
       colonne gauche, sous la galerie. */
    .woo-saas-hero__content {
        grid-column: 1;
        grid-row: 2;
        margin-top: clamp(40px, 5vw, 64px);
    }
}

/* --- Galerie -------------------------------------------------------------- */
.woo-saas-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.woo-saas-product .woocommerce-product-gallery__wrapper {
    margin: 0;
    border-radius: var(--ws-radius-lg);
}

.woo-saas-product .woocommerce-product-gallery__image {
    position: relative;
}

.woo-saas-product .woocommerce-product-gallery__image img {
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-md);
    background: var(--ws-surface-alt);
    border: 1px solid var(--ws-border);
    transition: box-shadow .3s var(--ease-out);
}

.woo-saas-product .woocommerce-product-gallery:hover .woocommerce-product-gallery__image img {
    box-shadow: var(--ws-shadow-lg);
}

.woo-saas-product .flex-control-thumbs {
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    list-style: none;
}

.woo-saas-product .flex-control-thumbs li {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    list-style: none;
}

.woo-saas-product .flex-control-thumbs img {
    border-radius: var(--ws-radius-sm);
    border: 1px solid var(--ws-border);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease-out);
    opacity: .7;
    cursor: pointer;
    background: var(--ws-surface-alt);
}

.woo-saas-product .flex-control-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--ws-brand-light);
}

.woo-saas-product .flex-control-thumbs img.flex-active {
    border-color: var(--ws-brand);
    box-shadow: 0 0 0 2px var(--ws-brand);
    opacity: 1;
}

.woo-saas-product .woocommerce-product-gallery__trigger {
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-pill, 999px);
    box-shadow: var(--ws-shadow);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    font-size: 0;
    z-index: 3;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.woo-saas-product .woocommerce-product-gallery__trigger:hover {
    transform: scale(1.06);
    box-shadow: var(--ws-shadow-md);
}

.woo-saas-product .woocommerce-product-gallery__trigger::before {
    content: "⤢";
    font-size: 18px;
    color: var(--ws-text);
    text-indent: 0;
}

/* --- Badge promo ---------------------------------------------------------- */
.woo-saas-product .onsale,
.woo-saas-product .woo-saas-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ws-accent-cta);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 13px;
    border-radius: var(--radius-pill, 999px);
    min-height: auto;
    min-width: auto;
    line-height: 1;
    box-shadow: var(--shadow-accent);
    z-index: 4;
    margin: 0;
}

/* --- Carte d'achat (pricing card SaaS) ------------------------------------ */
.woo-saas-summary {
    position: relative;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-xl);
    padding: 30px;
    box-shadow: var(--ws-shadow-md);
    overflow: hidden;
}

.woo-saas-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-brand);
}

@media (min-width: 600px) {
    .woo-saas-summary {
        padding: 36px;
    }
}

.woo-saas-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Étoiles / preuve sociale */
.woo-saas-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ws-text-muted);
}

.woo-saas-rating__stars {
    --pct: 100%;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--ws-accent) var(--pct), var(--ws-border-soft) var(--pct));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.woo-saas-rating__stars::before {
    content: "★★★★★";
}

.woo-saas-product .product_title {
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    color: var(--ws-text);
}

.woo-saas-product .woocommerce-product-details__short-description {
    color: var(--ws-text-soft);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 20px;
}

.woo-saas-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Bénéfices */
.woo-saas-benefits {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.woo-saas-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ws-text-soft);
    line-height: 1.5;
}

.woo-saas-benefits li svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--ws-brand);
}

/* Prix */
.woo-saas-product .price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ws-text);
}

.woo-saas-product .price del {
    color: var(--ws-text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 1;
    text-decoration: line-through;
}

.woo-saas-product .price ins {
    background: none;
    text-decoration: none;
    color: var(--ws-text);
}

.woo-saas-product .price .woocommerce-Price-amount {
    color: inherit;
}

.woo-saas-price-note {
    display: block;
    font-size: 13px;
    color: var(--ws-text-muted);
    margin: 0 0 20px;
}

/* Divider */
.woo-saas-divider {
    height: 1px;
    background: var(--ws-border);
    border: 0;
    margin: 22px 0;
}

/* Formulaire panier */
.woo-saas-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.woo-saas-product .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius-sm);
    overflow: hidden;
    background: var(--ws-surface);
    height: 50px;
}

.woo-saas-qty-btn {
    width: 42px;
    height: 100%;
    border: 0;
    background: var(--ws-surface-alt);
    color: var(--ws-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.woo-saas-qty-btn:hover {
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
}

.woo-saas-product .quantity .qty {
    width: 56px;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--ws-text);
    -moz-appearance: textfield;
}

.woo-saas-product .quantity .qty::-webkit-outer-spin-button,
.woo-saas-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woo-saas-product .single_add_to_cart_button,
.woo-saas-product button.single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 200px;
    min-width: 200px;
    height: 50px;
    padding: 0 26px !important;
    background: var(--ws-accent-cta) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--ws-radius-sm) !important;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .005em;
    cursor: pointer;
    transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: var(--shadow-accent);
    text-decoration: none;
    text-transform: none;
}

.woo-saas-product .single_add_to_cart_button:hover {
    background: var(--ws-accent-cta-hover) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

.woo-saas-product .single_add_to_cart_button:active {
    transform: translateY(0);
}

.woo-saas-product .single_add_to_cart_button:disabled,
.woo-saas-product .single_add_to_cart_button.disabled {
    opacity: .6 !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Actions secondaires : Documentation / Démo */
.woo-saas-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 6px;
}

@media (max-width: 400px) {
    .woo-saas-actions {
        grid-template-columns: 1fr;
    }
}

/* Variations */
.woo-saas-product .variations {
    margin: 0 0 16px;
    border: 0;
    width: 100%;
}

.woo-saas-product .variations th,
.woo-saas-product .variations td {
    background: transparent !important;
    border: 0;
    padding: 8px 0;
    vertical-align: middle;
}

.woo-saas-product .variations label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ws-text);
    margin: 0;
}

.woo-saas-product .variations select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius-sm);
    background: var(--ws-surface);
    font-size: 14px;
    color: var(--ws-text);
}

.woo-saas-product .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ws-text-muted);
}

/* Stock */
.woo-saas-product .stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: var(--radius-pill, 999px);
    margin: 0 0 16px;
}

.woo-saas-product .stock.in-stock {
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
}

.woo-saas-product .stock.out-of-stock {
    background: var(--danger-bg, #fef2f2);
    color: var(--ws-danger);
}

.woo-saas-product .stock::before {
    content: "";
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

/* Trust signals */
.woo-saas-trust {
    list-style: none;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--ws-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.woo-saas-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ws-text-soft);
    margin: 0;
    list-style: none;
}

.woo-saas-trust li span {
    font-size: 17px;
    line-height: 1;
}

/* Icônes de paiement */
.woo-saas-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ws-border);
}

.woo-saas-pay__label {
    font-size: 12px;
    color: var(--ws-text-muted);
    margin-right: 2px;
}

.woo-saas-pay svg {
    height: 26px;
    width: auto;
    border: 1px solid var(--ws-border);
    border-radius: 5px;
    background: #fff;
    padding: 2px 4px;
}

/* ==========================================================================
   COLONNE DE CONTENU (gauche) — sections landing
   ========================================================================== */
.woo-saas-section {
    margin: 0 0 clamp(48px, 7vw, 80px);
}

.woo-saas-section:last-child {
    margin-bottom: 0;
}

/* Section Header (composant) : surtitre + titre + accroche. */
.woo-saas-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs, .8125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ws-brand-dark);
    background: var(--ws-brand-50);
    padding: 6px 12px;
    border-radius: var(--radius-pill, 999px);
    margin: 0 0 14px;
}

.woo-saas-section__title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--ws-text);
}

.woo-saas-section__lead {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--ws-text-muted);
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 0 28px;
}

/* Quand il n'y a pas d'accroche, garder un rythme correct sous le titre. */
.woo-saas-section > .woo-saas-section__title:last-of-type {
    margin-bottom: 24px;
}

/* --- Présentation (description longue réutilisée) ------------------------- */
.woo-saas-description {
    color: var(--ws-text-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.woo-saas-description h2,
.woo-saas-description h3 {
    color: var(--ws-text);
    margin: 28px 0 14px;
}

.woo-saas-description > *:first-child {
    margin-top: 0;
}

.woo-saas-description img {
    border-radius: var(--ws-radius);
    margin: 20px 0;
}

/* --- Fonctionnalités (grille de cartes) ---------------------------------- */
.woo-saas-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 560px) {
    .woo-saas-features {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.woo-saas-feature {
    position: relative;
    display: flex;
    gap: 16px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 24px;
    box-shadow: var(--ws-shadow-sm);
    overflow: hidden;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}

/* Filet d'accent qui se révèle au hover (signature SaaS). */
.woo-saas-feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--grad-brand);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s var(--ease-out);
}

.woo-saas-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-md);
    border-color: var(--primary-200, #bbf7d0);
}

.woo-saas-feature:hover::before {
    transform: scaleY(1);
}

.woo-saas-feature__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
    transition: background .25s var(--ease), color .25s var(--ease);
}

.woo-saas-feature:hover .woo-saas-feature__icon {
    background: var(--ws-brand);
    color: #fff;
}

.woo-saas-feature__icon svg {
    width: 23px;
    height: 23px;
}

.woo-saas-feature__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ws-text);
    letter-spacing: -.01em;
    margin: 3px 0 5px;
    line-height: 1.3;
}

.woo-saas-feature__text {
    font-size: 14.5px;
    color: var(--ws-text-soft);
    margin: 0;
    line-height: 1.6;
}

/* --- FAQ (accordéon natif <details>, accessible clavier) ----------------- */
.woo-saas-faq {
    display: grid;
    gap: 14px;
}

.woo-saas-faq__item {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.woo-saas-faq__item:hover {
    border-color: var(--ws-border-soft);
    box-shadow: var(--ws-shadow);
}

.woo-saas-faq__item[open] {
    border-color: var(--primary-200, #bbf7d0);
}

.woo-saas-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 650;
    color: var(--ws-text);
    cursor: pointer;
    list-style: none;
    transition: color .2s var(--ease);
}

.woo-saas-faq__q::-webkit-details-marker {
    display: none;
}

/* Bouton d'icône circulaire premium (+ / −). */
.woo-saas-faq__q::after {
    content: "";
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:
        linear-gradient(var(--ws-text-muted), var(--ws-text-muted)) center/12px 2px no-repeat,
        linear-gradient(var(--ws-text-muted), var(--ws-text-muted)) center/2px 12px no-repeat,
        var(--ws-surface-alt);
    transition: transform .3s var(--ease), background-color .2s var(--ease);
}

.woo-saas-faq__item[open] .woo-saas-faq__q {
    color: var(--ws-brand-dark);
}

.woo-saas-faq__item[open] .woo-saas-faq__q::after {
    /* passe de + à − en masquant la barre verticale + rotation douce */
    background:
        linear-gradient(var(--ws-brand), var(--ws-brand)) center/12px 2px no-repeat,
        var(--ws-brand-50);
    transform: rotate(180deg);
}

.woo-saas-faq__q:focus-visible {
    outline: 3px solid var(--ink-900, #0f172a);
    outline-offset: -3px;
    border-radius: var(--ws-radius-lg);
}

/* Réponse : animation de hauteur pilotée par woo-saas.js (progressive enhancement). */
.woo-saas-faq__a {
    padding: 0 22px 22px;
    font-size: 15px;
    color: var(--ws-text-soft);
    line-height: 1.7;
}

.js-faq .woo-saas-faq__a {
    overflow: hidden;
    transition: height .3s var(--ease);
    will-change: height;
}

/* --- CTA final ------------------------------------------------------------ */
.woo-saas-cta {
    position: relative;
    text-align: center;
    background: var(--grad-ink);
    border-radius: var(--ws-radius-xl);
    padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--ws-shadow-lg);
    isolation: isolate;
}

/* Halo lumineux vert/orange en fond pour la profondeur SaaS. */
.woo-saas-cta::before {
    content: "";
    position: absolute;
    inset: -40% 0 auto 0;
    height: 140%;
    background:
        radial-gradient(45% 60% at 20% 0%, rgba(34, 197, 94, .28), transparent 60%),
        radial-gradient(40% 55% at 85% 10%, rgba(249, 115, 22, .22), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.woo-saas-cta__title {
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 12px;
}

.woo-saas-cta__text {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    max-width: 48ch;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.woo-saas-cta .woo-saas-btn {
    min-width: 240px;
    height: 56px;
    font-size: 16.5px;
    font-weight: 700;
}

.woo-saas-cta .woo-saas-btn:focus-visible {
    outline-color: #fff;
}

/* --- Carte « Spécifications » --------------------------------------------- */
/* Réutilise .woo-saas-summary : fond blanc, rayon, ombre, padding et barre
   dégradée supérieure sont hérités → style strictement identique à la carte
   d'achat. On ne définit ici que le contenu interne (titre + tableau). */

/* Espace entre les cartes empilées dans la colonne de droite. */
.woo-saas-hero__summary .woo-saas-summary + .woo-saas-summary {
    margin-top: 24px;
}

.woo-saas-specs__title {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.015em;
    margin: 0 0 6px;
    color: var(--ws-text);
}

.woo-saas-specs__grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.woo-saas-specs__row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid var(--ws-border);
    margin: 0;
    min-width: 0;
}

.woo-saas-specs__row:first-child {
    border-top: 0;
}

.woo-saas-specs__row dt {
    flex: none;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ws-text-muted);
    margin: 0;
    white-space: nowrap;
}

/* Séparateur pointillé discret entre label et valeur (façon fiche technique). */
.woo-saas-specs__row::after {
    content: "";
    flex: 1;
    align-self: center;
    height: 0;
    border-bottom: 1px dotted var(--ws-border-soft);
    margin: 0 4px;
    order: 1;
    min-width: 14px;
}

.woo-saas-specs__row dd {
    order: 2;
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--ws-text);
    margin: 0;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.woo-saas-specs__row dd a {
    color: var(--ws-brand-dark);
    text-decoration: none;
}

.woo-saas-specs__row dd a:hover {
    text-decoration: underline;
}

.woo-saas-specs__req {
    margin: 20px 0 0;
    padding: 16px 18px;
    background: var(--ws-surface-alt);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    font-size: 14px;
    color: var(--ws-text-soft);
    line-height: 1.6;
}

.woo-saas-specs__req strong {
    display: block;
    color: var(--ws-text);
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ==========================================================================
   05. BOUTIQUE (archive / cartes produit)
   ========================================================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 14px;
    box-shadow: var(--ws-shadow-sm);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--ws-shadow-lg);
    border-color: var(--primary-200, #bbf7d0);
}

.woocommerce ul.products li.product a img {
    border-radius: var(--ws-radius);
    margin: 0 0 16px;
    background: var(--ws-surface-alt);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ws-text);
    margin: 0 0 8px;
}

.woocommerce ul.products li.product .price {
    padding: 0 6px;
    margin: 0 0 14px;
    color: var(--ws-brand-dark);
    font-size: 17px;
    font-weight: 800;
}

.woocommerce ul.products li.product .price del {
    color: var(--ws-text-muted);
    font-weight: 500;
    font-size: 14px;
    opacity: 1;
}

.woocommerce ul.products li.product .price ins {
    background: none;
    text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
    margin: 0 6px 12px;
    font-size: 13px;
    color: var(--ws-accent);
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px !important;
    background: var(--ws-brand-cta) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--ws-radius-sm) !important;
    font-weight: 650 !important;
    font-size: 14.5px !important;
    text-transform: none;
    box-shadow: var(--ws-shadow-sm);
    transition: background .2s var(--ease), transform .15s var(--ease);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--ws-brand-cta-hover) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.woocommerce ul.products li.product .added_to_cart {
    margin: 8px 6px 0;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-brand-dark);
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: var(--ws-accent-cta);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: var(--radius-pill, 999px);
    min-height: auto;
    min-width: auto;
    line-height: 1;
    margin: 0;
    box-shadow: var(--shadow-accent);
}

/* Barre d'outils boutique (tri + compteur) */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 24px;
    color: var(--ws-text-muted);
    font-size: 14px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius-sm);
    background: var(--ws-surface);
    font-family: inherit;
    color: var(--ws-text);
}

/* ==========================================================================
   06. PANIER
   ========================================================================== */
.woo-saas-cart {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) 20px 60px;
}

.woo-saas-cart__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 32px;
}

.woo-saas-cart__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 900px) {
    .woo-saas-cart__grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
        gap: 32px;
    }
}

.woo-saas-cart__items {
    min-width: 0;
}

.woocommerce .cart_item .product-thumbnail img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--ws-radius-sm);
    border: 1px solid var(--ws-border);
}

.woocommerce .cart_item .product-name a {
    color: var(--ws-text);
    font-weight: 650;
}

.woocommerce .cart_item .product-name a:hover {
    color: var(--ws-brand-dark);
}

.woocommerce table.cart td.actions {
    padding: 18px 16px;
    background: var(--ws-surface-alt);
}

.woocommerce table.cart td.actions .coupon {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce table.cart td.actions .input-text {
    min-height: 46px;
    max-width: 220px;
    padding: 0 14px;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius-sm);
    font-family: inherit;
}

.woocommerce table.cart td.actions .button,
.woocommerce table.cart td.actions button {
    height: 46px;
    padding: 0 20px;
    border: 1px solid var(--ws-border);
    background: var(--ws-surface);
    color: var(--ws-text);
    border-radius: var(--ws-radius-sm);
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce table.cart td.actions .button:hover,
.woocommerce table.cart td.actions button:hover {
    border-color: var(--ws-brand-light);
    color: var(--ws-brand-dark);
    background: var(--ws-brand-50);
}

/* Récap sticky */
.woo-saas-cart__summary {
    position: relative;
}

@media (min-width: 900px) {
    .woo-saas-cart__summary {
        position: sticky;
        top: 24px;
    }
}

.woo-saas-cart__summary .cart_totals,
.woo-saas-cart__summary > * {
    margin: 0;
    width: 100%;
    float: none;
}

.woo-saas-cart__summary h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ws-brand);
    display: inline-block;
}

.woo-saas-summary-card {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 24px;
    box-shadow: var(--ws-shadow-md);
}

.woo-saas-cart__summary table.shop_table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.woo-saas-cart__summary table.shop_table th,
.woo-saas-cart__summary table.shop_table td {
    padding: 12px 0;
    background: transparent;
    border-top: 1px solid var(--ws-border);
    font-size: 15px;
}

.woo-saas-cart__summary table.shop_table tr:first-child th,
.woo-saas-cart__summary table.shop_table tr:first-child td {
    border-top: 0;
}

.woo-saas-cart__summary .order-total th,
.woo-saas-cart__summary .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--ws-text);
}

.woo-saas-cart__summary .wc-proceed-to-checkout {
    padding: 18px 0 0;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: var(--ws-accent-cta);
    color: #fff;
    border-radius: var(--ws-radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-accent);
    transition: transform .15s var(--ease), background .2s var(--ease);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--ws-accent-cta-hover);
    color: #fff;
    transform: translateY(-2px);
}

.woo-saas-cart__reassurance {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.woo-saas-cart__reassurance li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ws-text-muted);
}

.woo-saas-cart__reassurance li span {
    font-size: 15px;
}

/* Panier vide */
.woocommerce .cart-empty,
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--ws-text-muted);
    font-size: 18px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
}

.woocommerce .return-to-shop {
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   07. CHECKOUT
   ========================================================================== */
.woo-saas-checkout {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) 20px 60px;
}

.woo-saas-checkout__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 36px;
}

.woo-saas-checkout__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .woo-saas-checkout__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 40px;
    }
}

.woo-saas-checkout__fields {
    min-width: 0;
}

.woocommerce .checkout .col2-set {
    width: 100%;
    display: grid;
    gap: 24px;
}

.woocommerce .checkout .col2-set .col-1,
.woocommerce .checkout .col2-set .col-2 {
    width: 100%;
    float: none;
}

.woocommerce-checkout h3 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 12px;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--ws-brand);
    display: inline-block;
}

.woocommerce form .form-row {
    margin-bottom: 16px;
    padding: 0;
}

.woo-saas-checkout__review {
    position: relative;
}

@media (min-width: 900px) {
    .woo-saas-checkout__review {
        position: sticky;
        top: 24px;
    }
}

.woo-saas-checkout__review-inner {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 26px;
    box-shadow: var(--ws-shadow-md);
}

.woocommerce-checkout #order_review table.shop_table {
    border: 0;
    background: transparent;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 12px 0;
    background: transparent;
    border-top: 1px solid var(--ws-border);
}

.woocommerce-checkout #order_review table.shop_table tr:first-child th,
.woocommerce-checkout #order_review table.shop_table tr:first-child td {
    border-top: 0;
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--ws-text);
}

.woocommerce-checkout #payment {
    background: var(--ws-surface-alt);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    margin-top: 18px;
    padding: 6px 4px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: 0;
    padding: 12px 14px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 0 6px;
}

.woocommerce-checkout #payment div.payment_box {
    background: var(--ws-surface);
    border-radius: var(--ws-radius-sm);
    font-size: 13.5px;
    color: var(--ws-text-soft);
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--ws-surface);
}

.woocommerce-checkout #payment .place-order {
    padding: 12px 14px 14px;
}

.woocommerce #payment #place_order,
.woocommerce-checkout #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    background: var(--ws-accent-cta);
    color: #fff;
    border: 0;
    border-radius: var(--ws-radius-sm);
    font-size: 16.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: transform .15s var(--ease), background .2s var(--ease);
}

.woocommerce #payment #place_order:hover,
.woocommerce-checkout #place_order:hover {
    background: var(--ws-accent-cta-hover);
    transform: translateY(-2px);
}

.woo-saas-checkout__secure {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ws-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.woo-saas-checkout__secure svg {
    width: 15px;
    height: 15px;
    color: var(--ws-brand);
}

/* ==========================================================================
   08. MON COMPTE (dashboard SaaS)
   ========================================================================== */
.woocommerce-account .woocommerce {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) 20px 60px;
}

/* Grille dashboard (uniquement quand connecté) */
@media (min-width: 800px) {
    .logged-in.woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }
    .logged-in.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    float: none;
    margin: 0 0 24px;
}

@media (min-width: 800px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin: 0;
        position: sticky;
        top: 24px;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--ws-radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ws-text-soft);
    transition: background .15s var(--ease), color .15s var(--ease);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--ws-border-soft);
    transition: background .15s var(--ease);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--ws-surface-alt);
    color: var(--ws-text);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
    background: var(--ws-brand);
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
    margin: 0;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: var(--ws-shadow-sm);
}

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

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    color: var(--ws-brand-dark);
    font-weight: 600;
}

/* Boutons de compte */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-Button,
.woocommerce-form-login .button,
.woocommerce-form-register .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    background: var(--ws-brand-cta);
    color: #fff;
    border: 0;
    border-radius: var(--ws-radius-sm);
    font-weight: 650;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--ws-shadow-sm);
    transition: background .2s var(--ease), transform .15s var(--ease);
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: var(--ws-brand-cta-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* Login / register (déconnecté) */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 960px;
}

.woocommerce .col2-set#customer_login,
.woocommerce-account .u-columns {
    display: grid;
    gap: 26px;
}

@media (min-width: 720px) {
    .woocommerce .col2-set#customer_login {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce #customer_login .col-1,
.woocommerce #customer_login .col-2 {
    width: 100%;
    float: none;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 28px;
    box-shadow: var(--ws-shadow-sm);
}

/* ==========================================================================
   09. MESSAGES WOOCOMMERCE
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--ws-radius-sm) !important;
    border: 1px solid var(--ws-border) !important;
    background: var(--ws-surface) !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    box-shadow: var(--ws-shadow-sm);
    list-style: none;
    margin: 0 0 20px !important;
    color: var(--ws-text-soft);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: static;
    font-size: 16px;
    line-height: 1;
}

.woocommerce-message {
    border-left: 4px solid var(--ws-brand) !important;
}

.woocommerce-info {
    border-left: 4px solid var(--ws-accent) !important;
}

.woocommerce-error {
    border-left: 4px solid var(--ws-danger) !important;
    flex-direction: column;
    align-items: stretch;
}

.woocommerce-message .button,
.woocommerce-info .button {
    margin-left: auto;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    background: var(--ws-brand-cta) !important;
    color: #fff !important;
    border-radius: var(--ws-radius-sm) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 0 !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: var(--ws-brand-cta-hover) !important;
}

/* Breadcrumb (si réactivé) */
.woocommerce-breadcrumb {
    max-width: var(--max-width, 1200px);
    margin: 24px auto 0 !important;
    padding: 0 20px;
    font-size: 13px;
    color: var(--ws-text-muted);
}

.woocommerce-breadcrumb a {
    color: var(--ws-text-muted);
}

.woocommerce-breadcrumb a:hover {
    color: var(--ws-brand);
}

/* ==========================================================================
   10. ZONE ELEMENTOR (section marketing dans la colonne de contenu)
   ========================================================================== */
.woo-saas-elementor-zone {
    width: 100%;
    background: var(--ws-bg);
    margin: 0 0 clamp(40px, 6vw, 72px);
}

.woo-saas-elementor-zone:last-child {
    margin-bottom: 0;
}

.woo-saas-elementor-zone > .elementor {
    width: 100%;
}

/* ==========================================================================
   DESIGN SYSTEM — COMPOSANTS RÉUTILISABLES
   --------------------------------------------------------------------------
   Classes prêtes à l'emploi (à utiliser dans un widget HTML Elementor,
   la description produit, ou toute zone de contenu). Toutes consomment les
   tokens du thème → cohérence garantie avec la page produit.
   ========================================================================== */

/* --- Grille utilitaire (2 / 3 colonnes → 1 sur mobile) -------------------- */
.woo-saas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 560px) {
    .woo-saas-grid--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .woo-saas-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Badge (composant) ---------------------------------------------------- */
.woo-saas-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs, .8125rem);
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    border-radius: var(--radius-pill, 999px);
    background: var(--ws-surface-alt);
    color: var(--ws-text-soft);
    border: 1px solid var(--ws-border);
}

.woo-saas-badge-pill--brand { background: var(--ws-brand-50); color: var(--ws-brand-dark); border-color: transparent; }
.woo-saas-badge-pill--accent { background: var(--accent-100, #ffedd5); color: var(--ws-accent-dark); border-color: transparent; }

/* --- Info Card / Support Card / CTA Card (base commune) ------------------- */
.woo-saas-info-card,
.woo-saas-support-card,
.woo-saas-compat-card,
.woo-saas-review-card {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 24px;
    box-shadow: var(--ws-shadow-sm);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}

.woo-saas-info-card:hover,
.woo-saas-support-card:hover,
.woo-saas-compat-card:hover,
.woo-saas-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-md);
    border-color: var(--ws-border-soft);
}

.woo-saas-info-card__icon,
.woo-saas-support-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--ws-brand-50);
    color: var(--ws-brand-dark);
    margin-bottom: 14px;
    font-size: 22px;
}

.woo-saas-info-card__title,
.woo-saas-support-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ws-text);
    margin: 0 0 6px;
}

.woo-saas-info-card__text,
.woo-saas-support-card__text {
    font-size: 14.5px;
    color: var(--ws-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* --- « Pourquoi choisir » : carte à puce check ---------------------------- */
.woo-saas-why-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--ws-shadow-sm);
    font-weight: 600;
    color: var(--ws-text);
    transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}

.woo-saas-why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ws-shadow-md);
    border-color: var(--primary-200, #bbf7d0);
}

.woo-saas-why-card::before {
    content: "✓";
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ws-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

/* --- Compatibility Card --------------------------------------------------- */
.woo-saas-compat-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.woo-saas-compat-card__label {
    font-size: 13px;
    color: var(--ws-text-muted);
    margin: 0;
}

.woo-saas-compat-card__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ws-text);
    margin: 2px 0 0;
}

/* --- Review Card ---------------------------------------------------------- */
.woo-saas-review-card__stars {
    color: var(--ws-accent);
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.woo-saas-review-card__quote {
    font-size: 15px;
    color: var(--ws-text-soft);
    line-height: 1.65;
    margin: 0 0 16px;
}

.woo-saas-review-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 650;
    color: var(--ws-text);
}

.woo-saas-review-card__author span {
    font-weight: 400;
    color: var(--ws-text-muted);
}

/* --- Screenshot Card + grille -------------------------------------------- */
.woo-saas-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 560px) {
    .woo-saas-shots--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .woo-saas-shots--3 { grid-template-columns: repeat(3, 1fr); }
}

.woo-saas-shot {
    display: block;
    border-radius: var(--ws-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow-sm);
    background: var(--ws-surface-alt);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.woo-saas-shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-lg);
}

.woo-saas-shot img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s var(--ease-out);
}

.woo-saas-shot:hover img {
    transform: scale(1.04);
}

.woo-saas-shot__caption {
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ws-text-soft);
    background: var(--ws-surface);
    border-top: 1px solid var(--ws-border);
}

/* --- Tableau de comparaison (WooCommerce vs QuicForm) -------------------- */
.woo-saas-compare {
    width: 100%;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    overflow: hidden;
}

.woo-saas-compare__row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    align-items: center;
    border-top: 1px solid var(--ws-border);
}

.woo-saas-compare__row:first-child {
    border-top: 0;
}

.woo-saas-compare__row > * {
    padding: 15px 16px;
    font-size: 14.5px;
}

.woo-saas-compare__head {
    background: var(--ws-surface-alt);
    font-weight: 700;
    color: var(--ws-text);
    text-align: center;
}

.woo-saas-compare__head--feature {
    text-align: left;
    color: var(--ws-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.woo-saas-compare__head--brand {
    color: var(--ws-brand-dark);
    background: var(--ws-brand-50);
}

.woo-saas-compare__feature {
    font-weight: 600;
    color: var(--ws-text);
}

.woo-saas-compare__cell {
    text-align: center;
    font-weight: 650;
}

.woo-saas-compare__cell--yes { color: var(--ws-brand-dark); }
.woo-saas-compare__cell--no { color: var(--ws-text-muted); }

.woo-saas-compare__cell--yes::before { content: "✓ "; font-weight: 800; }
.woo-saas-compare__cell--no::before { content: "✕ "; }

.woo-saas-compare__col--brand {
    background: color-mix(in srgb, var(--ws-brand-50) 55%, transparent);
}

@media (max-width: 520px) {
    .woo-saas-compare__row > *:nth-child(1) { grid-column: 1 / -1; border-bottom: 1px solid var(--ws-border); }
    .woo-saas-compare__row { grid-template-columns: 1fr 1fr; }
    .woo-saas-compare__head--feature { display: none; }
}

/* ==========================================================================
   11. ANIMATIONS & RESPONSIVE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .woocommerce ul.products li.product:hover,
    .woo-saas-btn:hover,
    .single_add_to_cart_button:hover,
    .woo-saas-feature:hover,
    .woo-saas-why-card:hover,
    .woo-saas-info-card:hover,
    .woo-saas-support-card:hover,
    .woo-saas-compat-card:hover,
    .woo-saas-review-card:hover,
    .woo-saas-shot:hover,
    .woo-saas-shot:hover img {
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .woo-saas-hero {
        padding: 20px 0 36px;
    }
    .woo-saas-summary {
        padding: 24px;
        border-radius: var(--ws-radius-lg);
    }
    .woo-saas-trust {
        grid-template-columns: 1fr;
    }

    /* Sections landing : rythme resserré sur mobile */
    .woo-saas-section {
        margin-bottom: clamp(36px, 9vw, 52px);
    }
    .woo-saas-feature,
    .woo-saas-info-card,
    .woo-saas-support-card,
    .woo-saas-compat-card,
    .woo-saas-review-card {
        padding: 20px;
    }
    .woo-saas-faq__q {
        padding: 16px 18px;
        font-size: 15px;
    }
    .woo-saas-faq__a {
        padding: 0 18px 18px;
    }

    /* Tables responsives (panier / commande) */
    .woocommerce table.shop_table.cart thead {
        display: none;
    }
    .woocommerce table.shop_table.cart tr {
        display: block;
        border: 1px solid var(--ws-border);
        border-radius: var(--ws-radius-sm);
        margin-bottom: 14px;
        padding: 6px 10px;
        background: var(--ws-surface);
    }
    .woocommerce table.shop_table.cart td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 4px;
        border-top: 1px solid var(--ws-surface-mid);
    }
    .woocommerce table.shop_table.cart td::before {
        content: attr(data-title);
        font-weight: 650;
        color: var(--ws-text);
        text-align: left;
    }
    .woocommerce table.shop_table.cart td.product-remove,
    .woocommerce table.shop_table.cart td.actions {
        justify-content: flex-end;
    }
    .woocommerce table.shop_table.cart td.actions::before {
        content: none;
    }
    .woocommerce .cart_item .product-thumbnail {
        justify-content: flex-start;
    }
}
