/* ══════════════════════════════════════════════════════
   PANIER COLLECTION AUTOMNE — CSS COMPLET (v3, direction luxe)
   Hero : composition photographique (feuilles + glands détourés,
   proprement cette fois) sur fond café/bordeaux profond avec halo
   ambré. Configurateur : crème/rouille/doré, cadre à coins dorés.
══════════════════════════════════════════════════════ */

:root {
    /* Configurateur (sections claires) */
    --aut-bg:        #FBF3E7;
    --aut-bg-2:      #F3E6D0;
    --aut-card:       #FFFDF8;
    --aut-ink:        #3B2415;
    --aut-ink-soft:   rgba(59,36,21,.68);
    --aut-primary:    #BB4A21;
    --aut-primary-h:  #93381A;
    --aut-secondary:  #74863F;
    --aut-gold:       #C6A15B;
    --aut-gold-d:     #9C7A2C;
    --aut-border:     rgba(107,74,43,.18);
    --aut-border-h:   rgba(187,74,33,.5);
    --aut-tint:       rgba(201,154,59,.14);

    /* Hero (fond sombre) */
    --aut-espresso:    #2B1B12;
    --aut-espresso-2:  #3D2216;
    --aut-bordeaux:    #4A2118;
    --aut-ivory:        #F4E9D8;
    --aut-ivory-soft:   rgba(244,233,216,.72);
    --aut-gold-line:    rgba(198,161,91,.5);
    --aut-ember:        #E08A3E;
}

.automne-page {
    font-family: 'Inter', sans-serif;
    color: var(--aut-ink);
    background: var(--aut-bg);
    -webkit-font-smoothing: antialiased;
}

/* La nav du site (.mc-site-header) est en position: sticky, donc déjà
   dans le flux normal — le padding-top de body.has-header (pensé pour
   un header fixed) est inutile ici et crée un bandeau vide au-dessus
   de la nav. On le neutralise pour ce gabarit uniquement. */
body.has-header.automne-page { padding-top: 0; }

/* ────────────────────────────────────────
   HERO — composition photographique éditoriale
──────────────────────────────────────── */
.hero-automne {
    position: relative; width: 100%; min-height: 88vh;
    display: flex; align-items: center; overflow: hidden;
    background:
        radial-gradient(ellipse 800px 480px at 12% 8%, rgba(198,161,91,.12), transparent 60%),
        radial-gradient(ellipse 900px 620px at 100% 100%, rgba(187,74,33,.18), transparent 55%),
        linear-gradient(155deg, var(--aut-espresso) 0%, var(--aut-espresso-2) 55%, var(--aut-bordeaux) 100%);
}

/* halo ambré, façon lumière de fin de journée qui traverse un vitrail */
.hero-automne__glow {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
    filter: blur(60px); animation: aut-glowPulse 7s ease-in-out infinite;
}
.hero-automne__glow--1 {
    width: 520px; height: 520px; left: -8%; top: 4%;
    background: radial-gradient(circle, rgba(224,138,62,.22), transparent 70%);
    animation-delay: 0s;
}
.hero-automne__glow--2 {
    width: 620px; height: 620px; right: -10%; bottom: -12%;
    background: radial-gradient(circle, rgba(198,161,91,.16), transparent 70%);
    animation-delay: -3.2s;
}
@keyframes aut-glowPulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* feuilles détourées posées, façon flat-lay éditorial */
.hero-automne__prop {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 20px 34px rgba(0,0,0,.55));
    z-index: 2;
    animation: aut-propIn 1s ease-out both, aut-propSway var(--sway-dur, 7s) ease-in-out var(--sway-delay, 0s) infinite;
}
.hero-automne__prop--maple {
    right: -4%; bottom: -8%; width: min(380px, 32vw);
    transform: rotate(-8deg); animation-delay: .3s, 0s;
    --sway-dur: 8s;
}
.hero-automne__prop--acer {
    left: 3%; top: 10%; width: min(150px, 13vw);
    transform: rotate(18deg); opacity: .96; animation-delay: .55s, -1.4s;
    --sway-dur: 6.5s;
}
.hero-automne__prop--chene {
    left: 8%; bottom: 6%; width: min(140px, 11vw);
    transform: rotate(-22deg); opacity: .92; animation-delay: .75s, -2.6s;
    --sway-dur: 7.4s;
}
.hero-automne__prop--orange {
    right: 20%; top: 4%; width: min(120px, 10vw);
    transform: rotate(12deg); opacity: .9; animation-delay: .9s, -.8s;
    --sway-dur: 6s;
}
@keyframes aut-propIn { from { opacity: 0; transform: translateY(16px) rotate(var(--r, 0deg)); } to { opacity: 1; } }
@keyframes aut-propSway { 0%,100% { margin-top: 0; } 50% { margin-top: -7px; } }

