/* ==========================================================================
   Amirezia — Design System 2026 (refonte éditoriale)
   Palette crème / beige / bois — inspiration AIKE
   ========================================================================== */

:root {
    /* Neutrals — warm paper palette */
    --paper: #f7f3ec;
    --paper-2: #efe7d8;
    --paper-3: #e7ddc9;
    --card: #ffffff;
    --line: #e3dac6;
    --line-strong: #d2c5a8;

    /* Text */
    --ink: #1b1812;
    --ink-soft: #59533f;
    --ink-faint: #8b8168;

    /* Accents (used sparingly) */
    --taupe: #a68a5e;
    --wood: #7c5c3c;
    --success: #3f7a4f;
    --danger: #b6432f;

    /* Buttons */
    --btn-bg: #17140f;
    --btn-bg-hover: #322c21;
    --btn-text: #f7f3ec;

    /* Radius */
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 18px;
    --r-pill: 999px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(27, 24, 18, 0.06);
    --shadow-md: 0 8px 28px rgba(27, 24, 18, 0.09);
    --shadow-lg: 0 20px 50px rgba(27, 24, 18, 0.14);

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 72px;
    --sp-9: 104px;

    --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-w: 1320px;
    --container-pad: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    min-height: 100vh;
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--wood);
    margin-bottom: 10px;
}

/* ---------------- Header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(247, 243, 236, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--ink);
}

.logo-text .dot {
    color: var(--wood);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.2px;
    transition: color 0.2s;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    font-size: 1.05rem;
    transition: 0.2s;
    position: relative;
}

.icon-btn:hover {
    background: var(--paper-2);
    border-color: var(--line);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.2rem;
}

/* Mobile drawer nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 24, 18, 0.4);
    z-index: 800;
}

.mobile-nav-overlay.is-open {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 360px);
    background: var(--paper);
    z-index: 900;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 24px 28px 40px;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mobile-nav__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--ink);
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav__links a {
    display: block;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-nav__foot {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--ink-faint);
    line-height: 1.7;
}

/* ---------------- Buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
}

.btn-primary:hover {
    background: var(--btn-bg-hover);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--paper-2);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero {
    padding: 56px 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-faint);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--sp-5);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--ink);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--ink-soft);
    max-width: 620px;
    font-size: 1.02rem;
}

/* ---------------- Legal content ---------------- */

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--sp-6) 0 var(--sp-9);
}

.legal-content section {
    margin-bottom: var(--sp-7);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: var(--sp-3);
    color: var(--ink);
}

.legal-content p,
.legal-content li {
    color: var(--ink-soft);
    font-size: 0.97rem;
    margin-bottom: var(--sp-3);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content strong {
    color: var(--ink);
}

.legal-content a {
    color: var(--wood);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    margin-bottom: var(--sp-5);
}

.legal-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-2) var(--sp-5);
}

.legal-card dt {
    color: var(--ink-faint);
    font-size: 0.85rem;
    font-weight: 600;
}

.legal-card dd {
    color: var(--ink);
    font-size: 0.9rem;
}

.note-missing {
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ---------------- Hero (home) ---------------- */

.hero {
    padding: 56px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.hero-content {
    max-width: 520px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.6px;
    margin-bottom: 20px;
    color: var(--ink);
}

.hero h1 .highlight {
    font-style: italic;
    color: var(--wood);
}

.hero p {
    color: var(--ink-soft);
    font-size: 1.06rem;
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 460px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-media__item {
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- Reassurance bandeau ---------------- */

.reassurance {
    margin: 48px 0;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.reassurance__item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-align: left;
}

.reassurance__item i {
    font-size: 1.15rem;
    color: var(--wood);
    flex-shrink: 0;
}

.reassurance__item div {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.reassurance__item span {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--ink-faint);
    margin-top: 1px;
}

/* ---------------- Sections ---------------- */

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--sp-7);
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--ink);
    margin-bottom: 8px;
}

.section-head p {
    color: var(--ink-faint);
    font-size: 0.95rem;
}

.section-head.align-left {
    text-align: left;
    margin: 0 0 var(--sp-6);
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------------- Products ---------------- */

.products-section {
    padding: var(--sp-7) var(--container-pad);
}

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

.product-card {
    display: block;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card__media {
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.045);
}

.product-card__quick {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    opacity: 0;
    transform: translateY(6px);
    transition: 0.25s;
    cursor: pointer;
    font-size: 0.9rem;
}

.product-card:hover .product-card__quick {
    opacity: 1;
    transform: translateY(0);
}

.product-card__brand {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ink-faint);
    margin-bottom: 3px;
}

.product-card__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card__price .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

/* Mobile carousel variant (row, horizontal scroll) */
.products-carousel {
    display: none;
}

/* ---------------- Editorial section ---------------- */

.editorial {
    padding: var(--sp-8) var(--container-pad);
    text-align: center;
}

.editorial__body {
    max-width: 620px;
    margin: 0 auto;
}

.editorial__body h2 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 18px;
    line-height: 1.15;
}

