@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ocre: #1A4D7A;
  --ocre-light: #2E6FA0;
  --marron: #0A0A0A;
  --or: #D4A847;
  --or-light: #F2D27B;
  --vert-bf: #2D7A3A;
  --rouge-bf: #C0392B;
  --creme: #F5F7FA;
  --sable: #E9EDF3;
  --text-dark: #111111;
  --text-med: #2A2A2A;
  --text-light: #5F6670;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--creme);
  color: var(--text-dark);
  overflow-x: hidden;
}

nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,10,10,0.97);
  border-bottom: 2px solid var(--or);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}

/* Bouton hamburger — caché sur desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* Animation hamburger → croix */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  line-height: 1.1;
}
.logo span { color: var(--or-light); font-style: italic; }
.logo-img { 
  height: 50px; width: auto; object-fit: contain; mix-blend-mode: lighten;
  animation: zoomLogo 4s ease-in-out infinite;
}
.logo-hero-img { 
  width: 100%; max-width: 320px; height: auto; object-fit: contain; mix-blend-mode: lighten;
  animation: zoomLogo 4s ease-in-out infinite;
}

.nav-links { display: flex; gap: 0.6rem; flex-wrap: nowrap; align-items: center; }
.nav-links button {
  background: transparent;
  border: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
  cursor: pointer; transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  padding: 0.3rem 0.4rem;
}
.nav-links button:hover { color: var(--or-light); }

.nav-cta {
  background: var(--ocre); color: white;
  border: none; padding: 0.5rem 1.2rem;
  border-radius: 2px; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: var(--ocre-light); }

/* Lien admin dans le menu mobile — caché sur desktop */
.nav-admin-mobile {
  display: none !important;
}
@media (max-width: 768px) {
  .nav-admin-mobile {
    display: block !important;
    background: var(--ocre) !important;
    color: white !important;
    margin: 0.5rem 1rem 0;
    border-radius: 2px;
    width: calc(100% - 2rem) !important;
  }
}

.section { display: none; padding-top: 64px; }
.section.active { display: block; }

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(8,12,20,0.78) 0%, rgba(10,10,10,0.82) 55%, rgba(11,25,44,0.78) 100%), url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}

.weave-bg {
  position: absolute; inset: 0; opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 18px, var(--or) 18px, var(--or) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, var(--ocre) 18px, var(--ocre) 20px),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.1) 8px, rgba(255,255,255,0.1) 10px);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 4rem 4rem;
}

.hero-tag {
  display: inline-block;
  border: 1px solid var(--or);
  color: var(--or-light);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 1rem; margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--creme);
  line-height: 1.1; margin-bottom: 0.5rem;
}
.hero h1 em { color: var(--or-light); font-style: italic; }

.hero-sub {
  font-size: 1.05rem; color: rgba(253,246,227,0.7);
  margin: 1.2rem 0 2rem; line-height: 1.6; max-width: 480px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--ocre); color: white;
  border: none; padding: 0.85rem 2rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s; text-transform: uppercase;
}
.btn-primary:hover { background: var(--ocre-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: #CFE5FF;
  border: 1px solid var(--ocre); padding: 0.85rem 2rem;
  font-size: 0.9rem; letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s; text-transform: uppercase;
}
.btn-outline:hover { background: rgba(21,101,192,0.2); }

.hero-decor {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%; display: flex; align-items: center; justify-content: center;
}

.brand-logo-hero {
  width: 320px;
  background: rgba(10,10,10,0.7);
  border: 2px solid var(--or);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

.logo-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--or);
  color: var(--or-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo-hero h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}
.brand-logo-hero p {
  color: var(--or-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(212,168,71,0.3);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--or-light); display: block;
}
.stat-lbl {
  font-size: 0.75rem; color: rgba(253,246,227,0.6);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.page-header {
  background: var(--marron); padding: 3rem 3rem 2rem;
  text-align: center;
}
.page-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--creme);
}
.page-header p { color: var(--or-light); margin-top: 0.5rem; font-size: 0.9rem; }

.gold-line {
  width: 60px; height: 2px; background: var(--or);
  margin: 1rem auto;
}

.filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 1.5rem 2rem; background: var(--sable);
  border-bottom: 1px solid rgba(196,120,42,0.2);
  justify-content: center;
}
.filter-btn {
  padding: 0.45rem 1.2rem; border: 1px solid var(--ocre);
  background: transparent; color: var(--ocre);
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ocre); color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; padding: 2rem;
  max-width: 1200px; margin: 0 auto;
}

