/* ======================================================================
   Lo d'Asie — Feuille de style unique du site (refonte)
   Épicerie asiatique, exotique et halal à Gien — lodasie.fr
   ====================================================================== */

/* ---------- 1. Variables & Reset ---------- */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #9c2d20;
  --color-primary-light: #fdecea;
  --color-accent: #c99a3b;
  --color-ink: #24211d;
  --color-ink-soft: #5f5b54;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f4ef;
  --color-bg-dark: #1f1c19;
  --color-border: #e7e1d8;
  --color-success: #2f7d4f;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(36, 33, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 33, 29, 0.10);
  --shadow-lg: 0 20px 50px rgba(36, 33, 29, 0.16);

  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-ink);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.4em;
}

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

/* ---------- 2. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-light:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.main-nav a.nav-cta {
  background: var(--color-primary);
  color: #fff;
}

.main-nav a.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. Hero (page d'accueil) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.55), rgba(20, 17, 15, 0.72)),
    url("image/devanture_actuel.jpg") center/cover no-repeat;
}

.hero-inner {
  max-width: 680px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  color: #fff;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
}

/* ---------- 5. Bannière de page (pages intérieures) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--color-bg-dark), #33281f 70%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(192, 57, 43, 0.35), transparent 55%);
  pointer-events: none;
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.3em;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 6. Cartes génériques ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ---------- 7. Catégories (accueil) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 190px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0) 35%, rgba(20, 17, 15, 0.82));
}

.category-card span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card:hover img {
  transform: scale(1.08);
}

/* ---------- 8. Produits phares & grille produits ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Le sélecteur [hidden] doit l'emporter sur .product-card{display:flex}
   pour que le filtre JS masque bien les cartes (sinon [hidden] seul
   est ignoré à cause de la déclaration display de la carte). */
.product-card[hidden] {
  display: none;
}

.product-img {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

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

.product-info {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.product-info p {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- 9. Page Nos produits : filtres & recherche ---------- */
.products-toolbar {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 40px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.search-field {
  position: relative;
  max-width: 420px;
  margin: 0 auto 18px;
}

.search-field input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}

.search-field input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-ink-soft);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.results-count {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-ink-soft);
}

/* ---------- 10. Avis Google ---------- */
.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  text-align: center;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
}

.rating-badge .stars {
  color: var(--color-accent);
  letter-spacing: 2px;
}

.rating-badge strong {
  font-size: 1.1rem;
}

.rating-badge span {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 22px;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 700px) {
  .review-card {
    flex: 0 0 calc(50% - 11px);
  }
}

@media (min-width: 1000px) {
  .review-card {
    flex: 0 0 calc(33.333% - 15px);
  }
}

.review-card .stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.review-card p {
  color: var(--color-ink);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.reviews-controls .btn-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reviews-controls .btn-round:hover {
  background: var(--color-ink);
  color: #fff;
}

.reviews-cta {
  text-align: center;
  margin-top: 34px;
}

.reviews-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: 10px;
}

/* ---------- 11. Horaires ---------- */
.hours-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.status-banner.is-open {
  background: #ecf8f0;
  color: var(--color-success);
}

.status-banner.is-closed {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.9;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 15px 22px;
  font-size: 0.98rem;
}

.hours-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  width: 45%;
}

.hours-table tr.today {
  background: var(--color-bg-alt);
}

.hours-table tr.closed td:last-child {
  color: var(--color-ink-soft);
}

.hours-side .card {
  margin-bottom: 20px;
}

.hours-side h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hours-side address,
.hours-side p {
  font-style: normal;
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

/* ---------- 12. Coordonnées ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-item .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
  color: var(--color-ink-soft);
  margin-bottom: 0;
  font-size: 0.96rem;
}

.contact-item a:hover {
  color: var(--color-primary);
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

.social-icons a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  height: 100%;
  min-height: 360px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---------- 13. CTA bande ---------- */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 26px;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-bottom {
  padding: 22px 24px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hours-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 4px;
  }

  .main-nav a {
    padding: 13px 16px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  section {
    padding: 52px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    min-height: 560px;
  }

  .products-toolbar {
    position: static;
  }
}