.editorial__body p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- Curated strip ---------------- */

.curated {
    padding: var(--sp-8) var(--container-pad);
    text-align: center;
}

.curated h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.3;
}

.curated h2 .muted {
    color: var(--ink-faint);
}

.curated-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.curated-strip::-webkit-scrollbar {
    display: none;
}

.curated-strip div {
    flex: 0 0 auto;
    width: 210px;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.curated-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- Footer ---------------- */

footer {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    padding: 64px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-7);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--sp-5);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ink-faint);
    margin-bottom: var(--sp-4);
}

.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--sp-3);
}

.footer-brand-mark span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}

.footer-brand-mark span .dot {
    color: var(--wood);
}

.footer-col p {
    color: var(--ink-soft);
    font-size: 0.87rem;
    line-height: 1.7;
    margin-bottom: var(--sp-2);
}

.footer-col address {
    font-style: normal;
    color: var(--ink-faint);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-list li a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.87rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-list li a i {
    color: var(--wood);
    font-size: 0.8rem;
    width: 14px;
}

.footer-list li a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--ink-faint);
}

.footer-bottom .legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom .legal-links a {
    color: var(--ink-faint);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom .legal-links a:hover {
    color: var(--ink);
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 40px 0 var(--sp-8);
}

.product-gallery__main {
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info__brand {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--wood);
    margin-bottom: 10px;
}

.product-info h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.product-info__price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.product-info__price .price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ink);
}

.product-info__desc {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 480px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.qty-stepper button {
    width: 42px;
    height: 46px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
}

.qty-stepper button:hover {
    background: var(--paper-2);
}

.qty-stepper input {
    width: 44px;
    height: 46px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: transparent;
}

.qty-stepper input:focus {
    outline: none;
}

.qty-row {
    margin-bottom: 18px;
}

.product-info__actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
}

.product-info__actions .btn {
    flex: 1;
}

.add-to-cart-msg {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 6px;
}

.add-to-cart-msg.is-visible {
    display: flex;
}

.info-accordion {
    border-top: 1px solid var(--line);
}

.info-accordion__item {
    border-bottom: 1px solid var(--line);
}

.info-accordion__item summary {
    padding: 16px 2px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.info-accordion__item summary::-webkit-details-marker {
    display: none;
}

.info-accordion__item summary i {
    color: var(--ink-faint);
    transition: transform 0.2s;
}

.info-accordion__item[open] summary i {
    transform: rotate(45deg);
}

.info-accordion__item p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 0 2px 16px;
    max-width: 460px;
}

.related-section {
    padding: var(--sp-7) 0 var(--sp-8);
    border-top: 1px solid var(--line);
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 40px 0 var(--sp-8);
}

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item__media {
    width: 92px;
    height: 92px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item__brand {
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cart-item__remove {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.cart-item__remove:hover {
    color: var(--danger);
}

.cart-item__right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item__price {
    font-weight: 700;
    font-size: 0.98rem;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-faint);
}

.cart-empty i {
    font-size: 2.4rem;
    margin-bottom: 18px;
    color: var(--line-strong);
    display: block;
}

.summary-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.summary-row.total {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 40px 0 var(--sp-8);
}

.checkout-section {
    margin-bottom: 36px;
}

.checkout-section h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section h2 .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    /* 16px minimum : empêche le zoom automatique d'iOS Safari au focus d'un champ. */
    font-size: 16px;
    color: var(--ink);
    transition: 0.2s;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--ink);
}

.form-group input::placeholder {
    color: var(--ink-faint);
}

/* Address autocomplete (BAN) */
.form-group--address {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    max-height: 264px;
    overflow-y: auto;
    display: none;
}

.address-suggestions.is-open {
    display: block;
}

