/*
 * COSM'ETHIQUE - experience mobile dediee.
 * Le desktop reste pilote par style.css ; ce fichier reconstruit les layouts
 * tablette/mobile avec des breakpoints uniquement.
 */

@media (max-width: 1024px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body,
    #page,
    .site {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    :where(.container, .header-shell, .footer-newsletter--top, .footer-main--minimal, .footer-bottom, .page-content-wrap, .page-content-wrap--cart, .page-content-wrap--checkout, .page-content-wrap--diagnostic, .shop-redesign, .visage-category-page, .single-product .woocommerce div.product, .product-premium-sections, .archive-wrap, .blog-article-layout, .diagnostic-page, .about-brand-page, .institutional-page) {
        width: min(100% - 32px, 100%) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    :where(h1, h2, h3, p, a, button, span, strong, em, li, dt, dd, label, input, textarea, select) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    :where(.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit) {
        min-height: 48px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    :where(input, textarea, select) {
        max-width: 100%;
        font-size: 16px !important;
    }

    /* Header mobile */
    .site-header {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        z-index: 80;
    }

    .promo-bar {
        min-height: 34px;
        overflow: hidden;
    }

    .promo-track {
        gap: 22px;
        white-space: nowrap;
    }

    .promo-track span {
        font-size: 0.78rem;
        line-height: 1;
    }

    .header-shell {
        padding: 10px 0 12px !important;
    }

    .header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px;
        grid-template-areas:
            "brand burger"
            "actions actions"
            "nav nav";
        gap: 10px;
        align-items: center;
    }

    .site-branding {
        grid-area: brand;
        min-width: 0;
    }

    .brand-logo,
    .custom-logo-link {
        display: inline-flex;
        max-width: 100%;
        min-width: 0;
        white-space: nowrap;
    }

    .brand-logo {
        font-size: clamp(1.35rem, 5vw, 2rem) !important;
        letter-spacing: 0 !important;
    }

    .custom-logo {
        width: auto;
        max-width: min(210px, 52vw);
        height: auto;
    }

    .mobile-menu-toggle {
        grid-area: burger;
        justify-self: end;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        border-radius: 999px;
    }

    .site-navigation {
        grid-area: nav;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        border-radius: 22px;
    }

    .primary-menu {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        padding: 10px !important;
    }

    .primary-menu a {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px !important;
        border-radius: 14px;
        font-size: 0.96rem !important;
        line-height: 1.25;
    }

    .header-actions {
        grid-area: actions;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
        gap: 8px;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .product-search-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px;
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        border-radius: 999px;
    }

    .product-search-form input[type="search"] {
        min-width: 0;
        padding-left: 14px !important;
    }

    .product-search-form button,
    .header-icon,
    .language-switcher-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
    }

    .language-label-full {
        display: none !important;
    }

    .language-label-short {
        display: inline !important;
    }

    .language-switcher-menu {
        right: 0;
        max-width: calc(100vw - 32px);
    }

    .smart-search-panel {
        left: 0 !important;
        right: auto !important;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        max-height: 58vh;
        overflow-y: auto;
        border-radius: 18px;
    }

    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.66rem;
    }

    /* Accueil */
    .front-page .hero-section {
        display: flex !important;
        min-height: calc(100svh - 132px) !important;
        padding: 76px 16px 26px !important;
        align-items: flex-end;
        overflow: hidden;
    }

    .front-page .hero-media {
        background-position: center top !important;
        transform: none !important;
    }

    .front-page .hero-overlay {
        background: linear-gradient(180deg, rgba(13, 27, 61, 0.08), rgba(13, 27, 61, 0.72)) !important;
    }

    .front-page .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .front-page .hero-content h1 {
        font-size: clamp(2.55rem, 12vw, 5.2rem) !important;
        line-height: 0.98 !important;
        max-width: 10ch;
        letter-spacing: 0 !important;
    }

    .front-page .hero-content p:not(.eyebrow) {
        max-width: 33rem;
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .hero-actions,
    .button-group,
    .section-cta,
    .blog-showcase-cta {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .front-page .floating-review {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        margin-top: 16px;
        transform: none !important;
        border-radius: 20px;
    }

    .home-univers-section,
    .featured-products,
    .home-diagnostic-cta,
    .home-expertise-section,
    .testimonials-section,
    .blog-section {
        padding: 54px 0 !important;
    }

    .section-heading,
    .home-univers-heading,
    .home-expertise-heading,
    .blog-showcase-heading {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 24px !important;
        text-align: left !important;
    }

    .section-heading h2,
    .home-univers-heading h2,
    .home-expertise-heading h2,
    .blog-showcase-heading h2,
    .home-diagnostic-copy h2 {
        font-size: clamp(2.15rem, 10vw, 3.8rem) !important;
        line-height: 1.02 !important;
        max-width: 11ch;
    }

    .home-univers-grid,
    .products-grid,
    .testimonial-grid,
    .blog-showcase-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .home-universe-card,
    .home-universe-card--wide {
        grid-column: auto !important;
        min-height: 430px !important;
        border-radius: 26px !important;
        overflow: hidden;
    }

    .home-universe-card a {
        min-height: 430px !important;
        display: flex !important;
        align-items: flex-end;
    }

    .home-universe-media img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }

    .home-universe-content {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .home-universe-content strong {
        font-size: clamp(1.65rem, 8vw, 2.4rem) !important;
        line-height: 1.04;
    }

    .product-card,
    .shop-product-card,
    .premium-product-card {
        display: flex !important;
        flex-direction: column;
        min-height: auto !important;
        width: 100% !important;
        border-radius: 24px !important;
        overflow: hidden;
    }

    .product-image,
    .shop-product-media,
    .premium-product-card > a:first-child {
        display: block;
        width: 100%;
        overflow: hidden;
        border-radius: 20px;
    }

    .product-image img,
    .shop-product-media img,
    .premium-product-card img {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: cover !important;
    }

    .product-body,
    .shop-product-body,
    .premium-product-card {
        gap: 12px;
    }

    .product-body h3,
    .shop-product-title,
    .premium-product-card h3 {
        font-size: clamp(1.45rem, 7vw, 2.1rem) !important;
        line-height: 1.08 !important;
    }

    .home-diagnostic-panel,
    .home-expertise-grid {
        display: flex !important;
        flex-direction: column;
        gap: 22px !important;
        padding: 18px !important;
        border-radius: 26px !important;
    }

    .home-diagnostic-copy,
    .home-expertise-copy {
        order: 2;
        width: 100%;
    }

    .home-diagnostic-media,
    .home-expertise-media {
        order: 1;
        width: 100%;
        border-radius: 22px !important;
        overflow: hidden;
    }

    .home-diagnostic-media img,
    .home-expertise-media img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .home-diagnostic-benefits,
    .home-expertise-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
    }

    .home-diagnostic-benefits li,
    .home-expertise-cards article,
    .testimonial-grid figure {
        min-width: 0;
        border-radius: 18px;
    }

    /* Boutique */
    .shop-redesign {
        padding-top: 0;
    }

    .shop-hero-premium {
        display: flex !important;
        flex-direction: column;
        gap: 24px !important;
        padding: 44px 0 !important;
    }

    .shop-hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .shop-hero-content h1 {
        font-size: clamp(3.6rem, 16vw, 6rem) !important;
        line-height: 0.95 !important;
        max-width: 7ch;
    }

    .shop-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .shop-hero-benefits {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        margin-top: 18px !important;
    }

    .shop-hero-benefits span {
        min-width: 0;
        align-items: flex-start;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .shop-hero-slider-card {
        order: 2;
        width: 100% !important;
        min-height: auto !important;
        border-radius: 26px !important;
        overflow: hidden !important;
    }

    .shop-hero-slide img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .shop-hero-slide figcaption {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        max-width: calc(100% - 24px) !important;
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .shop-hero-slide figcaption strong {
        font-size: clamp(1.35rem, 6vw, 2rem) !important;
        line-height: 1.08;
    }

    .shop-floating-card,
    .shop-floating-review,
    .shop-floating-delivery,
    .shop-floating-natural,
    .institutional-floating-card,
    .faq-floating-contact,
    .faq-floating-answer {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        border-radius: 18px !important;
    }

    .shop-premium-block {
        width: 100% !important;
        margin: 0 auto 28px !important;
    }

    .shop-lifestyle-photo {
        width: 100%;
        border-radius: 26px 26px 0 0 !important;
        overflow: hidden;
    }

    .shop-lifestyle-photo img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .shop-section-panel {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
        margin: 0 !important;
        padding: 18px !important;
        border-radius: 0 0 26px 26px !important;
    }

    .shop-info-card {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    .shop-info-card h2 {
        max-width: 9ch !important;
        font-size: clamp(2.1rem, 10vw, 3.4rem) !important;
        line-height: 1.03 !important;
    }

    .shop-picto-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .shop-products-slider {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 72vw);
        gap: 14px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 4px 2px 14px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .shop-products-slider > * {
        scroll-snap-align: start;
    }

    .shop-promo-section,
    .shop-packs-section {
        display: flex !important;
        flex-direction: column;
        gap: 18px !important;
        padding: 22px 16px !important;
        border-radius: 26px !important;
        margin: 0 auto 28px !important;
    }

    .shop-countdown {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .shop-countdown span {
        min-width: 0;
        padding: 10px 6px;
        text-align: center;
    }

    .shop-packs-header,
    .visage-collection-heading,
    .visage-routine-note {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 14px !important;
        text-align: left !important;
    }

    .shop-pack-grid,
    .visage-product-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    .shop-pack-card {
        display: flex !important;
        flex-direction: column;
        border-radius: 22px !important;
        overflow: hidden;
    }

    .shop-pack-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    /* Categories WooCommerce */
    .visage-category-hero {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
        padding: 28px 16px !important;
        border-radius: 26px !important;
    }

    .visage-category-copy {
        order: 2;
        width: 100%;
    }

    .visage-category-copy h1 {
        font-size: clamp(2.7rem, 13vw, 5rem) !important;
        line-height: 0.98 !important;
        max-width: 9ch;
    }

    .visage-category-copy .button {
        width: 100%;
    }

    .visage-category-hero figure {
        order: 1;
        width: 100%;
        margin: 0;
        border-radius: 22px !important;
        overflow: hidden;
    }

    .visage-category-hero figure img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .visage-collection,
    .visage-routine-note {
        padding: 36px 0 !important;
    }

    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .woocommerce ul.products li.product {
        float: none !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }

    .woocommerce ul.products li.product a img {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .cosmethique-shop-toolbar {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .cosmethique-ordering,
    .cosmethique-sort-toggle {
        width: 100% !important;
    }

    /* Fiches produits */
    .single-product .woocommerce div.product {
        display: flex !important;
        flex-direction: column;
        gap: 22px !important;
        padding: 18px 0 0 !important;
        overflow: visible !important;
    }

    .single-product .woocommerce div.product > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-column: auto !important;
    }

    .cosmethique-product-gallery,
    .woocommerce div.product div.images {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }

    .cosmethique-gallery-main,
    .woocommerce-product-gallery__wrapper {
        width: 100%;
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .cosmethique-gallery-main img,
    .woocommerce div.product div.images img {
        width: 100% !important;
        max-height: 68vh !important;
        aspect-ratio: 1 / 1;
        object-fit: contain !important;
    }

    .cosmethique-gallery-thumbs,
    .flex-control-thumbs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding: 10px 2px 4px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .cosmethique-gallery-thumb,
    .flex-control-thumbs li {
        flex: 0 0 clamp(76px, 24vw, 116px) !important;
        width: auto !important;
        min-width: 0;
        scroll-snap-align: start;
    }

    .summary,
    .entry-summary,
    .cosmethique-product-hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .product-hero-title,
    .summary .product_title {
        font-size: clamp(2.3rem, 12vw, 4.2rem) !important;
        line-height: 0.98 !important;
        max-width: 100% !important;
    }

    .product-hero-rating,
    .product-hero-status,
    .product-hero-benefits {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .product-hero-status span,
    .product-hero-benefits span {
        min-width: 0;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .woocommerce div.product form.cart,
    .product-hero-purchase {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
        width: 100%;
    }

    .woocommerce div.product form.cart div.quantity,
    .woocommerce div.product form.cart .quantity input.qty,
    .single_add_to_cart_button,
    .product-favorite-button {
        width: 100% !important;
    }

    .product-premium-sections {
        display: flex !important;
        flex-direction: column;
        gap: 26px;
        margin-top: 28px !important;
    }

    .product-premium-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 16px !important;
        border-radius: 24px !important;
        overflow: hidden;
    }

    .product-section-heading {
        text-align: left !important;
        margin-bottom: 18px !important;
    }

    .product-section-heading h2 {
        font-size: clamp(2rem, 10vw, 3.4rem) !important;
        line-height: 1.04 !important;
        max-width: 10ch;
    }

    .product-detail-grid,
    .product-ingredient-grid,
    .product-review-grid,
    .premium-product-grid,
    .product-routine-timeline {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .premium-product-grid--slider,
    .premium-product-grid--routine {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(230px, 78vw);
        grid-template-columns: none !important;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .premium-product-grid--slider > *,
    .premium-product-grid--routine > * {
        scroll-snap-align: start;
    }

    /* Blog */
    .archive-hero,
    .blog-page-hero,
    .blog-article-hero {
        padding: 52px 16px !important;
        min-height: auto !important;
    }

    .archive-hero h1,
    .archive-hero .archive-heading-title,
    .blog-page-hero h1,
    .blog-article-hero h1 {
        font-size: clamp(2.35rem, 12vw, 4.4rem) !important;
        line-height: 1 !important;
    }

    .archive-grid,
    .blog-showcase-grid-large,
    .blog-article-layout,
    .blog-trust-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .blog-share-rail {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 18px 0 !important;
    }

    .blog-sidebar-card,
    .post-card,
    .blog-featured-card {
        border-radius: 22px !important;
        overflow: hidden;
    }

    /* Qui sommes-nous et pages CMS */
    .rich-section,
    .two-columns,
    .about-story-section,
    .about-eco-section,
    .franchise-network-shell,
    .franchise-section,
    .boutiques-layout,
    .quality-motion-card,
    .commitments-action-grid {
        display: flex !important;
        flex-direction: column;
        gap: 22px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .rich-section,
    .contact-social-section,
    .franchise-network,
    .about-brand-page section,
    .institutional-page section {
        padding: 48px 0 !important;
    }

    .institutional-shop-hero,
    .faq-shop-hero {
        display: flex !important;
        flex-direction: column;
        gap: 24px !important;
        width: 100% !important;
        padding: 38px 0 !important;
    }

    .institutional-shop-hero-content,
    .faq-shop-hero-content {
        order: 2;
        width: 100%;
    }

    .institutional-shop-visual-card,
    .faq-shop-visual-card {
        order: 1;
        width: 100% !important;
        border-radius: 26px !important;
        overflow: hidden;
    }

    .institutional-shop-visual-card img,
    .faq-shop-visual-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .institutional-shop-hero h1,
    .faq-shop-hero h1 {
        font-size: clamp(2.55rem, 13vw, 4.8rem) !important;
        line-height: 0.98 !important;
        max-width: 10ch;
    }

    .commitments-values-grid,
    .commitments-priorities-grid,
    .ingredient-library-grid,
    .ingredient-feature-grid,
    .quality-timeline,
    .quality-gallery-grid,
    .quality-choice-grid,
    .certification-grid,
    .about-philosophy-grid,
    .about-number-grid,
    .about-ingredient-grid,
    .contact-social-grid,
    .franchise-network-stats,
    .franchise-stats,
    .boutique-card-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    .commitments-stats-band {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        padding: 52px 16px !important;
        overflow: hidden;
    }

    .commitments-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .commitments-stat-card {
        min-width: 0;
        display: grid;
        align-content: center;
        justify-items: center;
        min-height: 190px;
        padding: 20px 10px !important;
        text-align: center;
    }

    .commitments-stat-card strong {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: clamp(2.4rem, 10vw, 4.3rem) !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
        letter-spacing: 0 !important;
    }

    .commitments-stat-card p {
        max-width: 100%;
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }

    .institutional-toolbar {
        display: flex !important;
        flex-direction: column;
        gap: 16px !important;
        align-items: stretch !important;
    }

    .institutional-filter,
    .faq-suggestion-list,
    .ingredient-filter-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
    }

    .institutional-filter button,
    .faq-suggestion-list button,
    .ingredient-filter-list button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* FAQ */
    .faq-search-section,
    .faq-search-immersive,
    .faq-categories-immersive,
    .faq-questions-immersive,
    .faq-popular-immersive,
    .faq-help-immersive {
        width: 100% !important;
        max-width: 100% !important;
        padding: 46px 16px !important;
        overflow: hidden;
    }

    .faq-search-giant {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 38px;
        gap: 8px;
        width: 100% !important;
        min-height: 60px !important;
        padding: 8px 12px !important;
        border-radius: 999px !important;
    }

    .faq-search-giant input {
        min-width: 0;
        width: 100%;
    }

    .faq-category-strip,
    .faq-popular-large-grid,
    .faq-questions-layout,
    .faq-help-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .faq-accordion-group,
    .faq-question-aside,
    .faq-category-tile,
    .faq-popular-large-card {
        padding: 18px !important;
        border-radius: 22px !important;
        overflow: hidden;
    }

    /* Diagnostic */
    .diagnostic-page {
        padding: 0 0 48px !important;
    }

    .diagnostic-hero,
    .diagnostic-shell,
    .diagnostic-widget,
    .diagnostic-result {
        width: 100% !important;
        max-width: 100% !important;
    }

    .diagnostic-hero {
        display: flex !important;
        flex-direction: column;
        gap: 22px !important;
        padding: 34px 0 !important;
    }

    .diagnostic-indicators,
    .diagnostic-options,
    .diagnostic-options--three,
    .diagnostic-options--two,
    .diagnostic-routine-columns,
    .diagnostic-products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .diagnostic-widget,
    .diagnostic-result {
        padding: 20px 16px !important;
        border-radius: 24px !important;
    }

    .diagnostic-actions,
    .diagnostic-result-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Contact et franchise */
    .form-card,
    .cosmethique-form,
    .franchise-map-card,
    .contact-social-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .cosmethique-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .franchise-network-stats div,
    .franchise-stats div,
    .contact-social-card {
        min-width: 0;
    }

    .franchise-map {
        min-height: 360px !important;
        border-radius: 22px !important;
    }

    /* Mon compte */
    .account-premium,
    .account-access-section,
    .account-benefits-section,
    .account-stats-band,
    .account-woocommerce-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    .account-hero {
        display: flex !important;
        flex-direction: column;
        gap: 22px !important;
        padding: 34px 0 !important;
    }

    .account-hero-visual {
        order: 1;
        min-height: 300px !important;
    }

    .account-hero-copy {
        order: 2;
    }

    .account-hero-actions,
    .account-benefits-grid,
    .account-stats-band,
    .account-woocommerce-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .account-login-card,
    .account-woocommerce-wrap .woocommerce-MyAccount-navigation,
    .account-woocommerce-wrap .woocommerce-MyAccount-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .account-woocommerce-wrap .woocommerce-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .account-woocommerce-wrap .form-row,
    .account-woocommerce-wrap .woocommerce-form-row {
        width: 100% !important;
        padding: 0 !important;
        float: none !important;
        margin-right: 0 !important;
    }

    .account-woocommerce-wrap .woocommerce-Input,
    .account-woocommerce-wrap input.input-text,
    .account-woocommerce-wrap input[type="text"],
    .account-woocommerce-wrap input[type="email"],
    .account-woocommerce-wrap input[type="password"],
    .account-woocommerce-wrap input[type="tel"],
    .cosmethique-social-login__button {
        width: 100% !important;
    }

    /* Panier et paiement */
    .cart-premium-hero,
    .checkout-premium-hero {
        display: flex !important;
        flex-direction: column;
        gap: 18px !important;
        min-height: auto !important;
        padding: 42px 16px !important;
        overflow: hidden;
    }

    .cart-hero-products,
    .checkout-hero-products {
        position: relative !important;
        width: 100% !important;
        min-height: 170px;
        transform: none !important;
    }

    .cart-hero-products img,
    .checkout-hero-products img {
        position: relative !important;
        width: 31%;
        max-width: 130px;
        margin-right: 6px;
        transform: none !important;
    }

    .cart-progress-steps,
    .checkout-progress-steps {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: min(100% - 32px, 100%) !important;
        margin: 18px auto !important;
    }

    .cart-progress-steps span,
    .checkout-progress-step {
        min-width: 0;
        padding: 11px 8px !important;
        text-align: center;
        border-radius: 16px !important;
    }

    .cart-free-shipping,
    .cosmethique-cart-form,
    .cart-benefits-grid,
    .checkout-premium-layout,
    .checkout-left-column,
    .checkout-summary-column {
        width: min(100% - 32px, 100%) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .cart-premium-layout,
    .checkout-premium-layout,
    .checkout-customer-details {
        display: flex !important;
        flex-direction: column;
        gap: 18px !important;
    }

    .cart-summary-card,
    .checkout-summary-column {
        position: static !important;
        top: auto !important;
    }

    .cart-product-card {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 14px !important;
        border-radius: 22px !important;
    }

    .cart-product-media {
        width: 96px;
        min-width: 0;
    }

    .cart-product-media img {
        width: 96px !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .cart-product-price,
    .cart-product-quantity,
    .cart-product-subtotal,
    .cart-product-remove {
        grid-column: 1 / -1;
    }

    .cart-actions-panel,
    .cart-coupon-premium > div,
    .checkout-coupon-fields,
    .checkout-review-item,
    .cosmethique-card-field-grid,
    .cosmethique-choice-list--installments label {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .checkout-step-card,
    .checkout-order-summary-card,
    .checkout-coupon-card,
    .cart-summary-card,
    .cart-benefits-grid article {
        padding: 18px !important;
        border-radius: 22px !important;
        overflow: hidden;
    }

    .cart-benefits-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .woocommerce-checkout .form-row,
    .woocommerce-account .form-row {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    /* Footer mobile */
    .site-footer {
        overflow: hidden;
    }

    .footer-newsletter--top {
        display: flex !important;
        flex-direction: column;
        gap: 16px !important;
        padding: 24px 0 !important;
    }

    .footer-newsletter-copy h2 {
        font-size: clamp(1.75rem, 8vw, 2.6rem) !important;
        line-height: 1.08;
    }

    .footer-newsletter-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100%;
    }

    .footer-main--minimal {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        padding: 24px 0 !important;
    }

    .footer-brand-rich {
        padding-bottom: 18px;
    }

    .footer-logo {
        white-space: nowrap;
        font-size: clamp(1.55rem, 7vw, 2.2rem) !important;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 38px !important;
        height: 38px !important;
    }

    .footer-nav-group {
        width: 100%;
        border-top: 1px solid var(--footer-line);
        padding: 12px 0 !important;
    }

    .footer-nav-group summary {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin: 0 !important;
        cursor: pointer;
    }

    .footer-link-list {
        padding-top: 12px !important;
    }

    .footer-contact-card {
        margin-top: 16px;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .footer-bottom {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 18px 0 22px !important;
    }

    .footer-payment-logos,
    .footer-trust-badges {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100%;
    }

    .footer-payment-logos .payment-logo svg {
        width: 58px !important;
        height: 22px !important;
    }

    .footer-trust-badges span {
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }

    .cookie-banner,
    .cookie-modal-panel {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        left: 12px !important;
        right: 12px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 600px) {
    :where(.container, .header-shell, .footer-newsletter--top, .footer-main--minimal, .footer-bottom, .page-content-wrap, .page-content-wrap--cart, .page-content-wrap--checkout, .page-content-wrap--diagnostic, .shop-redesign, .visage-category-page, .single-product .woocommerce div.product, .product-premium-sections, .archive-wrap, .blog-article-layout, .diagnostic-page, .about-brand-page, .institutional-page) {
        width: min(100% - 24px, 100%) !important;
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .header-actions {
        grid-template-columns: minmax(0, 1fr) 40px 40px 40px;
        gap: 7px;
    }

    .product-search-form {
        height: 40px !important;
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .product-search-form button,
    .header-icon,
    .language-switcher-toggle,
    .mobile-menu-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .front-page .hero-section {
        min-height: calc(100svh - 118px) !important;
        padding: 58px 12px 22px !important;
    }

    .front-page .hero-content h1,
    .shop-hero-content h1,
    .visage-category-copy h1,
    .institutional-shop-hero h1,
    .faq-shop-hero h1,
    .product-hero-title,
    .summary .product_title {
        font-size: clamp(2.2rem, 13vw, 3.55rem) !important;
        line-height: 1 !important;
    }

    .shop-hero-actions,
    .shop-hero-benefits,
    .home-diagnostic-benefits,
    .home-expertise-cards,
    .shop-pack-grid,
    .visage-product-grid,
    .woocommerce ul.products,
    .commitments-values-grid,
    .commitments-priorities-grid,
    .ingredient-library-grid,
    .ingredient-feature-grid,
    .quality-timeline,
    .quality-gallery-grid,
    .quality-choice-grid,
    .certification-grid,
    .about-philosophy-grid,
    .about-number-grid,
    .about-ingredient-grid,
    .contact-social-grid,
    .franchise-network-stats,
    .franchise-stats,
    .boutique-card-grid,
    .cart-benefits-grid,
    .product-hero-rating,
    .product-hero-status,
    .product-hero-benefits {
        grid-template-columns: 1fr !important;
    }

    .shop-products-slider,
    .premium-product-grid--slider,
    .premium-product-grid--routine {
        grid-auto-columns: minmax(230px, 86vw);
    }

    .shop-hero-slide img {
        aspect-ratio: 3 / 4;
    }

    .shop-hero-slide figcaption {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        border-radius: 0 0 22px 22px !important;
    }

    .shop-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card,
    .shop-product-card,
    .premium-product-card,
    .shop-pack-card,
    .commitments-value-card,
    .ingredient-library-card,
    .quality-step,
    .faq-category-tile {
        border-radius: 22px !important;
    }

    .cart-product-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }

    .cart-product-media,
    .cart-product-media img {
        width: 82px !important;
    }

    .cart-progress-steps,
    .checkout-progress-steps {
        grid-template-columns: 1fr !important;
        width: min(100% - 24px, 100%) !important;
    }

    .cart-free-shipping,
    .cosmethique-cart-form,
    .cart-benefits-grid,
    .checkout-premium-layout,
    .checkout-left-column,
    .checkout-summary-column {
        width: min(100% - 24px, 100%) !important;
    }

    .commitments-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .commitments-stat-card strong {
        font-size: clamp(3rem, 20vw, 5rem) !important;
        white-space: normal !important;
    }

    .faq-search-giant {
        grid-template-columns: 38px minmax(0, 1fr) 34px;
        min-height: 56px !important;
        padding: 7px 10px !important;
    }

    .product-premium-section,
    .checkout-step-card,
    .checkout-order-summary-card,
    .checkout-coupon-card,
    .cart-summary-card,
    .account-login-card,
    .form-card {
        padding: 18px 14px !important;
    }
}

@media (max-width: 390px) {
    .custom-logo {
        max-width: 158px;
    }

    .brand-logo {
        font-size: 1.18rem !important;
    }

    .header-actions {
        grid-template-columns: minmax(0, 1fr) 38px 38px 38px;
        gap: 6px;
    }

    .product-search-form button,
    .header-icon,
    .language-switcher-toggle,
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .front-page .hero-content h1,
    .shop-hero-content h1,
    .visage-category-copy h1,
    .institutional-shop-hero h1,
    .faq-shop-hero h1,
    .product-hero-title,
    .summary .product_title {
        font-size: clamp(2rem, 12.5vw, 3rem) !important;
    }

    .shop-products-slider,
    .premium-product-grid--slider,
    .premium-product-grid--routine {
        grid-auto-columns: minmax(210px, 88vw);
    }

    .cart-product-card {
        grid-template-columns: 1fr !important;
    }

    .cart-product-media,
    .cart-product-media img {
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .front-page .hero-section--botanica {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 30px;
        padding: 54px 16px 46px !important;
        color: #FFFFFF;
    }

    .front-page .botanica-hero-bg {
        background-position: 68% bottom !important;
        transform: none !important;
    }

    .front-page .botanica-hero-bg::after {
        background:
            linear-gradient(180deg, rgba(7, 26, 45, 0.96) 0%, rgba(7, 26, 45, 0.78) 42%, rgba(7, 26, 45, 0.28) 72%, rgba(7, 26, 45, 0.14) 100%),
            linear-gradient(90deg, rgba(7, 26, 45, 0.76), rgba(7, 26, 45, 0.12));
    }

    .front-page .botanica-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto;
        align-items: center;
        justify-content: flex-start;
        margin: 0 !important;
        text-align: center;
        transform-origin: center top;
    }

    .front-page .hero-section--botanica .hero-content h1 {
        max-width: 100%;
        font-size: clamp(3rem, 14vw, 4.9rem) !important;
        line-height: 0.9;
    }

    .front-page .botanica-season {
        font-size: 0.68rem;
        letter-spacing: 0.13em;
    }

    .front-page .hero-section--botanica .hero-content p:not(.eyebrow):not(.botanica-season) {
        max-width: 100%;
        font-size: 1rem !important;
        line-height: 1.65;
    }

    .front-page .botanica-event-meta {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .front-page .botanica-event-meta span {
        min-width: 0;
        min-height: 34px;
        padding: 7px 12px;
    }

    .front-page .botanica-countdown {
        width: 100%;
        padding: 14px 12px;
        border-radius: 20px;
    }

    .front-page .botanica-countdown div {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .front-page .botanica-countdown strong {
        font-size: clamp(1.45rem, 6vw, 2.1rem);
    }

    .front-page .hero-section--botanica .hero-actions,
    .front-page .hero-section--botanica .hero-actions .button {
        width: 100%;
    }

    .front-page .botanica-limited-badge {
        top: 16px;
        right: 16px;
        min-height: 34px;
        padding: 0 13px;
        font-size: 0.62rem;
    }

    .front-page .botanica-product-showcase {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: min(94vw, 520px);
        height: 392px;
        min-height: 0;
        flex: 0 0 auto;
        margin: 4px auto 0;
        transform: translate3d(var(--botanica-showcase-x, 0px), calc(var(--botanica-showcase-y, 0px) + var(--botanica-showcase-scroll-y, 0px)), 0);
    }

    .front-page .hero-section--botanica.is-cinematic .botanica-product-showcase--pot {
        transform: translate3d(var(--botanica-showcase-x, 0px), calc(var(--botanica-showcase-y, 0px) + var(--botanica-showcase-scroll-y, 0px) - 12px), 0) scale(1.03);
    }

    .front-page .hero-section--botanica.is-portal .botanica-product-showcase--pot {
        transform: translate3d(var(--botanica-showcase-x, 0px), calc(var(--botanica-showcase-y, 0px) + var(--botanica-showcase-scroll-y, 0px) - 18px), 0) scale(1.1);
    }

    .front-page .botanica-home-pot-scene {
        min-height: 100%;
        transform: rotateX(var(--event-rotate-x, 0deg)) rotateY(var(--event-rotate-y, 0deg));
    }

    .front-page .botanica-home-pot-scene .event-real-pot {
        left: 50%;
        bottom: 2%;
        width: min(78vw, 340px);
    }

    .front-page .botanica-pot-hint {
        left: 50%;
        bottom: -2px;
        max-width: calc(100vw - 42px);
        font-size: 0.56rem;
        white-space: nowrap;
    }

    .front-page .botanica-launch-ray {
        left: 26%;
        top: -64%;
        width: 46%;
        height: 155%;
    }

    .front-page .botanica-showcase-halo {
        left: 8%;
        right: 8%;
        bottom: 2%;
        height: 76%;
    }

    .front-page .botanica-showcase-frame {
        border-radius: 26px;
    }

}

@media (max-width: 520px) {
    .front-page .hero-section--botanica {
        padding-bottom: 42px !important;
    }

    .front-page .botanica-countdown div {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .front-page .botanica-countdown {
        padding: 12px 8px;
    }

    .front-page .botanica-countdown span {
        font-size: 0.55rem;
    }

    .front-page .botanica-countdown strong {
        font-size: clamp(1.12rem, 5vw, 1.55rem);
    }

    .front-page .botanica-event-meta span {
        min-height: 34px;
    }

    .front-page .hero-section--botanica .hero-actions {
        display: grid;
        gap: 12px;
    }

    .front-page .botanica-product-showcase {
        bottom: auto;
        width: calc(100% - 24px);
        height: 368px;
    }

    .front-page .botanica-home-pot-scene .event-real-pot {
        width: min(74vw, 270px);
        bottom: 4%;
    }

    .front-page .botanica-pot-hint {
        bottom: -6px;
        transform: translateX(-50%) scale(0.92);
    }
}