.product-card {
  background: white; border: 1px solid rgba(196,120,42,0.15);
  border-radius: 2px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(92,45,10,0.12);
}
.product-card:hover .product-img { filter: brightness(0.95); }

.product-img {
  height: 200px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--rouge-bf); color: white;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

.product-info { padding: 1rem 1.2rem; }
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--marron); margin-bottom: 0.3rem;
}
.product-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; border-top: 1px solid rgba(196,120,42,0.1);
  background: var(--creme);
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--ocre); font-weight: 700;
}
.product-price small { font-size: 0.7rem; font-family: 'DM Sans', sans-serif; color: var(--text-light); }

.btn-add {
  background: var(--ocre); color: white; border: none;
  padding: 0.4rem 1rem; font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--ocre-light); }

.about-hero {
  background: var(--marron); padding: 4rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-visual {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.about-logo-frame {
  min-height: 320px;
  border-radius: 2px;
  border: 1px solid rgba(212,168,71,0.22);
  background:
    radial-gradient(circle at top, rgba(212,168,71,0.18), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.about-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  animation: zoomLogo 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.22));
}
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--creme); margin-bottom: 1rem;
}
.about-text h2 em { color: var(--or-light); font-style: italic; }
.about-text p { color: rgba(253,246,227,0.75); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }

.values-section { padding: 3rem 2rem; background: var(--sable); }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 2rem auto 0;
}
.value-card {
  text-align: center; padding: 2rem 1.5rem;
  background: white; border: 1px solid rgba(196,120,42,0.15);
}
.value-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.value-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--marron); margin-bottom: 0.5rem; }
.value-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.contact-info {
  background: var(--marron); padding: 4rem 3rem;
  color: var(--creme);
}
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; margin-bottom: 0.5rem;
}
.contact-info > p { color: var(--or-light); margin-bottom: 2.5rem; font-size: 0.9rem; }

.contact-item { margin-bottom: 2rem; }
.contact-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--or-light); margin-bottom: 0.4rem;
}
.contact-value { font-size: 0.95rem; color: var(--creme); line-height: 1.6; }
.contact-value a { color: var(--or-light); text-decoration: none; }

.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-top: 0.5rem; }
.hours-row { font-size: 0.85rem; }
.hours-row span { color: var(--or-light); }

.map-placeholder {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,168,71,0.3);
  border-radius: 2px; padding: 2rem; margin-top: 2rem;
  text-align: center; font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
}

.whatsapp-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--ocre); color: white; border: none;
  padding: 0.8rem 1.5rem; border-radius: 2px;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  margin-top: 1.5rem; width: 100%; justify-content: center;
  transition: background 0.2s;
}
.whatsapp-btn:hover { background: var(--ocre-light); }

.contact-form {
  padding: 4rem 3rem; background: var(--creme);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--marron); margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-med); margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid rgba(196,120,42,0.3);
  background: white; color: var(--text-dark);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  border-radius: 2px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ocre);
}
.form-group textarea { height: 120px; resize: vertical; }

.image-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 140px;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1.5px dashed rgba(21,101,192,0.45);
  background: linear-gradient(135deg, rgba(21,101,192,0.05), rgba(212,168,71,0.08));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--ocre);
  background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(212,168,71,0.15));
  transform: translateY(-1px);
}
.image-dropzone.has-image {
  justify-content: flex-start;
}
.dropzone-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  color: var(--text-med);
  pointer-events: none;
}
.dropzone-text strong {
  color: var(--ocre);
  font-size: 0.9rem;
}
.dropzone-text span {
  font-size: 0.8rem;
  color: var(--text-light);
}
.image-preview {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(21,101,192,0.25);
  background: white;
  flex-shrink: 0;
}
.image-preview.hidden { display: none; }

.field-hint {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
}

.btn-submit {
  width: 100%; background: var(--ocre); color: white;
  border: none; padding: 0.9rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: background 0.2s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--ocre-light); }

.order-page { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.step-card {
  display: flex; gap: 2rem; align-items: flex-start;
  background: white; border: 1px solid rgba(196,120,42,0.15);
  padding: 1.8rem; border-radius: 2px;
}
.step-num {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--ocre); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; border-radius: 2px;
}
.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--marron); margin-bottom: 0.5rem;
}
.step-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