.address-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    font-size: 0.9rem;
    color: var(--ink);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.address-suggestion i {
    color: var(--ink-faint);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.address-suggestion:hover {
    background: var(--paper-2);
}

.secure-note {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure-note i {
    color: var(--wood);
}

.summary-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.summary-mini-item__media {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--paper-2);
    overflow: hidden;
}

.summary-mini-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-mini-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.summary-mini-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.summary-mini-item__brand {
    font-size: 0.74rem;
    color: var(--ink-faint);
}

.summary-mini-item__price {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* ==========================================================================
   Paiement Stripe (checkout) — carte bancaire
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Champs de carte (Stripe Elements) ---------- */

.card-panel {
    padding: 18px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.card-panel .form-group:last-child {
    margin-bottom: 0;
}

.stripe-field {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    transition: 0.2s;
}

/* Point de montage réel de Stripe.js : flex:1 lui fait occuper toute la
   largeur disponible (un enfant flex ne s'étire pas sur la largeur par
   défaut, sans ça le champ se réduit à la largeur de l'iframe interne). */
.stripe-field__mount {
    flex: 1 1 auto;
    min-width: 0;
}

.stripe-field__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 8px;
    color: var(--ink-faint);
}

/* Focus et état invalide posés ici via app.js (événements focus/blur/change
   de Stripe.js) : Stripe applique ses propres classes d'état sur
   .stripe-field__mount, pas sur ce conteneur. */
.stripe-field.is-focused {
    border-color: var(--ink);
}

.stripe-field.has-error {
    border-color: #b3402c;
}

.stripe-error {
    display: none;
    margin: 6px 0 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #b3402c;
}

.stripe-error.is-visible {
    display: block;
}

/* ---------- Erreur de paiement ---------- */

.payment-error {
    display: none;
    margin: 16px 0 0;
    padding: 13px 16px;
    background: #fbeae5;
    border: 1px solid #b3402c;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: #b3402c;
}

.payment-error.is-visible {
    display: block;
}

.order-success {
    text-align: center;
    padding: 100px 20px;
}

.order-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

.order-success h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.order-success p {
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(247, 243, 236, 0.35);
    border-radius: 50%;
    border-top-color: var(--btn-text);
    animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   Responsive — DISTINCT mobile layouts (not fluid resizing)
   ========================================================================== */

@media (max-width: 1180px) {
    :root { --container-pad: 28px; }
    .hero { gap: 36px; }
    .hero h1 { font-size: 2.7rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .product-detail,
    .cart-layout,
    .checkout-layout { gap: 40px; }
}

@media (max-width: 860px) {
    .site-nav { display: none; }
    .burger { display: flex; }

    :root { --container-pad: 20px; }

    /* ---- Hero: stacked, text then image ---- */
    .hero {
        grid-template-columns: 1fr;
        padding: 28px 0 0;
        gap: 28px;
        text-align: left;
    }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2.1rem; letter-spacing: -0.8px; }
    .hero p { font-size: 0.96rem; max-width: 100%; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }

    .reassurance {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        margin: 32px 0;
    }
    .reassurance__item { text-align: left; justify-content: flex-start; }

    .section-head h2 { font-size: 1.7rem; }

    /* ---- Products: 2-column grid on mobile ---- */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
    .products-carousel { display: none; }
    .product-card__quick { display: none; }

    .editorial { padding: var(--sp-7) 0; }
    .editorial__body p { max-width: 100%; }

    .curated h2 { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* ---- Product detail: stacked ---- */
    .product-detail { grid-template-columns: 1fr; padding: 24px 0 var(--sp-7); }
    .product-info__actions { flex-direction: column; }

    /* ---- Cart: stacked, summary below list ---- */
    .cart-layout { grid-template-columns: 1fr; padding: 24px 0 var(--sp-7); }
    .cart-item { grid-template-columns: 68px 1fr; }
    .cart-item__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .summary-card { position: static; }

    /* ---- Checkout: stacked, summary first & compacte ---- */
    .checkout-layout { grid-template-columns: 1fr; padding: 24px 0 var(--sp-7); }
    .checkout-layout .summary-card { order: -1; position: static; margin-bottom: 20px; padding: 18px; }
    .summary-card h3 { font-size: 1rem; margin-bottom: 14px; }
    .summary-row { margin-bottom: 9px; }
    .summary-row.total { font-size: 1rem; padding-top: 12px; }
    .summary-mini-item { margin-bottom: 12px; }
    .form-row { grid-template-columns: 1fr; }

    .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    :root { --container-pad: 24px; }
    .logo { margin-left: 6px; }
    .logo-text { font-size: 1.25rem; }
    .hero h1 { font-size: 1.75rem; }
    .curated h2 { font-size: 1.2rem; }
    .reassurance { grid-template-columns: 1fr 1fr; }
    .reassurance__item div { font-size: 0.76rem; }
    .reassurance__item span { display: none; }
    .section-head h2 { font-size: 1.4rem; }
    .curated-strip div { width: 120px; }
    .product-info h1 { font-size: 1.5rem; }
    .product-info__price .price { font-size: 1.35rem; }
}
