@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* ================================
   Variables
   ================================ */
:root {
  --bg: #001f00;
  --text: #111;
  --text-inv: #fff;
  --muted: #f5f5f5;
  --card: #fff;
  --border: #ddd;
  --brand: #4CAF50;
  --brand-700: #388E3C;
  --nav: #333;
  --nav-2: #444;
  --shadow: 0 2px 8px rgba(0,0,0,.12);

  /* Fond d’écran + verre dépoli */
  --bg-image: url("../../assets/img/fond_ecran.png"); 
  --blur: 12px;
  --tint: rgba(34, 197, 94, 0.30);
  --vignette: rgba(0, 0, 0, 0.18);
  --glass-bg: rgba(255,255,255,.08);
  --glass-bg-strong: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.16);
  --glass-border-soft: rgba(255,255,255,.12);
}

/* ================================
   Base
   ================================ */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #f0f0f0;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fond d’écran flouté + teinte verte */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--blur)) saturate(1.05) contrast(1.02);
  transform: scale(1.06);
  will-change: transform, filter;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 0%, var(--vignette) 72%),
    linear-gradient(0deg, var(--tint), var(--tint));
  pointer-events: none;
}

/* ================================
   Header
   ================================ */
.header { 
  background-color: rgba(46,46,46,.55);
  padding: 20px;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--glass-border-soft);
}

/* ================================
   Navbar (Desktop par défaut)
   ================================ */
.navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  display:flex; align-items:center; justify-content:center; gap:16px;
  height:72px; padding:8px 16px;
  background: rgba(34,34,34,.58);
  color: var(--text-inv);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
/* Styles Desktop (avec position absolute) - Ne change pas sur PC */
.logo{ position:absolute; left:16px; display:flex; align-items:center; }
.logo img{ height:44px; width:auto; display:block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.title{ font-weight:800; font-size:20px; letter-spacing:.3px; text-shadow: 0 0 18px rgba(255,255,255,.08); }
.menu-button{
  position:absolute; right:16px;
  border:0; background:transparent; color:var(--text-inv);
  font-size:28px; line-height:1; cursor:pointer; padding:6px;
  transition: transform .15s ease, filter .2s ease;
}
.menu-button:hover{ transform: translateY(-1px); filter: brightness(1.1); }

/* ================================
   Menu déroulant (overlay + verre)
   ================================ */
.menu-content{
  position: fixed;
  top:72px; left:0; right:0;
  z-index: 1001;
  display: block !important;
  background: rgba(40,40,40,.72);
  color: var(--text-inv);

  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: transform .18s ease, opacity .18s ease, visibility 0s linear .18s;
  box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 28px rgba(76,175,80,.18);
  max-height: 55dvh;
  overflow:auto;
  will-change: transform, opacity;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border-soft);
}
.menu-content.show{
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform .18s ease, opacity .18s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce){
  .menu-content, .menu-content.show{ transition: none; }
}

.menu-content nav{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:12px 20px; padding:10px 12px;
}
.menu-content nav a{
  color:#f0f0f0; text-decoration:none;
  padding:8px 14px; border-radius:10px; transition: all .2s ease;
  background: transparent;
  border: 1px solid transparent;
}
.menu-content nav a:hover{
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  box-shadow: 0 0 26px rgba(76,175,80,.28);
  border-color: rgba(255,255,255,.12);
}

/* Recherche dans le menu */
.search-bar, .search-form{ display:flex; align-items:center; gap:8px; margin:0; }
.search-bar input[type="text"], .search-form input[type="text"]{
  height:38px; padding:0 12px;
  border:1px solid var(--glass-border);
  border-radius:10px;
  background: rgba(255,255,255,.08);
  color:#f0f0f0;
  transition: box-shadow .2s ease, border-color .2s ease, transform .08s ease;
  backdrop-filter: blur(6px);
}
.search-bar input[type="text"]:focus-visible{
  outline:none; border-color:#bbf7d0;
  box-shadow: 0 0 0 3px rgba(187,247,208,.25), 0 0 28px rgba(76,175,80,.28);
  transform: translateY(-1px);
}
.search-bar button, .search-form button{
  height:38px; padding:0 14px; border-radius:10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color:#f0f0f0; border:1px solid rgba(187,247,208,.28); cursor:pointer;
  font-weight:700;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(76,175,80,.22);
}
.search-bar button:hover, .search-form button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(76,175,80,.3);
}

/* ================================
   Hero (photo + texte)
   ================================ */