.payment-section { margin-top: 3rem; padding: 2rem; background: var(--sable); }
.payment-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--marron); margin-bottom: 1.2rem;
}
.payment-methods { display: flex; gap: 1rem; flex-wrap: wrap; }
.payment-pill {
  padding: 0.5rem 1.2rem; border: 1px solid var(--ocre);
  border-radius: 2px; font-size: 0.82rem; color: var(--ocre);
  background: white; font-weight: 500;
}

.admin-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-link:hover { border-color: var(--or); color: var(--or-light); }

.order-form-wrap {
  max-width: 980px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.order-form-card, .admin-card, .dashboard-card {
  background: white;
  border: 1px solid rgba(21,101,192,0.15);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.admin-card h3, .dashboard-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--marron);
}
.mini-note {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.admin-layout {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  padding: 0 2rem 2rem;
}

.admin-sidebar {
  background: #0f172a;
  color: white;
  border-radius: 10px;
  padding: 1.2rem;
  height: fit-content;
}
.admin-sidebar h3 { color: white; margin-bottom: 0.8rem; }
.admin-menu { display: grid; gap: 0.5rem; margin-top: 1rem; }
.admin-menu button {
  width: 100%;
  text-align: left;
  background: #111827;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}
.admin-menu button.active, .admin-menu button:hover { background: rgba(21,101,192,0.45); border-color: rgba(21,101,192,0.75); }

.hidden { display: none !important; }
.row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.row-actions button {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}
.btn-edit-row { background: #dbeafe; color: #1d4ed8; }
.btn-delete-row { background: #fee2e2; color: #b91c1c; }
.btn-view-row { background: #dcfce7; color: #166534; }

.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 0.8rem 0.7rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; font-size: 0.9rem; }
.admin-table th { color: var(--text-med); background: #f8fafc; }

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-attente { background: #fef3c7; color: #92400e; }
.st-confirmee { background: #dbeafe; color: #1d4ed8; }
.st-livree { background: #dcfce7; color: #166534; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.btn-secondary {
  background: #0f172a;
  color: white;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
}

.admin-login-grid {
  max-width: 460px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}

.login-box {
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(21,101,192,0.15);
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

.badge-soft {
  display: inline-block;
  background: rgba(21,101,192,0.1);
  color: var(--ocre);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-toolbar button { background: var(--ocre); color: white; border: none; padding: 0.55rem 0.85rem; border-radius: 6px; cursor: pointer; }
.admin-toolbar button:hover { background: var(--ocre-light); }

.phone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.phone-list li { margin-bottom: 0.35rem; }

footer {
  background: var(--marron); color: rgba(253,246,227,0.6);
  text-align: center; padding: 2rem;
  font-size: 0.8rem; letter-spacing: 0.05em;
  border-top: 2px solid var(--ocre);
}
footer strong { color: var(--or-light); }

.sec-title {
  text-align: center; padding: 2.5rem 2rem 0;
}
.sec-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--marron);
}
.sec-title p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 700px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; padding: 2rem; }
  .hero-decor { display: none; }
  .hero-content { padding: 2rem; }
  .hero h1 { font-size: 2rem; }
  .order-form-wrap, .admin-layout { grid-template-columns: 1fr; }
}

/* Modal overlay for product form */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
}

#product-form-panel.modal {
  width: 100%;
  max-width: 820px;
  border-radius: 8px;
  margin: 0; /* reset inline margin */
  box-shadow: 0 24px 48px rgba(2,6,23,0.6);
  transform: translateY(0);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  /* animation defaults */
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(.2,.9,.2,1);
  animation-fill-mode: both;
}

@media (max-width: 700px) {
  #product-form-panel.modal { max-width: 100%; padding: 1rem; }
}

/* modal animations */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.98); }
}
.modal-open { animation-name: modalIn; }
.modal-closing { animation-name: modalOut; }

/* logo animations */
@keyframes zoomLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints :
     sm  : ≤ 480px  (petits mobiles)
     md  : ≤ 768px  (mobiles / tablettes portrait)
     lg  : ≤ 1024px (tablettes paysage)
   ============================================================ */