.hero-automne__acorn-badge {
    position: absolute; right: -10px; bottom: -6px; width: 46px; height: 46px; z-index: 6;
    transform: rotate(-8deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}
.hero-automne__acorn-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

.feuilles-container { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.feuille {
    position: absolute; top: -60px; background-size: contain; background-repeat: no-repeat;
    animation: aut-feuilleFall linear infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
}
@keyframes aut-feuilleFall {
    0%   { transform: translateY(-60px) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: .92; }
    92%  { opacity: .92; }
    100% { transform: translateY(720px) translateX(var(--drift, 30px)) rotate(200deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .feuille, .hero-automne__prop, .hero-automne__glow { animation: none; opacity: 1; }
}

.hero-automne__inner {
    position: relative; z-index: 4; width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 120px 60px 96px; display: flex; align-items: center; gap: 64px;
}
.hero-automne__content { flex: 1; }
.hero-automne__visual { flex: 0 0 420px; position: relative; animation: aut-slideUp .8s ease-out .5s both; }
.hero-automne__img-wrap { position: relative; border-radius: 4px; overflow: visible; }
.hero-automne__img-wrap > img {
    width: 100%; height: 480px; object-fit: cover; display: block; border-radius: 4px;
    border: 1px solid var(--aut-gold-line); box-shadow: 0 30px 60px rgba(0,0,0,.5);
}

.hero-automne__img-seal {
    position: absolute; bottom: -18px; left: -18px; width: 88px; height: 88px; border-radius: 50%;
    background: var(--aut-espresso); color: var(--aut-ivory); display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    box-shadow: 0 0 0 1px var(--aut-gold), 0 0 0 5px var(--aut-espresso), 0 0 0 6px var(--aut-gold-line), 0 10px 24px rgba(0,0,0,.5);
}
.hero-automne__img-seal span { font-family: 'Fraunces', serif; font-weight: 600; font-size: .78rem; letter-spacing: .04em; line-height: 1.3; }
.hero-automne__img-seal small { font-size: .56rem; letter-spacing: .08em; color: var(--aut-gold); text-transform: uppercase; margin-top: 3px; }

.hero-automne__badge {
    display: inline-flex; align-items: center; gap: 9px; background: rgba(244,233,216,.06);
    border: 1px solid var(--aut-gold-line); color: var(--aut-gold); padding: 8px 20px;
    border-radius: 30px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px;
    animation: aut-slideUp .8s ease-out .1s both;
}
.hero-automne__badge::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aut-gold); flex-shrink: 0;
}

.hero-automne__title {
    font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.14; letter-spacing: -.01em; color: var(--aut-ivory);
    animation: aut-slideUp .8s ease-out .25s both;
}
.title-saison {
    display: block; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
    font-size: .36em; color: var(--aut-gold); margin-top: 12px; letter-spacing: .02em;
}
.hero-automne__rule { width: 56px; height: 1px; background: var(--aut-gold-line); margin: 26px 0; animation: aut-slideUp .8s ease-out .4s both; }
.hero-automne__sub {
    font-size: 1.01rem; color: var(--aut-ivory-soft); margin: 0 0 36px; line-height: 1.75;
    max-width: 42ch; animation: aut-slideUp .8s ease-out .45s both;
}
@keyframes aut-slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-automne__ctas { display: flex; gap: 16px; flex-wrap: wrap; animation: aut-slideUp .8s ease-out .6s both; }
.btn-automne-main {
    background: var(--aut-gold); color: var(--aut-espresso); text-decoration: none; padding: 14px 32px;
    border-radius: 2px; font-weight: 600; font-size: .94rem; letter-spacing: .02em;
    transition: all .3s; display: inline-block; box-shadow: 0 10px 26px -8px rgba(198,161,91,.55);
}
.btn-automne-main:hover { background: #D6B679; transform: translateY(-2px); color: var(--aut-espresso); box-shadow: 0 14px 32px -8px rgba(198,161,91,.65); }
.btn-automne-ghost {
    background: transparent; color: var(--aut-ivory); border: 1px solid rgba(244,233,216,.35);
    text-decoration: none; padding: 13px 30px; border-radius: 2px; font-weight: 500;
    font-size: .94rem; letter-spacing: .02em; transition: all .3s; display: inline-block;
}
.btn-automne-ghost:hover { border-color: var(--aut-gold); color: var(--aut-gold); transform: translateY(-2px); }

.hero-automne__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 6; }
.hero-automne__scroll span { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--aut-gold-line); animation: aut-scrollDot 1.5s ease-in-out infinite; }
.hero-automne__scroll span:nth-child(2) { animation-delay: .2s; }
.hero-automne__scroll span:nth-child(3) { animation-delay: .4s; }
@keyframes aut-scrollDot { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

@media (max-width: 960px) {
    .hero-automne__visual { display: none; }
    .hero-automne__prop--maple { width: 46vw; right: -8%; bottom: -8%; opacity: .5; }
    .hero-automne__prop--acer, .hero-automne__prop--chene, .hero-automne__prop--orange { display: none; }
    .hero-automne__inner { padding: 130px 32px 90px; }
    .hero-automne__sub { max-width: 100%; }
}

/* ────────────────────────────────────────
   RUBAN — bouclage exact (2 blocs identiques, marge sur chaque bloc)
──────────────────────────────────────── */
.ruban-automne { background: var(--aut-espresso); overflow: hidden; padding: 15px 0; border-top: 1px solid var(--aut-gold-line); border-bottom: 1px solid var(--aut-gold-line); }
.ruban-automne__track { display: flex; width: max-content; animation: aut-ruban-defile 34s linear infinite; }
.ruban-automne__set { display: flex; align-items: center; flex-shrink: 0; margin-right: 56px; }
.ruban-automne__set span {
    display: inline-flex; align-items: center; gap: 14px; margin-right: 40px;
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: .92rem;
    color: var(--aut-ivory-soft); letter-spacing: .02em; white-space: nowrap;
}
.ruban-automne__set span::after {
    content: ""; width: 13px; height: 13px; margin-left: 14px; flex-shrink: 0;
    background: var(--aut-gold); opacity: .8;
    clip-path: path("M6.5 0C7.5 3 11 4.5 12.5 7C13.8 9.3 12 11.2 9.5 10.7C10 12.7 8.5 14.3 6.5 15C4.5 14.3 3 12.7 3.5 10.7C1 11.2 -0.8 9.3 0.5 7C2 4.5 5.5 3 6.5 0Z");
}
@keyframes aut-ruban-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ruban-automne__track { animation: none; } }

/* ────────────────────────────────────────
   SECTION "COMMENT ÇA MARCHE"
──────────────────────────────────────── */
.section-how-automne { padding: 80px 24px; background: var(--aut-bg-2); position: relative; }
.section-tag-automne {
    display: flex; align-items: center; gap: 8px; font-family: 'Fraunces', serif; font-style: italic;
    font-weight: 500; font-size: 1.02rem; color: var(--aut-primary); margin-bottom: 10px;
}
.section-tag-automne::before { content: "◆"; font-style: normal; font-size: .6rem; color: var(--aut-gold-d); }
.section-title-automne {
    font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--aut-ink); margin: 0 0 40px;
}
.how-grid-automne { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how-card-automne {
    position: relative; background: var(--aut-card); border: 1px solid var(--aut-border); border-radius: 8px;
    padding: 30px 22px 26px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, box-shadow .35s, border-color .3s;
    overflow: hidden;
}
.how-card-automne.revealed { opacity: 1; transform: translateY(0); }
.how-card-automne::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--aut-primary), var(--aut-gold)); transform: scaleX(0);
    transform-origin: left; transition: transform .4s ease;
}
.how-card-automne:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(59,36,21,.14); border-color: var(--aut-border-h); }
.how-card-automne:hover::before { transform: scaleX(1); }
.how-card-automne__num { position: absolute; top: 18px; right: 20px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.6rem; color: rgba(187,74,33,.14); }
.how-card-automne__icon { display: inline-flex; font-size: 1.5rem; margin-bottom: 14px; }
.how-card-automne h3 { font-family: 'Fraunces', serif; font-size: 1.08rem; margin: 0 0 8px; color: var(--aut-ink); }
.how-card-automne p { font-size: .92rem; line-height: 1.55; color: var(--aut-ink-soft); margin: 0; }