.photo-section {
  display: flex;
  align-items: center;
  padding: 110px 20px 20px;
  gap: 20px;
}
.photo-box {
  flex-shrink: 0;
  height: calc(100vh - 130px);
}
.photo-box img {
  display: block;
  width: 100%;
  height: calc(100vh - 130px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.text-content {
  flex: 1;
  color: #f0f0f0;
  line-height: 1.6;
  font-size: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* ================================
   Best-sellers
   ================================ */
.container {
  text-align: center;
  margin-bottom: 20px;
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 50%;
}
.product {
  display: inline-block;
  width: 20%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin: 10px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
  backdrop-filter: blur(6px);
}
.product:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  background: rgba(255,255,255,.16);
}
.product :hover { animation: none; }

.product img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #eee;
}

.title {
  font-size: 24px;
  margin-bottom: 5px;
  margin-left: 40px;
  text-align: left;
  color:#eaffef;
  text-shadow: 0 0 18px rgba(76,175,80,.18);
}
.line {
  width: 40%;
  height: 2px;
  background-color: #25b25b;
  margin: 10px 0;
  margin-left: 30px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(76,175,80,.25);
}
.name { font-weight: bold; margin: 10px 0; color:#ffffff; }
.price { color: #c0feda; font-weight: 800; }

/* ================================
   Bannière info (événements)
   ================================ */
.info-banner {
  width: auto;
  background-color: rgba(42,42,42,.72);
  color: #FFFFFF;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  animation: reveal linear;
  animation-timeline: view();
  animation-range-start: cover 0%;
  animation-range-end: contain 30%;
  backdrop-filter: blur(6px);
  margin: 10px 20px 30px;
}
.info-header {
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  margin-left: 40px;
  margin-bottom: 15px;
  color:#eaffef;
}
.info-content {
  background-color: rgba(51,51,51,.62);
  padding: 15px;
  border-radius: 10px;
  align-items: center;
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(4px);
}
.info-sections {
  display: flex;
  align-items: center;
  gap: 20px;
}
.text-section {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #e8fff1;
}
.image-section { flex-shrink: 0; width: 250px; }
.image-section img { width: 100%; border-radius: 10px; box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.image-section :hover { animation: zoomIn 0.3s forwards; }

/* ================================
   Footer (verre)
   ================================ */
.footer {
  background-color: rgba(51,51,51,.70);
  color: #f0f0f0;
  padding: 20px;
  text-align: left;
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
}
.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-section { flex: 1; min-width: 200px; }
.footer-section h3 { font-size: 20px; margin-bottom: 10px; color:#eaffef; }
.footer-section p, .footer-section a {
  font-size: 14px; line-height: 1.5; color: #ececec; text-decoration: none;
}
.footer-section a:hover { color: #ffffff; text-decoration: underline; }
.footer-section ul { list-style-type: none; padding: 0; }
.footer-section ul li { margin-bottom: 8px; }
.socials a { color: #e0e0e0; margin: -2 5px; text-decoration: none; }
.socials a:hover { color: #ffffff; }
.footer-bottom { text-align: center; padding-top: 15px; font-size: 14px; color: #eaeaea; }

/* ================================
   Animations (inchangées)
   ================================ */
@keyframes slide {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes reveal {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes zoomIn {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100%{ transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .product { transition: none; }
  .product:hover { transform: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
}

/* ================================
   Autres composants (CTA, Tickers, Cards...)
   ================================ */
.shop-cta{
  margin: 12px 20px 28px; padding: 18px; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 22px rgba(0,0,0,.22); backdrop-filter: blur(4px);
  animation: reveal linear; animation-timeline: view();
  animation-range-start: cover 0%; animation-range-end: contain 30%;
  color: #e9f9ee;
}
.shop-cta__header{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom: 14px; }
.shop-cta__title{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:22px; letter-spacing:.2px; }
.shop-cta__title::before{ content:""; width:12px; height:12px; border-radius:3px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 0 18px rgba(76,175,80,.35); }
.shop-cta__btn{
  display:inline-block; padding: 10px 16px; border-radius: 10px;
  color:#fff; text-decoration:none; font-weight:800; letter-spacing:.2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  border: 1px solid rgba(187,247,208,.28);
  box-shadow: 0 10px 24px rgba(76,175,80,.26);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.shop-cta__btn:hover{ transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(76,175,80,.34); }

.shop-cta__ticker{ position: relative; overflow: hidden; border-radius: 10px; border:1px dashed rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.shop-cta__rail{ display: inline-flex; align-items:center; gap:12px; white-space: nowrap; padding:10px 8px; animation: catemarquee 24s linear infinite; will-change: transform; }
@keyframes catemarquee{ 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }
.shop-cta__pill{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background: rgba(255,255,255,.14); color:#f3fff5; font-weight:700; letter-spacing:.2px; font-size:14px; border:1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.16); text-decoration:none; }
.shop-cta__pill:hover{ filter: brightness(1.08); }

.shop-grid{ margin-top: 14px; display:grid; grid-template-columns: repeat(4, minmax(180px,1fr)); gap:12px; }
.shop-card{ background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius: 12px; padding:14px; color:#fff; text-decoration:none; display:block; box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; animation: reveal linear; animation-timeline: view(); animation-range-start: cover 0%; animation-range-end: contain 30%; }
.shop-card:hover{ transform: translateY(-3px) scale(1.02); background: rgba(255,255,255,.12); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.shop-card h3{ margin:0 0 6px; font-size:16px; font-weight:800; letter-spacing:.2px; color:#eaffef; }
.shop-card p{ margin:0; font-size:13px; color:#def7e7; }

.shop-perks{ margin-top:12px; display:grid; grid-template-columns: repeat(3, minmax(160px,1fr)); gap:10px; }
.shop-perk{ background: rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12); border-radius: 10px; padding:10px 12px; color:#dcffe7; box-shadow: 0 6px 16px rgba(0,0,0,.16); animation: reveal linear; animation-timeline: view(); animation-range-start: cover 0%; animation-range-end: contain 30%; }

/* Responsive desktop/tablette de base */
@media (max-width: 980px){ .shop-grid{ grid-template-columns: repeat(2, minmax(160px,1fr)); } }
@media (max-width: 720px){ .photo-section{ flex-direction: column; padding-top: 96px; } .photo-box, .photo-box img{ height: 46vh; } }
@media (max-width: 580px){ .shop-cta__btn{ width:100%; text-align:center; } .shop-grid{ grid-template-columns: 1fr; } .shop-perks{ grid-template-columns: 1fr; } .product{ width: calc(50% - 20px); } }
@media (max-width: 420px){ .product{ width: calc(100% - 20px); } }

.product{ vertical-align: top; }
.product img{ width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 6px; display: block; background: #eee; }
.shop-cta__rail{ animation: none !important; will-change: transform; padding: 0 !important; }
.shop-cta__ticker{ padding: 10px 8px; }
.info-banner--promos{ border: 1px solid #000; background-color: rgba(42,42,42,.72); backdrop-filter: blur(6px); }
.promo-ticker{ position: relative; overflow: hidden; border-radius: 10px; border: 1px dashed rgba(255,255,255,.15); background: rgba(255,255,255,.06); padding: 10px 8px; margin-top: 10px; }
.promo-rail{ display: flex; align-items: stretch; gap: 12px; white-space: nowrap; will-change: transform; transform: translateX(0); }
.promo-card{ display: inline-flex; flex-direction: column; gap: 8px; min-width: 220px; max-width: 240px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px; color:#fff; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.promo-card:hover{ transform: translateY(-3px) scale(1.02); background: rgba(255,255,255,.12); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.promo-thumb{ position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #111; }
.promo-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-badge{ position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border: 1px solid rgba(187,247,208,.28); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.promo-meta{ display:flex; flex-direction:column; gap:4px; }
.promo-name{ font-size: 14px; font-weight: 800; letter-spacing: .2px; color:#eaffef; min-height: 2.4em; line-height: 1.2; overflow: hidden; }
.promo-prices{ display:flex; align-items:center; gap:8px; }
.price-old{ color:#ffd1d1; text-decoration: line-through; opacity:.85; font-weight:700; }
.price-new{ color:#c0feda; font-weight: 900; }
.js-promo-rail{ transform: translateX(0); }
@media (max-width: 520px){ .promo-card{ min-width: 180px; } }
.promo-thumb { position: relative; overflow: hidden; }
.badge { position: absolute; top: .5rem; z-index: 2; padding: .35rem .55rem; border-radius: .5rem; font-size: .78rem; font-weight: 700; line-height: 1; user-select: none; display: inline-flex; align-items: center; gap: .35rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.badge svg { width: 16px; height: 16px; flex: 0 0 16px; }
.badge--promo { left: .5rem; background:#e02424; color:#fff; }
.badge--tested { right: .5rem; background:#0f766e; color:#fff; white-space: nowrap; }
.shop-cta__pill, .blog-pill{ font-size: 16px !important; padding: 10px 16px !important; border-radius: 999px; }
.shop-cta__rail, .blog-cta__rail{ gap: 14px !important; }
.text-content{ color: #fefefe; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255,255,255,.18); text-shadow: 0 1px 4px rgba(0,0,0,.5); line-height: 1.7; }
.text-content .blog-cta__btn{ background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; font-weight: 800; text-shadow: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.text-content .blog-cta__btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.3); filter: brightness(1.08); }

/* ==========================================================================
   MOBILE MASTER PATCH - OVERRIDE FINAL
   Ceci ne s'active QUE sur mobile/tablette (< 980px)
   Ne change RIEN sur PC.
   ========================================================================== */

@media (max-width: 980px) {

  /* --- 1. FIX BARRE DE NAVIGATION (Alignement Logo/Burger) --- */
  .navbar {
    /* Force l'espacement correct entre gauche et droite */
    justify-content: space-between; 
    padding: 0 15px;
  }
  
  /* Annule le positionnement absolu qui cassait tout sur mobile */
  .logo {
    position: relative; 
    left: auto;
    margin-right: auto; /* Pousse le burger à droite */
  }
  
  .menu-button {
    position: relative;
    right: auto;
  }

  /* --- 2. FIX MENU DÉROULANT (Style Application Plein Écran) --- */
  .menu-content {
    top: 72px; /* Sous la barre */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: none;
    background: rgba(15, 15, 15, 0.98); /* Fond sombre opaque */
    backdrop-filter: blur(20px);
    /* Empilement vertical propre */
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border: none;
  }

  /* Boutons du menu mobile larges et faciles à cliquer */
  .menu-content nav {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .menu-content nav a {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* --- 3. HERO SECTION (Photo + Texte) --- */
  .photo-section {
    flex-direction: column; /* Empile photo et texte */
    padding: 80px 15px 30px 15px; /* Ajuste le padding sous la navbar */
    height: auto;
    gap: 20px;
  }

  .photo-box {
    width: 100%;
    height: 40vh; /* Hauteur raisonnable sur mobile */
    flex-shrink: 0;
  }

  .photo-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .text-content {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Meilleure lisibilité mobile */
  }

  /* --- 4. GRILLE PRODUITS (Best Sellers) --- */
  .container {
    display: grid !important;
    /* 2 colonnes sur mobile */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    padding: 0 10px;
    text-align: left;
    margin-bottom: 30px;
  }

  .container .product {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .container .product img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
  }

  .container .name {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
  }

  /* --- 5. SCROLL HORIZONTAL (Rails & Tickers) --- */
  .shop-cta__ticker, 
  .blog-cta__ticker,
  .promo-ticker,
  .blog-rail {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .shop-cta__ticker::-webkit-scrollbar, 
  .promo-ticker::-webkit-scrollbar,
  .blog-rail::-webkit-scrollbar { 
    display: none; 
  }

  .js-rail, 
  .shop-cta__rail, 
  .blog-cta__rail, 
  .promo-rail,
  .blog-rail__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    transform: none !important;
    animation: none !important;
    gap: 12px;
    padding-right: 20px;
  }

  /* Taille fixe pour les cartes dans les sliders */
  .promo-card, .blog-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
  }

  /* --- 6. GRILLES SECONDAIRES & FOOTER --- */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .shop-perks { grid-template-columns: 1fr; }
  
  .shop-cta__btn, .blog-cta__btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-content { flex-direction: column; gap: 30px; }
  .footer-section { width: 100%; text-align: center; }
  
  .title, .info-header {
    margin-left: 10px;
    font-size: 20px;
  }
  .line { margin-left: 10px; width: 100px; }
}

/* Tweak Extra Small (iPhone SE, etc.) */
@media (max-width: 400px) {
  .container { grid-template-columns: 1fr; }
  .photo-box { height: 30vh; }
}
/* ==========================================================================
   PATCH SPÉCIAL iPHONE & MOBILE
   Remplace tout le bloc @media (max-width: 768px) existant par celui-ci.
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR & ENCOCHE (SAFE AREA) --- */
  .navbar {
    height: auto; /* Laisse la hauteur s'adapter */
    min-height: 64px;
    /* Ajoute du padding en haut pour l'encoche de l'iPhone */
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    
    /* Force l'alignement Flexbox (plus d'absolute) */
    justify-content: space-between;
    align-items: center;
  }

  /* Réinitialise le positionnement pour éviter les chevauchements */
  .logo {
    position: relative; 
    left: auto; 
    top: auto;
  }
  .menu-button {
    position: relative; 
    right: auto; 
    top: auto;
  }
  .title { display: none; } /* Optionnel : Cache le titre texte sur mobile pour gagner de la place */

  /* --- 2. MENU DÉROULANT PLEIN ÉCRAN --- */
  .menu-content {
    /* Calcule la position exacte sous la navbar */
    top: calc(64px + env(safe-area-inset-top)); 
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none; /* Annule la limite desktop */
    height: calc(100dvh - (64px + env(safe-area-inset-top))); /* Hauteur dynamique Safari */
    
    background: rgba(20, 20, 20, 0.96); /* Fond très opaque pour lisibilité */
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    
    display: flex;
    flex-direction: column;
    padding: 20px 15px 100px 15px; /* Padding bas extra pour le scroll */
    gap: 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Scroll fluide iOS */
  }

  .menu-content nav {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 12px;
  }

  .menu-content nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
  }

  /* --- 3. BARRE DE RECHERCHE (MAIN) --- */
  .main-search {
    position: sticky;
    /* Colle sous la navbar en tenant compte de l'encoche */
    top: calc(64px + env(safe-area-inset-top)); 
    padding: 10px 15px;
    background: rgba(30,30,30,0.85);
    backdrop-filter: blur(10px);
    z-index: 900;
  }

  .main-search__inner {
    grid-template-columns: 1fr; /* Une seule colonne */
    gap: 10px;
    padding: 0;
  }

  /* --- 4. CORRECTION ZOOM iPHONE (INPUTS) --- */
  /* Empêche le zoom automatique quand on clique sur un champ */
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important; 
  }
  .main-search input[type="text"] { height: 44px; } /* Zone tactile confortable */

  /* --- 5. LAYOUT GÉNÉRAL --- */
  .layout { display: block; } /* Supprime la grid desktop */
  
  main {
    /* Espace pour éviter que le contenu passe sous la barre fixe */
    padding-top: 20px; 
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px; /* Espace pour les filtres en bas */
  }

  /* Sidebar (Filtres) transformée en bloc simple */
  .sidebar {
    position: static;
    height: auto;
    background: rgba(255,255,255,0.05);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
  }

  /* --- 6. GRILLE PRODUITS (2 colonnes) --- */
  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  .product {
    width: 100%;
    margin: 0;
  }

  .product img {
    aspect-ratio: 4/5; /* Format portrait mieux adapté au mobile */
  }
  
  .name {
    font-size: 14px;
    height: 2.8em; /* Limite à 2 lignes */
    overflow: hidden;
  }

  /* --- 7. BARRE FILTRES FLOTTANTE (BAS DE PAGE) --- */
  .filters-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 950;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 10px 15px;
    /* Padding extra pour la barre blanche (Home indicator) iPhone */
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .filters-form {
    display: flex;
    gap: 10px;
  }

  .chip-select { width: 100%; height: 44px; font-size: 16px; }
  .chip-apply { height: 44px; width: auto; white-space: nowrap; }
}

/* Petit écran (iPhone SE, Mini) -> 1 colonne */
@media (max-width: 375px) {
  .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PATCH FINAL iPHONE (TITRE + BLOCS VISIBLES)
   Remplace tout le bloc @media (max-width: 768px) par ceci.
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR & TITRE --- */
  .navbar {
    height: auto;
    min-height: 64px;
    padding-top: max(8px, env(safe-area-inset-top)); /* Gère l'encoche */
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    
    /* Flexbox pour aligner Logo à gauche, Burger à droite */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo et Titre ensemble */
  .logo {
    position: relative; 
    left: auto; top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%; /* Laisse de la place au burger */
  }

  /* FORCE L'AFFICHAGE DU TITRE */
  .title { 
    display: block !important; /* On force l'affichage */
    font-size: 16px; /* Taille adaptée mobile */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si c'est trop long */
    margin: 0;
  }

  .logo img { height: 32px; width: auto; } /* Logo un peu plus petit pour mobile */

  .menu-button {
    position: relative; 
    right: auto; top: auto;
    font-size: 28px;
    padding: 4px;
  }

  /* --- 2. ESPACEMENT PAGE (POUR QUE RIEN NE DISPARAISSE) --- */
  /* C'est ici qu'on empêche les blocs Boutique/Blog de se cacher sous le menu */
  .layout { display: block; }
  
  main {
    /* 64px (nav) + 60px (recherche) + 20px (marge) */
    padding-top: 150px !important; 
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px;
  }

  /* --- 3. BARRE DE RECHERCHE (MAIN) --- */
  .main-search {
    position: fixed; /* Fixé pour rester visible */
    top: calc(64px + env(safe-area-inset-top)); 
    left: 0; right: 0;
    padding: 10px 15px;
    background: rgba(30,30,30,0.95); /* Fond opaque */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 900;
  }

  .main-search__inner {
    grid-template-columns: 1fr; 
    gap: 10px; padding: 0;
  }
  .main-search input[type="text"] { height: 40px; font-size: 16px; }

  /* --- 4. MENU DÉROULANT --- */
  .menu-content {
    top: calc(64px + env(safe-area-inset-top)); 
    height: calc(100dvh - 64px);
    max-height: none;
    background: rgba(15, 15, 15, 0.98);
    padding: 20px;
  }
  .menu-content nav a { font-size: 18px; padding: 15px; }

  /* --- 5. GRILLE PRODUITS (Best Sellers) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 colonnes */
    gap: 10px !important;
    padding: 0;
    margin-top: 20px;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex; flex-direction: column;
  }
  
  .product img { aspect-ratio: 4/5; object-fit: cover; }
  .name { font-size: 14px; height: 40px; overflow: hidden; }
  .price { font-size: 15px; }

  /* --- 6. BLOCS BOUTIQUE & BLOG (CTAs) --- */
  /* On s'assure qu'ils sont visibles */
  .shop-cta, .blog-cta {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 15px 0;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Scroll horizontal pour les catégories */
  .shop-cta__ticker, .blog-rail {
    overflow-x: auto !important;
    display: flex;
    gap: 10px;
  }
  .shop-cta__rail { animation: none !important; }

  /* --- 7. Sidebar / Filtres --- */
  .sidebar { display: none; } /* On cache la sidebar classique sur mobile */
  
  .filters-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #222; padding: 10px; z-index: 999;
    border-top: 1px solid #444;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .filters-form { display: flex; gap: 10px; }
  .chip-select { width: 100%; height: 44px; font-size: 16px; }
}
/* ==========================================================================
   PATCH MOBILE FINAL (iPhone & Android)
   Remplace tout le bloc @media existant par celui-ci.
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR & TITRE (Affichage complet) --- */
  .navbar {
    min-height: 72px; /* Hauteur fixe pour caler le menu */
    height: auto;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    
    /* Flexbox pour aligner */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,20,0.95); /* Fond opaque pour lisibilité */
    z-index: 1002; /* Au-dessus de tout */
  }

  .logo {
    position: relative; left: auto; top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Prend la place disponible */
    margin-right: 10px;
  }

  .logo img {
    height: 36px; width: auto; flex-shrink: 0;
  }

  /* CORRECTION TITRE : S'affiche en entier */
  .title { 
    display: block !important;
    font-size: 15px;
    line-height: 1.2; /* Permet 2 lignes si besoin */
    white-space: normal; /* Autorise le retour à la ligne */
    overflow: visible;
    color: #fff;
    text-align: left;
  }

  .menu-button {
    position: relative; right: auto; top: auto;
    font-size: 28px; padding: 4px; flex-shrink: 0;
  }

  /* --- 2. MENU DÉROULANT (Centré & Bien placé) --- */
  .menu-content {
    /* Commence pile sous la barre de 72px + encoche */
    top: calc(72px + env(safe-area-inset-top)); 
    left: 0; right: 0; bottom: 0;
    height: auto; 
    max-height: none;
    
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(15px);
    
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRE HORIZONTALEMENT */
    padding: 30px 20px 100px;
    gap: 20px;
    overflow-y: auto;
    z-index: 1001; /* Sous la navbar */
  }

  .menu-content nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les liens */
    gap: 15px;
  }

  .menu-content nav a {
    width: 100%;
    max-width: 300px; /* Limite la largeur pour faire joli */
    text-align: center; /* Texte au milieu */
    padding: 15px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  /* --- 3. ESPACEMENT & LAYOUT --- */
  .layout { display: block; }
  
  main {
    /* Réduction de l'espace : 72px (nav) + 50px (search) + marge */
    padding-top: 130px !important; 
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px;
  }

  /* Fix barre de recherche */
  .main-search {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top)); /* Pile sous la nav */
    left: 0; right: 0;
    padding: 8px 15px;
    background: rgba(30,30,30,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 900;
  }
  .main-search__inner { grid-template-columns: 1fr; gap: 10px; padding: 0; }
  .main-search input[type="text"] { height: 40px; font-size: 16px; }

  /* --- 4. BEST SELLERS (Centrés & Complets) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0;
    margin-top: 20px;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRE TOUT DANS LA CARTE */
    text-align: center;  /* CENTRE LE TEXTE */
    height: auto;        /* Hauteur libre pour le titre */
    padding-bottom: 15px;
  }
  
  /* Image centrée et pas trop petite */
  .product img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Carré parfait */
    object-fit: cover;   /* Remplit le carré */
    border-radius: 8px;
    margin-bottom: 10px;
  }

  /* Titre complet (pas coupé) */
  .name {
    font-size: 14px;
    height: auto;         /* Hauteur automatique */
    min-height: 0;
    overflow: visible;    /* Affiche tout le texte */
    white-space: normal;  /* Retour à la ligne autorisé */
    margin: 5px 0;
    line-height: 1.3;
  }

  .price { 
    font-size: 15px; 
    margin-top: auto; /* Pousse le prix en bas */
    justify-content: center;
  }

  /* --- 5. BLOCS VISIBLES (Boutique/Blog) --- */
  .shop-cta, .blog-cta {
    display: block !important;
    visibility: visible !important;
    margin: 15px 0; padding: 15px; width: 100%;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex; gap: 10px; }
  .shop-cta__rail { animation: none !important; }

  /* --- 6. Sidebar / Filtres --- */
  .sidebar { display: none; }
  .filters-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; padding: 10px; z-index: 999;
    border-top: 1px solid #333;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .filters-form { display: flex; gap: 10px; }
  .chip-select { width: 100%; height: 44px; font-size: 16px; }
}

/* ==========================================================================
   PATCH MOBILE FINAL (CORRECTIF TITRE & MENU)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR & TITRE (UNE SEULE LIGNE) --- */
  .navbar {
    min-height: 64px;
    height: auto;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* On remet la couleur du thème (verre sombre) */
    background: rgba(34, 34, 34, 0.85); 
    backdrop-filter: blur(12px);
    z-index: 1002;
  }

  .logo {
    position: relative; left: auto; top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Empêche le logo de s'écraser, mais le laisse flexible */
    flex-shrink: 0; 
    max-width: 85%;
  }

  .logo img {
    height: 32px; /* Logo compact */
    width: auto;
  }

  /* CORRECTION TITRE : Une seule ligne, petit */
  .title { 
    display: block !important;
    white-space: nowrap !important; /* Force 1 seule ligne */
    font-size: 13px !important;    /* Petit comme demandé */
    overflow: hidden;               /* Cache ce qui dépasse si vraiment trop long */
    text-overflow: ellipsis;        /* Ajoute "..." au cas où */
    margin: 0;
    line-height: 1;
    color: #fff;
  }

  .menu-button {
    position: relative; right: auto; top: auto;
    font-size: 26px; padding: 4px; flex-shrink: 0;
  }

  /* --- 2. MENU DÉROULANT (Position & Couleur corrigées) --- */
  .menu-content {
    /* On le pousse plus bas pour être sûr qu'il ne touche pas le titre */
    /* 64px (barre) + safe-area + 10px de marge */
    top: calc(74px + env(safe-area-inset-top)) !important; 
    
    left: 0; right: 0; bottom: 0;
    height: auto; 
    max-height: none;
    
    /* COULEUR CORRIGÉE : Vert très sombre (thème) au lieu de noir */
    background: rgba(20, 40, 25, 0.98); 
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 100px; /* Padding haut réduit */
    gap: 15px;
    overflow-y: auto;
    z-index: 1001;
  }

  .menu-content nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .menu-content nav a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px;
    font-size: 16px;
    /* Style bouton vitré */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }

  /* --- 3. ESPACEMENT CONTENU --- */
  .layout { display: block; }
  
  main {
    /* On descend le contenu pour ne pas qu'il soit caché par la recherche */
    padding-top: 140px !important; 
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px;
  }

  /* Barre de recherche (sous la navbar) */
  .main-search {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top)); /* Colle juste sous la nav */
    left: 0; right: 0;
    padding: 8px 15px;
    background: rgba(34, 34, 34, 0.9); /* Même teinte que navbar */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 900;
  }
  .main-search__inner { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .main-search input[type="text"] { height: 40px; font-size: 16px; }

  /* --- 4. BEST SELLERS (Centrés) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0;
    margin-top: 20px;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding-bottom: 12px;
  }
  
  .product img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Carré */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  /* Titre complet */
  .name {
    font-size: 13px;
    height: auto;
    min-height: 34px; /* Hauteur min pour aligner */
    overflow: visible;
    white-space: normal;
    line-height: 1.3;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 lignes */
    -webkit-box-orient: vertical;
  }

  .price { 
    font-size: 14px; 
    margin-top: auto; 
    justify-content: center;
  }

  /* --- 5. BLOCS VISIBLES --- */
  .shop-cta, .blog-cta {
    display: block !important;
    visibility: visible !important;
    margin: 15px 0; padding: 15px; width: 100%;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex; gap: 10px; }
  .shop-cta__rail { animation: none !important; }

  /* --- 6. Sidebar / Filtres --- */
  .sidebar { display: none; }
  .filters-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; padding: 10px; z-index: 999;
    border-top: 1px solid #333;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .filters-form { display: flex; gap: 10px; }
  .chip-select { width: 100%; height: 44px; font-size: 16px; }
}

/* ==========================================================================
   PATCH MOBILE FINAL (TITRE AJUSTÉ + PHOTO REMONTÉE + MENU PROPRE)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR & TITRE --- */
  .navbar {
    min-height: 64px;
    height: auto;
    /* Gestion de l'encoche iPhone */
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Fond teinte "Verre sombre" */
    background: rgba(34, 34, 34, 0.95); 
    backdrop-filter: blur(12px);
    z-index: 1002;
  }

  .logo {
    position: relative; left: auto; top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1; /* Prend la place dispo */
    overflow: hidden; /* Sécurité */
  }

  .logo img {
    height: 32px; /* Logo compact */
    width: auto;
    flex-shrink: 0;
  }

  /* TITRE : Petit & Sur une ligne */
  .title { 
    display: block !important;
    font-size: 12px !important;    /* Taille réduite pour tenir */
    white-space: nowrap !important; /* Interdit le retour à la ligne */
    overflow: hidden;
    text-overflow: ellipsis;        /* Ajoute "..." si vraiment trop long */
    margin: 0;
    line-height: 1;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .menu-button {
    position: relative; right: auto; top: auto;
    font-size: 28px; padding: 4px; flex-shrink: 0;
    margin-left: 10px;
  }

  /* --- 2. MENU DÉROULANT (CENTRÉ & PROPRE) --- */
  .menu-content {
    /* Positionné pile sous la barre */
    top: calc(64px + env(safe-area-inset-top)); 
    left: 0; right: 0; bottom: 0;
    height: calc(100dvh - (64px + env(safe-area-inset-top)));
    max-height: none;
    
    /* Couleur sombre du thème */
    background: rgba(15, 30, 20, 0.98); 
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);

    /* CENTRAGE PARFAIT */
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centre horizontalement */
    padding: 40px 20px;      /* Espace en haut */
    gap: 20px;
    overflow-y: auto;
    z-index: 1001;
  }

  .menu-content nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les liens */
    gap: 15px;
  }

  /* Boutons du menu : Droits et Propres */
  .menu-content nav a {
    display: block;
    width: 100%;
    max-width: 280px; /* Largeur fixe pour faire "propre" */
    text-align: center;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    
    /* Style Vitré */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }
  
  /* Barre de recherche dans le menu */
  .menu-search {
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }

  /* --- 3. ESPACEMENT PAGE (PHOTO REMONTÉE) --- */
  .layout { display: block; }
  
  main {
    /* J'ai réduit ce chiffre pour remonter la photo */
    padding-top: 125px !important; 
    
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px;
  }

  /* Barre de recherche (Fixe sous la nav) */
  .main-search {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0; right: 0;
    padding: 8px 15px;
    background: rgba(34, 34, 34, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 900;
  }
  .main-search__inner { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .main-search input[type="text"] { height: 40px; font-size: 16px; }

  /* --- 4. BEST SELLERS (Style Mobile) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0;
    margin-top: 20px;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
  }
  
  .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .name {
    font-size: 13px;
    min-height: 34px;
    overflow: visible;
    white-space: normal;
    line-height: 1.3;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .price { 
    font-size: 14px; 
    margin-top: auto; 
    justify-content: center;
  }

  /* --- 5. AUTRES ÉLÉMENTS --- */
  .shop-cta, .blog-cta {
    display: block !important;
    margin: 15px 0; padding: 15px; width: 100%;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex; gap: 10px; }
  .shop-cta__rail { animation: none !important; }

  .sidebar { display: none; }
  
  .filters-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; padding: 10px; z-index: 999;
    border-top: 1px solid #333;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .filters-form { display: flex; gap: 10px; }
  .chip-select { width: 100%; height: 44px; font-size: 16px; }
}/* ==========================================================================
   PATCH MOBILE FINAL (TITRE 1 LIGNE + MENU COULEUR/CENTRÉ + IMAGES CARRÉES)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- 1. NAVBAR : LOGO + TITRE SUR UNE LIGNE --- */
  .navbar {
    min-height: 64px;
    height: auto;
    /* Gestion de l'encoche iPhone */
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* COULEUR: Verre sombre du thème */
    background: rgba(34, 34, 34, 0.95); 
    backdrop-filter: blur(12px);
    z-index: 1002;
  }

  /* Conteneur Logo + Titre */
  .logo {
    position: relative; left: auto; top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1; /* Prend la place disponible */
    overflow: hidden; /* Important pour que le titre ne casse pas tout */
  }

  .logo img {
    height: 32px; /* Taille adaptée mobile */
    width: auto;
    flex-shrink: 0; /* Le logo ne doit pas s'écraser */
  }

  /* TITRE : Petit, 1 ligne, coupé si trop long */
  .title { 
    display: block !important;
    font-size: 12px !important;     /* Petit pour tenir */
    white-space: nowrap !important; /* FORCE une seule ligne */
    overflow: hidden;               /* Cache ce qui dépasse */
    text-overflow: ellipsis;        /* Ajoute "..." à la fin si c'est trop long */
    margin: 0;
    line-height: 1;
    color: #fff;
    font-weight: 700;
  }

  .menu-button {
    position: relative; right: auto; top: auto;
    font-size: 28px; padding: 4px; flex-shrink: 0;
    margin-left: 10px;
  }

  /* --- 2. MENU DÉROULANT (PROPRE, CENTRÉ & BONNE COULEUR) --- */
  .menu-content {
    /* Positionné pile sous la barre */
    top: calc(64px + env(safe-area-inset-top)); 
    left: 0; right: 0; bottom: 0;
    height: calc(100dvh - (64px + env(safe-area-inset-top)));
    max-height: none;
    
    /* COULEUR : Thème vert sombre vitré */
    background: rgba(20, 40, 25, 0.97); 
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);

    /* CENTRAGE PARFAIT */
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centre horizontalement */
    padding: 40px 20px;      /* Espace en haut */
    gap: 20px;
    overflow-y: auto;
    z-index: 1001;
  }

  .menu-content nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les liens */
    gap: 15px;
  }

  /* Boutons du menu : Droits, Propres, Centrés */
  .menu-content nav a {
    display: block;
    width: 100%;
    max-width: 280px; /* Largeur fixe pour faire net */
    text-align: center;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    
    /* Style Vitré */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }
  
  /* Barre de recherche dans le menu */
  .menu-search {
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }

  /* --- 3. ESPACEMENT PAGE (PHOTO REMONTÉE) --- */
  .layout { display: block; }
  
  main {
    /* Espace réduit pour remonter la photo */
    /* 64px (nav) + 50px (search) + 10px (marge) */
    padding-top: 124px !important; 
    
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 100px;
  }

  /* Barre de recherche (Fixe sous la nav) */
  .main-search {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0; right: 0;
    padding: 8px 15px;
    /* Couleur thème */
    background: rgba(34, 34, 34, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 900;
  }
  .main-search__inner { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .main-search input[type="text"] { height: 40px; font-size: 16px; }

  /* --- 4. BEST SELLERS (IMAGES CARRÉES) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0;
    margin-top: 20px;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
  }
  
  /* IMAGES AU CARRÉ */
  .product img {
    width: 100%;
    aspect-ratio: 1 / 1 !important; /* Force le carré */
    object-fit: cover;              /* Remplit le carré sans déformer */
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .name {
    font-size: 13px;
    min-height: 34px;
    overflow: visible;
    white-space: normal;
    line-height: 1.3;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .price { 
    font-size: 14px; 
    margin-top: auto; 
    justify-content: center;
  }

  /* --- 5. AUTRES ÉLÉMENTS (Visibles) --- */
  .shop-cta, .blog-cta {
    display: block !important;
    margin: 15px 0; padding: 15px; width: 100%;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex; gap: 10px; }
  .shop-cta__rail { animation: none !important; }

  .sidebar { display: none; }
  
  /* Barre de filtres en bas */
  .filters-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; padding: 10px; z-index: 999;
    border-top: 1px solid #333;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .filters-form { display: flex; gap: 10px; }
  .chip-select { width: 100%; height: 44px; font-size: 16px; }
}

/* ==========================================================================
   PATCH FORCE MOBILE (iPhone)
   Colle ce code TOUT à la fin de ton fichier style.css
   ========================================================================== */

@media screen and (max-width: 980px) {

  /* --- 1. NAVBAR & TITRE (FORCE 1 LIGNE) --- */
  .navbar {
    height: 64px !important;
    min-height: 64px !important;
    padding-top: max(4px, env(safe-area-inset-top)) !important;
    padding-bottom: 4px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(34, 34, 34, 0.98) !important; 
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
  }

  .logo {
    position: relative !important; left: auto !important; top: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    /* Laisse de la place, mais ne s'écrase pas */
    flex: 0 1 auto !important; 
    max-width: 80% !important;
  }

  .logo img {
    height: 30px !important; /* Logo ajusté */
    width: auto !important;
  }

  .title { 
    display: block !important;
    font-size: 11px !important;     /* Suffisamment petit pour tenir */
    white-space: nowrap !important; /* FORCE 1 SEULE LIGNE */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
  }

  .menu-button {
    position: relative !important; right: auto !important; top: auto !important;
    font-size: 26px !important;
    padding: 5px !important;
    margin-left: 8px !important;
  }

  /* --- 2. MENU DÉROULANT (CENTRÉ & PROPRE) --- */
  .menu-content {
    top: calc(64px + env(safe-area-inset-top)) !important; 
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    height: auto !important; 
    max-height: none !important;
    
    /* Vert sombre thème */
    background: rgba(10, 25, 15, 0.98) !important; 
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;

    /* CENTRAGE TOTAL */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 40px 20px 100px !important;
    gap: 20px !important;
    overflow-y: auto !important;
    z-index: 9998 !important;
  }

  .menu-content nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .menu-content nav a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 260px !important; /* Largeur fixe propre */
    text-align: center !important;
    padding: 15px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #fff !important;
    
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
  }
  
  .menu-search {
    justify-content: center !important;
    width: 100% !important;
    max-width: 260px !important;
  }

  /* --- 3. REMONTER LA PHOTO (ESPACEMENT) --- */
  .layout { display: block !important; }
  
  main {
    /* J'ai mis 110px : C'est très serré pour remonter la photo au max */
    padding-top: 110px !important; 
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 100px !important;
  }

  /* Barre de recherche (sous la nav) */
  .main-search {
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top)) !important;
    left: 0 !important; right: 0 !important;
    height: 50px !important;
    padding: 5px 10px !important;
    background: rgba(34, 34, 34, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 900 !important;
    display: flex !important;
    align-items: center !important;
  }
  .main-search__inner { 
    width: 100% !important; 
    grid-template-columns: 1fr !important; 
    gap: 0 !important; padding: 0 !important; 
  }
  .main-search input[type="text"] { height: 38px !important; font-size: 16px !important; margin: 0 !important; }
  /* On cache le select "Trier par" sur mobile pour gagner de la place si besoin, sinon laisse-le */
  .main-search select { display: none !important; } 

  /* --- 4. BEST SELLERS : IMAGES CARRÉES --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    margin-top: 15px !important;
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    background: rgba(255,255,255,0.08) !important;
  }
  
  .product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* FORCE LE CARRÉ */
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    height: auto !important;
  }

  .name {
    font-size: 13px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    margin: 5px 0 !important;
    /* Limite à 3 lignes max */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  .price { 
    font-size: 14px !important; 
    margin-top: auto !important; 
    justify-content: center !important;
    margin-bottom: 8px !important;
  }

  /* --- 5. VISIBILITÉ DES BLOCS --- */
  .shop-cta, .blog-cta {
    display: block !important;
    visibility: visible !important;
    margin: 10px 0 !important; 
    padding: 15px !important; 
    width: 100% !important;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex !important; gap: 10px !important; }
  .shop-cta__rail { animation: none !important; }

  /* --- 6. Sidebar / Filtres --- */
  .sidebar { display: none !important; }
  
  .filters-bar {
    position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: #1a1a1a !important; padding: 10px !important; z-index: 9999 !important;
    border-top: 1px solid #333 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
  .filters-form { display: flex !important; gap: 10px !important; }
  .chip-select { width: 100% !important; height: 44px !important; font-size: 16px !important; }
}

/* ==========================================================================
   VERSION MOBILE FINALE (Mise à jour : Fond Fixe + Espace réduit)
   - Fond d'écran fixe (Parallax)
   - Espace réduit entre barre de recherche et produits
   - Navbar Compacte + Titre 1 ligne
   - Menu centré (Thème Vert Sombre)
   - Images Carrées (2 colonnes)
   ========================================================================== */

@media screen and (max-width: 980px) {

  /* --- 0. FOND D'ÉCRAN FIXE --- */
  body {
    /* Empêche le fond de scroller avec le contenu */
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  /* --- 1. NAVBAR COMPACTE --- */
  .navbar {
    height: 64px !important;
    min-height: 64px !important;
    padding-top: max(4px, env(safe-area-inset-top)) !important;
    padding-bottom: 4px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    /* Fond : Verre sombre neutre */
    background: rgba(34, 34, 34, 0.98) !important; 
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
  }

  /* Conteneur Logo + Titre */
  .logo {
    position: relative !important; left: auto !important; top: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    overflow: hidden !important;
    max-width: 85% !important;
  }

  .logo img {
    height: 30px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  /* TITRE : Petit, une seule ligne */
  .title { 
    display: block !important;
    font-size: 11px !important; 
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
  }

  .menu-button {
    position: relative !important; right: auto !important; top: auto !important;
    font-size: 26px !important;
    padding: 4px !important;
    margin-left: 8px !important;
    flex-shrink: 0 !important;
  }

  /* --- 2. MENU DÉROULANT (CENTRÉ & VERT) --- */
  .menu-content {
    top: calc(64px + env(safe-area-inset-top)) !important; 
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    height: auto !important; 
    max-height: none !important;
    
    background: rgba(10, 25, 15, 0.98) !important; 
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 40px 20px 100px !important;
    gap: 20px !important;
    overflow-y: auto !important;
    z-index: 9998 !important;
  }

  .menu-content nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .menu-content nav a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    padding: 15px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #fff !important;
    
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
  }
  
  .menu-search {
    justify-content: center !important;
    width: 100% !important;
    max-width: 280px !important;
  }

  /* --- 3. MISE EN PAGE (CONTENU REMONTÉ) --- */
  .layout { display: block !important; }
  
  main {
    /* 64px (nav) + 50px (search) = 114px. On met 115px pour ne pas couper. */
    padding-top: 115px !important; 
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 100px !important;
  }

  /* Barre de recherche fixée */
  .main-search {
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top)) !important;
    left: 0 !important; right: 0 !important;
    height: 50px !important;
    padding: 5px 10px !important;
    background: rgba(34, 34, 34, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 900 !important;
    display: flex !important; 
    align-items: center !important;
  }
  
  .main-search__inner { 
    width: 100% !important; 
    grid-template-columns: 1fr !important; 
    gap: 0 !important; padding: 0 !important; 
  }
  .main-search input[type="text"] { height: 38px !important; font-size: 16px !important; margin: 0 !important; }
  .main-search select { display: none !important; } 

  /* --- 4. GRILLE PRODUITS (ESPACE RÉDUIT & IMAGES CARRÉES) --- */
  .container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    /* REMONTÉE AU MAX : Seulement 4px d'écart avec la barre de recherche */
    margin-top: 4px !important; 
  }

  .product {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    background: rgba(255,255,255,0.02) !important; 
  }
  
  /* IMAGE CARRÉE */
  .product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; 
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    height: auto !important;
  }

  .name {
    font-size: 13px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    margin: 5px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  .price { 
    font-size: 14px !important; 
    margin-top: auto !important; 
    justify-content: center !important;
    margin-bottom: 8px !important;
  }

  /* --- 5. AUTRES --- */
  .shop-cta, .blog-cta {
    display: block !important;
    visibility: visible !important;
    margin: 10px 0 !important; 
    padding: 15px !important; 
    width: 100% !important;
  }
  .shop-cta__ticker, .blog-rail { overflow-x: auto !important; display: flex !important; gap: 10px !important; }
  .shop-cta__rail { animation: none !important; }

  .sidebar { display: none !important; }
  
  .filters-bar {
    position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: #1a1a1a !important; padding: 10px !important; z-index: 9999 !important;
    border-top: 1px solid #333 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
  .filters-form { display: flex !important; gap: 10px !important; }
  .chip-select { width: 100% !important; height: 44px !important; font-size: 16px !important; }
}
