/* =====================================================
   IMAD1K2 – style.css
   Palette : noir, blanc, beige, gris
   Typo : Cormorant Garamond (titres) + Jost (texte, catalogue)
   Mobile first : 0 → 640 → 900 → 1200 px
   ===================================================== */

/* ---------- 1. Variables ---------- */
:root {
    --black: #121212;
    --white: #ffffff;
    --beige: #ece4d8;
    --beige-light: #f6f2ec;
    --grey: #8a8a86;
    --grey-light: #e6e3de;
    --grey-dark: #3b3b39;
    --whatsapp: #1fa855;
    --whatsapp-dark: #178a45;
    --danger: #b3261e;
  
    --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  
    --header-h: 64px;
    --radius: 2px;
    --ease: 0.25s ease;
    --max: 1280px;
  }
  
  /* ---------- 2. Reset et base ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
  }
  body.no-scroll { overflow: hidden; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; margin: 0; padding: 0; }
  h1, h2, h3, p { margin: 0; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  [hidden] { display: none !important; }
  
  :focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
  .section-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--white); }
  
  .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  
  /* ---------- 3. Boutons et liens ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: background var(--ease), color var(--ease), border-color var(--ease);
  }
  .btn-block { width: 100%; }
  .btn-dark { background: var(--black); color: var(--white); }
  .btn-dark:hover { background: var(--grey-dark); }
  .btn-light { background: var(--white); color: var(--black); }
  .btn-light:hover { background: var(--beige); }
  .btn-outline-light { border-color: var(--white); color: var(--white); }
  .btn-outline-light:hover { background: var(--white); color: var(--black); }
  .btn-whatsapp { background: var(--whatsapp); color: var(--white); }
  .btn-whatsapp:hover { background: var(--whatsapp-dark); }
  
  .link-underline {
    font-size: 0.9rem; font-weight: 500;
    border-bottom: 1px solid currentColor; padding-bottom: 2px;
    transition: opacity var(--ease);
  }
  .link-underline:hover { opacity: 0.6; }
  .link-underline.light { color: var(--white); }
  
  .icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    transition: background var(--ease);
  }
  .icon-btn:hover { background: var(--beige-light); }
  
  /* ---------- 4. Barre promo ---------- */
  .promo-bar {
    background: var(--black); color: var(--white);
    text-align: center; padding: 9px 16px;
    font-size: 0.78rem; letter-spacing: 0.04em;
  }
  
  /* ---------- 5. Header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
  }
  .header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: var(--header-h);
  }
  .menu-toggle { justify-self: start; margin-left: -10px; }
  .logo {
    font-family: var(--font-title); font-weight: 600;
    font-size: 1.75rem; letter-spacing: 0.14em; line-height: 1;
  }
  .logo-light { color: var(--white); }
  .footer-logo { display: inline-block; }
  .footer-logo img { display: block; height: 40px; width: auto; max-width: 100%; }   /* ← taille du logo en bas du site */
  .header-actions { display: flex; justify-content: flex-end; gap: 2px; margin-right: -10px; }
  
  .cart-count {
    position: absolute; top: 3px; right: 1px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 600; line-height: 1;
    background: var(--black); color: var(--white); border-radius: 9px;
  }
  .cart-count.bump { animation: bump 0.35s ease; }
  @keyframes bump { 50% { transform: scale(1.35); } }
  
  /* Navigation mobile : panneau déroulant */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .main-nav.is-open { max-height: 420px; visibility: visible; }
  .main-nav a {
    display: block; padding: 15px 20px;
    font-size: 0.95rem; font-weight: 500;
    border-top: 1px solid var(--grey-light);
  }
  .main-nav a:hover { background: var(--beige-light); }
  
  /* Recherche */
  .search-panel { background: var(--beige-light); border-top: 1px solid var(--grey-light); padding: 14px 0; }
  .search-panel input {
    width: 100%; padding: 13px 16px; font-size: 1rem;
    background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius);
  }
  .search-panel input:focus { outline: none; border-color: var(--black); }
  
  /* ---------- 6. Bannière ---------- */
  .hero {
    position: relative; display: flex; align-items: flex-end;
    min-height: 78vh; min-height: 78svh;
    background: var(--grey-dark); color: var(--white); overflow: hidden;
  }
  .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  /* Diaporama : fondu doux et flou + léger zoom */
  .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }
  .hero-lane { position: relative; width: 100%; height: 100%; }   /* image affichée avant le chargement du script */
  .hero-lane img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
  .hero-track {
    display: flex; height: 100%; width: max-content;
    animation: heroScroll var(--hero-speed, 60s) linear infinite;
  }
  .hero-track img {
    flex: 0 0 auto; height: 100%; width: 80vw;          /* téléphone : une photo presque pleine largeur */
    margin-right: 2px; object-fit: cover; object-position: center 15%;
  }
  @media (min-width: 900px) {
    .hero-track img { width: calc(100vw / 3); }          /* ordinateur : 3 photos visibles */
  }
  @keyframes heroScroll { to { transform: translateX(-50%); } }
  .hero .hero-kicker { margin: 0 0 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
  .hero p strong { color: var(--white); }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.05) 100%);
  }
  .hero .hero-content { position: relative; padding-top: 60px; padding-bottom: 150px; }   /* ← espace sous les boutons (téléphone) */
  .hero h1 {
    font-family: var(--font-title); font-weight: 500;
    font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1.05; letter-spacing: 0.01em;
    max-width: 14ch;
  }
  .hero p { margin-top: 18px; max-width: 46ch; font-size: 1.02rem; color: rgba(255,255,255,0.88); }
  .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  
  /* ---------- 7. Réassurance ---------- */
  .reassurance { background: #000; color: #fff; border-bottom: 1px solid #222; }
  .reassurance .reassurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-top: 26px; padding-bottom: 26px; }
  .reassurance-grid div { display: flex; flex-direction: column; gap: 2px; }
  .reassurance-grid strong { font-size: 0.92rem; font-weight: 600; color: #fff; }
  .reassurance-grid span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
  
  /* ---------- 8. Sections ---------- */
  .section { padding: 56px 0; }
  .section-beige { background: var(--beige-light); }
  .section-dark { background: var(--black); color: var(--white); }
  .section-head { margin-bottom: 30px; }
  .section-head h2 {
    font-family: var(--font-title); font-weight: 500;
    font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1;
  }
  /* Titres de section (Nos catégories, Nouveautés, Catalogue, Collections) : police moderne */
  #categories .section-head h2,
  #nouveautes .section-head h2,
  #catalogue .section-head h2,
  #collections .section-head h2 {
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; text-transform: uppercase;
  }
  .section-head p { margin-top: 8px; color: var(--grey-dark); }
  .section-dark .section-head p { color: rgba(255,255,255,0.7); }
  .section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .section-head-row .link-underline { white-space: nowrap; margin-bottom: 6px; }
  
  /* ---------- 9. Catégories ---------- */
  .category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Téléphone : si le nombre de catégories est impair, la dernière prend toute la largeur */
  .category-grid .category-card:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 2 / 1; }
  /* Cartes catégories avec icône */
  .category-card {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    aspect-ratio: 1 / 1; overflow: hidden;
    background: #141414; color: #ffffff;               /* ← fond gris très foncé, icône et texte blancs */
    transition: background 0.35s ease;
  }
  .category-card:hover { background: #262626; }       /* survol : gris un peu plus clair */
  .category-icon {
    width: 42%; max-width: 110px; height: auto;
    fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.4s ease;
  }
  .category-card:hover .category-icon { transform: translateY(-4px) scale(1.06); }
  .category-card span {
    font-family: "Space Grotesk", "Jost", Arial, sans-serif;
    font-size: 1.05rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    text-align: center; padding: 0 10px; line-height: 1.2;   /* noms longs (« Appareils électroniques ») sur 2 lignes */
  }
  
  /* ---------- 10. Grilles produits ---------- */
  .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .product-card { display: flex; flex-direction: column; }
  .product-media {
    position: relative; display: block; width: 100%;
    aspect-ratio: 3 / 4; overflow: hidden;
    background: var(--beige); text-align: left;
  }
  .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .product-media .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
  .product-card:hover .img-hover { opacity: 1; }
  .product-card:hover .product-media img { transform: scale(1.03); }
  
  .product-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    padding: 4px 10px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--black); color: var(--white);
  }
  .product-badge.badge-sale { background: var(--white); color: var(--black); }
  .product-badge.badge-soldout { background: #8a8a86; color: var(--white); }
  .product-card.is-soldout .product-media img { filter: grayscale(0.6); opacity: 0.75; }
  #modalAddBtn:disabled { opacity: 0.55; cursor: not-allowed; }
  .product-demo-tag {
    position: absolute; bottom: 8px; left: 8px; z-index: 1;
    padding: 2px 8px; font-size: 0.65rem; background: rgba(255,255,255,0.9); color: var(--grey-dark);
  }
  
  .product-quick {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 12px; text-align: center;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(255,255,255,0.95); color: var(--black);
    transform: translateY(100%); transition: transform var(--ease);
  }
  .product-card:hover .product-quick,
  .product-card:focus-within .product-quick { transform: translateY(0); }
  
  .product-info { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
  .product-cat { font-size: 0.76rem; color: var(--grey); }
  .product-name {   /* nom de l'article sur les cartes : police moderne */
    font-family: "Space Grotesk", "Jost", Arial, sans-serif;
    font-size: 0.95rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.01em;
  }
  .product-name a:hover { text-decoration: underline; }
  .product-price { margin-top: 4px; font-size: 0.98rem; font-weight: 600; }
  .product-old-price { margin-left: 8px; font-weight: 400; color: var(--grey); text-decoration: line-through; }
  .product-swatches { display: flex; gap: 6px; margin-top: 8px; }
  .swatch {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid var(--grey-light); background: var(--swatch, var(--grey));
  }
  
  /* Catalogue : outils */
  .catalog-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto; padding: 9px 18px; font-size: 0.85rem;
    border: 1px solid var(--grey-light); border-radius: 999px;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
  }
  .filter-btn:hover { border-color: var(--black); }
  .filter-btn.is-active { background: var(--black); border-color: var(--black); color: var(--white); }
  .sort-box { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
  .sort-box select {
    padding: 9px 12px; background: var(--white);
    border: 1px solid var(--grey-light); border-radius: var(--radius);
  }
  .result-count { font-size: 0.85rem; color: var(--grey); margin-bottom: 18px; }
  /* ---------- Avis clients (style « La voix de nos clients ») ---------- */
  .reviews-section { background: linear-gradient(to bottom, #ffffff 0%, #fbf5e4 30%, #f3e3b6 100%); }   /* dégradé doré */
  .reviews-head { text-align: center; margin-bottom: 30px; }
  .reviews-head h2 {
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px;
  }
  .reviews-rating { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .reviews-rating-line { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
  .reviews-rating-sub { font-style: italic; color: var(--grey-dark); }

  /* Étoiles dans des carrés verts (remplissage partiel possible, ex. 4,9) */
  .star-boxes { display: inline-flex; gap: 3px; }
  .star-box {
    --fill: 100%;
    width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; line-height: 1;
    background: linear-gradient(90deg, #d4a93c var(--fill), #dcdce6 var(--fill));   /* étoiles dorées */
  }
  .star-boxes.is-small .star-box { width: 20px; height: 20px; font-size: 13px; }
  .star-boxes.is-large .star-box { width: 34px; height: 34px; font-size: 22px; }

  /* Cartes : défilement automatique continu vers la gauche (pause au survol) */
  .reviews-track { overflow: hidden; padding: 4px 0 14px; }
  .reviews-marquee {
    display: flex; width: max-content;
    animation: reviewsScroll var(--reviews-speed, 40s) linear infinite;
  }
  .reviews-track:hover .reviews-marquee { animation-play-state: paused; }   /* pause pour lire */
  @keyframes reviewsScroll { to { transform: translateX(-50%); } }
  /* « Voir plus » : grille fixe avec tous les avis, sans défilement ni doublons */
  .reviews-track.is-expanded { overflow: visible; }
  .reviews-track.is-expanded .reviews-marquee {
    display: grid; grid-template-columns: 1fr; gap: 16px; width: auto; animation: none;
  }
  .reviews-track.is-expanded .review-card { width: auto; margin-right: 0; }
  .reviews-track.is-expanded .review-card[aria-hidden="true"] { display: none; }
  .review-card {
    flex: 0 0 auto; width: min(85vw, 420px); margin-right: 16px;
    display: flex; gap: 16px; padding: 16px;
    background: #fff; border: 1px solid #eadfc4; border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
  .review-photo { flex: 0 0 38%; max-width: 170px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
  .review-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .review-text { font-size: 0.98rem; line-height: 1.55; }
  .review-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; }
  .review-author strong { font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-size: 1rem; }
  .review-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: #a87a1f; }
  .review-verified svg { width: 16px; height: 16px; }
  .review-product { font-size: 0.8rem; color: var(--grey-dark); }
  .review-reply { margin-top: 4px; padding: 10px 12px; background: #fbf6e9; border-left: 3px solid #d4a93c; font-size: 0.88rem; }
  .review-reply strong { display: block; margin-bottom: 2px; font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-size: 0.8rem; text-transform: uppercase; }

  .reviews-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  .btn-outline-green {
    padding: 14px 36px; background: transparent; cursor: pointer;
    border: 2px solid #b8892c; color: #8a6418;
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-size: 1rem; font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
  }
  .btn-outline-green:hover { background: #b8892c; color: #fff; }
  /* « Laisser un avis » en doré, comme le logo */
  .btn-gold {
    border-color: #b8892c; color: #1a1406;
    background: linear-gradient(135deg, #f3d77a 0%, #d4a93c 50%, #b8892c 100%);
    box-shadow: 0 4px 14px rgba(184,137,44,0.3);
  }
  .btn-gold:hover { background: linear-gradient(135deg, #e2c25c 0%, #b8892c 100%); color: #000; }
  .reviews-empty { text-align: center; color: var(--grey-dark); }
  .review-form {
    margin: 30px auto 0; max-width: 560px; display: flex; flex-direction: column; gap: 6px;
    background: #fff; padding: 24px; border-radius: 14px; border: 1px solid #eadfc4;
  }
  .review-form[hidden] { display: none; }
  .review-form h3 { font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 6px; }
  .review-form label { font-size: 0.85rem; font-weight: 500; margin-top: 8px; }
  .review-form .optional { color: var(--grey); font-weight: 400; }
  .review-form input, .review-form textarea {
    width: 100%; padding: 11px 12px; font: inherit; font-size: 16px;
    border: 1px solid var(--grey-light); background: #fff; color: var(--black);
  }
  .review-form textarea { resize: vertical; }
  .review-form .btn { margin-top: 14px; align-self: flex-start; }
  .review-note { font-size: 0.8rem; color: var(--grey-dark); }
  .star-picker { display: flex; gap: 4px; }
  .star-picker button {
    font-size: 2rem; line-height: 1; padding: 2px; background: none; border: 0; cursor: pointer;
    color: #d9d4cc; transition: color 0.15s ease, transform 0.15s ease;
  }
  .star-picker button.is-on { color: #d4a93c; }
  .star-picker button:hover { transform: scale(1.12); }
  @media (min-width: 640px) {
    .reviews-track.is-expanded .reviews-marquee { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 900px) {
    .review-card { width: 460px; }
  }

  /* Catalogue « Tout » : titre de chaque groupe (Vestes, Chaussures…) sur toute la largeur */
  .catalog-group-head {
    grid-column: 1 / -1;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-bottom: 10px; border-bottom: 1px solid var(--grey-light);
  }
  .catalog-group-head:not(:first-child) { margin-top: 28px; }
  .catalog-group-head h3 {
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.01em;
  }
  .catalog-group-count {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; vertical-align: middle;
    background: #141414; color: #fff;
  }
  .catalog-group-head .link-underline { font-size: 0.85rem; background: none; border: 0; padding: 0; cursor: pointer; }
  .empty-state { padding: 50px 10px; text-align: center; color: var(--grey-dark); }
  
  /* ---------- 11. Collections ---------- */
  .collection-grid { display: grid; gap: 14px; }
  .collection-card { position: relative; display: block; min-height: 320px; background: var(--grey-dark); overflow: hidden; }
  .collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
  .collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05) 65%); }
  .collection-card:hover img { transform: scale(1.05); }
  /* Diaporama dans les cartes Collections : fondu doux */
  .collection-card[data-slideshow] img { opacity: 0; transition: opacity 1.2s ease-in-out, transform 0.7s ease; }
  .collection-card[data-slideshow] img.is-active { opacity: 1; }
  .collection-text { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
  .collection-text h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
  .collection-text p { margin: 6px 0 14px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
  
  /* ---------- 12. Marque ---------- */
  .brand-grid { display: grid; gap: 30px; align-items: center; }
  .brand-image { aspect-ratio: 4 / 5; background: var(--beige); overflow: hidden; }
  .brand-image img { width: 100%; height: 100%; object-fit: cover; }
  .brand-image-logo { background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 8%; }
  .brand-image-logo img { height: auto; object-fit: contain; }
  .brand-text h2 { font-family: var(--font-title); font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 18px; }
  .brand-text p { margin-bottom: 14px; color: var(--grey-dark); max-width: 58ch; }
  .brand-points { margin: 22px 0 28px; border-top: 1px solid var(--grey-light); }
  .brand-points li { padding: 12px 0; border-bottom: 1px solid var(--grey-light); font-size: 0.95rem; }
  
  /* ---------- 13. Footer ---------- */
  .site-footer { background: var(--black); color: rgba(255,255,255,0.78); padding-top: 50px; }   /* ← agrandit le fond foncé vers le haut, sans bouger le contenu */
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; padding-top: 52px; padding-bottom: 40px; }
  .footer-col:first-child { grid-column: span 2; }
  .footer-col:first-child p { margin-top: 14px; max-width: 38ch; font-size: 0.92rem; }
  .footer-col h3 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }
  .footer-col li { margin-bottom: 9px; font-size: 0.9rem; }
  .footer-col a:hover { color: var(--white); text-decoration: underline; }
  .socials { display: flex; gap: 16px; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
  
  /* ---------- 14. Modale produit ---------- */
  .modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
  .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
  .modal-box {
    position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
    background: var(--white); animation: sheetUp 0.3s ease;
  }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,0.92); }
  .modal-gallery { background: var(--beige); aspect-ratio: 4 / 4.2; }
  .modal-gallery { position: relative; }
  .modal-gallery > img { width: 100%; height: 100%; object-fit: cover; }
  .modal-thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 10px; overflow-x: auto; background: linear-gradient(transparent, rgba(0,0,0,0.35)); scrollbar-width: none; }
  .modal-thumbs[hidden] { display: none; }
  /* Flèches gauche / droite de la galerie */
  .gallery-arrow {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    /* Effet verre dépoli façon iPhone : fond transparent + flou de ce qui est derrière */
    background: rgba(255,255,255,0.22); color: #fff;
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .gallery-arrow svg { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.35)); }
  .gallery-arrow:hover { background: rgba(255,255,255,0.34); transform: translateY(-50%) scale(1.08); }
  .gallery-arrow[hidden] { display: none; }
  .gallery-prev { left: 12px; }
  .gallery-next { right: 12px; }
  .modal-thumbs::-webkit-scrollbar { display: none; }
  .thumb-btn { flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; opacity: 0.75; transition: opacity .2s, border-color .2s; }
  .thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumb-btn:hover, .thumb-btn.is-selected { opacity: 1; border-color: #fff; }
  .modal-info { padding: 22px 20px 26px; }
  .modal-category { font-size: 0.8rem; color: var(--grey); }
  .modal-info h3 {   /* titre de l'article dans la fiche produit : police moderne */
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase;
    margin: 4px 0 8px;
  }
  .modal-price { font-size: 1.2rem; font-weight: 600; }
  .modal-desc { margin: 12px 0 4px; font-size: 0.93rem; color: var(--grey-dark); }
  
  .option-block { margin-top: 20px; }
  .option-label { font-size: 0.88rem; margin-bottom: 9px; color: var(--grey-dark); }
  .option-label strong { color: var(--black); font-weight: 600; }
  .option-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .size-btn {
    min-width: 48px; height: 44px; padding: 0 14px; font-size: 0.9rem;
    border: 1px solid var(--grey-light); border-radius: var(--radius);
    transition: border-color var(--ease), background var(--ease), color var(--ease);
  }
  .size-btn:hover { border-color: var(--black); }
  .size-btn.is-selected { background: var(--black); border-color: var(--black); color: var(--white); }
  .color-btn {
    position: relative; width: 38px; height: 38px; border-radius: 50%;
    background: var(--swatch, var(--grey)); border: 1px solid var(--grey-light);
  }
  .color-btn::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px solid transparent; transition: border-color var(--ease);
  }
  .color-btn:hover::after { border-color: var(--grey); }
  .color-btn.is-selected::after { border-color: var(--black); }
  
  .qty-control { display: inline-flex; align-items: center; border: 1px solid var(--grey-light); border-radius: var(--radius); }
  .qty-control button { width: 42px; height: 42px; font-size: 1.2rem; transition: background var(--ease); }
  .qty-control button:hover { background: var(--beige-light); }
  .qty-control span { min-width: 40px; text-align: center; font-weight: 500; }
  .form-error { margin-top: 16px; font-size: 0.88rem; color: var(--danger); }
  #modalAddBtn { margin-top: 22px; }
  
  /* ---------- 15. Panier ---------- */
  .cart-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.5); }
  .cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    display: flex; flex-direction: column;
    width: 100%; max-width: 430px;
    background: var(--white); box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
  }
  .cart-drawer.is-open { transform: none; visibility: visible; }
  .cart-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--grey-light); }
  .cart-header h3 {   /* « Votre panier » : police moderne comme les autres titres */
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: 1.35rem; letter-spacing: -0.01em; text-transform: uppercase;
  }
  .cart-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
  .cart-empty {   /* centré au milieu du panier */
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px; text-align: center; color: var(--grey-dark);
  }
  .cart-empty[hidden], .cart-items[hidden] { display: none; }
  .cart-empty-title, .cart-empty-sub {   /* même police et même taille pour les 2 lignes */
    font-family: "Space Grotesk", "Jost", Arial, sans-serif; font-weight: 700;
    font-size: 1.5rem; line-height: 1.2; text-transform: uppercase; color: var(--black);
  }
  .cart-empty-sub { margin: 4px 0 28px; }
  
  .cart-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--grey-light); }
  .cart-item-img { width: 82px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--beige); }
  .cart-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cart-item-title { font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
  .cart-item-meta { font-size: 0.82rem; color: var(--grey-dark); }
  .cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
  .cart-item .qty-control button { width: 32px; height: 32px; font-size: 1rem; }
  .cart-item .qty-control span { min-width: 30px; font-size: 0.9rem; }
  .cart-item-price { font-weight: 600; font-size: 0.95rem; }
  .cart-item-remove { align-self: flex-start; font-size: 0.78rem; color: var(--grey); text-decoration: underline; }
  .cart-item-remove:hover { color: var(--danger); }
  
  .cart-footer { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--grey-light); background: var(--beige-light); }
  .cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
  .cart-total strong { font-size: 1.4rem; }
  .cart-note { margin: 6px 0 16px; font-size: 0.8rem; color: var(--grey-dark); }
  .link-clear { display: block; margin: 14px auto 0; font-size: 0.82rem; color: var(--grey-dark); text-decoration: underline; }
  .link-clear:hover { color: var(--danger); }
  
  /* ---------- 16. Notification ---------- */
  .toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 200;
    max-width: calc(100% - 32px); padding: 13px 22px;
    background: var(--black); color: var(--white); font-size: 0.9rem; text-align: center;
    border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
  
  /* =====================================================
     TABLETTE : à partir de 640 px
     ===================================================== */
  @media (min-width: 640px) {
    .container { padding: 0 32px; }
    .reassurance .reassurance-grid { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 72px 0; }
  
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }   /* tablette : 2 lignes de 4 */
    .category-grid .category-card:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 1 / 1; }
  
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; }
    .catalog-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
    .filter-tabs { padding-bottom: 0; }
  
    .collection-grid { grid-template-columns: repeat(3, 1fr); }   /* 3 cartes de même taille */
    .collection-card { min-height: 380px; }
  
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
    .footer-col:first-child { grid-column: auto; }
  
    .modal { align-items: center; padding: 24px; }
    .modal-box { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; max-height: 90vh; animation: none; }
    .modal-gallery { aspect-ratio: auto; min-height: 100%; }
    .modal-info { padding: 40px 32px 32px; overflow-y: auto; }
  }
  
  /* =====================================================
     ORDINATEUR : à partir de 900 px
     ===================================================== */
  @media (min-width: 900px) {
    :root { --header-h: 78px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }   /* ordinateur : 8 catégories = 2 lignes de 4 */
    .category-card { aspect-ratio: 16 / 10; }                  /* cartes un peu moins hautes sur grand écran */
    .category-icon { max-width: 80px; }
  
    .header-inner { grid-template-columns: auto 1fr auto; gap: 36px; }
    .menu-toggle { display: none; }
    .logo { grid-column: 1; grid-row: 1; font-size: 2rem; }
    .main-nav {
      position: static; grid-column: 2; grid-row: 1;
      max-height: none; overflow: visible; visibility: visible;
      background: none; border: 0;
    }
    .main-nav ul { display: flex; justify-content: center; gap: 34px; }
    .main-nav a {
      position: relative; padding: 6px 0; border: 0; font-size: 0.88rem; letter-spacing: 0.04em;
    }
    .main-nav a:hover { background: none; }
    .main-nav a::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
      background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
    }
    .main-nav a:hover::after { transform: scaleX(1); }
    .header-actions { grid-column: 3; grid-row: 1; }
  
    .hero { min-height: 82vh; }
    .hero .hero-content { padding-bottom: 60px; }   /* ← espace sous les boutons (ordinateur) */
  
    .section { padding: 92px 0; }
    .section-head { margin-bottom: 42px; }
  
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
  
    .collection-grid { grid-template-columns: repeat(3, 1fr); }   /* 3 cartes de même taille */
    .collection-card { min-height: 560px; }
  
    .brand-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .brand-image { aspect-ratio: 4 / 5; }
  }
  
  /* ---------- Grand écran ---------- */
  @media (min-width: 1200px) {
    .container { padding: 0 40px; }
  }
  
  /* Écrans tactiles : pas de survol, bouton « options » toujours visible */
  @media (hover: none) {
    .product-quick { display: none; }
    .product-media .img-hover { display: none; }
  }
  
  /* Petit téléphone */
  @media (max-width: 380px) {
    .logo { font-size: 1.5rem; letter-spacing: 0.1em; }
    .hero-buttons .btn { width: 100%; }
    .product-grid { gap: 20px 8px; }
  }
  
  /* Accessibilité : réduction des animations */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    /* Exception : le défilement lent des vestes reste actif */
    .hero-track { animation: heroScroll var(--hero-speed, 60s) linear infinite !important; }
    .reviews-track:not(.is-expanded) .reviews-marquee { animation: reviewsScroll var(--reviews-speed, 40s) linear infinite !important; }
  }.logo img {
  display: block;
  height: 44px;      /* téléphone */
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (min-width: 60px) {
  .logo img { height: 46px; }   /* tablette */
}

@media (min-width: 900px) {
  :root { --header-h: 92px; }   /* header un peu plus haut */
  .logo img { height: 250px; }   /* ordinateur */
}/* Header : logo centré, navigation en dessous (ordinateur) */
@media (min-width: 900px) {
  :root {
    --header-h: 100px;
    --logo-h: 65px;          /* ← taille du logo : changez seulement cette valeur */
  }

  .header-inner {
    height: auto;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 58px auto;   /* ← hauteur fixe de la zone du logo */
    column-gap: 0;
    padding-top: 6px;
  }
  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    height: 58px;                    /* même valeur que la ligne ci-dessus */
    display: flex;
    align-items: center;
  }
  .logo img {
    height: var(--logo-h);           /* peut dépasser 58px sans agrandir le header */
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 0 8px;
  }
  .main-nav ul { gap: 28px; }
}.logo img {
  transform: translateY(21px);   /* descend le logo de 6 px */
}