/* ────────────────────────────────────────
   CONFIGURATEUR — override des composants génériques
──────────────────────────────────────── */
.automne-page .section-perso { background: var(--aut-bg); }
.automne-page .section-title-automne { text-align: left; }

.automne-page .perso-left-visual { position: sticky; top: 130px; }
.automne-img-box {
    position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--aut-border);
    box-shadow: 0 16px 40px rgba(59,36,21,.14);
}
.automne-img-box::after {
    content: ''; position: absolute; inset: 12px; border: 1px solid rgba(244,233,216,.55);
    border-radius: 4px; pointer-events: none; z-index: 2; mix-blend-mode: overlay;
}
.automne-img-box::before {
    content: ''; position: absolute; top: 20px; left: 20px; width: 30px; height: 30px;
    border-top: 2.5px solid var(--aut-gold); border-left: 2.5px solid var(--aut-gold); z-index: 3; pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.selector-block { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.selector-block.revealed { opacity: 1; transform: translateY(0); }
.automne-page .selector-label { font-family: 'Fraunces', serif; font-weight: 600; color: var(--aut-ink); }
.selector-opt-label { font-weight: 400; font-size: .8em; color: var(--aut-ink-soft); }
.automne-page .required { color: var(--aut-primary); }

.automne-page .fabric-card {
    background: var(--aut-card); border: 2px solid transparent; border-radius: 8px;
    padding: 12px; text-align: center; cursor: pointer; transition: all .3s; position: relative;
}
.automne-page .fabric-card:hover { border-color: var(--aut-border-h); transform: translateY(-2px); }
.automne-page .fabric-card.selected { border-color: var(--aut-primary); background: var(--aut-tint); }
.automne-page .fabric-img { background: var(--aut-bg-2); }
.automne-page .fabric-name { color: var(--aut-ink); }
.automne-page .fabric-price { color: var(--aut-primary); }
.automne-page .fabric-material { color: rgba(59,36,21,.72); }
.automne-page .fabric-card .fabric-check { background: var(--aut-primary); color: #fff; }

.automne-page .size-option, .automne-page .color-option {
    background: var(--aut-card); border: 2px solid var(--aut-border); border-radius: 8px; transition: all .3s;
}
.automne-page .size-option:hover, .automne-page .color-option:hover { border-color: var(--aut-border-h); }
.automne-page .size-option.selected, .automne-page .color-option.selected { border-color: var(--aut-primary); background: var(--aut-tint); }
.automne-page .size-option span, .automne-page .color-option span { color: var(--aut-ink); }

.automne-shipping-info {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; padding: 16px 18px;
    background: var(--aut-card); border: 1px solid var(--aut-border); border-radius: 8px;
}
.automne-shipping-item { font-size: .84rem; color: var(--aut-ink-soft); line-height: 1.6; }
.automne-shipping-item strong { color: var(--aut-ink); }

.automne-page .cart-section {
    background: var(--aut-card) !important; border: 1px solid var(--aut-border) !important; border-radius: 8px !important;
    box-shadow: 0 14px 36px rgba(59,36,21,.12) !important;
}
.automne-page .price-value { color: var(--aut-primary) !important; font-family: 'Fraunces', serif !important; }
.automne-page .price-currency { color: var(--aut-gold-d) !important; }
.automne-page .qty-selector { background: var(--aut-bg-2) !important; }
.automne-page .qty-btn { color: var(--aut-primary) !important; }
.automne-page #qte { color: var(--aut-ink) !important; }
.automne-page .btn-cart { background: var(--aut-primary) !important; border-radius: 4px !important; box-shadow: 0 8px 20px -6px rgba(187,74,33,.5) !important; }
.automne-page .btn-cart:hover { background: var(--aut-primary-h) !important; }

.back-section { text-align: center; padding: 44px 32px; background: var(--aut-bg); border-top: 1px solid var(--aut-border); }
.automne-page .btn-back {
    display: inline-block; padding: 11px 28px; background: transparent; color: var(--aut-ink-soft);
    border: 1px solid var(--aut-border); border-radius: 2px; font-size: 13px; text-decoration: none;
    transition: color .2s, border-color .2s;
}
.automne-page .btn-back:hover { color: var(--aut-primary); border-color: var(--aut-border-h); text-decoration: none; }

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 1100px) {
    .automne-page .perso-flex-container { flex-direction: column; gap: 40px; }
    .automne-page .perso-left-visual { position: sticky; top: 80px; z-index: 10; width: 100%; max-width: 100%; padding-bottom: 15px; }
    .automne-page .perso-right-selectors { width: 100%; }
    .section-perso { padding: 60px 20px; }
    .automne-page .image-thumbnails { display: none; }
}
@media (max-width: 768px) {
    .hero-automne__inner { padding: 110px 20px 76px; flex-direction: column; gap: 8px; align-items: flex-start; }
    .hero-automne__title { font-size: clamp(2rem, 7vw, 2.6rem); }
    .hero-automne__sub { font-size: .92rem; margin: 0 0 22px; }
    .hero-automne__ctas { flex-direction: column; gap: 10px; width: 100%; }
    .hero-automne .btn-automne-main, .hero-automne .btn-automne-ghost { display: block; width: 100%; text-align: center; }
    .hero-automne__scroll { display: none; }
    .automne-page .size-options { flex-direction: column; }
    .automne-page .size-option { flex: none; width: 100%; }
    .how-grid-automne { gap: 16px; }
}
@media (max-width: 480px) {
    .automne-page .cart-section { flex-direction: column !important; padding: 24px 20px !important; gap: 20px !important; }
    .section-perso { padding: 48px 16px; }
    .section-title-automne { font-size: clamp(18px, 5vw, 26px); margin-bottom: 28px; }
    .how-card-automne { width: 100%; max-width: 100%; padding: 26px 18px 20px; }
    .section-how-automne { padding: 48px 16px; }
    .back-section { padding: 32px 20px; }
}
