/* ===== Responsive Styles ===== */
/* Peugeot-inspired: centered logo, category bar, mobile menu */

/* ---- sn-header: Hide nav, show burger at 900px ---- */
@media (max-width: 900px) {
    .sn-nav { display: none; }
    .sn-header__burger { display: flex !important; }
    .sn-header__bar {
        grid-template-columns: auto 1fr auto;
        padding: 0 16px;
    }
    .sn-header__logo { justify-self: center; }
    .sn-header__actions { grid-column: 3; }
}

@media (max-width: 480px) {
    .sn-header__bar { padding: 0 12px; height: 58px; }
    .sn-header__logo img { height: 36px; }
    .sn-header__cart span.cart-count { display: none; }
}

/* ---- Large Tablets & Small Desktops (1200px) ---- */
@media (max-width: 1200px) {
    .hero__title {
        font-size: 3.5rem;
    }

    .section__title {
        font-size: 2.4rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__slider {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__slider .review-card:nth-child(4) {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer__grid > :last-child {
        display: none;
    }

    .footer--maeli .footer__inner {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 32px;
    }

    /* (Plus de colonne à masquer : le footer n'a que 3 blocs depuis le
       retrait de « La Marque » — cacher :last-child supprimerait Service client.) */

    .collections__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Category bar: smaller padding */
    .header__cat-link {
        padding: 12px 14px;
        font-size: 0.72rem;
    }

    /* Hero category tabs */
    .hero__cat-tab {
        padding: 14px 16px;
        font-size: 0.75rem;
    }
}

/* ---- Tablets (992px) ---- */
@media (max-width: 992px) {
    .section {
        padding: 70px 0;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero--ribbon {
        --hero-ribbon-card-width: 190px;
        --hero-ribbon-card-height: 240px;
    }

    .hero--ribbon .hero__content {
        padding: 24px 20px;
    }

    .hero--editorial-live {
        min-height: auto;
    }

    .hero--editorial-live__layout {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .hero--editorial-live__content {
        max-width: none;
    }

    .hero--editorial-live .hero__title {
        max-width: 12ch;
    }

    .hero--editorial-live__figure {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .hero--editorial-live__figure-main {
        min-height: 360px;
    }

    .hero--editorial-live__figure-stack img {
        min-height: 172px;
    }

    .hero--editorial-live__note-grid {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .section__title {
        font-size: 2rem;
    }

    /* Hide secondary links in header, show hamburger */
    .header__left {
        display: none;
    }

    .hamburger {
        display: flex !important;
    }

    /* Header main becomes simpler: hamburger | logo | actions */
    .header__main-inner {
        grid-template-columns: auto 1fr auto;
        height: 64px;
    }

    .nav__logo {
        grid-column: 2;
        justify-self: center;
    }

    .nav__actions {
        grid-column: 3;
    }

    /* Category bar scrollable on tablet */
    .header__cat-nav {
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .header__cat-link {
        padding: 10px 14px;
        font-size: 0.7rem;
    }

    /* Collections */
    .collections__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Brand story */
    .brand-story__tabs {
        flex-direction: column;
        gap: 8px;
    }

    .brand-story__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-story__image {
        height: 300px;
    }

    .craftsmanship__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .craftsmanship__images {
        height: 350px;
    }

    .reviews__slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews__slider .review-card:nth-child(3),
    .reviews__slider .review-card:nth-child(4) {
        display: none;
    }

    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .newsletter__content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter__form {
        max-width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer--maeli .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-bottom: 36px;
    }

    .footer--maeli .footer__bottom {
        padding: 18px 0 22px;
    }

    .featured-banner__title {
        font-size: 2.5rem;
    }

    /* Shop layout */
    .shop__layout {
        grid-template-columns: 1fr;
    }

    .shop__filters {
        position: static;
        display: none;
    }

    .shop__filters.active {
        display: block;
        background: var(--color-white);
        padding: 24px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-bottom: 24px;
    }

    .filter-toggle {
        display: flex;
    }

    /* Product detail */
    .product-detail__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail__gallery {
        position: static;
    }

    /* About */
    .about-story__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-story__image {
        height: 350px;
    }

    .about-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer--maeli {
        padding: 48px 0 0;
    }

    .footer--maeli .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer--maeli .footer__inner > :last-child {
        display: block;
    }

    .footer--maeli .footer__col-links a {
        font-size: 0.96rem;
    }

    .footer--maeli .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer--maeli .footer__bottom-copy {
        font-size: 0.85rem;
    }
}

/* ---- Mobile Nav: Full-Screen Slide-In Menu (992px) ---- */
@media (max-width: 992px) {
    /* Hamburger animation: 3 lines -> X */
    .hamburger.active .hamburger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .hamburger__line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active .hamburger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Full-screen nav menu slide from left */
    .nav__menu {
        display: flex !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-white);
        z-index: 2000;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        flex-direction: column;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .nav__menu.active {
        left: 0;
    }

    /* Menu header */
    .nav__menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__menu-header .logo-image {
        max-height: 36px;
    }

    .nav__close,
    .nav__menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.3rem;
        color: var(--color-text);
    }

    /* Nav list */
    .nav__list {
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        flex: 1;
    }

    .nav__item {
        border-bottom: 1px solid var(--color-border);
    }

    .nav__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        font-size: 1.05rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        color: var(--color-text);
        text-decoration: none;
    }

    .nav__link::after {
        display: none;
    }

    /* Dropdown accordion in mobile */
    .nav__dropdown > .nav__link .nav__arrow {
        transition: transform 0.3s ease;
    }

    .nav__dropdown.active > .nav__link .nav__arrow {
        transform: rotate(180deg);
    }

    .dropdown__menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: none !important;
        border-radius: 0 !important;
        border: none !important;
        width: 100% !important;
        background: var(--color-bg, #f8f6f2) !important;
    }

    .nav__dropdown.active .dropdown__menu {
        display: block !important;
    }

    .dropdown__grid {
        grid-template-columns: 1fr;
        padding: 8px 0;
        gap: 0;
    }

    .dropdown__card {
        flex-direction: row;
        padding: 12px 24px 12px 40px;
        gap: 12px;
        border-radius: 0;
        background: transparent;
    }

    .dropdown__card:hover {
        background: rgba(0,0,0,0.03);
    }

    .dropdown__card-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .dropdown__card-icon img {
        width: 20px;
        height: 20px;
    }

    .dropdown__card span {
        font-size: 0.95rem;
    }

    .dropdown__footer {
        display: none;
    }

    /* Overlay */
    .nav__overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0);
        z-index: 1999;
        pointer-events: none;
        transition: background 0.4s ease;
    }

    .nav__overlay.active {
        background: rgba(0, 0, 0, 0.45);
        pointer-events: all;
    }

    /* Menu footer */
    .nav__menu-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        border-top: 1px solid var(--color-border);
        margin-top: auto;
    }

    .nav__menu-footer a,
    .nav__menu-footer-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--color-text-light);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .nav__menu-footer a i {
        width: 20px;
        text-align: center;
    }

    .nav__menu-social {
        display: flex;
        gap: 16px;
        padding-top: 8px;
    }

    .nav__menu-social a {
        font-size: 1.1rem;
        color: var(--color-text-light);
    }
}

/* ---- Mobile (768px) ---- */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    /* Forest panorama hero: let content dictate height, no overflow clipping */
    .hero.hero--forest-panorama {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    /* Hide hero category tabs on small screens */
    .hero__categories {
        display: none;
    }

    /* Hide category overlay on mobile (no hover) */
    .hero__cat-overlay {
        display: none;
    }

    /* Category bar: hide on mobile (accessible via hamburger) */
    .header__categories {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .section__title {
        font-size: 1.8rem;
    }

    /* Trust strip */
    .trust-strip__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-strip__item {
        padding: 16px 12px;
    }

    .trust-strip__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Collections */
    .collections__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .collection-card__body h3 {
        font-size: 1rem;
    }

    .collection-card__badge {
        width: 40px;
        height: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card__info {
        padding: 14px;
    }

    .product-card__name {
        font-size: 0.9rem;
    }

    .product-card__actions {
        opacity: 1;
        transform: translateY(0);
    }

    .featured-banner {
        padding: 80px 0;
    }

    .featured-banner__title {
        font-size: 2rem;
    }

    .featured-banner__price .price-current {
        font-size: 1.5rem;
    }

    /* Brand Story */
    .brand-story__tabs {
        gap: 6px;
    }

    .brand-story__tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .brand-story__text h3 {
        font-size: 1.3rem;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery__item--tall {
        grid-row: span 1;
    }

    .gallery__item--wide {
        grid-column: span 1;
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .newsletter {
        padding: 50px 0;
    }

    .newsletter__text h2 {
        font-size: 1.6rem;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    /* About page */
    .about-hero {
        padding: 120px 0 70px;
    }

    .about-hero__title {
        font-size: 2.2rem;
    }

    .about-values__grid {
        grid-template-columns: 1fr;
    }

    .process__step {
        flex-direction: column;
        gap: 12px;
    }

    .process__number {
        font-size: 1.8rem;
    }

    /* Product detail */
    .product-detail__name {
        font-size: 1.45rem;
    }

    .product-detail__price {
        font-size: 1.15rem;
    }

    .product-detail__features {
        grid-template-columns: 1fr;
    }

    .product-breadcrumb {
        display: none;
    }

    /* Contact */
    .contact__form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header__title {
        font-size: 1.8rem;
    }
}

/* ---- Small Mobile (480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero--ribbon {
        --hero-ribbon-card-width: 140px;
        --hero-ribbon-card-height: 178px;
    }

    .hero--ribbon .hero-ribbon__track {
        gap: 10px;
    }

    .hero--ribbon .hero__content {
        padding: 18px 16px;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .hero__controls {
        bottom: 24px;
    }

    .btn--hero {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    /* Trust strip */
    .trust-strip__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .trust-strip__text h4 {
        font-size: 0.75rem;
    }

    /* Collections single column */
    .collections__grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__action-btn--icon {
        width: 100%;
    }

    .reviews__slider {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 24px;
    }

    .featured-banner__title {
        font-size: 1.6rem;
    }

    /* Brand story compact */
    .brand-story__tabs {
        flex-wrap: wrap;
    }

    .brand-story__tab {
        flex: 1 1 45%;
        text-align: center;
    }

    .about-hero__title {
        font-size: 1.8rem;
    }

    /* Header compact */
    .header__main-inner {
        height: 56px;
    }

    .logo-image {
        height: 40px;
    }

    .nav__menu {
        max-width: 100%;
    }
}

/* ---- Global Mobile Polish (site-header/mobile-nav variant) ---- */
@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
    }

    .site-header__top {
        min-height: 68px;
        padding: 10px 14px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
    }

    .site-header__left,
    .site-header__right {
        flex: none;
        min-width: 0;
        gap: 4px;
    }

    .site-header__left {
        justify-content: flex-start;
    }

    .site-header__right {
        justify-content: flex-end;
    }

    .site-header__text-link {
        display: none !important;
    }

    .site-header__burger {
        display: inline-flex;
        margin-right: 0;
    }

    .site-header__logo {
        position: static;
        transform: none;
        justify-self: center;
    }

    .site-header__logo img {
        height: 46px;
        max-width: 164px;
        object-fit: contain;
    }

    /* Keep the centred logo the SAME height on every page (home and non-home).
       The home header carries `.site-header--overlay-home .site-header__logo--center img`
       (2 classes) which otherwise pins it to 72px while other pages fall through to
       the rule above — hence the logo looked bigger on home only. Match both here,
       in the last-loaded sheet, so the sizes are identical. */
    .site-header__logo--center img,
    .site-header--overlay-home .site-header__logo--center img {
        height: 52px;
        max-width: none;
    }

    .site-header__icon-btn {
        font-size: 0.95rem;
        padding: 6px;
    }

    .site-header__cat-nav {
        display: none !important;
    }

    .site-header__dropdown {
        display: none !important;
    }

    .mobile-nav {
        width: 92%;
        max-width: 360px;
        height: 100dvh;
    }

    .mobile-nav__header {
        padding: 16px 16px;
    }

    .mobile-nav__top-item > a {
        padding: 13px 16px;
    }

    .mobile-nav__sub-link {
        padding: 11px 16px 11px 28px;
    }

    .hero {
        min-height: 440px;
    }

    .hero--ribbon {
        min-height: 500px;
        height: auto;
        padding: 20px 0 34px;
    }

    .hero--ribbon .hero-ribbon__track {
        gap: 12px;
        padding: 0 12px;
    }

    .hero--ribbon .hero-ribbon__track img {
        opacity: 0.62;
    }

    .hero--ribbon .hero__content {
        width: calc(100% - 24px);
        padding: 22px 16px;
    }

    .hero--ribbon .hero__subtitle {
        max-width: 28ch;
    }

    .hero--ribbon .btn--hero {
        width: min(100%, 320px);
    }

    .hero--editorial-live {
        padding: 0;
    }

    .hero--editorial-live__layout {
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .hero--editorial-live__intro {
        font-size: 0.9rem;
    }

    .hero--editorial-live .hero__title {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
        margin-bottom: 14px;
    }

    .hero--editorial-live .hero__subtitle {
        max-width: 34ch;
        margin-bottom: 22px;
    }

    .hero--editorial-live__actions .btn {
        width: min(100%, 320px);
    }

    .hero--editorial-live__stats {
        gap: 8px;
    }

    .hero--editorial-live__stats span {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        padding: 10px 12px;
    }

    .hero--editorial-live__figure {
        grid-template-columns: 1fr;
    }

    .hero--editorial-live__figure-main {
        min-height: 280px;
    }

    .hero--editorial-live__figure-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero--editorial-live__figure-stack img {
        min-height: 150px;
    }

    .trust-strip--maeli {
        padding: 18px 0;
    }

    .trust-strip--maeli .trust-strip__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .trust-strip--maeli .trust-strip__item {
        padding: 16px 10px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        min-height: 112px;
        justify-content: center;
    }

    .trust-strip--maeli .trust-strip__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .engagements-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .carousel-track {
        gap: 14px;
    }

    .carousel-track .product-card {
        flex: 0 0 calc(50% - 7px);
    }

    .carousel-nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .carousel-btn {
        font-size: 0.72rem;
    }

    .subcategory-pills {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subcategory-pills::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-header__top {
        min-height: 62px;
        padding: 8px 10px;
    }

    .site-header__logo img {
        height: 38px;
        max-width: 136px;
    }

    /* Same-size centred logo on the compact phone header (fits the 62px top). */
    .site-header__logo--center img,
    .site-header--overlay-home .site-header__logo--center img {
        height: 46px;
        max-width: none;
    }

    .site-header__icon-btn {
        padding: 5px;
        font-size: 0.9rem;
    }

    .site-header__icon-btn#search-btn {
        display: none;
    }

    .cart-count {
        min-width: 15px;
        height: 15px;
        font-size: 0.56rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero--ribbon {
        min-height: 455px;
        padding: 14px 0 24px;
        --hero-ribbon-card-width: 132px;
        --hero-ribbon-card-height: 168px;
    }

    .hero--ribbon .hero__content {
        width: calc(100% - 20px);
        padding: 18px 14px;
    }

    .hero--ribbon .hero__tag {
        font-size: 0.62rem;
        letter-spacing: 0.16em;
        padding: 6px 10px;
    }

    .hero--ribbon .hero__title {
        font-size: clamp(2rem, 11vw, 2.6rem);
        margin-bottom: 12px;
    }

    .hero--ribbon .hero__subtitle {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .hero--ribbon .btn--hero {
        width: 100%;
        padding: 13px 20px;
        font-size: 0.76rem;
        letter-spacing: 0.12em;
    }

    .hero--editorial-live__layout {
        gap: 22px;
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .hero--editorial-live .hero__tag {
        font-size: 0.62rem;
        letter-spacing: 0.16em;
        padding: 6px 10px;
        margin-bottom: 14px;
    }

    .hero--editorial-live__intro {
        font-size: 0.84rem;
        margin-bottom: 12px;
    }

    .hero--editorial-live .hero__title {
        font-size: clamp(2rem, 11vw, 2.8rem);
        max-width: 11ch;
    }

    .hero--editorial-live .hero__subtitle {
        font-size: 0.84rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .hero--editorial-live__actions {
        gap: 10px;
        margin-bottom: 18px;
    }

    .hero--editorial-live__actions .btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 0.76rem;
        letter-spacing: 0.1em;
    }

    .hero--editorial-live__stats span {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero--editorial-live__figure-main,
    .hero--editorial-live__figure-stack img,
    .hero--editorial-live__note {
        border-radius: 20px;
    }

    .hero--editorial-live__figure-main {
        min-height: 240px;
    }

    .hero--editorial-live__figure-stack img {
        min-height: 122px;
    }

    .hero--editorial-live__note {
        padding: 16px;
    }

    .hero--editorial-live__note strong {
        font-size: 1rem;
    }

    .hero--editorial-live__note p {
        font-size: 0.86rem;
    }

    .section {
        padding: 48px 0;
    }

    .section__title {
        font-size: 1.55rem;
    }

    .engagements-strip {
        padding: 42px 0;
    }

    .engagements-strip__grid {
        grid-template-columns: 1fr;
    }

    .carousel-track .product-card {
        flex: 0 0 100%;
    }

    .featured-banner {
        padding: 58px 0;
    }

    .featured-banner__content {
        max-width: 100%;
    }

    .featured-banner__price {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .brand-story__panel {
        gap: 26px;
    }

    .review-card {
        padding: 20px;
    }

    .product-detail__layout,
    .about-story__grid,
    .contact__grid,
    .shop__layout {
        gap: 24px;
    }

    .accordion__trigger {
        font-size: 0.83rem;
    }

    .accordion__body,
    .accordion__content {
        font-size: 0.88rem;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }
}

/* ===========================================
   MOBILE HOMEPAGE IMPROVEMENTS
   =========================================== */

/* ---- Hero forest-panorama: fix dead space from logos bottom padding ---- */
@media (max-width: 900px) {
    .hero--forest-panorama__content {
        padding-bottom: clamp(36px, 6vh, 72px);
    }

    /* Carousel panel tighter spacing */
    .hero__carousel-panel {
        padding-bottom: 36px;
    }

    .hero__carousel-panel .section__header {
        margin-bottom: 18px;
    }

    /* Seasonal carousel: show 2 cards with slight peek */
    .seasonal-carousel__track .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .hero--forest-panorama__content {
        padding-bottom: clamp(28px, 5vh, 52px);
    }

    /* Carousel panel header: stack vertically */
    .hero__carousel-panel .section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Show 1.3 cards for peek/swipe affordance */
    .seasonal-carousel__track .product-card {
        flex: 0 0 calc(78% - 8px);
        min-width: 0;
    }

    /* Compact carousel arrows */
    .seasonal-carousel__arrow {
        width: 36px;
        height: 36px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }
}

/* ---- Categories Quick-Access Strip ---- */
.mobile-cats-strip {
    display: block;
    background: var(--color-bg-warm);
    padding: 28px 0 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.mobile-cats-strip__scroll {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    padding: 4px 16px 4px;
}

.mobile-cats-strip__scroll::-webkit-scrollbar {
    display: none;
}

.mobile-cats-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--color-text);
    flex: 0 0 auto;
    min-width: 64px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-cats-strip__item:active .mobile-cats-strip__icon {
    transform: scale(0.93);
    border-color: var(--color-primary);
}

.mobile-cats-strip__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.mobile-cats-strip__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mobile-cats-strip__item:hover .mobile-cats-strip__icon,
.mobile-cats-strip__item:focus .mobile-cats-strip__icon {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(139, 94, 60, 0.22);
    transform: translateY(-2px);
}

.mobile-cats-strip__item span {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    line-height: 1.3;
    max-width: 62px;
}

/* On desktop (>900px): center the strip and use slightly larger icons */
@media (min-width: 901px) {
    .mobile-cats-strip__scroll {
        gap: 20px;
    }

    .mobile-cats-strip__icon {
        width: 72px;
        height: 72px;
    }

    .mobile-cats-strip__icon img {
        width: 44px;
        height: 44px;
    }

    .mobile-cats-strip__item span {
        font-size: 0.72rem;
    }

    .mobile-cats-strip__item {
        min-width: 76px;
    }
}

@media (max-width: 480px) {
    .mobile-cats-strip {
        padding: 16px 0 14px;
    }

    .mobile-cats-strip__icon {
        width: 54px;
        height: 54px;
    }

    .mobile-cats-strip__icon img {
        width: 30px;
        height: 30px;
    }

    .mobile-cats-strip__item span {
        font-size: 0.63rem;
    }
}

/* ---- Engagements Strip: 2-column at 600px (better than 1-col stacking) ---- */
@media (max-width: 600px) {
    .engagements-strip {
        padding: 36px 0 30px;
    }

    .engagements-strip__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .engagements-strip__icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .engagements-strip__title {
        font-size: 0.87rem;
    }

    .engagements-strip__sub {
        font-size: 0.74rem;
    }
}

/* ---- Gallery: tighter rows on small mobile ---- */
@media (max-width: 480px) {
    .gallery__grid {
        grid-auto-rows: 140px;
        gap: 6px;
    }
}

/* ---- Hero CTA button: full-width on small screens ---- */
@media (max-width: 480px) {
    .hero--forest-panorama__actions .btn--hero {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
        font-size: 0.78rem;
    }

    .hero--forest-panorama .hero__subtitle {
        font-size: clamp(0.9rem, 4.2vw, 1.1rem);
        max-width: 22ch;
    }
}

/* ======================================================
   FOOTER — Tout centré (toutes largeurs d'écran)
   ====================================================== */
.footer--maeli .footer__inner {
    text-align: center;
    justify-content: center;
}
.footer--maeli .footer__brand-logo {
    margin-left: auto;
    margin-right: auto;
}
/* Sans marges auto, la description reste collée à gauche de sa colonne : sa
   max-width la sort du centrage hérité de .footer__inner. */
.footer--maeli .footer__brand-desc {
    margin-left: auto;
    margin-right: auto;
}
.footer--maeli .footer__social {
    justify-content: center;
}
.footer--maeli .footer__col-links a {
    justify-content: center;
}
.footer--maeli .footer__bottom {
    justify-content: center;
}
.footer--maeli .footer__payment-icons {
    justify-content: center;
}

/* ======================================================
   MOBILE-ONLY OVERRIDES  (≤ 900px)
   Changes below must NOT affect the desktop layout
   ====================================================== */

/* ---- 1. Hero: masquer le carrousel, garder titre + CTA — meilleures proportions ---- */
@media (max-width: 900px) {
    .hero__carousel-panel .seasonal-carousel {
        display: none;
    }
    .hero__carousel-panel {
        padding-bottom: 28px;
    }
    /* Réduire le grand vide sous le texte (le carousel est caché) */
    .hero--forest-panorama__content {
        padding-bottom: 48px;
    }
    /* Sous-titre plus bas = espace accru entre titre et sous-titre */
    .hero--forest-panorama .hero__subtitle {
        margin-top: 32px;
    }
}

/* ---- 2. Bandeau catégories : quatre icônes centrées, sans flèches ---- */
/* Les quatre familles tiennent sur une ligne à 320 px ; les flèches de
   défilement (et le défilement automatique) ont été retirés le 20/09/2026. */
.mobile-cats-strip {
    position: relative;
}

@media (max-width: 480px) {
    .mobile-cats-strip__scroll {
        gap: 14px;
    }
    .mobile-cats-strip__item {
        min-width: 60px;
    }
}

@media (max-width: 340px) {
    .mobile-cats-strip__scroll {
        justify-content: flex-start;
        gap: 10px;
    }
}

/* ---- 3. Nos créations du moment — une carte par famille (B1) ---- */
/* La section qui précède (Collection Montagne) est une composition à deux
   colonnes dans un cadre arrondi : celle-ci prend délibérément un autre
   rythme — bande à filets, cartes basses alignées — pour que l'enchaînement
   des deux ne se lise pas comme la même mise en page répétée.
   Contenu injecté par le serveur (SSR, renderHome) puis remplacé par main.js. */

.home-bento {
    background: var(--color-bg);
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--color-border);
}

.home-bento__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

.home-bento__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.home-bento__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.home-bento__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    color: var(--color-text);
}

.home-bento__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.home-bento__link:hover { color: var(--color-primary); }

/* La bande. `--fams` est posé par le serveur puis par main.js : la grille
   compte exactement autant de colonnes qu'il y a de familles en vente, donc
   aucune carte ne se retrouve seule sur une dernière ligne. */
.home-fams {
    display: grid;
    grid-template-columns: repeat(var(--fams, 4), minmax(0, 1fr));
    gap: 18px;
}

.home-fam {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.home-fam:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.home-fam:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.home-fam__vis {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-warm);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.home-fam__vis img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: var(--img-tf, none);
    transition: transform 0.35s ease;
}

.home-fam:hover .home-fam__vis img { transform: var(--img-tf, none) scale(1.04); }

.home-fam__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px 17px;
}

.home-fam__fam {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.home-fam__name {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    /* Les noms vont de « Mont-Blanc » à « Refuge de Tête Rousse / Goûter » :
       la carte s'allonge plutôt que de rogner le texte. */
    overflow-wrap: anywhere;
}

.home-fam__from {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.84rem;
    color: var(--color-text-light);
    font-variant-numeric: tabular-nums;
}

/* Squelette pendant le chargement, à la hauteur d'une rangée de cartes. */
.home-fams[aria-busy="true"]:empty,
.home-fams:empty {
    display: block;
    min-height: 300px;
    border-radius: 4px;
    background:
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%),
        var(--color-bg-warm);
    background-size: 200% 100%;
    animation: mtn-shimmer 1.4s ease-in-out infinite;
}

@media (max-width: 1000px) {
    .home-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 700px) {
    .home-bento { padding: 40px 0 34px; }
    .home-fams { gap: 10px; }
    .home-fam__body { padding: 12px 13px 14px; }
    .home-fam__name { font-size: 0.95rem; }
    .home-fams:empty { min-height: 560px; }
}

@media (max-width: 420px) {
    .home-fams { grid-template-columns: 1fr; }
    .home-fam { grid-template-columns: 116px 1fr; grid-template-rows: auto; }
    .home-fam__vis { aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--color-border); }
}

/* ===========================================
   AJUSTEMENTS MOBILE (2026-08) : hero, header, footer
   =========================================== */

/* Hero accueil : le titre se centre verticalement dans l'espace libre entre
   le header (en overlay) et le sous-titre, au lieu de coller sous le header. */
@media (max-width: 768px) {
    .hero--forest-panorama__content {
        justify-content: flex-start;
        padding-top: 84px; /* ≈ hauteur du header en overlay */
        min-height: clamp(360px, 54vh, 560px);
    }

    .hero--forest-panorama .hero__title {
        margin-top: auto;
        margin-bottom: auto;
        padding-bottom: 10px; /* écart minimal avant le sous-titre quand l'espace manque */
    }
}

@media (max-width: 900px) {
    /* Logo réellement centré dans le header. Sur les pages sans header overlay
       (boutique, fiches produit), le burger reste dans le flux de la grille et
       décalait le logo vers la droite ; en absolu, le logo se centre sur la
       largeur du header quel que soit le contenu des colonnes. */
    .site-header__top--centered .site-header__logo--center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Le header est une grille : un enfant en absolu garde sa colonne
           (grid-column: 2) comme bloc conteneur, donc `left: 50%` visait le
           milieu de la colonne centrale, pas celui du header — le logo était
           décalé de 10 à 30 px vers la droite sur téléphone. En `auto`, le bloc
           conteneur redevient le header entier. */
        grid-column: auto;
        grid-row: auto;
    }
}

/* Bandeau « L'esprit de la maison » en 3 points (accueil). La grille de base
   est calée sur 4 colonnes pour la page « À propos » ; ce modificateur évite
   l'orphelin de 2e ligne. Sélecteur composé pour passer devant les règles
   .engagements-strip__grid des media queries ci-dessus. */
.engagements-strip__grid.engagements-strip__grid--trio {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .engagements-strip__grid.engagements-strip__grid--trio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    /* Les descriptions sont des phrases complètes : illisibles sur 2 colonnes. */
    .engagements-strip__grid.engagements-strip__grid--trio {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* ---- Collection Montagne (accueil) : sommets en puces défilantes ---- */
/* Neuf noms l'un sous l'autre occupaient un écran entier avant la photo de
   la lampe. Sur téléphone la liste devient une rangée de puces qui défile
   au doigt, la puce active en brun plein. */
@media (max-width: 900px) {
    /* La rangée de puces (nowrap) élargissait la colonne : `1fr` vaut
       minmax(auto, 1fr), donc la colonne suivait le contenu. */
    .mtn-collection__inner { grid-template-columns: minmax(0, 1fr); }
    .mtn-collection__text, .mtn-collection__gallery { min-width: 0; }
    .mtn-summits {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        margin: 22px -24px 0;
        padding: 16px 24px 4px;
        border-top: 1px solid var(--color-border);
        /* dégradé de bord : signale qu'il y a d'autres sommets à droite */
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
    }
    .mtn-summits::-webkit-scrollbar { display: none; }
    .mtn-summit {
        flex: 0 0 auto;
        width: auto;
        scroll-snap-align: start;
        padding: 8px 14px;
        border: 1px solid var(--color-border);
        border-radius: 999px;
        background: var(--color-white);
        font-family: var(--font-body);
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        color: var(--color-text);
    }
    .mtn-summit[aria-selected="true"] {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
        font-weight: 600;
    }
}

/* ---- « L'esprit de la maison » : icône à gauche, texte à droite ---- */
@media (max-width: 600px) {
    .engagements-strip .section__header {
        margin-bottom: 22px !important;
    }
    .engagements-strip__grid.engagements-strip__grid--trio {
        gap: 14px;
    }
    .engagements-strip__grid--trio .engagements-strip__item {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 2px;
        align-items: center;
        text-align: left;
        padding: 12px 14px;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: 12px;
    }
    .engagements-strip__grid--trio .engagements-strip__icon {
        grid-row: 1 / 3;
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        background: var(--color-bg-warm);
        box-shadow: none;
    }
    .engagements-strip__grid--trio .engagements-strip__title {
        grid-column: 2;
        font-size: 0.92rem;
        margin: 0;
    }
    .engagements-strip__grid--trio .engagements-strip__sub {
        grid-column: 2;
        font-size: 0.76rem;
        line-height: 1.45;
        margin: 0;
    }
}