/* ── Navigation ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    height: 56px;
    position: fixed;
  }

  .logo-img { height: 38px; }

  /* Hamburger visible sur mobile */
  .nav-hamburger { display: flex; }

  /* Menu mobile : panneau déroulant */
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(10,10,10,0.98);
    border-bottom: 2px solid var(--or);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links button {
    width: 100% !important;
    font-size: 0.92rem !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
  }
  .nav-links button:hover { background: rgba(255,255,255,0.05); }

  /* Bouton "Se connecter" desktop caché sur mobile */
  .nav-cta { display: none !important; }

  .section { padding-top: 56px; }
}

@media (max-width: 480px) {
  .section { padding-top: 56px; }
}

/* ── Tablette : nav compacte ─────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 0.3rem; }
  .nav-links button { font-size: 0.72rem; padding: 0.25rem 0.3rem; }
  .nav-cta { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
}

/* ── Hero ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero-content { padding: 3rem 2rem; max-width: 100%; }
  .hero-decor {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2rem;
    justify-content: center;
  }
  .brand-logo-hero { width: 260px; }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* iOS ne supporte pas fixed */
    min-height: 100svh;
  }
  .hero-content { padding: 2rem 1.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-btns { flex-direction: column; gap: 0.75rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 0.85rem 1rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.4rem; }
  .hero-decor { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats > div { flex: 1 1 80px; text-align: center; }
}

/* ── Boutique / Produits ─────────────────────────────────── */
@media (max-width: 768px) {
  .page-header { padding: 2rem 1.2rem 1.5rem; }
  .page-header h2 { font-size: 1.5rem; }

  .filters {
    padding: 1rem;
    gap: 0.4rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; padding: 0.4rem 0.9rem; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  .product-img { height: 150px; }
  .product-info { padding: 0.75rem; }
  .product-name { font-size: 0.9rem; }
  .product-footer { padding: 0.6rem 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
  .btn-add { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── Section Nouveautés (accueil) ───────────────────────── */
@media (max-width: 768px) {
  .sec-title { padding: 1.5rem 1rem 0; }
  .sec-title h2 { font-size: 1.4rem; }
}

/* ── À Propos ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  .about-logo-frame { min-height: 220px; }
  .about-text h2 { font-size: 1.6rem; }
  .about-text p { font-size: 0.88rem; }
  .values-section { padding: 2rem 1rem; }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .value-card { padding: 1.2rem 1rem; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ── Contact ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-wrap { grid-template-columns: 1fr; min-height: auto; }
}

@media (max-width: 768px) {
  .contact-info { padding: 2rem 1.2rem; }
  .contact-info h2 { font-size: 1.5rem; }
  .contact-form { padding: 2rem 1.2rem; }
  .contact-form h3 { font-size: 1.2rem; }
  .hours-grid { grid-template-columns: 1fr; }
}

/* ── Commande ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .order-form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .order-page { padding: 1.5rem 1rem; }
  .step-card { padding: 1.2rem; gap: 1rem; }
  .step-num { width: 38px; height: 38px; font-size: 1.2rem; }
  .step-content h4 { font-size: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .payment-methods { gap: 0.5rem; }
  .payment-pill { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  .form-actions { flex-direction: column; }
  .form-actions button { width: 100%; text-align: center; }
}

/* ── Admin ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
    margin-top: 1rem;
  }
  .admin-sidebar { height: auto; }
  .admin-menu { grid-template-columns: repeat(3, 1fr); }
  .admin-menu button { text-align: center; }
}

@media (max-width: 768px) {
  .admin-login-grid { padding: 0 1rem; margin-top: 1rem; }
  .admin-layout { padding: 0 0.75rem 1rem; }
  .dashboard-card { padding: 1rem; border-radius: 8px; }
  .admin-toolbar { flex-direction: column; }
  .admin-toolbar button { width: 100%; }
  .admin-table th, .admin-table td {
    font-size: 0.78rem;
    padding: 0.6rem 0.4rem;
  }
  .row-actions { flex-direction: column; gap: 0.25rem; }
  .row-actions button { width: 100%; }
  .admin-menu { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  footer { padding: 1.5rem 1rem; font-size: 0.75rem; }
}

/* ── Utilitaires touch / accessibilité ─────────────────── */
@media (hover: none) {
  /* Désactive les hover sur écrans tactiles */
  .product-card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover { transform: none; }
}

@media (max-width: 768px) {
  /* Zone de tap plus grande sur mobile */
  .btn-primary, .btn-outline, .btn-add,
  .btn-submit, .whatsapp-btn, .filter-btn,
  .nav-cta, .nav-links button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
