/* ============================================================
   YAF Art — Feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Noto+Sans+Tifinagh&display=swap');

/* ─── Variables ─── */
:root {
  --bg:           #f8f5f0;
  --bg-card:      #ffffff;
  --text:         #2c2c2c;
  --text-muted:   #7a7a7a;
  --border:       #e8e0d5;
  --gold:         #c9a84c;
  --gold-dark:    #a5872e;
  --nav-bg:       #0f0f1e;
  --footer-bg:    #0a0a18;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --container:    1400px;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 20px rgba(0,0,0,.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.15);
  --transition:   all .3s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: var(--font-body); background: var(--bg); color: var(--text);
        line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
a     { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
img   { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.3; font-weight: 600; }
p     { margin-bottom: 1rem; }

/* ─── Container ─── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ─── Navigation ─── */
.site-header { background: var(--nav-bg); position: sticky; top: 0; z-index: 1000;
               box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-inner   { display: flex; align-items: center; justify-content: space-between;
               padding: 1rem 2rem; max-width: var(--container); margin: 0 auto; }
.site-logo        { color: var(--gold); text-decoration: none;
                    display: inline-flex; align-items: center; gap: .5rem; }
.site-logo:hover  { color: var(--gold-dark); }
.logo-tifinagh    { font-family: 'Noto Sans Tifinagh', 'Tifinagh IRCAM Unicode', 'FreeMono', sans-serif;
                    font-size: 2.2rem; line-height: 1; }
.logo-text        { font-family: var(--font-display); font-size: 1.2rem;
                    font-style: italic; letter-spacing: 1px; line-height: 1; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,.8); font-size: .88rem; letter-spacing: .8px;
               text-transform: uppercase; position: relative; white-space: nowrap; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0;
                      height:1px; background:var(--gold); transition: width .3s; }
.nav-links a:hover  { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* ─── Dropdown catégories ─── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle { display: flex; align-items: center; cursor: pointer; }
.nav-dropdown-toggle::after { display: none; } /* masquer le soulignement */

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 10px;
    min-width: 520px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    z-index: 2000;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateX(-50%) translateY(-6px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open  .nav-dropdown-toggle svg { transform: rotate(180deg); }

/* Flèche pointant vers le haut */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(201,168,76,.25);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 10px;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    border-radius: 6px;
    color: rgba(255,255,255,.75) !important;
    font-size: .83rem;
    letter-spacing: .5px;
    text-transform: none !important;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-dropdown-item::after { display: none !important; }
.nav-dropdown-item:hover {
    background: rgba(201,168,76,.12);
    color: var(--gold) !important;
}

.nav-dropdown-count {
    background: rgba(201,168,76,.2);
    color: var(--gold);
    font-size: .68rem;
    padding: .1rem .4rem;
    border-radius: 20px;
    margin-left: .5rem;
    font-weight: 700;
}

.nav-dropdown-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .75rem 1.25rem;
    text-align: center;
}
.nav-dropdown-footer a {
    color: var(--gold) !important;
    font-size: .8rem;
    letter-spacing: 1px;
    text-transform: uppercase !important;
}
.nav-dropdown-footer a::after { display: none !important; }

.nav-cart { position: relative; color: white; }
.cart-badge { position:absolute; top:-8px; right:-8px; background:var(--gold); color:var(--nav-bg);
              border-radius:50%; width:18px; height:18px; font-size:.65rem;
              display:flex; align-items:center; justify-content:center; font-weight:700; }
.nav-toggle { display:none; background:none; border:none; color:white; font-size:1.5rem; cursor:pointer; }

/* ─── Buttons ─── */
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.75rem;
       border-radius:4px; font-size:.88rem; letter-spacing:.8px; text-transform:uppercase;
       font-weight:700; transition:var(--transition); border:2px solid transparent; cursor:pointer; }
.btn-primary { background:var(--gold); color:#0f0f1e; border-color:var(--gold); }
.btn-primary:hover { background:var(--gold-dark); border-color:var(--gold-dark); color:white;
                     transform:translateY(-2px); box-shadow:0 8px 25px rgba(201,168,76,.4); }
.btn-outline { background:transparent; color:white; border-color:rgba(255,255,255,.4); }
.btn-outline:hover { border-color:white; background:rgba(255,255,255,.08); color:white; }
.btn-outline-gold { background:transparent; color:var(--gold); border-color:var(--gold); }
.btn-outline-gold:hover { background:var(--gold); color:#0f0f1e; }

/* ─── Hero ─── */
.hero { position:relative; min-height:80vh; display:flex; flex-direction:column;
        align-items:center; justify-content:center;
        text-align:center; overflow:hidden; background:#0f0f1e; }

/* ─── Carrousel ─── */
.hero-carousel { position:absolute; inset:0; }
.hero-slide { position:absolute; inset:0;
              background-size:cover; background-position:center;
              opacity:0; transition:opacity 1.2s ease; will-change:opacity; }
.hero-slide.active { opacity:1; }
.hero-overlay { position:absolute; inset:0;
                background:linear-gradient(to bottom,
                    rgba(10,10,25,.65) 0%,
                    rgba(10,10,25,.50) 50%,
                    rgba(10,10,25,.75) 100%); }

/* ─── Indicateurs ─── */
.hero-dots { position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
             display:flex; gap:.6rem; z-index:2; }
.hero-dot  { width:10px; height:10px; border-radius:50%; border:2px solid rgba(255,255,255,.5);
             background:transparent; cursor:pointer; padding:0; transition:all .3s; }
.hero-dot.active { background:var(--gold); border-color:var(--gold); transform:scale(1.3); }

.hero-content  { position:relative; z-index:1; max-width:800px; padding:2rem 2rem 1rem; flex-shrink:0; }
.hero-label    { font-size:.78rem; letter-spacing:4px; text-transform:uppercase; color:var(--gold); margin-bottom:1.5rem; }
.hero-title    { font-family:var(--font-display); font-size:clamp(2.5rem,6vw,5rem); color:white;
                 line-height:1.2; margin-bottom:1.5rem; }
.hero-title em { color:var(--gold); font-style:italic; }
.hero-subtitle { font-size:1.05rem; color:rgba(255,255,255,.7); margin-bottom:2.5rem; font-weight:300; }
.hero-buttons  { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ─── Stats bar ─── */
.stats-bar  { background:var(--nav-bg); padding:3rem 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; text-align:center; }
.stat-item  { color:white; }
.stat-number{ font-family:var(--font-display); font-size:2.5rem; color:var(--gold);
              display:block; line-height:1; margin-bottom:.5rem; }
.stat-label { font-size:.78rem; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,.5); }

/* ─── Section ─── */
.section { padding:6rem 0; }
.section-alt { background:white; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-label  { font-size:.75rem; letter-spacing:3px; text-transform:uppercase; color:var(--gold); margin-bottom:1rem; }
.section-title  { font-size:clamp(1.8rem,3vw,2.8rem); color:var(--text); margin-bottom:1rem; }
.section-subtitle { color:var(--text-muted); font-size:1.05rem; max-width:600px; margin:0 auto; }
.section-divider { width:60px; height:2px; background:var(--gold); margin:1.5rem auto 0; }

/* ─── How it works ─── */
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; }
.step-card  { text-align:center; padding:2rem 1.5rem; }
.step-number{ font-family:var(--font-display); font-size:3rem; color:var(--gold); opacity:.3;
              line-height:1; margin-bottom:1rem; }
.step-card h3 { font-size:1.05rem; margin-bottom:.75rem; }
.step-card p  { color:var(--text-muted); font-size:.9rem; }

/* ─── Painting card ─── */
.paintings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:2rem; }
.painting-card  { background:white; border-radius:var(--radius-lg); overflow:hidden;
                  box-shadow:var(--shadow); transition:var(--transition); }
.painting-card:hover { box-shadow:var(--shadow-hover); transform:translateY(-4px); }
.painting-card-image { position:relative; overflow:hidden; aspect-ratio:3/4; background:#f5f0eb; }
.painting-card-image img { width:100%; height:100%; object-fit:contain; transition:transform .4s; }
.painting-card:hover .painting-card-image img { transform:scale(1.03); }
.painting-placeholder { width:100%; height:100%; display:flex; align-items:center;
                         justify-content:center; flex-direction:column; gap:.5rem; }
.painting-card-overlay { position:absolute; inset:0; background:rgba(15,15,30,.6);
                          display:flex; align-items:center; justify-content:center;
                          opacity:0; transition:var(--transition); }
.painting-card:hover .painting-card-overlay { opacity:1; }
.painting-card-overlay .btn { transform:translateY(10px); transition:all .3s; }
.painting-card:hover .painting-card-overlay .btn { transform:translateY(0); }
.painting-card-badge { position:absolute; top:1rem; left:1rem; background:var(--gold); color:#0f0f1e;
                        font-size:.7rem; letter-spacing:1px; text-transform:uppercase;
                        padding:.25rem .6rem; border-radius:3px; font-weight:700; }
.bestseller-rank { position:absolute; top:1rem; left:1rem;
                   width:2.2rem; height:2.2rem; border-radius:50%;
                   background:var(--gold); color:#0f0f1e;
                   font-size:.85rem; font-weight:900; font-family:var(--font-display);
                   display:flex; align-items:center; justify-content:center;
                   box-shadow:0 2px 8px rgba(0,0,0,.3); }
.painting-card-body     { padding:1.25rem; }
.painting-card-category { font-size:.72rem; letter-spacing:2px; text-transform:uppercase;
                           color:var(--gold); margin-bottom:.5rem; }
.painting-card-title    { font-family:var(--font-display); font-size:1.1rem; margin-bottom:.75rem; }
.painting-card-price    { font-weight:700; }
.painting-card-price .from { font-weight:300; font-size:.8rem; color:var(--text-muted); margin-right:.25rem; }

/* ─── Category card ─── */
.categories-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:1.5rem; }
.category-card { background:white; border-radius:var(--radius-lg); padding:2rem 1.5rem; text-align:center;
                  box-shadow:var(--shadow); transition:var(--transition); border:2px solid transparent; }
.category-card:hover { border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.category-icon  { width:56px; height:56px; background:linear-gradient(135deg,var(--gold),var(--gold-dark));
                   border-radius:50%; display:flex; align-items:center; justify-content:center;
                   font-size:1.3rem; margin:0 auto 1rem; }
.category-name  { font-family:var(--font-display); font-size:.95rem; margin-bottom:.25rem; color:var(--text); }
.category-count { font-size:.8rem; color:var(--text-muted); }

/* ─── Gallery page ─── */
.gallery-layout { display:grid; grid-template-columns:260px 1fr; gap:2rem; align-items:start; }
.gallery-sidebar { background:white; border-radius:var(--radius-lg); padding:1.5rem;
                   box-shadow:var(--shadow); position:sticky; top:80px; }
.sidebar-title  { font-family:var(--font-display); font-size:1.05rem; margin-bottom:1rem;
                   padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.sidebar-section { margin-bottom:1.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border); }
.sidebar-section:last-child { border-bottom:none; margin-bottom:0; }
.sidebar-section-title { font-size:.72rem; letter-spacing:2px; text-transform:uppercase;
                          color:var(--text-muted); margin-bottom:.75rem; }
.filter-list    { list-style:none; }
.filter-list li { padding:.35rem 0; }
.filter-list a  { color:var(--text); font-size:.9rem; display:flex; justify-content:space-between; align-items:center; }
.filter-list a:hover, .filter-list a.active { color:var(--gold); }
.filter-list .count { background:var(--bg); border-radius:20px; padding:.1rem .5rem;
                       font-size:.72rem; color:var(--text-muted); }
.gallery-toolbar { display:flex; align-items:center; justify-content:space-between;
                   margin-bottom:1.5rem; gap:1rem; flex-wrap:wrap; }
.gallery-count   { color:var(--text-muted); font-size:.9rem; }
.gallery-sort select { padding:.5rem 1rem; border:1px solid var(--border); border-radius:var(--radius);
                        font-family:var(--font-body); font-size:.9rem; background:white; cursor:pointer; }

/* ─── Painting detail ─── */
.painting-detail { display:grid; grid-template-columns:1fr 1fr; gap:4rem;
                   align-items:start; padding:4rem 0; }
.painting-main-image { border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-hover); cursor:zoom-in; }
.painting-main-image img { width:100%; aspect-ratio:3/4; object-fit:contain; background:#f5f0eb; }
.painting-category-tag { display:inline-block; font-size:.7rem; letter-spacing:2px; text-transform:uppercase;
                          color:var(--gold); border:1px solid var(--gold); padding:.25rem .75rem;
                          border-radius:20px; margin-bottom:1rem; }
.painting-title { font-size:clamp(1.8rem,3vw,2.5rem); margin-bottom:1rem; }
.painting-technique { color:var(--text-muted); font-size:.9rem; margin-bottom:1.5rem; font-style:italic; }
.painting-description { color:var(--text-muted); line-height:1.9; margin-bottom:2rem;
                         padding-bottom:2rem; border-bottom:1px solid var(--border); }
.dimension-selector h3, .frame-selector h3 { font-size:.82rem; letter-spacing:2px; text-transform:uppercase;
                                              color:var(--text-muted); margin-bottom:1rem; }
.dimension-options { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; margin-bottom:1.5rem; }
.dimension-option { display:none; }
.dimension-option + label { display:block; padding:.75rem 1rem; border:2px solid var(--border);
                             border-radius:var(--radius); cursor:pointer; transition:var(--transition); text-align:center; }
.dimension-option:checked + label { border-color:var(--gold); background:rgba(201,168,76,.08); }
.dimension-option + label .dim-size  { font-size:.82rem; font-weight:700; display:block; }
.dimension-option + label .dim-price { font-size:.95rem; color:var(--gold); font-weight:700; }
.frame-options { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.frame-option input    { display:none; }
.frame-option label    { padding:.45rem .9rem; border:1px solid var(--border); border-radius:20px;
                          cursor:pointer; font-size:.82rem; transition:var(--transition); color:var(--text); }
.frame-option input:checked + label { border-color:var(--gold); background:var(--gold); color:#0f0f1e; }
.price-display { font-size:2rem; font-family:var(--font-display); margin-bottom:1.5rem; }
.price-display .currency { font-size:1rem; color:var(--text-muted); margin-right:.25rem; }
.add-to-cart-btn { width:100%; padding:1rem; font-size:1rem; margin-bottom:.5rem; }

/* ─── Cart ─── */
.cart-layout { display:grid; grid-template-columns:1fr 340px; gap:2rem; align-items:start; }
.cart-items   { background:white; border-radius:var(--radius-lg); padding:1.5rem; box-shadow:var(--shadow); }
.cart-item    { display:grid; grid-template-columns:80px 1fr auto; gap:1rem; align-items:center;
                padding:1rem 0; border-bottom:1px solid var(--border); }
.cart-item:last-child { border-bottom:none; }
.cart-item-image { width:80px; height:60px; border-radius:var(--radius); overflow:hidden; background:var(--bg); }
.cart-item-image img { width:100%; height:100%; object-fit:cover; }
.cart-item-name    { font-family:var(--font-display); font-size:.95rem; margin-bottom:.25rem; }
.cart-item-details { font-size:.78rem; color:var(--text-muted); }
.cart-item-price   { font-weight:700; text-align:right; }
.cart-item-remove  { color:#cc4444; font-size:.8rem; cursor:pointer; background:none; border:none; }
.cart-summary { background:white; border-radius:var(--radius-lg); padding:1.5rem;
                box-shadow:var(--shadow); position:sticky; top:80px; }
.summary-row  { display:flex; justify-content:space-between; padding:.5rem 0; font-size:.9rem; color:var(--text-muted); }
.summary-row.total { font-size:1.2rem; font-weight:700; color:var(--text);
                     border-top:2px solid var(--border); margin-top:.5rem; padding-top:1rem; }

/* ─── Checkout ─── */
.checkout-layout { display:grid; grid-template-columns:1fr 380px; gap:2rem; align-items:start; }
.form-card { background:white; border-radius:var(--radius-lg); padding:2rem;
             box-shadow:var(--shadow); margin-bottom:1.5rem; }
.form-card h3 { font-family:var(--font-display); font-size:1.15rem; margin-bottom:1.5rem;
                padding-bottom:1rem; border-bottom:1px solid var(--border); }
.form-group   { margin-bottom:1.25rem; }
.form-group label { display:block; font-size:.83rem; font-weight:700; color:var(--text); margin-bottom:.5rem; }
.form-group input,
.form-group select,
.form-group textarea { width:100%; padding:.75rem 1rem; border:1.5px solid var(--border);
                        border-radius:var(--radius); font-family:var(--font-body); font-size:.95rem;
                        color:var(--text); background:white; transition:border-color .2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline:none; border-color:var(--gold); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ─── Page header ─── */
.page-header { background:linear-gradient(135deg,var(--nav-bg) 0%,#1a1a3e 100%);
               padding:4rem 0; text-align:center; margin-bottom:0; }
.page-header h1 { font-size:clamp(2rem,4vw,3rem); color:white; margin-bottom:.5rem; }
.page-header p  { color:rgba(255,255,255,.6); margin:0; }

/* ─── Breadcrumb ─── */
.breadcrumb-bar { background:white; border-bottom:1px solid var(--border); padding:.75rem 0; }
.breadcrumb     { display:flex; align-items:center; gap:.5rem; font-size:.83rem; color:var(--text-muted); }
.breadcrumb a   { color:var(--text-muted); }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb .separator { opacity:.4; }

/* ─── Pagination ─── */
.pagination { display:flex; justify-content:center; gap:.5rem; margin-top:3rem; }
.pagination a,
.pagination span { display:inline-flex; align-items:center; justify-content:center;
                   width:40px; height:40px; border-radius:var(--radius);
                   border:1.5px solid var(--border); color:var(--text); font-size:.9rem;
                   transition:var(--transition); background:white; }
.pagination a:hover    { border-color:var(--gold); color:var(--gold); }
.pagination .current   { background:var(--gold); border-color:var(--gold); color:#0f0f1e; font-weight:700; }

/* ─── Flash messages ─── */
.flash-message { padding:1rem 1.5rem; border-radius:var(--radius); margin-bottom:1.5rem;
                 font-size:.95rem; border-left:4px solid; }
.flash-success { background:#f0fff4; border-color:#38a169; color:#276749; }
.flash-error   { background:#fff5f5; border-color:#e53e3e; color:#c53030; }
.flash-info    { background:#ebf8ff; border-color:#4299e1; color:#2b6cb0; }

/* ─── Empty state ─── */
.empty-state { text-align:center; padding:4rem 2rem; color:var(--text-muted); }
.empty-state h3 { font-size:1.3rem; margin-bottom:.75rem; color:var(--text); }

/* ─── Order success ─── */
.order-success { text-align:center; padding:4rem 2rem; max-width:640px; margin:0 auto; }
.order-success-icon { width:80px; height:80px; background:#f0fff4; border-radius:50%;
                       display:flex; align-items:center; justify-content:center;
                       margin:0 auto 2rem; font-size:2rem; color:#38a169; }

/* ─── Footer ─── */
.site-footer { background:var(--footer-bg); color:rgba(255,255,255,.7); padding:4rem 0 2rem; margin-top:auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-brand .site-logo { font-size:3rem; margin-bottom:1rem; display:block; }
.footer-brand p { font-size:.88rem; line-height:1.9; }
.footer-col h4  { color:white; font-size:.78rem; letter-spacing:2px; text-transform:uppercase; margin-bottom:1.25rem; }
.footer-links   { list-style:none; }
.footer-links li { margin-bottom:.6rem; }
.footer-links a  { color:rgba(255,255,255,.6); font-size:.88rem; }
.footer-links a:hover { color:var(--gold); }
.footer-bottom  { border-top:1px solid rgba(255,255,255,.1); padding-top:2rem;
                  display:flex; justify-content:space-between; align-items:center; font-size:.83rem; }

/* ─── Lightbox ─── */
.lightbox       { position:fixed; inset:0; background:rgba(0,0,0,.9); z-index:9999;
                  display:none; align-items:center; justify-content:center; }
.lightbox.active { display:flex; }
.lightbox-close  { position:absolute; top:1rem; right:1.5rem; color:white; font-size:2.5rem;
                   cursor:pointer; background:none; border:none; line-height:1; }
.lightbox img    { max-height:90vh; max-width:90vw; object-fit:contain; border-radius:4px; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-sidebar { position: static; }
  .painting-detail { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .steps-grid  { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links { display:none; position:absolute; top:100%; left:0; right:0;
               background:var(--nav-bg); flex-direction:column; padding:1rem 2rem;
               gap:1rem; border-top:1px solid rgba(255,255,255,.1); }
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  .nav-inner  { position:relative; }

  /* Dropdown en mode mobile : liste verticale inline */
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    display: none;
    opacity: 1;
    pointer-events: auto;
    padding: .5rem 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .nav-dropdown-item { padding: .5rem .75rem; }
  .nav-dropdown-footer { text-align: left; padding: .5rem .75rem; }

  .paintings-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap:1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container  { padding: 0 1rem; }
  .section    { padding: 4rem 0; }
  .hero       { min-height: 60vh; flex-direction: column; justify-content: center; gap: 0; }
  .hero-dots  { position: static; transform: none; margin-bottom: 1.5rem; z-index: 2; }
  .hero-content { padding: 2rem 1.5rem .75rem; }
  .cart-item  { grid-template-columns: 60px 1fr; }
  .cart-item-price { grid-column: 2; }
}

@media (max-width: 480px) {
  .dimension-options { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
